@charset "UTF-8";
/* ==========================================================================
   响应式适配 — 桌面 / 平板 / 手机
   断点：1024px（平板横屏）、768px（平板竖屏 & 手机）、480px（小屏手机）
   ========================================================================== */

/* ---------- 大屏微调（≤1200px） ---------- */
@media (max-width: 1200px) {
  :root {
    --fs-4xl: 42px;
    --fs-3xl: 32px;
  }

  .clients {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 平板（≤1024px） ---------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    max-width: 560px;
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .news-featured {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .series-head {
    flex-wrap: wrap;
  }

  .series-head__desc {
    margin-left: 0;
    text-align: left;
    max-width: 100%;
  }
}

/* ---------- 手机（≤768px）：启用汉堡菜单 ---------- */
@media (max-width: 768px) {
  :root {
    --fs-4xl: 34px;
    --fs-3xl: 26px;
    --fs-2xl: 21px;
    --fs-xl: 18px;
    --fs-lg: 16px;
    --space-7: 48px;
    --space-6: 36px;
    --space-5: 28px;
  }

  /* 顶部信息条：只保留电话 */
  .topbar__inner {
    justify-content: center;
    padding: 6px 0;
  }

  .topbar__note {
    display: none;
  }

  .topbar__contacts {
    gap: var(--space-3);
    justify-content: center;
  }

  /* 汉堡按钮出现 */
  .nav-toggle {
    display: flex;
  }

  /* 导航转为抽屉 */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height var(--transition), opacity var(--transition),
      visibility var(--transition);
  }

  .nav.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  .nav__link {
    padding: 14px var(--space-4);
    border-bottom: 1px solid var(--neutral-100);
    font-size: var(--fs-base);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.is-active {
    background: var(--brand-light);
    color: var(--brand-dark);
  }

  /* 语言切换挪到抽屉内 */
  .header__actions {
    order: -1;
  }

  .header__inner {
    position: relative;
  }

  /* 网格全部单列 */
  .grid--2,
  .grid--3,
  .grid--4,
  .team,
  .certs,
  .clients {
    grid-template-columns: 1fr;
  }

  .clients {
    grid-template-columns: repeat(2, 1fr);
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: var(--space-6) 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__highlights {
    gap: var(--space-3) var(--space-4);
  }

  /* 表单两列转单列 */
  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .form-card,
  .contact-info {
    padding: var(--space-4);
  }

  /* 页脚单列 */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* 时间轴缩进收窄 */
  .timeline {
    padding-left: 28px;
  }

  .timeline__item::before {
    left: -23px;
  }

  /* CTA 条 */
  .cta-band {
    padding: var(--space-5) var(--space-4);
  }
}

/* ---------- 小屏手机（≤480px） ---------- */
@media (max-width: 480px) {
  :root {
    --fs-4xl: 28px;
    --fs-3xl: 23px;
    --fs-2xl: 19px;
    --fs-xl: 17px;
    --space-7: 40px;
    --space-6: 28px;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .clients,
  .team,
  .certs,
  .stats {
    grid-template-columns: 1fr;
  }

  .brand__slogan {
    display: none;
  }

  .brand__name {
    font-size: var(--fs-base);
    white-space: normal;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .hero__eyebrow {
    font-size: var(--fs-xs);
  }

  .hero__highlights {
    flex-direction: column;
    gap: var(--space-2);
  }

  .section-head__title {
    font-size: var(--fs-3xl);
  }

  .section-head__desc {
    font-size: var(--fs-base);
  }

  .member__body {
    padding: var(--space-2);
  }

  .cert {
    padding: var(--space-2);
    font-size: var(--fs-xs);
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: var(--fs-xs);
  }

  .news-featured__body {
    padding: var(--space-4);
  }

  .footer__bottom {
    font-size: 11px;
  }

  .replace-hint {
    font-size: 11px;
    padding: 0 5px;
  }
}

/* ---------- 超宽屏（≥1440px）内容居中不拉伸 ---------- */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
}

/* ---------- 横屏矮屏（手机横放） ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .nav.is-open {
    max-height: 300px;
  }

  .hero {
    min-height: auto;
  }
}

/* ---------- 尊重系统「减少动效」设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
