* { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Noto Serif SC', '宋体', serif;
            background: #1a120b;
            background-image: radial-gradient(circle at 20% 30%, #2c1e14 0%, #0e0a07 100%);
            min-height: 100vh;
            color: #e8dcc8;
            padding: 16px;
        }
        #app {
            max-width: 1600p x;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            border-bottom: 2px solid #b89b7b;
            padding-bottom: 12px;
        }
        .title-main {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 8px;
            text-shadow: 4px 4px 0px #3f2c1b;
            color: #f3e7d3;
        }
        .title-sub {
            font-size: 1rem;
            color: #c9af95;
            letter-spacing: 4px;
        }
        .dynasty-tag {
            display: flex;
            gap: 20px;
            font-size: 1.1rem;
            color: #d4c0ab;
        }
        .main-panel {
            display: grid;
            grid-template-columns: 280px 1fr 320px;
            gap: 16px;
            min-height: 680px;
        }
        .timeline-cards {
            background: rgba(30, 20, 14, 0.7);
            backdrop-filter: blur(8px);
            border-radius: 24px;
            border: 1px solid #5e4b38;
            padding: 18px 12px;
            overflow-y: auto;
            max-height: 680px;

        }
        .card-title {
            font-size: 1.3rem;
            border-left: 6px solid #c79a6e;
            padding-left: 14px;
            margin-bottom: 18px;
            font-weight: 600;
        }
        .building-card {
            background: #2f231a;
            border-radius: 20px;
            margin-bottom: 20px;
            overflow: hidden;
            border: 1px solid #6b5a48;
            cursor: pointer;
            box-shadow: 0 6px 0 #0f0b07;
            transition: all 0.2s;
        }
        .building-card.active {
            border: 2px solid #d4a373;
            box-shadow: 0 0 15px #d4a37355, 0 6px 0 #5a3e2e;
            transform: translateY(-2px);
        }
        .card-img-placeholder {
            height: 120px;
            background-color: #4a3a2c;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #aa927a;
            border-bottom: 2px solid #7a6248;
        }
        .card-img-placeholder span {
            background: #00000077;
            padding: 6px 14px;
            border-radius: 30px;
            backdrop-filter: blur(4px);
        }
        .card-info { padding: 14px 16px; }
        .card-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
        .card-dynasty {
            display: inline-block;
            background: #b89b7b33;
            padding: 2px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            margin-bottom: 8px;
        }
        .card-desc { font-size: 0.85rem; color: #bcab9b; }
        .graph-container {
            background: #1f1812e0;
            backdrop-filter: blur(4px);
            border-radius: 32px;
            border: 1px solid #7f6a55;
            padding: 12px;
            display: flex;
            flex-direction: column;
        }
        .graph-header {
            display: flex;
            justify-content: space-between;
            padding: 0 12px 8px;
        }
        .legend { display: flex; gap: 16px; font-size: 0.8rem; }
        .legend-dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 5px;
        }
        #graphChart { width: 100%; flex: 1; min-height: 500px; }
        .detail-panel {
            background: rgba(40, 28, 20, 0.8);
            backdrop-filter: blur(8px);
            border-radius: 24px;
            border: 1px solid #8e7862;
            padding: 22px 18px;
            overflow-y: auto;
            max-height: 680px;
        }
        .detail-header {
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px dashed #b89f87;
            padding-bottom: 15px;
            margin-bottom: 18px;
        }
        .detail-name { font-size: 1.8rem; font-weight: 600; color: #f3e2d1; }
        .detail-dynasty-badge {
            background: #ac8b6f;
            color: #1e140e;
            padding: 4px 14px;
            border-radius: 30px;
            margin-left: 12px;
        }
        .detail-img-large {
            width: 100%;
            height: 160px;
            background-color: #3f3125;
            border-radius: 20px;
            margin: 18px 0;
            border: 2px solid #a58364;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #b7a088;
        }
        .detail-img-large span {
            background: #000000aa;
            padding: 6px 20px;
            border-radius: 40px;
        }
        .detail-section-title {
            font-size: 1.2rem;
            margin: 20px 0 10px;
            color: #dcc8b2;
            border-left: 5px solid #c29a6b;
            padding-left: 15px;
        }
        .diffraction-item {
            background: #2b1f17;
            border-radius: 16px;
            padding: 14px 16px;
            margin-bottom: 12px;
            border-left: 4px solid #c79a6e;
        }
        .cultural-meaning {
            margin-top: 20px;
            font-style: italic;
            color: #cfbba8;
            line-height: 1.7;
            background: #1e1610;
            padding: 16px;
            border-radius: 18px;
        }
        .footer-note {
            display: flex;
            justify-content: center;
            gap: 30px;
            color: #998772;
            font-size: 0.9rem;
            padding: 10px;
        }
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: #1f1610; }
        ::-webkit-scrollbar-thumb { background: #7a624b; border-radius: 10px; }
        /* 图谱下方统计卡片 */
/* ========== 页面下方数据面板（与上方对齐） ========== */
.dashboard-wrapper {
    max-width: 1600px;
    margin: 24px auto 0;
    padding: 0;
}

.dashboard-section {
    padding: 24px 0;
    background: transparent;
}

.dashboard-title {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    padding-left: 8px;
    border-left: 6px solid #c79a6e;
}
.dashboard-title span:first-child {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f3e2d1;
}
.dashboard-subtitle {
    font-size: 0.9rem;
    color: #b7a28f;
}

/* 核心数据卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    background: rgba(30, 20, 14, 0.7);
    border-radius: 24px;
    border: 1px solid #6b5a48;
    transition: 0.2s;
    cursor: help;
}
.stat-card:hover {
    background: rgba(40, 28, 20, 0.9);
    border-color: #c79a6e;
    transform: translateY(-2px);
}
.stat-card:hover .stat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.stat-icon {
    font-size: 2.8rem;
    line-height: 1;
}
.stat-content {
    flex: 1;
}
.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4a373;
    line-height: 1.2;
}
.stat-unit {
    font-size: 0.8rem;
    color: #998772;
    margin-left: 4px;
}
.stat-label {
    font-size: 0.85rem;
    color: #bcab9b;
    margin-top: 4px;
}
.stat-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1a120b;
    color: #f0dfce;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid #c79a6e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 100;
}
.stat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #c79a6e;
}

/* 第二行：图表 + 代表建筑 */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
.dashboard-chart-card, .building-list-card {
    background: rgba(30, 20, 14, 0.7);
    border-radius: 24px;
    border: 1px solid #6b5a48;
    padding: 18px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #6b5a48;
}
.card-header span:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ebd1b5;
}
.card-hint {
    font-size: 0.7rem;
    color: #998772;
}
#levelChart {
    width: 100%;
    height: 220px;
}

