* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 外层容器：改为相对定位，作为背景容器承载导航栏 */
.dh-bg {
    position: relative;
    /* 关键：从 absolute 改为 relative，回归文档流 */
    width: 100%;
    /* 导航栏背景图高度按需调整，比如 200px（包含 logo + 菜单高度） */
    height: 900px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* 主内容区域：用 margin-top 撑开与导航栏的间距 */
main {
    width: 100%;
    background-color: #ffffff;
    background-image: url(../images/gdsy-bjwl-l.png), url(../images/gdsy-bjwl-r.png), url(../images/gdsy-bjwl-r.png), url(../images/gdsy-bjwl-l.png);
    background-size: 20%, 20%, 20%, 20%;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 105% 5%, -5% 5%, 105% 60%, -5% 60%;
}

.nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    height: 120px;
}

.logo-img {
    height: 80px;
    width: auto;
    margin-right: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-menu a {
    margin: 0 50px;
    color: #E6D7B6;
    font-family: "楷体", serif;
    text-decoration: none;
    font-size: 25px;
    /* 新增：为下划线动画预留空间 */
    position: relative;
    padding-bottom: 5px;
}

/* 鼠标悬停时显示下划线 */
.nav-menu a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: #f9e8c4;
}

main {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 1920px;
    min-width: 700px;
}

/* 起源概述 */
.qygs {
    width: 100%;
    /* 高度改为自适应，避免限制图片放大 */
    height: auto;
    margin: auto;
}

.qygs-biaoti {
    width: 100%;
    max-width: 300px;
    min-width: 100px;
    height: 100%;
    text-align: center;
    margin: auto;
}

.qygs-biaoti img {
    max-width: 100%;
    padding: 20px;
}

.qygs-daneirong {
    width: 100%;
    /* 高度改为自适应，让内容撑开 */
    height: auto;
    background-color: #011633e8;
    /* 增加内边距，避免内容贴边 */
    padding: 30px 0;

}

.qygs-neirong {
    max-width: 1200px;
    /* 适当加宽容器，给图片放大空间 */
    min-width: 500px;
    display: flex;
    /* 让图片和文字并排 */
    justify-content: flex-start;
    /* 内容靠左排列 */
    align-items: flex-start;
    box-sizing: border-box;
    margin: auto;
    align-items: center;
    padding: 0 20px;
    /* 左右内边距 */
}

.neirong1 {
    flex: 0 0 auto;
    /* 增大图片容器宽度，让图片能放大 */
    width: 300px;
    margin: -120px 50px 0px 0px;
    /* 与文字拉开距离 */
}

.neirong1 img {
    /* 让图片充满容器，实现放大效果 */
    width: 100%;
    height: auto;
    /* 保持宽高比 */
    object-fit: contain;
}

.neirong2 {
    flex: 1;
    /* 文字部分占剩余空间 */
    color: #fff;
    /* 文字颜色设为白色，与蓝色背景对比 */
    line-height: 2;
}

.neirong2 p {
    text-indent: 2em;
    padding-top: 10px;
    font-size: 20px;
}

/* 历史源流 */
.lsyl {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: auto;
    position: relative;
    padding: 40px 20px;
    background-image: url('../images/gdsy-bjwl.png');
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.lsyl-biaoti {
    width: 100%;
    max-width: 300px;
    min-width: 100px;
    height: 100%;
    text-align: center;
    margin: auto;
    position: relative;
    z-index: 2;
}

.lsyl-biaoti img {
    max-width: 100%;
    padding: 20px;
}

/* 曲线容器：让曲线居中显示 */
.lsyl-curve {
    position: relative;
    width: 50%;
    max-width: 800px;
    margin: -130px auto 0;
    z-index: 1;
}

/* 曲线背景：占满容器宽度 */
.curve-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* 朝代图标通用样式 */
.chaodai {
    position: absolute;
    width: 100px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 2;
}

.chaodai:hover {
    transform: scale(1.1);
}

/* 文字容器默认隐藏，通过 JS 控制显示 */
.chaodai-text {
    background: url('../images/gdsy-lsyl-bg.jpg')no-repeat center center;
    background-size: cover;
    /* 让背景图覆盖文字框，自适应填充 */
    position: absolute;
    display: none;
    color: #e6d7b6;
    border: 2px solid #f9e8c4;
    padding: 10px;
    border-radius: 10px;
    z-index: 3;
    /* 确保文字在图标上层 */
    font-size: 18px;
    line-height: 1.6;
    width: 600px;
    /* 可根据需求调整宽度 */
}

/* 逐个调整朝代图标位置（根据图1曲线微调 top/left/transform） */
.donghan {
    top: 8%;
    left: 5%;
    transform: translate(0%, -10%);
}

/* 对应东汉文字位置，可根据需求微调 */
#text-donghan {
    top: 8%;
    left: 45%;
}

