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

body {
    font-family: 'Noto Serif SC', '思源宋体', 'SimSun', serif;
    background: #2C2C2C;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.dashboard {
    width: 1600px;
    max-width: 100%;
    background: #F9F6F0;  /* 宣纸米白 */
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid #D4AF37;
}

/* ===== 标题横栏 ===== */
.header {
    background: #8B2E2E;
    padding: 25px 0;
    text-align: center;
    border-bottom: 2px solid #D4AF37;
}

.header-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-deco {
    height: 102px;
    width: auto;
    object-fit: contain;
}

.header-deco-left {
    margin-left: -34px;
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.main-title {
    color: #f5e7a0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'STKati', '楷体', 'KaiTi', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sub-title {
    color: #f5e7a0;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 4px;
    font-family: 'STKati', '楷体', 'KaiTi', serif;
}

/* ===== 主体内容区 ===== */
.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* 模块A：KPI指标卡 */
.module-a {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kpi-card {
    background: #FFFFFF;
    border: 1.5px solid #8B4513;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.kpi-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: #1E3A5F;
    font-family: 'Noto Serif SC', serif;
}

.kpi-label {
    font-size: 16px;
    color: #4A4A4A;
    margin: 8px 0 5px;
    font-weight: 500;
}

.kpi-note {
    font-size: 12px;
    color: #888;
    border-top: 1px dashed #CCC;
    padding-top: 8px;
    margin-top: 5px;
}

/* 模块B：主视化图表区 */
.module-b {
    flex: 1;
    min-width: 0;
    background: #FFFFFF;
    border: 1.5px solid #8B4513;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.chart-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #E0D6C8;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #8B4513;
    color: #8B4513;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #F0E8DC;
}

.tab-btn.active {
    background: #8B4513;
    color: #FFFFFF;
}

.chart-container {
    flex: 1;
    min-height: 350px;
}

/* 模块C：桥梁细节图解 */
.module-c {
    width: 380px;
    background: #FFFFFF;
    border: 1.5px solid #8B4513;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1E3A5F;
    padding-bottom: 12px;
    border-bottom: 2px solid #D4AF37;
    margin-bottom: 15px;
}

.detail-icon {
    margin-right: 8px;
}

.bridge-diagram {
    background: #F5F3ED;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.bridge-diagram svg {
    max-width: 100%;
    height: auto;
}

.annotation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.annotation-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 8px;
    background: #FAF8F4;
    border-radius: 4px;
    border-left: 3px solid #C04040;
}

.anno-marker {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.anno-text {
    font-size: 14px;
    color: #333;
}

.anno-text strong {
    color: #1E3A5F;
}

.anno-poem {
    width: 100%;
    margin-left: 32px;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.poem-card {
    margin-top: auto;
    padding: 15px;
    background: linear-gradient(135deg, #F9F6F0 0%, #F0E8DC 100%);
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    background: #222;
    color: white;
    border: 1px solid #D4AF37;
    font-style: italic;
}
.text{
    font-size: 25px;
    margin-bottom: 10px;
}
.name{
    font-size: 22px;
    text-align: right;
    padding-right: 30px;
}
/* ===== 模块D：古桥发展长卷（表格版）===== */
.module-d {
            padding: 20px 30px;
            background: linear-gradient(to right, #F9F6F0, #F5F1E8, #F9F6F0);
            border-top: 2px solid #D4AF37;
            border-bottom: 2px solid #D4AF37;
            max-width: 1200px;
            width: 100%;
            box-shadow: 0 8px 20px rgba(0,0,0,0.05);
            border-radius: 4px;
        }

        .timeline-title {
            text-align: center;
            font-size: 18px;
            color: #8B2E2E;
            letter-spacing: 6px;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .timeline-container {
            position: relative;
            padding: 20px 0;
        }

        .timeline-track {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .timeline-track::before {
            content: '';
            position: absolute;
            top: 40px;
            left: 10%;
            right: 10%;
            height: 3px;
            background: #1E3A5F;
            z-index: 1;
        }

        .timeline-node {
            text-align: center;
            position: relative;
            z-index: 2;
            background: #F9F6F0;
            padding: 0 10px;
            min-width: 90px;
            position: relative;
            cursor: pointer;
        }

        .node-icon {
            width: 50px;
            height: 50px;
            background: #8B2E2E;
            color: #D4AF37;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            margin: 0 auto 10px;
            border: 3px solid #D4AF37;
            box-shadow: 0 2px 6px rgba(139, 46, 46, 0.2);
        }

        .node-bridge {
            font-size: 16px;
            font-weight: 600;
            color: #1E3A5F;
        }

        .node-year {
            font-size: 13px;
            color: #888;
            margin-top: 5px;
            font-style: normal;
        }

        .timeline-line {
            width: 50px;
            height: 3px;
            flex-shrink: 0;

        }

        .timeline-poems {
            display: flex;
            justify-content: space-around;
            margin-top: 25px;
            color: #4A4A4A;
            font-style: italic;
            font-size: 14px;
            flex-wrap: wrap;
            gap: 10px 20px;
        }

        .timeline-poems span {
            position: relative;
            padding: 0 6px;
        }

        .timeline-poems span::before {
            content: '“';
            color: #8B2E2E;
            opacity: 0.6;
            margin-right: 2px;
        }

        .timeline-poems span::after {
            content: '”';
            color: #8B2E2E;
            opacity: 0.6;
            margin-left: 2px;
        }

        /* 微调适应不同屏幕 */
        @media (max-width: 800px) {
            .module-d {
                padding: 16px 12px;
            }
            .timeline-track {
                flex-wrap: wrap;
                justify-content: center;
            }
            .timeline-track::before {
                display: none;
            }
            .timeline-node {
                margin: 10px 8px;
            }
            .timeline-line {
                display: none;
            }
            .timeline-title {
                letter-spacing: 3px;
                font-size: 16px;
            }
#animation-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#bridge-canvas {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 时间轴节点点击提示 */
.timeline-node {
    transition: all 0.3s ease;
}

.timeline-node:hover::after {
    content: '点击观看动画';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 105, 20, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
}
/* ===== 模块E：底部信息栏 ===== */
.footer {
    background: #2E2E2E;
    color: #AAA;
    display: flex;
    justify-content: space-between;
    padding: 12px 30px;
    font-size: 13px;
    border-top: 1px solid #555;
}

.footer-center {
    color: #D4AF37;
}
.bridge-image-placeholder {
    margin: 10px 0 15px 0;
    text-align: center;
}

.bridge-image-placeholder svg,
.bridge-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #E0D6C8;
}


/* ===== 表格视图样式 ===== */
#bridge-table-body tr:hover {
    background: #F5F1E8 !important;
}

#bridge-search:focus,
#dynasty-filter:focus,
#batch-filter:focus {
    border-color: #8B4513 !important;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* 表格滚动条美化 */
#chart-main > div::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#chart-main > div::-webkit-scrollbar-track {
    background: #F0E8DC;
    border-radius: 4px;
}

#chart-main > div::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

#chart-main > div::-webkit-scrollbar-thumb:hover {
    background: #A0522D;
}

/* 响应式表格 */
@media (max-width: 1200px) {
    #chart-main table {
        font-size: 12px;
    }
    #chart-main th, #chart-main td {
        padding: 8px 5px !important;
    }
}


