/* ==========================================================================
   YOUTHFUL — Overseas B2B website template
   Design system / base styles
   零外部依赖：不加载任何 CDN、字体或第三方脚本
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --brand:        #0B4F8A;
  --brand-dark:   #073A66;
  --brand-deep:   #052A4A;
  --brand-soft:   #E8F1F9;
  --accent:       #12A594;
  --accent-soft:  #E4F5F3;

  /* text */
  --ink:          #16232E;
  --ink-2:        #3B4C5C;
  --muted:        #5C6E7E;
  --on-brand:     #FFFFFF;
  --on-brand-dim: #C6DCEE;

  /* surfaces */
  --bg:           #FFFFFF;
  --surface:      #F5F8FB;
  --surface-2:    #EDF3F8;
  --line:         #DFE7EF;
  --line-strong:  #C6D4E1;

  /* semantic */
  --ok:           #1B8A5A;
  --warn:         #B26A00;

  /* typography */
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-h1: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  --fs-h2: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem);
  --fs-h3: clamp(1.1rem, 0.98rem + 0.5vw, 1.32rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;
  --lh-tight: 1.2;
  --lh-body: 1.68;

  /* layout */
  --maxw: 1200px;
  --gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
  --sec-y: clamp(3rem, 1.8rem + 4vw, 5.25rem);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 79, 138, .08), 0 2px 8px rgba(11, 79, 138, .06);
  --shadow-md: 0 4px 12px rgba(11, 79, 138, .09), 0 12px 32px rgba(11, 79, 138, .08);
  --header-h: 116px;

  /* ---- motion tokens ---- */
  /* 内建 ease/ease-out 太弱，缺少「被刻意设计过」的手感，统一用自定义曲线 */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);      /* 进入 / 反馈：起步快，立刻有响应 */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);     /* 屏内位移：自然加减速 */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);      /* 抽屉 / 侧滑面板（iOS 手感） */
  --dur-press:   140ms;   /* 按压反馈 */
  --dur-ui:      200ms;   /* 悬停、颜色、描边 */
  --dur-panel:   260ms;   /* 面板 / 抽屉 */
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;        /* 横屏时不做字体膨胀 */
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;  /* 去掉 iOS/Android 点击时的灰蓝闪块 */
}
body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: var(--lh-tight); margin: 0 0 .6em; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

/* 触屏基线：消除 300ms 点击延迟、禁止长按选中控件文字 */
a, button, [role="button"], label.checkline, .btn, .tabs button, .lang button, .float-cta, .nav__link, .burger {
  touch-action: manipulation;
}
button, [role="button"], .btn, .tabs button, .lang button, .float-cta, .burger, .nav__close {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* 正文与表格保持可选中 —— 用户要复制地址、参数、订单号 */
p, li, td, th, h1, h2, h3, h4, address, .contact-list__v { -webkit-user-select: text; user-select: text; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: .7em 1.2em; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, .5rem + 1.5vw, 1.5rem); }
.section { padding-block: var(--sec-y); }
.section--surface { background: var(--surface); }
.section--brand { background: var(--brand); color: var(--on-brand); }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--tight { padding-block: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }

