/* =========================================================
   基础教育中心 - 主样式表
   配色：顶栏 #013E87，菜单栏 #004EA1，内容主蓝 #013E87
   ========================================================= */

:root {
  --c-header: #013E87;         /* 顶栏蓝 */
  --c-nav: #004EA1;            /* 菜单栏蓝 */
  --c-nav-light: #1668C6;      /* 菜单悬停/高亮蓝 */
  --c-header-dark: #02346F;    /* 深蓝（顶栏配套弹出层） */
  --c-primary: #013E87;        /* 内容主色（标题/日期等） */
  --c-primary-dark: #02346F;   /* 深蓝（页脚） */
  --c-primary-light: #1668C6;  /* 亮蓝（内容区悬停） */
  --c-gold: #f5d9a8;           /* 金色点缀 */
  --c-text: #333;
  --c-text-light: #777;
  --c-line: #e5e5e5;
  --c-bg-gray: #f4f4f4;
  --header-h: 88px;
  --nav-h: 52px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;  /* 保险：杜绝任何内容引起横向滚动 */
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===================== Header（整块 #013E87） ===================== */
.site-header {
  background: var(--c-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;      /* 占据剩余空间 */
  min-width: 0;        /* 允许收缩，防止撑破布局 */
}

/* 用户 logo（700x120 横版白字图） */
.brand-logo-img {
  height: 64px;
  width: auto;
  max-width: 100%;     /* 超宽时自动缩小，不撑出容器 */
  object-fit: contain;
  object-position: left center;
}

/* 右侧操作区：搜索框 + 汉堡按钮并排 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.nav-toggle { display: none; }

/* 搜索框（红底上用白色边框） */
.search-box {
  display: flex;
  align-items: center;
  border: 2px solid #fff;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.search-box input {
  border: 0;
  outline: 0;
  padding: 8px 6px 8px 18px;
  width: 200px;
  font-size: 14px;
  background: transparent;
  color: var(--c-text);
}

.search-box button {
  border: 0;
  background: transparent;
  color: var(--c-header);
  padding: 8px 16px 8px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ===================== 手机端弹出搜索栏 ===================== */
.mobile-search {
  display: none;       /* 桌面端隐藏 */
}

/* ===================== 导航 ===================== */
.site-nav {
  background: var(--c-nav);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-list {
  display: flex;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0 30px;
  line-height: var(--nav-h);
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  background: var(--c-nav-light);
}

/* 桌面端：菜单项均分铺满导航栏整行宽度 */
@media (min-width: 769px) {
  .nav-list > li {
    flex: 1 1 0;
    text-align: center;
  }

  .nav-list > li > a {
    padding: 0;
  }
}

/* 二级下拉菜单（桌面端 hover 展开） */
.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: 2px;
  border: 4px solid transparent;
  border-top-color: rgba(255, 255, 255, .85);
  transition: transform .2s;
}

.sub-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}

.sub-list a {
  display: block;
  padding: 0 20px;
  line-height: 42px;
  font-size: 14px;
  color: var(--c-text);
  border-top: 1px solid var(--c-line);
  white-space: nowrap;
}

.sub-list li:first-child a { border-top: 0; }

.sub-list a:hover {
  background: #eef4fb;
  color: var(--c-header);
}

@media (hover: hover) {
  .has-sub:hover > a::after { transform: rotate(180deg); }
  .has-sub:hover .sub-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ===================== 通用区块 ===================== */
.section { padding: 34px 0 44px; }

.section-gray {
  background: var(--c-bg-gray);
}

.grid-2 {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 44px;
  align-items: start;
}

/* 关键：允许 grid 列收缩，防止 nowrap 字幕/图片撑破布局 */
.grid-2 > .col {
  min-width: 0;
}

/* 宽度互换：下载专区（窄）+ 部门新闻（宽），两列等高 */
.grid-2.reverse {
  grid-template-columns: 42fr 58fr;
  align-items: stretch;
}

/* 桌面端：整个第二行区块固定高度，内部自适应填充 */
@media (min-width: 993px) {
  /* 两列区块统一限高 */
  .grid-2.reverse > .col {
    height: 470px;
  }

  .grid-2.reverse > .col:first-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* 下载专区：桌面端只显示前 4 条，间距收紧并均匀填满剩余高度 */
  .grid-2.reverse > .col:first-child .download-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    justify-content: space-evenly;  /* 条目少时均匀分布留白，不拉伸行高 */
    gap: 0;
  }

  .grid-2.reverse > .col:first-child .download-list li {
    flex: 0 0 auto;                 /* 行高保持自然，条目少时不被拉高 */
    display: flex;
    align-items: center;
    padding: 10px 4px;
    min-height: 0;
  }

  /* 部门新闻：填满除标题外的剩余高度（选择器加权，确保覆盖后面的基础规则） */
  .grid-2.reverse .dept-news {
    height: calc(100% - 65px);   /* 65px ≈ 标题栏高度 */
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  .grid-2.reverse .dept-main {
    height: 100%;
  }

  .grid-2.reverse .dept-main img {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;          /* 填满区块高度，超出按 cover 裁切 */
  }
}

/* 桌面端：通知公告与左侧大图等高，最后一条底部横线与大图底边对齐 */
@media (min-width: 993px) {
  .grid-2:not(.reverse) {
    align-items: stretch;        /* 左右两列等高 */
  }

  .grid-2:not(.reverse) > .col:last-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .grid-2:not(.reverse) .notice-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* 每条均分高度、底部带横线，最后一条的线正好贴着大图底边 */
  .grid-2:not(.reverse) .notice-list li {
    flex: 1;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed var(--c-line);
    min-height: 0;
  }

  .grid-2:not(.reverse) .notice-list li + li {
    border-top: 0;               /* 桌面端只用底部横线，避免双线 */
  }

  .grid-2:not(.reverse) .notice-list a {
    flex: 1;
    min-width: 0;        /* 关键：a 可收缩，内部文字省略号才生效 */
    align-items: center;
  }
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.section-head h2 {
  font-size: 22px;
  color: var(--c-primary);
  letter-spacing: 1px;
  position: relative;
  padding-left: 14px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--c-primary);
  border-radius: 2px;
}

.more {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--c-text-light);
}

.more:hover { color: var(--c-primary); }

/* ===================== 轮播（党建新闻） ===================== */
.carousel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform .5s ease;
}

.carousel-item {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 7px;
  z-index: 2;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.carousel-dots button.active {
  background: #fff;
  transform: scale(1.15);
}

/* ===================== 通知公告 ===================== */
.notice-list li + li {
  border-top: 1px dashed var(--c-line);
}

.notice-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  min-width: 0;        /* 允许 a 收缩，文字超出才显示省略号 */
}

.notice-list .date {
  flex: none;
  text-align: center;
  line-height: 1.15;
  min-width: 52px;
}

.notice-list .date em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--c-text-light);
}