.sui {
    top: 16%;
    left: 45%;
    transform: translate(0%, 10%);
}

/* 对应隋朝文字位置，可根据需求微调 */
#text-sui {
    top: 24%;
    left: -40%;
}

.tang {
    top: 28%;
    left: 90%;
    transform: translate(0%, -10%);
}

/* 对应唐朝文字位置，可根据需求微调 */
#text-tang {
    top: 28%;
    left: -45%;
}

.song {
    top: 43%;
    left: 65%;
    transform: translate(0%, 10%);
}

/* 对应宋朝文字位置，可根据需求微调 */
#text-song {
    top: 40%;
    left: -45%;
}

.mingqing {
    top: 53%;
    left: 15%;
    transform: translate(0%, 10%);
}

/* 对应明清文字位置，可根据需求微调 */
#text-mingqing {
    top: 54%;
    left: 40%;
}

.mingguo {
    top: 75%;
    left: 15%;
    transform: translate(0%, -10%);
}

/* 对应民国文字位置，可根据需求微调 */
#text-mingguo {
    top: 72%;
    left: 40%;
}

.now {
    top: 85%;
    left: 60%;
    transform: translate(0%, 10%);
}

/* 对应“至今”文字位置，可根据需求微调 */
#text-now {
    top: 86%;
    left: -48%;
}

/* 元宵张灯 */
.yxzd {
    width: 100%;
    height: auto;
    margin-top: -125px;
}

/* 标题区域 */
.yxzd-biaoti {
    width: 100%;
    max-width: 300px;
    min-width: 100px;
    height: 100%;
    text-align: center;
    margin: 0 auto 0px;
    /* 标题与下方文字间距，可微调 */
}

.yxzd-biaoti img {
    max-width: 100%;
    padding: 20px;
}

/* 上方文字描述 */
.yxzd-desc {
    width: 1200px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 20px;
    text-indent: 2em;
    line-height: 1.8;
    text-align: justify;
    /* 两端对齐，排版更美观 */
}

.yxzd-bj {
    width: 100%;
    height: 100%;
    max-height: 600px;
    /* 可根据实际情况调整，避免容器高度不够 */
    padding: 30px 0;
    background-color: #011633e8;

}

/* 内容容器：用来放四个小矩形，实现水平排列 */
.yxzd-content {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* 让内容居中，去掉固定 1200px 宽度，适配不同屏幕，也可保留固定宽度按需调整 */
}

/* 单个小矩形样式 ，修改宽高为 400px、700px */
.yxzd-item {
    width: 300px;
    /* 设置固定宽度 */
    height: 500px;
    /* 设置固定高度 */
    background-color: #081C37;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    /* 内容靠上排列 */
    box-sizing: border-box;
    /* 避免内边距撑大盒子 */
}

.yxzd-item img {
    max-width: 200px;
    margin-bottom: 10px;
}

.yxzd-item p {
    flex: 1;
    line-height: 1.6;
    text-align: justify;
    text-indent: 2em;
    padding: 10px;
    overflow-y: auto;
    /* 内容超出时自动滚动，避免高度溢出 */
}

/* 3D 轮播容器基础样式 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* 适配内容宽度，可调整 */
    height: 600px;
    /* 容器高度，需容纳 3D 卡片 */
    margin: 0 auto;
    perspective: 1000px;
    /* 3D 透视效果 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 轮播轨道：控制卡片 3D 排列 */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* 开启 3D 空间 */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 单个卡片样式：适配元宵张灯内容 */
.card {
    position: absolute;
    width: 300px;
    /* 卡片宽度，与需求一致 */
    height: 500px;
    /* 卡片高度，与需求一致 */
    background-color: #081C37;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backface-visibility: hidden;
    /* 优化 3D 渲染 */
    cursor: pointer;
}

/* 卡片图片样式 */
.card img {
    max-width: 200px;
    margin-bottom: 10px;
}

/* 卡片文字样式 */
.card p {
    flex: 1;
    line-height: 1.6;
    text-align: justify;
    text-indent: 2em;
    padding: 10px;
    overflow-y: auto;
}