.sec-head { max-width: 780px; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: .35em .8em; border-radius: 100px; margin-bottom: .85em;
}
.section--brand .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.sec-head p { color: var(--muted); font-size: 1.03rem; margin-bottom: 0; }
.section--brand .sec-head p { color: var(--on-brand-dim); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none;
  transition: background-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-press) var(--ease-out);
}
.btn:link, .btn:visited { text-decoration: none; }
/* 按压反馈：手指落下即响应，而不是等 click（抬起才变 = 手感迟钝） */
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--brand); background: #fff; }
.btn--on-brand { background: #fff; color: var(--brand); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 悬停只在「真能悬停的精确指针」上生效 —— 触屏上 hover 会粘住不释放 */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
  .btn:hover { text-decoration: none; transform: translateY(-1px); }
  .btn--primary:hover { background: var(--brand-dark); }
  .btn--accent:hover { background: #0E8B7D; }
  .btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
  .btn--outline-light:hover { background: rgba(255,255,255,.12); }
  .btn--on-brand:hover { background: #EAF2FA; }
}

/* ---------- 5. Top utility bar ---------- */
.topbar {
  background: var(--brand-deep); color: var(--on-brand-dim); font-size: var(--fs-xs);
  padding-top: env(safe-area-inset-top, 0px);          /* 刘海 / 灵动岛避让 */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding-block: .35rem; flex-wrap: wrap; }
.topbar a { color: var(--on-brand-dim); }
.topbar__list { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar__list li { margin: 0; display: flex; align-items: center; gap: .4em; }
.topbar__list svg { flex: none; opacity: .85; }

/* language switch */
.lang { display: flex; align-items: center; gap: .35rem; }
.lang button {
  background: none; border: 0; color: var(--on-brand-dim); font-size: var(--fs-xs);
  padding: .35em .5em; border-radius: 4px;
  transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.lang button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .lang button:hover { color: #fff; }
  .topbar a:hover { color: #fff; }
}

/* 移动端顶栏：只保留语言切换。
   公司信息那三项在窄屏会折成 4 行，把顶栏撑到 140px（PC 只有 41px），
   占掉小屏机型整个首屏的三分之一。这些信息在页脚与联系页仍可看到。 */
@media (max-width: 900px) {
  .topbar__list { display: none; }
  .topbar__in { justify-content: flex-end; min-height: 0; padding-block: .3rem; gap: 0; }
  .lang button { padding: .45em .6em; }   /* 略放大点击区域，仍保持紧凑 */
}

/* ---------- 6. Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 76px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { width: 168px; height: auto; }
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav__list > li { position: relative; margin: 0; }
.nav__link {
  display: flex; align-items: center; gap: .3em; padding: .6em .85em; border-radius: var(--radius);
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
  transition: color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
.nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav__link .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transform-origin: top left;                      /* 从触发器展开，而不是从中心 */
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 160ms;
}
.nav__list > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: .5em .7em; border-radius: 6px; color: var(--ink-2); font-size: .92rem; }

/* 悬停展开只在可悬停指针上生效 */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
  .nav__list > li:hover > .submenu { opacity: 1; visibility: visible; transform: none; }
  .submenu a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
}

.header__cta { flex: none; }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .5em .7em; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 1.25rem; padding-top: 4.5rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%); transition: transform var(--dur-panel) var(--ease-drawer);
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: -8px 0 32px rgba(11,79,138,.14); z-index: 70;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link { justify-content: space-between; padding: .8em .8em; font-size: 1rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--brand-soft); border-radius: 0; margin: 0 0 .4rem .8rem; padding: 0 0 0 .7rem; display: none; transition: none; }
  .nav__list > li.is-open > .submenu { display: block; }
  .nav__cta-mobile { display: block; margin-top: 1.25rem; }
  .header__cta { display: none; }
  .burger { display: block; }
  .nav__close { position: absolute; top: calc(.85rem + env(safe-area-inset-top, 0px)); right: 1rem; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--muted); padding: .2em .4em; border-radius: var(--radius); }
}
@media (min-width: 1025px) { .nav__close, .nav__cta-mobile { display: none; } }
/* ⚠️ 层叠上下文陷阱（曾导致移动端菜单完全失灵，改前务必读懂）
   .header 是 position:sticky + z-index:60，**它会创建独立的层叠上下文**，
   抽屉 .nav 无论设多大 z-index 都被困在 header 内部。

   所以 .nav-scrim 必须是 header 的子元素（HTML 里已放在 </header> 之前）：
     header 上下文内 → header 自身背景(auto) < scrim(65) < nav(70)
   遮罩因此能压暗整页（含 logo 与顶栏），又不会盖住抽屉里的链接。

   若把 scrim 放到 header 外面当兄弟节点，必然出现下面两种坏情况之一：
     · z-index < 60 → 压不暗 header，左上角 logo 那块一直是亮的
     · z-index > 60 → 盖住整个 header，**连同抽屉一起盖住**；
       点任何菜单项都被 scrim 接走（它的处理是"关闭菜单"），
       表现为"菜单一闪就关、按钮完全没反应"   ← 曾实际发生过的故障 */

