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

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.update-time {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
}

/* 价格看板 */
.price-board {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.price-main {
    text-align: center;
    padding: 20px;
}

.price-label {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

.price-value {
    font-size: 3.5em;
    font-weight: bold;
    color: #1e3c72;
    line-height: 1;
}

.price-unit {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.stat-value.positive {
    color: #e74c3c;
}

.stat-value.negative {
    color: #27ae60;
}

/* 置信度评分 */
.confidence-section {
    padding: 30px;
    background: #f8f9fa;
}

.confidence-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #1e3c72;
    border-bottom: 3px solid #1e3c72;
    padding-bottom: 10px;
}

.confidence-bar {
    position: relative;
    height: 40px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: #27ae60;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.confidence-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    z-index: 1;
}

/* 主内容 */
.main-content {
    padding: 0;
}

.report-section {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.report-section:last-child {
    border-bottom: none;
}

.report-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #1e3c72;
    border-bottom: 3px solid #1e3c72;
    padding-bottom: 10px;
}

.content-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    white-space: pre-line;
    font-size: 1.05em;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* 趋势网格 */
.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.trend-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trend-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.trend-value {
    font-size: 1.3em;
    font-weight: bold;
}

/* 表格 */
.indicator-table,
.historical-table {
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

th,
td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

th {
    font-weight: bold;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .price-value {
        font-size: 2.5em;
    }

    .price-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .trend-grid {
        grid-template-columns: 1fr;
    }

    .report-section {
        padding: 20px;
    }

    .report-section h2 {
        font-size: 1.3em;
    }

    th,
    td {
        padding: 10px;
        font-size: 0.9em;
    }
}

@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
    }

    .header {
        background: #1e3c72;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
