/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url("../images/bj.png") no-repeat center;
    /* 背景图居中不重复 */
    background-size: 100% 100%;
    /* 背景图铺满页面 */
    background-attachment: fixed;
    /* 背景图固定不滚动 */
    -webkit-background-size: cover;
    /* 兼容webkit内核浏览器 */
}

/* 容器样式 */
.head {
    width: 100%;
    /* 宽度100% */
    height: 125px;
    /* 固定高度 */
    position: relative;
    /* 作为子元素定位参考 */
    background: url("../images/head_bg.png") no-repeat center center;
    /* 头部背景图居中 */
    background-size: 100%;
    /* 背景图适配头部宽度 */
    box-shadow: 0 0 25px #037581;
    /* 头部外发光阴影 */
    min-width: 1366px;
    /* 最小宽度限制 */
    line-height: 105px;
    text-align: center;
    color: #fff;
    font-size: 20px;
}

.head .aa {
    display: inline-block;
    text-align: center;
    color: #00fbfe;
    text-decoration: none;
    /* 核心调整+轻量美化 */
    padding: 10px 20px;
    margin: 0 6px;
    font-size: 25px; /* 文字放大（比默认大2-4px） */
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 悬浮效果：文字变白+光晕+微上浮（无下划线） */
.head .aa:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 251, 254, 0.9); /* 青蓝光晕更醒目 */
    transform: translateY(-1px); /* 轻微上浮有层次 */
    opacity: 1;
}

/* 页面导航栏 */

.page {
    width: 100%;
    min-width: 1366px;
    text-align: center;
    margin: 10px 0;
}

.container {
    display: flex;
    width: 100%;
    height: 500px;
    max-width: none;
    margin: 20px auto;
    gap: 20px;
    /* 列之间的间距 */
}

/* 三栏通用样式 */
.column {
    padding: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 左侧栏 - 固定宽度 */
.left {
    width: 300px;
    flex-shrink: 0;
    /* 防止缩小 */
    padding-left: 15px;
}

.l1 {
    height: 250px;
    color: #333;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    margin-bottom: 50px;
    position: relative;
    /* 伪元素定位参考 */
    box-shadow: 0 2px 10px #074f6c;
    background-color: #ffffff12;

}

.l2 {
    height: 250px;
    color: #333;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    position: relative;
    /* 伪元素定位参考 */
    box-shadow: 0 2px 10px #074f6c;
    background-color: #ffffff12;

}

/* 中间栏 - 自适应宽度 */
.middle {
    flex: 1;
}

.m1 {
    width: 100%;
    height: 200px;
}
.m2 {
    height: 380px;
    color: #333;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    position: relative;
    /* 伪元素定位参考 */
    padding: 10px;
}

.m1 img {
    width: 450px;
    position: relative;
    left: 170px;
    margin-top: 30px;
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
        /* 初始位置 */
    }

    50% {
        transform: translateY(-20px);
        /* 向上浮动20px（幅度可调整） */
    }

    100% {
        transform: translateY(0);
        /* 回到初始位置 */
    }
}

/* 右侧栏 - 固定宽度 */
.right {
    width: 300px;
    padding-right: 15px;
    flex-shrink: 0;
    /* 防止缩小 */
}


.r1 {
    height: 250px;
    color: #333;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    margin-bottom: 50px;
    position: relative;
    /* 伪元素定位参考 */
    box-shadow: 0 2px 10px #074f6c;
    background-color: #ffffff12;
}
.r2 {
    height: 250px;
    color: #333;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    margin-bottom: 50px;
    position: relative;
    /* 伪元素定位参考 */
    box-shadow: 0 2px 10px #074f6c;
    background-color: #ffffff12;
}

/* 通用四角边框样式 */
.l1:before,
.l1:after,
.l2:before,
.l2:after,
.r1:before,
.r1:after,
.r2:before,
.r2:after {
    position: absolute;
    /* 伪元素绝对定位 */
    width: 20px;
    /* 角宽度 */
    height: 20px;
    /* 角高度 */
    content: "";
    /* 伪元素内容 */
    border-top: 2px solid #02a6b5;
    /* 顶部边框 */
    top: 0;
    /* 顶部对齐 */
}

.l1:before,
.l2:before,
.m1:before,
.m2:before,
.r1:before,
.r2:before {
    border-left: 3px solid #02a6b5;
    /* 左侧边框 */
    left: 0;
    /* 左侧对齐 */
}

.l1:after,
.l2:after,
.m1:after,
.m2:after,
.r1:after,
.r2:after {
    border-right: 3px solid #02a6b5;
    /* 右侧边框 */
    right: 0;
    /* 右侧对齐 */
}