.notice-list .date strong {
  display: block;
  font-size: 24px;
  color: var(--c-primary);
  font-weight: 700;
}

.notice-list .txt {
  flex: 1;
  min-width: 0;        /* flex 子项允许收缩，省略号才生效 */
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-list a:hover .txt {
  color: var(--c-primary);
}

/* ===================== 下载专区 ===================== */
.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px dashed #ddd;
}

.download-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-primary);
  flex: none;
}

.download-list a {
  flex: 1;
  min-width: 0;        /* flex 子项允许收缩，省略号才生效 */
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.download-list time {
  flex: none;
  font-size: 13px;
  color: var(--c-text-light);
}

.download-list a:hover { color: var(--c-primary); }

/* ===================== 部门新闻 ===================== */
.dept-news {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  min-width: 0;
}

.dept-main {
  position: relative;
  min-width: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dept-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10.5;   /* 高度随宽度按比例，不会被拉成瘦高 */
  object-fit: cover;
}

.dept-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 10px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-thumbs {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.dept-thumbs a {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dept-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.dept-thumbs a:hover img {
  transform: scale(1.06);
}

/* ===================== 页脚 ===================== */
.site-footer {
  background: var(--c-primary-dark);
  color: #fff;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-info p {
  font-size: 14px;
  opacity: .9;
  line-height: 2;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-logo-img {
    height: auto;                      /* 手机端改为按宽度收缩，杜绝窄屏溢出 */
    width: min(100%, 340px);
  }
}

/* ===================== 响应式 ===================== */
@media (max-width: 992px) {
  .grid-2,
  .grid-2.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .search-box input { width: 150px; }

  .brand-logo-img { height: 54px; }
}

@media (max-width: 768px) {
  :root { --header-h: 78px; }

  .header-inner { gap: 10px; }

  /* logo 放大：与右侧 42px 按钮比例协调，超窄屏由 max-width 自动收缩 */
  .brand-logo-img { height: 48px; max-width: 100%; }

  /* 放大镜：点击弹出搜索栏 */
  .mobile-search.open {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: var(--c-header-dark);
  }

  .mobile-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 14px;
    background: #fff;
    color: var(--c-text);
  }

  .mobile-search button {
    flex: none;
    border: 0;
    border-radius: 20px;
    padding: 9px 20px;
    font-size: 14px;
    background: #fff;
    color: var(--c-header);
    cursor: pointer;
  }

  /* 放大镜：正圆按钮，与三条杠并排 */
  .header-actions { gap: 12px; }

  .search-box {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .search-box input { display: none; }

  .search-box button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
  }

  .search-box button:active {
    background: rgba(255, 255, 255, .18);
  }

  /* 三条杠按钮：与放大镜同尺寸并排 */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
  }

  .nav-toggle:active {
    background: rgba(255, 255, 255, .18);
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 移动端折叠导航 */
  .nav-list {
    display: none;
    flex-direction: column;
    padding-bottom: 8px;
  }

  .nav-list.open { display: flex; }

  .nav-list > li > a {
    line-height: 46px;
    padding: 0 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  /* 移动端二级菜单：点击展开，静态流式布局 */
  .has-sub > a::after {
    position: absolute;
    right: 18px;
    top: 50%;
    margin: -2px 0 0;
    transition: transform .2s;
  }

  .has-sub.open > a::after { transform: rotate(180deg); }

  .sub-list {
    position: static;
    min-width: 0;
    background: rgba(0, 0, 0, .14);
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .has-sub.open .sub-list { display: block; }

  .sub-list a {
    color: rgba(255, 255, 255, .92);
    line-height: 40px;
    padding: 0 32px;
    border-top: 1px solid rgba(255, 255, 255, .06);
  }

  .sub-list a:hover {
    background: transparent;
    color: #fff;
  }

  .section { padding: 24px 0 30px; }
  .section-head h2 { font-size: 19px; }

  .notice-list .date strong { font-size: 20px; }
  .notice-list .txt { font-size: 14px; }

  .dept-news { grid-template-columns: 1fr 100px; }

  /* 手机端页脚：纵向排列、全部居中、logo 收缩 */
  .site-footer { padding: 26px 0; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .footer-info p { font-size: 13px; line-height: 1.9; }
  .footer-brand { justify-content: center; }
  .footer-brand { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .brand-logo-img { height: 42px; }
  .header-actions { gap: 8px; }
  .search-box button,
  .nav-toggle { width: 38px; height: 38px; }
  .notice-list a { gap: 10px; }
  .notice-list .date { min-width: 44px; }
  .carousel-caption { font-size: 13px; }
  .dept-news { grid-template-columns: 1fr; }
  .dept-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .dept-thumbs img { aspect-ratio: 4 / 3; }
}

/* ===================== 内页通用布局 ===================== */

/* 单页面 / 列表页：左侧子菜单 + 右侧内容 */
.inner-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 50px;
}

/* 关键：允许网格子项收缩，防止 nowrap 标题把内容区撑出屏幕 */
.inner-layout > *,
.content-layout > * {
  min-width: 0;
}

/* 内容页：无子菜单，通栏 */
.content-layout {
  padding-top: 30px;
  padding-bottom: 50px;
}

/* 左侧子菜单栏 */
.side-menu {
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.side-menu-head {
  background: var(--c-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 18px;
}

.side-menu li a {
  display: block;
  position: relative;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  color: var(--c-text);
}

.side-menu li:last-child a { border-bottom: 0; }

.side-menu li a:hover,
.side-menu li a.active {
  background: #eef4fb;
  color: var(--c-primary);
  font-weight: 700;
}

.side-menu li a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-primary);
}

/* 面包屑 */
.crumbs {
  font-size: 13px;
  color: var(--c-text-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 26px;
}

.crumbs a { color: var(--c-text-light); }
.crumbs a:hover { color: var(--c-primary); }

/* 文章标题区 */
.article-head {
  text-align: center;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.article-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

/* 正文 */
.article-body {
  font-size: 16px;
  line-height: 2;
  color: #444;
  overflow-wrap: break-word;
}

.article-body p {
  margin-bottom: 16px;
  text-indent: 2em;
}

.article-body img {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 8px auto 20px;
  border-radius: 4px;
}

/* 上一篇 / 下一篇 */
.article-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.article-nav a {
  font-size: 14px;
  color: var(--c-text-light);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-nav a:hover { color: var(--c-primary); }

/* 列表页新闻列表 */
.news-list li {
  border-bottom: 1px dashed var(--c-line);
}

.news-list li::before { content: none; }

.news-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4px;
  min-width: 0;
}

.news-list .txt {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  position: relative;
  padding-left: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.news-list .txt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-primary);
}

.news-list time {
  flex: none;
  font-size: 13px;
  color: var(--c-text-light);
}

.news-list a:hover .txt { color: var(--c-primary); }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  font-size: 14px;
  color: var(--c-text);
}

.pagination a:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.pagination .current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* 内页响应式 */
@media (max-width: 768px) {
  .inner-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 34px;
  }

  .content-layout { padding-top: 20px; padding-bottom: 34px; }

  .article-title { font-size: 20px; }
  .article-body { font-size: 15px; }

  .news-list a { gap: 12px; }
  .news-list .txt { font-size: 15px; }
  .news-list time { font-size: 12px; }
}
/* ===================== 顶部大图轮播：左右切换箭头 ===================== */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .26);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.banner-arrow:hover {
  background: rgba(0, 0, 0, .52);
}

.banner-arrow.prev { left: 22px; }
.banner-arrow.next { right: 22px; }

.banner-arrow svg { display: block; }

.banner-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .banner-arrow { width: 34px; height: 34px; }
  .banner-arrow.prev { left: 10px; }
  .banner-arrow.next { right: 10px; }
  .banner-arrow svg { width: 17px; height: 17px; }
}

/* ===================== 顶部大图轮播（banner）专用 ===================== */
.banner-carousel {
  border-radius: 0;
  box-shadow: none;
  background: var(--c-bg-gray);
}

.banner-carousel .carousel-item img {
  display: block;
  aspect-ratio: auto;            /* 关键：取消通用轮播的 3:2 固定比例 */
  width: 100%;
  height: auto;                  /* 高度跟随图片自身比例，完整显示不裁切 */
  max-height: 600px;             /* 防止过高图片占满首屏，不需要可删除这行和下一行 */
  object-fit: cover;
}

/* 大图指示点改居中 */
.banner-carousel .carousel-dots {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  gap: 9px;
}

@media (max-width: 768px) {
  .banner-carousel .carousel-item img {
    max-height: 340px;           /* 手机端限高防过高 */
  }

  .banner-carousel .carousel-dots { bottom: 10px; }
}

/* ===== 下载专区条目高度修复：条目少时靠上排列，不摊开/不拉伸 ===== */
.grid-2.reverse > .col:first-child .download-list {
  justify-content: flex-start !important;
  gap: 0 !important;
}
.grid-2.reverse > .col:first-child .download-list li,
.download-list li {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 17px 4px !important;
}
/* ===== banner 大图完整显示：取消高度限制，不裁切 ===== */
.banner-carousel .carousel-item img {
  max-height: none !important;
  object-fit: contain !important;
}
@media (max-width: 768px) {
  .banner-carousel .carousel-item img {
    max-height: none !important;
  }
}