:root {
    /* 新的配色方案：深蓝+亮蓝，移除绿色 */
    --primary-color: #1e3a5f;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --text-color: #2c3e50;
    --text-light: #555;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --border-color: #dde1e5;
    --highlight-bg: #ebf5fb;
    --note-bg: #fef9e7;
    --note-border: #f39c12;
}

/* 页面基础 + 点状纹理肌理 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.9;
    color: var(--text-color);
    background-color: var(--bg-color);
    /* 微妙的噪点/点状纹理 */
    background-image: 
        radial-gradient(#c8ccd0 0.6px, transparent 0.6px),
        radial-gradient(#c8ccd0 0.6px, transparent 0.6px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    margin: 0;
    padding: 20px;
}

/* 内容卡片：增加纸张感与多层阴影 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 50px 55px;
    border-radius: 14px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 12px 40px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* 标题层级 */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-top: 1.6em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

h1 {
    text-align: center;
    font-size: 2.2em;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 18px;
    margin-bottom: 1.2em;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.55em;
    border-left: 5px solid var(--secondary-color);
    padding-left: 16px;
    background: linear-gradient(90deg, #f0f6fc 0%, #ffffff 100%);
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 0 8px 8px 0;
}

h3 {
    font-size: 1.25em;
    border-bottom: 1px solid #e8ecef;
    padding-bottom: 10px;
}

h4 {
    font-size: 1.1em;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.1em;
    text-align: justify;
    color: var(--text-light);
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 24px;
}

li {
    margin-bottom: 0.7em;
    color: var(--text-light);
}

strong {
    color: var(--primary-color);
}

/* 响应式表格 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: #fff;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    min-width: 600px;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 15px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f0f4f8;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

tr:nth-child(even) {
    background-color: #fafbfc;
}

/* 图片容器 - 保留独立尺寸调整功能 */
.img-wrapper {
    width: 100%;
    max-width: var(--img-w, 650px);
    margin: 32px auto;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px dashed #c4c9d0;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
}

.img-wrapper.small  { --img-w: 400px; }
.img-wrapper.medium { --img-w: 650px; }
.img-wrapper.large  { --img-w: 850px; }
.img-wrapper.xl     { --img-w: 1000px; }
.img-wrapper.full   { --img-w: 100%; }

.img-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

/* 信息框 */
.note-box {
    background-color: var(--note-bg);
    border-left: 4px solid var(--note-border);
    padding: 22px;
    margin: 28px 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(243,156,18,0.08);
}

.note-box strong {
    color: #b7770d;
}

.highlight-box {
    background-color: var(--highlight-bg);
    border-left: 4px solid var(--secondary-color);
    padding: 22px;
    margin: 28px 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(52,152,219,0.08);
}

/* ===== 可视化图表：横向柱状图 ===== */
.chart-container {
    margin: 30px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecef;
}

.chart-container h4 {
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
    color: var(--primary-color);
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.bar-label {
    width: 140px;
    font-size: 0.88em;
    color: var(--text-light);
    flex-shrink: 0;
    text-align: right;
    padding-right: 14px;
}

.bar-track {
    flex-grow: 1;
    background: #e2e6ea;
    height: 26px;
    border-radius: 13px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 13px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    color: #fff;
    font-size: 0.78em;
    font-weight: 600;
    transition: width 0.8s ease;
}

.bar-fill.blue { background: linear-gradient(90deg, #3498db, #2980b9); }
.bar-fill.orange { background: linear-gradient(90deg, #e67e22, #d35400); }
.bar-fill.teal { background: linear-gradient(90deg, #1abc9c, #16a085); }
.bar-fill.gray { background: linear-gradient(90deg, #95a5a6, #7f8c8d); }

/* ===== 可视化图表：垂直时间轴 ===== */
.timeline {
    border-left: 3px solid var(--secondary-color);
    padding-left: 24px;
    margin: 32px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.92em;
    margin-bottom: 4px;
}

.timeline-content {
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.95em;
}

/* 页脚 */
footer {
    margin-top: 60px;
    text-align: center;
    color: #aaa;
    font-size: 0.88em;
    border-top: 1px solid #e8ecef;
    padding-top: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    .container {
        padding: 24px 18px;
        border-radius: 10px;
    }
    h1 { 
        font-size: 1.55em; 
        border-bottom-width: 2px;
        padding-bottom: 12px;
    }
    h2 { 
        font-size: 1.25em; 
        border-left-width: 3px;
        padding-left: 12px;
    }
    h3 { font-size: 1.08em; }
    p, li { font-size: 0.94em; }
    .table-responsive table { min-width: 100%; }
    th, td { padding: 10px 8px; font-size: 0.84em; }
    .img-wrapper { margin: 22px auto; padding: 10px; }
    .note-box, .highlight-box { padding: 16px; margin: 22px 0; }
    .bar-label { width: 100px; font-size: 0.8em; }
}