.boxfoot {
    position: absolute;
    /* 绝对定位 */
    bottom: 0;
    /* 底部对齐 */
    width: 100%;
    /* 宽度100% */
    left: 0;
    /* 左侧对齐 */
}

.boxfoot:before,
.boxfoot:after {
    position: absolute;
    /* 伪元素绝对定位 */
    width: 20px;
    /* 角宽度 */
    height: 20px;
    /* 角高度 */
    content: "";
    /* 伪元素内容 */
    border-bottom: 2px solid #02a6b5;
    /* 底部边框 */
    bottom: 0;
    /* 底部对齐 */
}

.boxfoot:before {
    border-left: 3px solid #02a6b5;
    /* 左侧边框 */
    left: 0;
    /* 左侧对齐 */
}

.boxfoot:after {
    border-right: 3px solid #02a6b5;
    /* 右侧边框 */
    right: 0;
    /* 右侧对齐 */
}

/* 移动端适配 */
@media (max-width: 768px) {

    .head,
    .page {
        min-width: unset;
    }

    .head {
        height: 80px;
        line-height: 80px;
    }

    .container {
        flex-direction: column;
        height: auto;
        gap: 10px;
        margin: 10px auto;
    }

    .left,
    .right {
        width: 100%;
    }

    .l1,
    .l2,
    .m1,
    .m2,
    .r1,
    .r2 {
        height: 200px;
        margin-top: 5px;
    }
}



.card-container {
    width: 300px;
    height: 250px;
    margin: 0 auto;
    padding-right: 15px;
    overflow: auto;
    position: relative; /* 为流动背景定位 */
    box-sizing: border-box; /* 确保padding不超出尺寸 */
}
/* 流动背景效果 - 限制在容器内 */
.card-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(69, 183, 209, 0.08), 
        transparent);
    background-size: 200% 100%;
    animation: flowBg 8s linear infinite;
    z-index: 0;
    pointer-events: none; /* 不影响交互 */
}
/* 背景流动动画 - 仅背景渐变移动，不超出容器 */
@keyframes flowBg {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
/* 内容层定位，避免被背景遮挡 */
.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}
.card-header {
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
/* 标题颜色过渡 - 无位置移动 */
.card-header:hover .card-title {
    color: #45B7D1;
}
.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease; /* 仅颜色过渡，无位置变化 */
}
.card-subtitle {
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 11px;
    table-layout: fixed; /* 固定表格布局，防止列宽超出 */
}
.data-table th {
    padding: 4px 2px;
    color: #fff;
    font-weight: 600;
    font-size: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-table td {
    padding: 4px 2px;
    color: #fff;
    font-size: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.year-cell {
    font-weight: bold;
    color: #45B7D1;
    position: relative;
    overflow: hidden; /* 限制高光在单元格内 */
}
/* 年份单元格流动高光 - 限制在单元格内 */
.year-cell::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(69, 183, 209, 0.15), 
        transparent);
    background-size: 200% 100%;
    animation: yearFlow 3s ease-in-out infinite;
    pointer-events: none;
}
/* 年份高光动画 - 仅背景移动，不超出单元格 */
@keyframes yearFlow {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
.value-highlight {
    font-weight: 600;
    color: #fff;
    transition: color 0.2s ease; /* 仅颜色过渡 */
}
/* 表格行悬浮效果 - 无位置移动，仅颜色/背景变化 */
.data-table tr:hover td {
    background-color: rgba(69, 183, 209, 0.1);
    border-color: #45B7D1;
    /* 移除transform: translateX，避免位置移动 */
}
/* 悬浮时数值变色 - 无位置变化 */
.data-table tr:hover .value-highlight {
    color: #45B7D1;
}
.source-tag {
    display: block;
    padding: 1px 3px;
    color: #45B7D1;
    font-size: 9px;
    margin-top: 2px;
    opacity: 0.8;
    transition: opacity 0.3s ease; /* 仅透明度过渡 */
}
/* 悬浮时来源标签变亮 - 无位置变化 */
.data-table tr:hover .source-tag {
    opacity: 1;
}
.note {
    margin-top: 8px;
    font-size: 10px;
    color: #fff;
    line-height: 1.4;
    padding: 5px;
    border-left: 2px solid #45B7D1;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%; /* 限制宽度 */
}
/* 备注悬浮效果 - 移除padding-left变化，仅颜色变化 */
.note:hover {
    border-left-color: #67d5ea;
    color: #45B7D1;
    /* 移除padding-left: 8px，避免位置移动 */
}
/* 美化滚动条 - 不影响布局 */
.card-content::-webkit-scrollbar {
    width: 4px;
}
.card-content::-webkit-scrollbar-track {
    background: transparent;
}
.card-content::-webkit-scrollbar-thumb {
    background: rgba(69, 183, 209, 0.5);
    border-radius: 2px;
}