/* 卡片 3D 状态类名：模仿团队轮播的层级、缩放、透明度 */
.card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
    opacity: 1;
}

.card.left-1 {
    z-index: 5;
    transform: translateX(-350px) scale(0.9) translateZ(-100px);
    opacity: 1;
}

.card.left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.right-1 {
    z-index: 5;
    transform: translateX(350px) scale(0.9) translateZ(-100px);
    opacity: 1;
}

.card.right-2 {
    z-index: 1;
    transform: translateX(0px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 切换按钮样式：与团队轮播对齐 */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #793536;
    color: #E6D7B6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    font-size: large;
    transition: background-color 0.3s ease;
}

.nav-arrow:hover {
    background-color: #081C37;
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

/* dots 指示器样式（可选） */
.dots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(8, 42, 123, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: rgba(8, 42, 123, 1);
    transform: scale(1.2);
}

/* 下方背景纹理 */
.bjwl {
    background-image: url(../images/gdsy-bjwl.png), url(../images/gdsy-bjwl.png);
    background-size: 40%, 40%;
    background-repeat: no-repeat, no-repeat;
    background-position: -40% 40%, 140% 40%;
}

/* 宫灯作用 */
.gdzy {
    width: 100%;
    height: auto;
    margin: 220px auto 0;
    text-align: center;
    padding: 20px 0px;
    /* 增加内边距，避免贴边 */
}

/* 标题区域 */
.gdzy-biaoti {
    width: 100%;
    max-width: 300px;
    min-width: 100px;
    height: 100%;
    text-align: center;
    margin: 0 auto 40px;
    /* 标题与内容间距 */
}

.gdzy-biaoti img {
    max-width: 100%;
    padding: 20px;
}

/* 宫灯作用内容容器：用 Flex 布局排列，限制版心宽度并居中 */
.gdzy-content {
    display: flex;
    justify-content: center;
    /* 水平居中 */
    flex-wrap: wrap;
    /* 自动换行，适配小屏幕 */
    gap: 60px;
    /* 模块间距 */
    width: 1000px;
    /* 版心宽度设为 1000px */
    margin: 0 auto;
    /* 让内容容器在.gdzy 中水平居中 */
}

/* 单个宫灯作用模块 */
.gdzy-item {
    display: flex;
    flex-direction: column;
    /* 图标+文字垂直排列 */
    align-items: center;
    /* 水平居中 */
    width: 120px;
    /* 模块宽度 */
}

.gdzy-item img {
    width: 100%;
    /* 图标填满容器 */
    height: auto;
    margin-bottom: 10px;
    /* 图标与文字间距 */
}

.gdzy-item p {
    margin: 0;
    font-size: 20px;
    color: #0F2843;
    font-weight: bold;
    /* 文字颜色 */
}

/* 使用场景 */
.sycj {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 强制居中 */
    margin: 40px auto 0;
    /* 增加上下间距 */
}

.sjt p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 标题区域 */
.sycj-biaoti {
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin-bottom: 30px;
    /* 增大与图表间距 */
}

.sycj-biaoti img {
    max-width: 100%;
    padding: 20px;
}

/* ECharts 容器：强制宽高与图2匹配 */
#sankey-container {
    width: 800px !important;
    /* 覆盖JS动态计算 */
    height: 600px !important;
    margin: 0 0 0 8%;
}

.banwei {
    min-height: 400px;
    background-color: #ffffff;
    background-image: url(../images/banwei.png);
    background-size: 100%;
    background-repeat: no-repeat;
    align-items: flex-end;
    text-align: center;
    padding-top: 20px;
}

/* 版尾内部容器，用于包裹文字等内容 */
.banwei-inner {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 14px;
    position: relative;
    color: #E6D7B6;
    padding: 200px 0 20px 0;
    min-width: 700px;
    margin: 30px 0px 0px 0px;
}

.banwei li {
    margin-bottom: 15px;
}

.nav-toggle {
    display: none; /* 直接隐藏按钮 */
  }

  /* 响应式适配：768px 以下 */
@media (max-width: 768px) {
  /* 1. 导航容器调整 */
  .nav-header {
    justify-content: space-between; /* logo 左，按钮右 */
    align-items: center;
    padding: 10px 20px;
    height: 60px;
    position: relative; /* 新增：为绝对定位的菜单做参考 */
  }

  /* 2. 隐藏默认水平导航 */
  .nav-menu {
    display: none; 
    flex-direction: column; /* 垂直排列 */
    position: absolute; 
    top: 100%; /* 导航栏下方展开 */
    left: 0;
    width: 100%; 
    background: rgba(0, 0, 0, 0.9); /* 半透明背景 */
    padding: 5px 0;
    z-index: 999; /* 确保在内容上层 */
  }

  /* 3. 展开状态：显示垂直导航 */
  .nav-menu.active {
    display: flex;
  }

  /* 4. 菜单项调整 */
  .nav-menu a {
    margin: 5px 0; /* 垂直间距 */
    font-size: 10px;
    text-align: center; /* 文字居中 */
  }

  /* 5. 汉堡按钮样式（三条横线） */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 1000; /* 确保按钮在菜单上层 */
    margin-top: -25px; /* 微调位置 */
  }

  .nav-toggle span {
    display: block;
     width: 100%; /* 横线宽度铺满按钮 */
    height: 2px;
    background-color: #E6D7B6; /* 线条颜色 */
    transition: all 0.3s ease;
    border-radius: 2px; /* 可选：让线条更圆润 */
  }

  /* 6. 按钮点击动画（三条横线变叉） */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* 7. LOGO 缩小 */
  .logo-img {
    height: 25px;
    margin-right: 0;
    margin-top: -23px;
  }

  .dh-bg {
    position: relative;
    /* 关键：从 absolute 改为 relative，回归文档流 */
    width: 100%;
    /* 导航栏背景图高度按需调整，比如 200px（包含 logo + 菜单高度） */
    height: 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}


main {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 500px;
    min-width: 100px;
}
   
/* 起源概述 */
.qygs {
    width: 100%;
    /* 高度改为自适应，避免限制图片放大 */
    height: auto;
    margin: auto;
}

.qygs-biaoti {
    width: 100%;
    max-width: 180px;
    min-width: 50px;
    height: 100%;
    text-align: center;
    margin: auto;
}

.qygs-biaoti img {
    max-width: 100%;
    padding: 20px;
}

.qygs-daneirong {
    width: 100%;
    /* 高度改为自适应，让内容撑开 */
    height: auto;
    background-color: #011633e8;
    /* 增加内边距，避免内容贴边 */
    padding: 20px 0;

}

.qygs-neirong {
    max-width: 300px;
    /* 适当加宽容器，给图片放大空间 */
    min-width: 80px;
    display: flex;
    /* 让图片和文字并排 */
    justify-content: flex-start;
    /* 内容靠左排列 */
    align-items: flex-start;
    box-sizing: border-box;
    margin: auto;
    align-items: center;
    padding: 0 20px;
    /* 左右内边距 */
}

.neirong1 {
    flex: 0 0 auto;
    /* 增大图片容器宽度，让图片能放大 */
    width: 100px;
    margin: -120px 80px 0px 0px;
    /* 与文字拉开距离 */
}

.neirong1 img {
    /* 让图片充满容器，实现放大效果 */
    width: 100%;
    height: auto;
    /* 保持宽高比 */
    object-fit: contain;
     margin: 33px 0px 0px 0px;
}

.neirong2 {
    flex: 1;
    /* 文字部分占剩余空间 */
    color: #fff;
    /* 文字颜色设为白色，与蓝色背景对比 */
    line-height: 2;
}

.neirong2 p {
    text-indent: 2em;
    padding-top: 10px;
    font-size: 6px;
    width: 150px;
    margin: 0px 0px 0px -50px;
    
}

/* 历史源流 */
.lsyl {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: auto;
    position: relative;
    padding: 40px 20px;
    background-image: url('../images/gdsy-bjwl.png');
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.lsyl-biaoti {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 180px;
    min-width: 50px;
    height: 100%;
    text-align: center;
    margin: -50px 0px 0px 75px;
}

.lsyl-biaoti img {
    max-width: 100%;
    padding: 20px;
}

/* 曲线容器：让曲线居中显示 */
.lsyl-curve {
    position: relative;
    width: 50%;
    max-width: 800px;
    margin: -58px auto 0;
    z-index: 1;
}

/* 曲线背景：占满容器宽度 */
.curve-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* 朝代图标通用样式 */
.chaodai {
    position: absolute;
    width: 36px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 2;
}

.chaodai:hover {
    transform: scale(1.1);
}

/* 文字容器默认隐藏，通过 JS 控制显示 */
.chaodai-text {
    background: url('../images/gdsy-lsyl-bg.jpg')no-repeat center center;
    background-size: cover;
    /* 让背景图覆盖文字框，自适应填充 */
    position: absolute;
    display: none;
    color: #e6d7b6;
    border: 1px solid #f9e8c4;
    padding: 10px;
    border-radius: 10px;
    z-index: 3;
    /* 确保文字在图标上层 */
    font-size: 8px;
    line-height: 1.6;
    width: 150px;
    /* 可根据需求调整宽度 */
}

/* 逐个调整朝代图标位置（根据图1曲线微调 top/left/transform） */
.donghan {
    top: 8%;
    left: 5%;
    transform: translate(0%, -10%);
}

/* 对应东汉文字位置，可根据需求微调 */
#text-donghan {
    top: 8%;
    left: 45%;
}

.sui {
    top: 16%;
    left: 45%;
    transform: translate(0%, 10%);
}

/* 对应隋朝文字位置，可根据需求微调 */
#text-sui {
    top: 24%;
    left: -40%;
}