.nav-scrim { position: fixed; inset: 0; background: rgba(5,42,74,.42); opacity: 0; visibility: hidden; transition: opacity var(--dur-ui) var(--ease-out), visibility var(--dur-ui); z-index: 65; }
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--brand-soft) 0%, #fff 58%); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -12%; top: -28%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,165,148,.16) 0%, rgba(18,165,148,0) 68%); pointer-events: none;
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); }
@media (max-width: 980px) { .hero__in { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .5em; }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.12rem); color: var(--ink-2); max-width: 34em; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.hero__chips li {
  display: flex; align-items: center; gap: .45em; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: .45em .95em; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.hero__chips svg { flex: none; color: var(--accent); }

.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.hero__card {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.hero__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.7rem .8rem .7rem;
  background: linear-gradient(to top, rgba(5,42,74,.86), rgba(5,42,74,0));
  color: #fff; font-size: var(--fs-sm); font-weight: 700;
}
@media (max-width: 520px) { .hero__cards { grid-template-columns: 1fr; } }

/* ---------- 8. Trust strip ---------- */
.trust { background: var(--brand); color: #fff; }
.trust__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.75rem; padding-block: 1.05rem; }
.trust__item { display: flex; align-items: center; gap: .55em; font-weight: 600; font-size: .95rem; margin: 0; }
.trust__item svg { color: #6FE3D4; flex: none; }

/* ---------- 9. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }
.stat { background: #fff; padding: clamp(1.25rem, .9rem + 1vw, 1.9rem); text-align: center; }
.stat__num { display: block; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.stat__label { display: block; font-weight: 700; margin-top: .35em; }
.stat__note { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: .25em; }

/* ---------- 10. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--dur-ui) var(--ease-out),
              transform var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out);
}
.card__media { background: var(--surface-2); overflow: hidden; }
.card__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
  .card:hover .card__media img { transform: scale(1.04); }
}
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.06rem; margin-bottom: .35em; }
.card__title a { color: inherit; }
.card__text { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1em; flex: 1; }
.card__meta { list-style: none; margin: 0 0 1em; padding: 0; font-size: var(--fs-xs); color: var(--ink-2); }
.card__meta li { margin-bottom: .3em; display: flex; gap: .45em; }
.card__meta b { color: var(--muted); font-weight: 600; flex: none; min-width: 4.6em; }
.card__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; }
.textlink { font-weight: 700; font-size: var(--fs-sm); }
.textlink::after { content: " →"; }

/* feature card (no image) */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem 1.4rem; }
.feature__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: .9rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: .4em; }
.feature p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* gallery tiles */
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem .75rem .6rem;
  background: linear-gradient(to top, rgba(5,42,74,.88), rgba(5,42,74,0)); color: #fff;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.35;
}

/* ---------- 11. Certifications ---------- */
.certs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.certs li {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: .5em 1.05em; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-dark);
  display: flex; align-items: center; gap: .45em;
}
.certs li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- 12. Spec table ---------- */
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;      /* 表格横滑到底时不再带动整页 */
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
}
table.spec { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.spec caption { text-align: left; padding: .85rem 1rem; font-weight: 700; background: var(--surface); border-bottom: 1px solid var(--line); }
table.spec th, table.spec td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: var(--fs-sm); }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec th { width: 34%; background: var(--surface); font-weight: 700; color: var(--ink-2); }
table.spec tbody tr:hover td, table.spec tbody tr:hover th { background: var(--brand-soft); }

