/* 页面专用样式优化 */

/* 面包屑导航样式 */
.breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
    color: #6b7280;
}

.breadcrumb ol li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #9ca3af;
    font-size: 1.2rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #374151;
    font-weight: 600;
}

/* 页面头部样式 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 摘要卡片优化 */
.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #10b981, #f59e0b);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.summary-card.highlight {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
}

.summary-card.highlight::before {
    background: linear-gradient(90deg, #ffffff40, #ffffff60, #ffffff40);
}

.summary-card.large {
    padding: 3rem;
    text-align: center;
}

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: inherit;
}

.summary-card.highlight h3 {
    color: rgba(255, 255, 255, 0.9);
}

/* 数值显示优化 */
.summary-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
}

.value.large {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.summary-card.highlight .value {
    color: white;
}

.change-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.change {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.change.positive {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.change.negative {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.change.neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.change-percent {
    font-size: 0.875rem;
    font-weight: 500;
}

.summary-desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 摘要网格布局 */
.pmi-summary,
.ppi-summary,
.dow-summary,
.nasdaq-summary,
.sp500-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 图表容器优化 */
.chart-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chart-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.chart-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.chart-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.chart-area {
    min-height: 300px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    color: #6b7280;
    font-size: 1rem;
}

/* 图表网格 */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 数据表格优化 */
.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.data-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-primary);
}

.data-table tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 数据过滤器 */
.data-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.data-filters select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.data-filters select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 行业板块样式 */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sector-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.sector-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sector-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sector-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sector-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sector-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.sector-chart {
    height: 40px;
    background: linear-gradient(90deg, #2563eb20, #10b98120);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* 分析卡片 */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.analysis-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.analysis-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.analysis-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.analysis-card ul {
    list-style: none;
    padding: 0;
}

.analysis-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.analysis-card ul li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.analysis-card ul li:last-child {
    border-bottom: none;
}

.key-points {
    background: #eff6ff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #2563eb;
}

.key-points h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .summary-card.large {
        padding: 2rem 1rem;
    }
    
    .value.large {
        font-size: 2.5rem;
    }
    
    .chart-container {
        padding: 1.5rem;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .data-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .data-filters select {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0.75rem 0;
    }
    
    .page-header {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .analysis-card {
        padding: 1.5rem;
    }
    
    .sector-card {
        padding: 1rem;
    }
}