.tang {
    top: 28%;
    left: 90%;
    transform: translate(0%, -10%);
}

/* 对应唐朝文字位置，可根据需求微调 */
#text-tang {
    top: 28%;
    left: -45%;
}

.song {
    top: 43%;
    left: 65%;
    transform: translate(0%, 10%);
}

/* 对应宋朝文字位置，可根据需求微调 */
#text-song {
    top: 40%;
    left: -45%;
}

.mingqing {
    top: 53%;
    left: 15%;
    transform: translate(0%, 10%);
}

/* 对应明清文字位置，可根据需求微调 */
#text-mingqing {
    top: 54%;
    left: 40%;
}

.mingguo {
    top: 75%;
    left: 15%;
    transform: translate(0%, -10%);
}

/* 对应民国文字位置，可根据需求微调 */
#text-mingguo {
    top: 72%;
    left: 40%;
}

.now {
    top: 85%;
    left: 60%;
    transform: translate(0%, 10%);
}

/* 对应“至今”文字位置，可根据需求微调 */
#text-now {
    top: 86%;
    left: -48%;
}

/* 元宵张灯 */
.yxzd {
    width: 100%;
    height: auto;
    margin-top: -155px;
}

/* 标题区域 */
.yxzd-biaoti {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 180px;
    min-width: 50px;
    height: 100%;
    text-align: center;
    margin: 57px 0px 0px 110px;
}

