/*
* 文件名称: market.css
* 功能说明: 市场分析页面的样式文件
* 创建日期: 2025年1月1日
* 作者: AI炒股学习网开发团队
* 说明: 提供市场分析页面的专业视觉设计
*/

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* 市场统计样式 */
.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 市场概览样式 */
.market-overview {
    padding: 80px 0;
    background: #f8f9fa;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.update-time {
    font-size: 0.8rem;
    color: #28a745;
    background: #d4edda;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #c3e6cb;
}

.sentiment-score {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentiment-score.positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sentiment-score.negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sentiment-score.neutral {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.flow-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.flow-status.positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flow-status.negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 指数列表样式 */
.indices-list {
    space-y: 1rem;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.3s ease;
}

.index-item:last-child {
    border-bottom: none;
}

.index-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.index-info {
    display: flex;
    flex-direction: column;
}

.index-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.index-code {
    font-size: 0.8rem;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.index-data {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.index-value {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    font-family: 'Courier New', monospace;
}

.index-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.index-change.positive {
    background: #d4edda;
    color: #155724;
}

.index-change.negative {
    background: #f8d7da;
    color: #721c24;
}

/* 情绪指标样式 */
.sentiment-content {
    space-y: 2rem;
}

.sentiment-meter {
    margin-bottom: 2rem;
}

.meter-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    position: relative;
    margin-bottom: 1rem;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    border-radius: 4px;
    position: relative;
    transition: width 0.8s ease;
}

.meter-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #28a745;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
}

.sentiment-indicators {
    space-y: 1rem;
}

.indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.indicator:last-child {
    border-bottom: none;
}

.indicator-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.indicator-value {
    font-weight: 600;
    color: #2c3e50;
}

.indicator-value.positive {
    color: #28a745;
}

.indicator-value.negative {
    color: #dc3545;
}

/* 板块列表样式 */
.sectors-list {
    space-y: 0.8rem;
}

.sector-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.sector-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.sector-name {
    font-weight: 500;
    color: #2c3e50;
}

.sector-change {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.sector-change.positive {
    background: #d4edda;
    color: #155724;
}

.sector-change.negative {
    background: #f8d7da;
    color: #721c24;
}

/* 资金流向样式 */
.flow-content {
    space-y: 1.5rem;
}

.flow-chart {
    margin-bottom: 1.5rem;
    text-align: center;
}

.flow-summary {
    space-y: 1rem;
}

.flow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.flow-item:last-child {
    border-bottom: none;
}

.flow-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.flow-value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.flow-value.positive {
    color: #28a745;
}

.flow-value.negative {
    color: #dc3545;
}

/* 技术分析样式 */
.technical-analysis {
    padding: 80px 0;
    background: white;
}

.analysis-tabs {
    margin-top: 3rem;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #667eea;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

.tab-content {
    min-height: 500px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* K线图表样式 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.symbol-input {
    display: flex;
    gap: 0.5rem;
}

.symbol-input input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 150px;
}

.search-btn, .tool-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover, .tool-btn:hover {
    background: #5a6fd8;
}

.timeframe-selector {
    display: flex;
    gap: 0.5rem;
}

.timeframe-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe-btn:hover {
    background: #e9ecef;
}

.timeframe-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.chart-tools {
    display: flex;
    gap: 0.5rem;
}

.chart-area, .volume-chart {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

/* 技术指标样式 */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.indicator-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.indicator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.indicator-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.indicator-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.value-item .label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.value-item .value {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.value-item .value.positive {
    color: #28a745;
}

.value-item .value.negative {
    color: #dc3545;
}

.indicator-signal {
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indicator-signal.positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.indicator-signal.negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.indicator-signal.neutral {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.indicator-signal.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 形态识别样式 */
.patterns-content {
    space-y: 2rem;
}

.pattern-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pattern-search input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pattern-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pattern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pattern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.pattern-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.pattern-reliability {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.pattern-info {
    margin-bottom: 1rem;
}

.pattern-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pattern-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-item {
    font-size: 0.8rem;
    color: #495057;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.pattern-signal {
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pattern-signal.positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pattern-signal.negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pattern-signal.neutral {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 交易信号样式 */
.signals-content {
    space-y: 2rem;
}

.signals-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.signals-filter select {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.refresh-btn:hover {
    background: #218838;
}

.signals-list {
    space-y: 1rem;
}

.signal-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.signal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.signal-symbol {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.signal-name {
    font-weight: 600;
    color: #2c3e50;
}

.signal-type {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-type.buy {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.signal-type.sell {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.signal-type.hold {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.signal-strength {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-strength.strong {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.signal-strength.medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.signal-strength.weak {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.signal-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.signal-price, .signal-target, .signal-stop {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.signal-details .label {
    font-size: 0.8rem;
    color: #6c757d;
}

.signal-details .value {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.signal-reason {
    margin-bottom: 1rem;
}

.signal-reason p {
    font-size: 0.9rem;
    color: #495057;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin: 0;
}

.signal-time {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
}

/* 基本面分析样式 */
.fundamental-analysis {
    padding: 80px 0;
    background: #f8f9fa;
}

.fundamental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.fundamental-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fundamental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.fundamental-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

/* 财务指标样式 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.metric-item:hover {
    background: #e9ecef;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.metric-value {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

/* 盈利能力样式 */
.profitability-chart {
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

.profitability-summary {
    space-y: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-size: 0.9rem;
    color: #6c757d;
}

.summary-item .value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.summary-item .value.positive {
    color: #28a745;
}

.summary-item .value.negative {
    color: #dc3545;
}

/* 估值分析样式 */
.valuation-content {
    space-y: 2rem;
}

.valuation-meter {
    text-align: center;
    margin-bottom: 2rem;
}

.meter-container {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto 1rem;
}

.meter-arc {
    width: 200px;
    height: 100px;
    border: 8px solid #e9ecef;
    border-bottom: none;
    border-radius: 100px 100px 0 0;
    position: relative;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    background-clip: padding-box;
}

.meter-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 80px;
    background: #2c3e50;
    transform-origin: bottom center;
    border-radius: 2px;
    margin-left: -2px;
    margin-top: -80px;
    transition: transform 0.8s ease;
}

.meter-needle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -6px;
    width: 16px;
    height: 16px;
    background: #2c3e50;
    border-radius: 50%;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.valuation-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.valuation-details {
    space-y: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-size: 0.9rem;
    color: #6c757d;
}

.detail-item .value {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

/* 行业对比样式 */
.industry-comparison {
    space-y: 1.5rem;
}

.comparison-chart {
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

.comparison-metrics {
    space-y: 1rem;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-name {
    font-size: 0.9rem;
    color: #6c757d;
    min-width: 80px;
}

.metric-bar {
    flex: 1;
    position: relative;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #2c3e50;
    font-weight: 500;
}

/* 市场热点样式 */
.market-hotspots {
    padding: 80px 0;
    background: white;
}

.hotspots-content {
    margin-top: 3rem;
}

.hotspots-nav {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.hotspot-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hotspot-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.hotspot-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

.hotspots-panels {
    min-height: 500px;
}

.hotspot-panel {
    display: none;
}

.hotspot-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 板块卡片样式 */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.sector-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.sector-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
}

.stat .label {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-bottom: 0.2rem;
}

.stat .value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.sector-leaders {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leader {
    font-size: 0.9rem;
    color: #495057;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* 股票表格样式 */
.stocks-table {
    overflow-x: auto;
}

.stocks-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stocks-table th,
.stocks-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.stocks-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stocks-table tr:hover {
    background: #f8f9fa;
}

.stocks-table .positive {
    color: #28a745;
    font-weight: 600;
}

.stocks-table .negative {
    color: #dc3545;
    font-weight: 600;
}

.heat-level {
    font-size: 1.2rem;
}

.heat-level.high {
    color: #dc3545;
}

.heat-level.medium {
    color: #ffc107;
}

.heat-level.low {
    color: #6c757d;
}

/* 新闻列表样式 */
.news-list {
    space-y: 1.5rem;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.news-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.news-time {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.news-summary {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    color: #667eea;
    background: #f0f2ff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #d1d9ff;
}

/* 事件时间线样式 */
.events-timeline {
    space-y: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    background: #f0f2ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d9ff;
    white-space: nowrap;
    height: fit-content;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-impact {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-impact.high {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.event-impact.medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.event-impact.low {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .market-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .overview-grid,
    .fundamental-grid,
    .indicators-grid,
    .patterns-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeframe-selector,
    .chart-tools {
        flex-wrap: wrap;
    }
    
    .signal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .signal-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-nav,
    .hotspots-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn,
    .hotspot-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stocks-table {
        font-size: 0.8rem;
    }
    
    .stocks-table th,
    .stocks-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .overview-card,
    .fundamental-card,
    .indicator-card,
    .pattern-card,
    .sector-card {
        padding: 1rem;
    }
    
    .metrics-grid,
    .indicator-values {
        grid-template-columns: 1fr;
    }
    
    .sector-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: #6c757d;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 成功状态 */
.success {
    text-align: center;
    padding: 2rem;
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 高亮效果 */
.highlight {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-weight: 600;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-warning {
    background: #ffc107;
    color: #212529;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* 进度条 */
.progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #dc3545;
}

.status-indicator.warning {
    background: #ffc107;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #495057;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* 实用工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-weight-bold { font-weight: 600; }
.font-weight-normal { font-weight: 400; }
.text-muted { color: #6c757d; }
.text-primary { color: #667eea; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }