* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    padding: 1.5rem;
    line-height: 1.4;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 头部区域 */
.header {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 20px rgba(0,0,0,0.03);
    padding: 1.2rem 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.title-section h1 {
    font-size: 1.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1e2b3c, #2c4c6e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.report-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 0.4rem 1rem;
    border-radius: 60px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

.filter-select {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.2rem;
    outline: none;
    cursor: pointer;
    color: #0f172a;
}

.nav-btn {
    background: white;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 说明卡片 */
.info-card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
    padding: 0.9rem 1.5rem;
    margin-bottom: 1.5rem;
}
.info-card p {
    font-size: 0.8rem;
    color: #334155;
    margin: 0.25rem 0;
}
.info-card .title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #1e2b3c;
}

/* 数据总览卡片 */
.overview-card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}
.overview-card .title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: #1e2b3c;
}
.overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.overview-item {
    flex: 1;
    min-width: 160px;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    text-align: center;
    border: 1px solid #e8ecf1;
    transition: transform 0.15s ease;
}
.overview-item:hover {
    transform: translateY(-2px);
}
.overview-item .label {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.overview-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    font-family: monospace;
}
.overview-item .value.up {
    color: #dc2626;
}
.overview-item .value.down {
    color: #10b981;
}
.overview-item .sub {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* 表格卡片 */
.card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 900px;
}

.stock-table th {
    text-align: left;
    padding: 1rem 1rem;
    background: white;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}

.stock-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.stock-table tr:hover td {
    background-color: #fafcff;
}

.stock-code {
    font-family: monospace;
    font-size: 0.8rem;
    color: #4b5563;
}

.price {
    font-weight: 500;
    font-family: monospace;
}

.price small {
    font-weight: 400;
    font-family: inherit;
    font-size: 0.78em;
    color: #888;
}

/* 涨跌幅样式：红色上涨，绿色下跌 */
.change-positive {
    color: #dc2626;
    font-weight: 600;
    background: #fee2e2;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    display: inline-block;
}

.change-negative {
    color: #10b981;
    font-weight: 600;
    background: #e6faf5;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    display: inline-block;
}

.footer-note {
    text-align: center;
    font-size: 0.7rem;
    margin-top: 1.5rem;
    color: #6c86a3;
    border-top: 1px solid #e2edf7;
    padding-top: 1rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}