.yxzd-biaoti img {
    max-width: 100%;
    padding: 10px;
    padding-top: 30px;
    padding-bottom: 0px;
}

/* 上方文字描述 */
.yxzd-desc {
    width: 300px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 8px;
    text-indent: 2em;
    line-height: 1.8;
    text-align: justify;
    /* 两端对齐，排版更美观 */
}

.yxzd-bj {
    width: 100%;
    height: 100%;
    max-height: 400px;
    /* 可根据实际情况调整，避免容器高度不够 */
    padding: 30px 0;
    background-color: #011633e8;

}

/* 内容容器：用来放四个小矩形，实现水平排列 */
.yxzd-content {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    /* 让内容居中，去掉固定 1200px 宽度，适配不同屏幕，也可保留固定宽度按需调整 */
}

/* 单个小矩形样式 ，修改宽高为 400px、700px */
.yxzd-item {
    width: 100px;
    /* 设置固定宽度 */
    height: 200px;
    /* 设置固定高度 */
    background-color: #081C37;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    /* 内容靠上排列 */
    box-sizing: border-box;
    /* 避免内边距撑大盒子 */
}

.yxzd-item img {
    max-width: 200px;
    margin-bottom: 10px;
}

.yxzd-item p {
    flex: 1;
    line-height: 1.6;
    text-align: justify;
    text-indent: 2em;
    padding: 10px;
    overflow-y: auto;
    /* 内容超出时自动滚动，避免高度溢出 */
}

/* 3D 轮播容器基础样式 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* 适配内容宽度，可调整 */
    height: 400px;
    /* 容器高度，需容纳 3D 卡片 */
    margin: 0 auto;
    perspective: 1000px;
    /* 3D 透视效果 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 轮播轨道：控制卡片 3D 排列 */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* 开启 3D 空间 */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 单个卡片样式：适配元宵张灯内容 */
.card {
    position: absolute;
    width: 220px;
    /* 卡片宽度，与需求一致 */
    height: 300px;
    /* 卡片高度，与需求一致 */
    background-color: #081C37;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backface-visibility: hidden;
    /* 优化 3D 渲染 */
    cursor: pointer;
}

