/* ============================================
   mobile.css  移动端样式（<= 768px）
   作用：仅作用于手机/平板设备
   通过 media 属性加载，移动端浏览器才会解析

   设计：手机端用"汉堡 + 手风琴"菜单
         点 ☰ → 菜单从顶部下方弹出（覆盖屏幕）
         6 个一级分类 + 二级子项折叠展开
   ============================================ */

/* ============================================
   1. 头部布局：高度降低 + 隐藏横排元素
   ============================================ */
.header-inner {
  height: 60px;
}

:root { --header-height: 60px; }            /* 同步：banner-fullscreen 用 */

.mega-menu-container_newn {
  display: none;;
}

.main-nav,
.header-tools {
  display: none !important;       /* 横排导航和搜索区隐藏 */
}

/* ============================================
   2. 汉堡按钮：3 条线 → X
   ============================================ */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;              /* 推到最右 */
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* 菜单打开：3 条线变 X */
.site-header.is-open .hamburger {
  background-color: transparent;
}

.site-header.is-open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   3. 覆盖 PC 的 hover 显示逻辑
      移动端只能由 .is-open 控制菜单显隐
   ============================================ */
.site-header:hover .mega-menu-container,
.mega-menu-container:hover {
  opacity: 0;
  visibility: hidden;
  transform: none;
}

/* PC 端 mega-menu-container 在移动端隐藏（mobile 用 _new 接管） */
.mega-menu-container {
  display: none !important;
}

.site-header.is-open .mega-menu-container_new {
  display: block;
}

/* ============================================
   4. 移动菜单容器（_new）：固定定位铺满屏幕下方
   ============================================ */
.mega-menu-container_new {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: #005bad;        /* 主题蓝，与头部同色 */
  overflow-y: auto;
  z-index: 99;
  padding: 0;
}

/* ============================================
   5. 菜单内部：垂直堆叠
   ============================================ */
.mega-menu {
  padding: 0;
  max-width: 100%;
  display: block;                   /* 不用 flex，直接块级流 */
}

.mega-menu-spacer {
  display: none;                    /* PC 用的占位，移动端隐藏 */
}

.mega-menu-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  gap: 0;
}

/* ============================================
   6. 分类列（手风琴单元）：白底蓝字... 不对，是深蓝底白字
   ============================================ */
