/* ==========================================================================
   Taimei About (关于我们) — 响应式适配（仅 about.html 引入）
   设计稿基准 1440px；所有规则都包在 ≤979px 媒体查询内，
   PC 端（≥980px，含 980–1439 的既有背景修正）一条都不命中，渲染保持不变。
   导航汉堡菜单由共享 common/css/header.css 负责，此处只处理页面内容与页脚。
   ========================================================================== */

@media (max-width: 979px) {
  /* ---------- 页面容器 ---------- */

  .page {
    width: 100%;
  }

  /* ---------- Banner ---------- */

  .banner {
    height: auto;
    /* 飘带等 1440 画布装饰会超出视口，就地裁切 */
    overflow: hidden;
    padding: 104px 0 48px;
  }

  /* 渐变背景钉在左边缘铺满视口（PC 的 calc(720px - 50vw) 偏移在窄屏会露白边） */
  .banner__bg {
    left: 0;
    width: 100%;
    height: 100%;
  }

  .banner__decor {
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* 渐变块改为满宽 */
  .banner__block {
    left: 0;
    width: 100%;
    height: auto;
  }

  /* 1440 画布上的离屏 glow 与白色光带在手机上无呈现，隐藏 */
  .banner__strip,
  .banner__glow--cyan,
  .banner__glow--blue {
    display: none;
  }

  /* S 形飘带：居中置于卡片下方，作为视频卡背后的装饰 */
  .banner__wave {
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180%;
    height: auto;
  }

  /* 注意：这里必须用 relative + z-index，不能退回 static。
     .banner__bg（绝对定位、z-index auto）按绘制顺序位于 static 文本之上，
     且它是不透明径向渐变且铺满 banner，会把标题与口号卡完全盖住。
     基础样式带 top/left，relative 下会真的生效，必须一并复位。 */
  .banner__title {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: auto;
    margin: 0 0 20px;
    padding: 0 20px;
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.2;
    text-align: center;
  }

  .banner__subs {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: auto;
    height: auto;
    margin: 0 16px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
  }

  .banner__sub {
    width: 100%;
    height: auto;
    padding: 16px 18px;
    font-size: 17px;
    line-height: 26px;
    border-radius: 14px;
  }

  .banner__sub--left {
    padding-left: 18px;
  }

  /* 视频卡：整宽 16:9。
     必须保留 relative —— 卡内 bg/overlay/poster/播放按钮均为绝对定位，
     .video 一旦退回 static 就不再是它们的定位祖先，会改以 .banner 为参照而铺满整个横幅。 */
  .video {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 32px);
    max-width: 720px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 24px auto 0;
  }

  .video__poster {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .video__play {
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%) rotate(90deg);
    border-radius: 8px;
  }

  .video__logo {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: auto;
    width: 80px;
    height: 29px;
  }

  /* ---------- Company intro ---------- */

  .intro {
    width: auto;
    margin: 48px 16px 0;
    gap: 12px;
  }

  .intro p {
    font-size: 15px;
    line-height: 26px;
    text-align: left;
  }

  /* ---------- Milestone ---------- */

  .milestone {
    width: auto;
    margin: 56px 0 0;
    padding: 0 16px;
    gap: 32px;
  }

  .milestone__title {
    font-size: clamp(26px, 6vw, 36px);
    line-height: 1.3;
  }

  .milestone__row {
    width: auto;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
  }

  /* 反向行 DOM 顺序为 body→year→media，倒序后与正向行一致（media→year→body） */
  .milestone__row--reverse {
    flex-direction: column-reverse;
  }

  .milestone__media {
    width: 100%;
    height: auto;
  }

  /* 移动端不再拉伸裁切，按原图比例展示 */
  .milestone__media img {
    height: auto;
  }

  .milestone__year {
    width: 100%;
    align-self: auto;
    gap: 4px;
    font-size: 28px;
    line-height: 30px;
  }

  .milestone__body {
    width: 100%;
    padding: 0 0 0 16px;
    gap: 10px;
  }

  .milestone__body h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .milestone__body p {
    font-size: 14px;
    line-height: 24px;
  }

  /* 堆叠后统一左对齐、竖线在左，避免右对齐难读 */
  .milestone__body--right {
    border-right: none;
    border-left: 4px solid var(--cyan);
    align-items: flex-start;
    text-align: left;
  }

  /* ---------- Compliance and Certifications ---------- */

  .certs {
    width: auto;
    margin: 56px 0 24px;
    padding: 0 16px;
  }

  .certs__title {
    font-size: clamp(26px, 6vw, 36px);
    line-height: 1.3;
    margin-bottom: 28px;
  }

  .certs__grid {
    gap: 16px;
  }

  .cert {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 24px 16px;
  }

  .cert--wide {
    width: 100%;
  }

  .cert__title {
    font-size: 20px;
    line-height: 28px;
  }

  .cert__sub {
    font-size: 14px;
    line-height: 24px;
    margin-top: 6px;
  }

  .cert__logos {
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
  }

  /* 基础样式按设计稿给了各 logo 固定像素尺寸，需同特异性覆盖为移动端尺寸 */
  .cert__logos img[src$="cert-cdisc.svg"] {
    width: 104px;
    height: 30px;
  }

  .cert__logos img[src$="cert-vector.png"] {
    width: 150px;
    height: 25px;
  }

  .cert__logos img[src$="cert-who-1.svg"] {
    width: 104px;
    height: 39px;
  }

  .cert__logos img[src$="cert-who-2.svg"] {
    width: 122px;
    height: 37px;
  }

  .cert__logos img[src$="cert-dm.png"] {
    width: 137px;
    height: 47px;
  }

  .cert__logos img[src$="cert-cybervadis.svg"] {
    width: 227px;
    height: 42px;
  }

  .cert__logo--truste {
    width: 68px;
    height: 72px;
  }

  /* ISO 大卡：1440 画布的绝对坐标改为文档流 + 两列网格 */
  .cert--iso {
    height: auto;
    justify-content: flex-start;
  }

  .cert__iso-banner {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
  }

  .cert__iso-vector {
    display: none;
  }

  .cert--iso .cert__title {
    position: static;
    width: auto;
    margin-bottom: 18px;
  }

  .cert__isos {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .iso {
    width: auto;
  }

  .iso img {
    width: 100%;
    height: auto;
  }

  .iso strong {
    font-size: 14px;
    line-height: 22px;
    margin-top: 8px;
  }

  .iso span {
    font-size: 11px;
    line-height: 18px;
  }

  /* ---------- 页脚（复用 news 页已验证方案，共享 footer.css 不动） ---------- */

  .footer {
    height: auto;
    padding: 44px 20px 32px;
  }

  /* 移动端 .footer 自身即为全宽且已铺黑，全屏黑底层不再需要；
     同时它 z-index:0 会盖住改为 static 的内容，必须移除 */
  .footer::before {
    display: none;
  }

  /* 必须带上 .footer__brands 前缀：共享 footer.css 中该选择器特异性更高 */
  .footer__brands .footer__logo,
  .footer__logo {
    position: static;
    width: 124px;
    height: 45px;
  }

  .footer__nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    margin-top: 28px;
  }

  .footer__nav-col a {
    white-space: normal;
  }

  .footer__nav::before,
  .footer__info::before {
    display: none;
  }

  .footer__info {
    position: static;
    width: auto;
    margin-top: 28px;
  }

  .footer__social {
    position: static;
    margin-top: 16px;
    gap: 24px;
  }

  .footer__qr {
    position: static;
    display: inline-block;
    width: 74px;
    height: 74px;
    margin: 18px 12px 0 0;
  }

  .footer__qr--taimei {
    left: auto;
  }

  .footer__badge {
    position: static;
    display: block;
    margin: 24px auto 0;
  }

  .footer__legal {
    position: static;
    left: auto;
    transform: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 16px;
    margin-top: 24px;
    white-space: normal;
  }

  .footer__legal span,
  .footer__legal a.footer__legal-link {
    white-space: normal;
  }
}

/* ==========================================================================
   600px–979px：平板 — ISO 证书三列
   ========================================================================== */

@media (min-width: 600px) and (max-width: 979px) {
  .cert__isos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