/* 卡片图片样式 */
.card img {
    max-width: 80px;
    margin-bottom: 10px;
}

/* 卡片文字样式 */
.card p {
    flex: 1;
    line-height: 1.6;
    text-align: justify;
    text-indent: 2em;
    padding: 10px;
    overflow-y: auto;
    font-size: 12px;
}

/* 卡片 3D 状态类名：模仿团队轮播的层级、缩放、透明度 */
.card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
    opacity: 1;
}

.card.left-1 {
    z-index: 5;
    transform: translateX(-350px) scale(0.9) translateZ(-100px);
    opacity: 1;
}

.card.left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.right-1 {
    z-index: 5;
    transform: translateX(350px) scale(0.9) translateZ(-100px);
    opacity: 1;
}

.card.right-2 {
    z-index: 1;
    transform: translateX(0px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 切换按钮样式：与团队轮播对齐 */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #793536;
    color: #E6D7B6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    font-size: large;
    transition: background-color 0.3s ease;
}

.nav-arrow:hover {
    background-color: #081C37;
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

/* dots 指示器样式（可选） */
.dots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(8, 42, 123, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: rgba(8, 42, 123, 1);
    transform: scale(1.2);
}

/* 下方背景纹理 */
.bjwl {
    background-image: url(../images/gdsy-bjwl.png), url(../images/gdsy-bjwl.png);
    background-size: 40%, 40%;
    background-repeat: no-repeat, no-repeat;
    background-position: -40% 40%, 140% 40%;
}
/* 宫灯作用 */
.gdzy {
    width: 100%;
    height: auto;
    margin: 220px auto 0;
    text-align: center;
    padding: 20px 0px;
    /* 增加内边距，避免贴边 */
}

/* 标题区域 */
.gdzy-biaoti {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 180px;
    min-width: 50px;
    height: 100%;
    text-align: center;
    /* 标题与内容间距 */
}

.gdzy-biaoti img {
    max-width: 100%;
    padding: 20px;
}

/* 宫灯作用内容容器：用 Flex 布局排列，限制版心宽度并居中 */
.gdzy-content {
    display: flex;
    justify-content: center;
    /* 水平居中 */
    flex-wrap: wrap;
    /* 自动换行，适配小屏幕 */
    gap: 30px;
    /* 模块间距 */
    width: 300px;
    /* 版心宽度设为 1000px */
    margin: 0 auto;
    /* 让内容容器在.gdzy 中水平居中 */
}

/* 单个宫灯作用模块 */
.gdzy-item {
    display: flex;
    flex-direction: column;
    /* 图标+文字垂直排列 */
    align-items: center;
    /* 水平居中 */
    width: 100px;
    /* 模块宽度 */
}

.gdzy-item img {
    width: 100%;
    /* 图标填满容器 */
    height: auto;
    margin-bottom: 10px;
    /* 图标与文字间距 */
}

.gdzy-item p {
    margin: 0;
    font-size: 16px;
    color: #0F2843;
    font-weight: bold;
    /* 文字颜色 */
}

/* 使用场景 */
.sycj {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 强制居中 */
    margin: 40px auto 0;
    /* 增加上下间距 */
}

.sjt p {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

/* 标题区域 */
.sycj-biaoti {
     position: relative;
    z-index: 2;
    width: 100%;
    max-width: 180px;
    min-width: 50px;
    height: 100%;
    text-align: center;
    /* 标题与内容间距 */
    /* 增大与图表间距 */
}

.sycj-biaoti img {
    max-width: 100%;
    padding: 20px;
}

/* ECharts 容器：强制宽高与图2匹配 */
#sankey-container {
    width: 800px !important;
    /* 覆盖JS动态计算 */
    height: 600px !important;
    margin: 0 0 0 8%;
}

.banwei {
    min-height: 400px;
    background-color: #ffffff;
    background-image: url(../images/banwei.png);
    background-size: 100%;
    background-repeat: no-repeat;
    align-items: flex-end;
    text-align: center;
    padding-top: 20px;
}

/* 版尾内部容器，用于包裹文字等内容 */
.banwei-inner {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 14px;
    position: relative;
    color: #E6D7B6;
    padding: 200px 0 20px 0;
    min-width: 700px;
    margin: 30px 0px 0px 0px;
}

.banwei li {
    margin-bottom: 15px;
}

}