.mega-col {
  display: block;                   /* 覆盖 common.css 的 flex column */
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mega-col:last-child {
  border-bottom: none;
}

/* 7. 一级分类标题：可见、可点击 */
.mega-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.mega-col-title:active {
  background-color: rgba(0, 0, 0, 0.15);
}

/* 标题右边的 chevron 箭头 */
.mega-col-title::after {
  content: "›";
  font-size: 24px;
  font-weight: 300;
  line-height: 0.8;
  color: #fff;
  transition: transform 0.3s ease;
}

.mega-col.is-expanded .mega-col-title::after {
  transform: rotate(90deg);         /* › 变 ⌄ */
}

/* ============================================
   8. 二级子项：默认隐藏，展开时显示
   ============================================ */
.mega-col li:not(.mega-col-title) {
  display: none;
}

.mega-col.is-expanded li:not(.mega-col-title) {
  display: block;
}

.mega-col.is-expanded li:not(.mega-col-title) a {
  display: block;
  padding: 12px 16px 12px 32px;
  color: #fff;
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.18);     /* 暗底突出一级标题 */
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.mega-col.is-expanded li:not(.mega-col-title) a:active {
  background-color: rgba(0, 0, 0, 0.35);
}

/* ============================================
   9. 小屏适配（<= 375px）进一步压缩
   ============================================ */
@media (max-width: 375px) {
  .header-inner {
    height: 50px;
  }
  :root { --header-height: 50px; }          /* 同步：banner-fullscreen 用 */
  .mega-menu-container {
    top: 50px;
    height: calc(100vh - 50px);
  }
  .mega-col-title {
    padding: 12px 14px;
    font-size: 15px;
  }
  .mega-col.is-expanded li:not(.mega-col-title) a {
    padding: 10px 14px 10px 28px;
    font-size: 13px;
  }

  /* ----- 底部 ----- */
  .footer-contact-icon {
    height: 28px;
    margin: 14px 0;
  }
  .footer-qr {
    gap: 12px;
  }
  .qr-img {
    width: 64px;
    height: 64px;
  }
  .qr-label {
    font-size: 10px;
  }
  .links-col a {
    font-size: 13px;
  }
}

/* ============================================
   9.5 友情链接：手机版
   ============================================ */
.friend-links {
  padding: 14px 0;
}

/* ============================================
   9.7 图片列表：手机版
   ============================================ */
.image-list {
  padding: 30px 0;
}

.image-list-header {
  margin-bottom: 24px;
}

.image-list-title {
  font-size: 22px;
  padding-bottom: 10px;
}

.image-list-title::after {
  width: 40px;
  height: 3px;
}

.image-list-arrow {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.image-grid {
  grid-template-columns: 1fr;        /* 手机单列 */
  gap: 16px;
}

.image-card-title {
  font-size: 16px;
  padding: 16px 16px 6px;
}

.image-card-desc {
  font-size: 12px;
  line-height: 1.6;
  padding: 0 16px 18px;
  -webkit-line-clamp: 2;              /* 手机只显示 2 行 */
}

/* 小屏 (≤ 375px) 进一步压缩 */
@media (max-width: 375px) {
  .image-list-title {
    font-size: 20px;
  }
  .image-card-title {
    font-size: 15px;
  }
  .image-card-desc {
    font-size: 11px;
  }
}

/* ============================================
   9.8 表单模块：手机版
   ============================================ */
.form-section {
  padding: 28px 0;
}

.form-grid {
  grid-template-columns: 1fr;       /* 手机单列 */
  gap: 32px;
}

.form-card-title {
  font-size: 20px;
  padding-bottom: 10px;
}

.form-card-title::after {
  /* 移动端下划线略小，hover 动画在 common.css */
  height: 6px;
}

.form-card-body {
  gap: 10px;
  margin-top: 18px;
}

.form-input {
  height: 38px;
  font-size: 12px;
}

.form-captcha {
  height: 38px;
  min-width: 72px;
  font-size: 11px;
}

.form-btn {
  height: 38px;
  font-size: 13px;
}

/* 小屏 (≤ 375px) 进一步压缩 */
@media (max-width: 375px) {
  .form-grid {
    gap: 24px;
  }
  .form-card-title {
    font-size: 18px;
  }
  .form-input {
    font-size: 11px;
  }
}

.friend-links-list {
  font-size: 12px;
  line-height: 1.9;
}

.friend-links-label {
  width: 100%;             /* 标签独占一行 */
  margin-bottom: 6px;
}

.friend-links-label::after,
.friend-link::after {
  margin: 0 8px;
}

/* 小屏 (≤ 375px) 进一步压缩 */
@media (max-width: 375px) {
  .friend-links-list {
    font-size: 11px;
  }
  .friend-links-label::after,
  .friend-link::after {
    margin: 0 6px;
  }
}

/* ============================================
   9.9 通栏视频：手机版
   ============================================ */
.video-feature-wrapper {
  aspect-ratio: 16 / 9;
}

.video-feature-title {
  font-size: 32px;
  letter-spacing: 4px;
}

.video-feature-caption {
  right: 16px;
  bottom: 70px;
  font-size: 12px;
}

.video-feature-controls {
  padding: 12px 16px;
  gap: 12px;
}

.video-play-btn {
  width: 50px;                          /* 移动端略小 */
  height: 50px;
}

.video-play-btn svg {
  width: 20px;
  height: 20px;
}

.video-progress {
  height: 3px;
}

/* 小屏 (≤ 375px) */
@media (max-width: 375px) {
  .video-feature-wrapper {
    aspect-ratio: 4 / 3;
  }
  .video-feature-title {
    font-size: 24px;
    letter-spacing: 3px;
  }
  .video-feature-caption {
    display: none;                   /* 小屏隐藏文字，节省空间 */
  }
}

/* ============================================
   9.10 新闻模块：手机版
   ============================================ */
.news-section {
  padding: 32px 0 24px;
}

.news-header {
  margin: 0 auto 20px;                 /* 与 common 同步：水平居中 */
  padding: 0 20px;
}

.news-tabs {
  gap: 24px;
}

.news-tab {
  font-size: 15px;
  padding: 6px 0;
}

.news-card-pic {
  height: 200px;                      /* 移动端固定高度，避免 aspect-ratio 导致大图 */
  aspect-ratio: auto;
}

.news-card-title {
  font-size: 14px;
  padding: 12px 0 6px;
}

.news-card-date {
  font-size: 11px;
  /* padding: 0 0 16px; */
}

@media (max-width: 375px) {
  .news-section {
    padding: 24px 0 16px;
  }
  .news-tabs {
    gap: 18px;
  }
  .news-tab {
    font-size: 14px;
  }
  .news-card-pic {
    height: 180px;
  }
}

/* ============================================
   9.6 幻灯片 Banner：手机版
   ============================================ */
.banner {
  height: 400px;
}

.banner-title {
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.banner-subtitle {
  font-size: 12px;
  letter-spacing: 1px;
}

/* 移动端箭头常显（避免 hover 不可用） */
.banner-arrow {
  opacity: 1;
  width: 36px;
  height: 36px;
}
.banner-arrow::after {
  font-size: 14px;
}
.banner-arrow-prev { left: 10px; }
.banner-arrow-next { right: 10px; }

.banner-dots {
  bottom: 16px;
  gap: 8px;
}

.banner-dot {
  width: 8px;
  height: 8px;
}
.banner-dot.swiper-pagination-bullet-active {
  width: 22px;
}

.banner-caption {
  bottom: 50px;
  right: 16px;
  font-size: 11px;
}

/* 小屏 (≤ 375px) 进一步压缩 */
@media (max-width: 375px) {
  .banner {
    height: 320px;
  }
  .banner-title {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .banner-subtitle {
    font-size: 11px;
  }
  .banner-arrow {
    width: 32px;
    height: 36px;
  }
  .banner-arrow::after {
    font-size: 12px;
  }
}

/* ============================================
   10. 底部：手机竖排
   ============================================ */

/* 两栏 → 单栏 */
.footer-main {
  padding: 14px 0 24px;
}

.footer-grid {
  flex-direction: column;
  gap: 24px;
}

.footer-contact {
  flex: none;
  width: 100%;
}

/* 覆盖 PC 的 margin: 40px 0 */
.footer-contact-icon {
  height: 32px;
  margin: 20px 0;
}

.footer-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-info p {
  font-size: 13px;
}

.footer-qr {
  gap: 16px;
  margin-top: 16px;
}

.qr-img {
  width: 72px;
  height: 72px;
}

.qr-label {
  font-size: 11px;
}

/* 链接组：覆盖 PC 的 padding-top: 120px */
.footer-links {
  flex: none;
  width: 100%;
  gap: 0;
  padding-top: 0;            /* 覆盖 PC 的 120px */
  flex-direction: column;    /* 手机上竖排 */
}

/* Accordion toggle：手机上显示，PC 隐藏 */
.footer-links-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  user-select: none;
}

.footer-links-toggle-icon {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
}

.footer-links[aria-expanded="true"] .footer-links-toggle-icon,
.footer-links-toggle[aria-expanded="true"] .footer-links-toggle-icon {
  transform: rotate(45deg);    /* + 变 × */
}

/* Accordion content：默认隐藏，展开时显示 */
.footer-links-content {
  display: none;
  padding: 8px 16px 16px;
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-links-toggle[aria-expanded="true"] + .footer-links-content {
  display: flex;
}

.links-col {
  padding-right: 0;          /* 覆盖 PC 的 20px */
  width: 40%;
}

.links-col li {
  margin-bottom: 10px;
}

.links-col a {
  font-size: 14px;
}

/* 版权栏：覆盖 PC 的固定 height: 74px */
.footer-bottom {
  height: auto;               /* 覆盖 PC 的 74px */
  padding: 14px 0;
  font-size: 11px;
}

.footer-bottom .container {
  flex-direction: column;
  gap: 4px;
  text-align: center;
}