body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.container {
    max-width: 1400px;
    padding: 30px 20px;
}
.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 30px;
}
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}
.card-header {
    background: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    padding: 20px 24px;
    border-radius: 0;
}
.card-header h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
.date-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.date-controls label {
    font-size: 13px;
    color: #666666;
    margin: 0;
    font-weight: 500;
}
.date-controls input[type="date"] {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #1a1a1a;
    transition: border-color 0.2s;
}
.date-controls input[type="date"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}
.date-controls .btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
}
.date-controls .btn-light {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    color: #1a1a1a;
}
.date-controls .btn-light:hover {
    background: #e8e8e8;
    border-color: #b0b0b0;
}
#chart-container {
    padding: 24px;
    background: #fafafa;
}
.stats-panel {
    background: #fafafa;
    border-top: 1px solid #e9ecef;
    padding: 24px;
}
.stats-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.stat-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    min-width: 140px;
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}
.stat-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.stat-card.x-strategy {
    border: 2px solid #d32f2f;
    background: #fff5f5;
}
.stat-card.x-strategy:hover {
    border-color: #b71c1c;
}
.stat-label {
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}
.stat-value.positive {
    color: #d32f2f;
}
.stat-value.negative {
    color: #388e3c;
}
.table th {
    font-weight: 600;
    font-size: 12px;
    color: #1a1a1a;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}
.table td {
    font-size: 12px;
    color: #333333;
    vertical-align: middle;
}
.table-bordered {
    border: 1px solid #dee2e6;
}
.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.metrics-help {
    margin-top: 18px;
    padding: 12px 14px;
    border-top: 1px dashed #e9ecef;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.45;
}

.metrics-help__title {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
}

.metrics-help__container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.metrics-help__item {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .metrics-help__container {
        flex-direction: column;
    }
    
    .metrics-help__item {
        margin-bottom: 12px;
    }
    
    .metrics-help__item:last-child {
        margin-bottom: 0;
    }
}

.metrics-help__desc {
    margin-bottom: 6px;
}

.metrics-help__desc strong {
    color: #5c636a;
    font-weight: 600;
}

.metrics-help__table {
    margin-bottom: 0;
    font-size: 11px;
    color: #6c757d;
    background: transparent;
}

.metrics-help__table th,
.metrics-help__table td {
    padding: 4px 6px;
    border-color: #e9ecef !important;
}

.metrics-help__table thead th {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
    font-weight: 600;
}