/* ---------- 13. Tabs (product filter) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; padding: 0; list-style: none; }
.tabs li { margin: 0; }
.tabs button {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: .55em 1.15em; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  transition: background-color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              transform var(--dur-press) var(--ease-out);
}
.tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .tabs button:hover { border-color: var(--brand); color: var(--brand); }
  .tabs button[aria-selected="true"]:hover { color: #fff; }
}

/* ---------- 14. Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, .9rem + 1.4vw, 2rem); box-shadow: var(--shadow-sm); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.15rem; }
@media (max-width: 700px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); }
.field .req { color: #C62828; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="file"], select, textarea {
  width: 100%; padding: .72em .85em; border: 1px solid var(--line-strong); border-radius: var(--radius);
  /* 关键：16px 是下限。低于 16px 时 iOS Safari 聚焦会自动放大页面且不缩回，
     所以不能靠 maximum-scale=1 去掩盖，只能把字号做够。 */
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
input[type="file"] { padding: .55em .7em; font-size: var(--fs-sm); color: var(--ink-2); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(18,165,148,.25); outline-offset: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #C62828; background: #FFF9F9; }
textarea { min-height: 130px; resize: vertical; }
.field--phone { display: grid; grid-template-columns: 110px 1fr; gap: .5rem; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.checkline input { margin-top: .25em; flex: none; width: 1.05em; height: 1.05em; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.form__privacy { font-size: var(--fs-xs); color: var(--muted); margin: 0; max-width: 40em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__msg { padding: .85rem 1rem; border-radius: var(--radius); font-size: var(--fs-sm); margin-bottom: 1rem; display: none; }
.form__msg.is-ok { display: block; background: #E9F6EF; color: #14663F; border: 1px solid #B7E0CB; }
.form__msg.is-err { display: block; background: #FDEDED; color: #A32323; border: 1px solid #F3C6C6; }

/* ---------- 15. Contact block ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .85rem; padding: .95rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list__icon { width: 38px; height: 38px; flex: none; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.contact-list__k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; }
.contact-list__v { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-list__v a { color: var(--brand); }

/* ---------- 16. Floating CTA ---------- */
.float-cta {
  position: fixed; right: 1.15rem; z-index: 55;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));   /* 避开 Home 指示条 */
  background: var(--accent); color: #fff; border: 0; border-radius: 100px;
  padding: .8em 1.25em; font-weight: 700; font-size: var(--fs-sm);
  box-shadow: 0 8px 24px rgba(18,165,148,.38); display: flex; align-items: center; gap: .5em;
  transition: background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.float-cta:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .float-cta:hover { background: #0E8B7D; }
}
@media (max-width: 640px) {
  .float-cta { right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); padding: .7em 1em; }
}

/* ---------- 17. CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; }
.cta-band__in { display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem; align-items: center; padding-block: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
@media (max-width: 860px) { .cta-band__in { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: var(--on-brand-dim); margin: 0; }

/* ---------- 18. Footer ---------- */
.footer { background: var(--brand-deep); color: var(--on-brand-dim); font-size: var(--fs-sm); padding-top: clamp(2.5rem, 1.6rem + 3vw, 4rem); }
.footer a { color: var(--on-brand-dim); }
.footer a:hover { color: #fff; }
.footer h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1em; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding-bottom: 2.5rem; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { width: 170px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .95; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55em; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.15rem;
  padding-bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: var(--fs-xs);
}

/* ---------- 19. Breadcrumb / page header ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--muted); max-width: 62em; margin: 0; }
.crumb { font-size: var(--fs-xs); color: var(--muted); margin-bottom: .7em; }
.crumb a { color: var(--muted); }
.crumb span { margin-inline: .45em; }

/* ---------- 20. Prose ---------- */
.prose { max-width: 74ch; }
.prose h3 { margin-top: 1.6em; }
.prose ul li { margin-bottom: .5em; }
.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: .95rem 1.15rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- 21. Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
[hidden] { display: none !important; }

/* 滚动显现：隐藏态只在 JS 就绪时由 .has-reveal 启用，
   并带 4 秒兜底 —— 任何情况下都不会出现「内容永久不可见」 */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.has-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* 同一行的元素依次入场（级联），比整片同时出现自然。
   每 4 个循环一次，正好对应 4 列栅格；间隔 55ms 属于「有感但不拖沓」的区间。 */
.grid > [data-reveal]:nth-child(4n+1) { --rd: 0ms; }
.grid > [data-reveal]:nth-child(4n+2) { --rd: 55ms; }
.grid > [data-reveal]:nth-child(4n+3) { --rd: 110ms; }
.grid > [data-reveal]:nth-child(4n+4) { --rd: 165ms; }

/* 减弱动效：保留透明度与颜色变化（帮助理解），去掉位移类动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .nav, .nav-scrim, .submenu { transition: none !important; }
  .btn, .btn:hover, .btn:active,
  .tabs button, .tabs button:hover, .tabs button:active,
  .float-cta, .float-cta:hover, .float-cta:active,
  .card, .card:hover { transform: none !important; }
  .card .card__media img { transition: none !important; transform: none !important; }
}

@media print { .header, .topbar, .float-cta, .nav { display: none; } }