/* 代表建筑列表 */
.building-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.building-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(20, 14, 10, 0.4);
    border-radius: 16px;
    transition: 0.2s;
    cursor: help;
}
.building-row:hover {
    background: rgba(50, 36, 26, 0.8);
    border-left: 4px solid #c79a6e;
}
.building-row:hover .building-tooltip {
    opacity: 1;
    visibility: visible;
}
.building-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5e4b38;
    border-radius: 12px;
    font-weight: 700;
    color: #f0dfce;
    font-size: 0.9rem;
}
.building-info {
    flex: 1;
}
.building-name {
    font-size: 1rem;
    font-weight: 600;
    color: #f0d5b5;
}
.building-desc {
    font-size: 0.7rem;
    color: #b7a28f;
}
.building-tag {
    padding: 4px 12px;
    background: #7a624b;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #f0dfce;
}
.building-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #1a120b;
    color: #f0dfce;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid #c79a6e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 100;
}

/* 时间轴卡片 */
.timeline-card {
    background: rgba(30, 20, 14, 0.7);
    border-radius: 24px;
    border: 1px solid #6b5a48;
    padding: 18px 20px;
}
.timeline-track {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}
.timeline-track::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d4a373, #8fbc8f, #cd853f, #b87333, #ffd700);
}
.timeline-node {
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: help;
}
.timeline-node:hover .timeline-tooltip {
    opacity: 1;
    visibility: visible;
}
.timeline-dot {
    width: 16px;
    height: 16px;
    background: #d4a373;
    border: 3px solid #2c1e14;
    border-radius: 50%;
    margin: 0 auto 12px;
}
.timeline-year {
    font-size: 1rem;
    font-weight: 700;
    color: #f0d5b5;
    margin-bottom: 6px;
}
.timeline-desc {
    font-size: 0.7rem;
    color: #b7a28f;
    line-height: 1.5;
}
.timeline-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a120b;
    color: #f0dfce;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid #c79a6e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 100;
}

/* 页脚 */
.footer-note {
    max-width: 1600px;
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 16px;
    color: #998772;
    font-size: 0.85rem;
    border-top: 1px solid #5e4b38;
}