/* ============================================================
   鲸致 API — 营销站样式
   设计基调：Studio Dark 克制美学
   · 深石板灰底 #0F0F10，层次靠极细边框与微弱光带区分
   · 银白微蓝（#7FB3E8）作冷色信息层
   · 暖橙 ember（#FF7A45）作唯一强调色，仅用于 CTA 与焦点
   · 拒绝堆砌特效：无霓虹、无强发光、无大面积渐变噪点
   ============================================================ */

:root {
  --bg:            #0F0F10;
  --bg-alt:        #131316;
  --surface:       #17171A;
  --surface-2:     #1C1C21;
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text:          #E8E8ED;
  --text-dim:      #9A9AA4;
  --text-mute:     #6E6E78;

  --accent:        #FF7A45;
  --accent-hover:  #FF8F61;
  --accent-soft:   rgba(255, 122, 69, 0.12);
  --blue:          #7FB3E8;

  --radius:        14px;
  --radius-sm:     10px;
  --wrap:          1160px;
  --ease:          cubic-bezier(0.22, 0.8, 0.3, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* 锚点跳转时给 sticky 导航留出高度，避免标题被遮住 */
section[id], [id] { scroll-margin-top: 80px; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--blue);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 780px; }

/* ---------------- 键盘焦点环（全站统一） ----------------
   为什么必须有：深色背景下浏览器默认的焦点描边对比度不可控
   （Chrome 的浅蓝细线在 #0F0F10 上几乎看不见），键盘用户会"看不见自己选到哪"。
   此前全站只有移动端汉堡写了 :focus-visible，桌面的 .tab / .copy-btn /
   .faq-q / .sup-q / 所有 .btn / 正文链接都只靠浏览器默认 —— 等于键盘可达性
   全押在"用户用了什么浏览器"上。
   这里给所有可交互元素一条统一、可预期的焦点环（与汉堡用的是同一套 accent）。
   ⚠️ 用 :focus-visible 而不是 :focus：鼠标点击不应留下焦点环，
     否则每次点击都"闪一下"，视觉噪音会让焦点环本身被当成 bug 而删掉。 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* 取景框内的可交互项（如代码块复制按钮）：贴边时 offset 会被裁切，收进来一点 */
.code-card .copy-btn:focus-visible { outline-offset: -2px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #14100E;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text-mute);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(15, 15, 16, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* 品牌标记：暖橙 ember 的一小笔，克制不喧哗 */
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--accent), #FFB27A);
  box-shadow: 0 0 0 1px rgba(255, 122, 69, 0.25);
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.18s var(--ease); }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* 移动端导航开关（汉堡）。
   桌面端彻底不出场：display:none 同时让它脱离 Tab 序列，
   免得键盘用户 Tab 到一个看不见的复选框。 */
.nav-toggle,
.nav-toggle-input { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 108px 0 84px;
  text-align: center;
  overflow: hidden;
}
/* 极淡的银白微蓝光带：克制地提示“上方有光”，不做赛博朋克 */
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 460px;
  background: radial-gradient(ellipse at center,
              rgba(127, 179, 232, 0.09) 0%,
              rgba(255, 255, 255, 0.02) 42%,
              transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.tag-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(38px, 6.2vw, 66px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(100deg, var(--text) 0%, var(--blue) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 38px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note { font-size: 13.5px; color: var(--text-mute); }

/* ---------------- 数据条 ---------------- */
.stats { padding: 8px 0 56px; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 26px 16px;
  text-align: center;
}
.stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.stat-num span { font-size: 17px; color: var(--text-mute); margin-left: 2px; }
.stat-label { font-size: 13.5px; color: var(--text-mute); }

/* ---------------- 通用区块 ---------------- */
.sec { padding: 92px 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.sec-head { text-align: center; margin-bottom: 56px; }
.sec-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 620;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.sec-desc { font-size: 16.5px; color: var(--text-dim); max-width: 620px; margin: 0 auto; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------- 卡片 ----------------
   ⚠️ hover 只做"边框提亮"，**不做位移抬升**。
   抬升（translateY）是"这张卡能点"的强信号；而这些能力卡整块不可点、
   内部也没有链接，用户按直觉去点会落空（且连点几次后开始怀疑整站）。
   弱一档的边框提亮是纯装饰性 hover，不会被读成可点击。
   若将来真的给卡片加了链接，再考虑恢复抬升。 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.25s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.72; }

/* 图标：纯 CSS 线稿，无外部依赖 */
.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 18px;
  position: relative;
}
.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  opacity: 0.85;
}
.card-icon[data-icon="link"]::before {
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--bg), 11px 0 0 var(--accent), 11px 0 0 var(--accent);
  left: 8px; top: 14px;
}
.card-icon[data-icon="link"]::after { display: none; }
.card-icon[data-icon="code"]::before {
  width: 9px; height: 9px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  background: transparent; left: 12px; top: 12px; transform: rotate(45deg);
}
.card-icon[data-icon="code"]::after {
  width: 9px; height: 9px; border-right: 1.5px solid var(--accent); border-top: 1.5px solid var(--accent);
  background: transparent; right: 12px; bottom: 12px; transform: rotate(45deg);
}
.card-icon[data-icon="coin"]::before {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: transparent;
  left: 10px; top: 10px;
}
.card-icon[data-icon="coin"]::after {
  width: 1.5px; height: 6px; left: 17px; top: 14px;
}
.card-icon[data-icon="chart"]::before {
  width: 1.5px; height: 16px; left: 11px; bottom: 9px;
}
.card-icon[data-icon="chart"]::after {
  width: 1.5px; height: 10px; left: 18px; bottom: 9px; opacity: 0.6;
}

/* ---------------- 模型矩阵 ---------------- */
.model-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.model-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: border-color 0.25s var(--ease);
}
.model-group:hover { border-color: var(--border-strong); }
.mg-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
}
.models-note { text-align: center; font-size: 13.5px; color: var(--text-mute); margin-top: 28px; }

/* ---------------- 定价 ---------------- */
.tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: fit-content;
  margin: 0 auto 40px;
}
.tab {
  padding: 9px 22px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 14.5px;
  font-family: inherit;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.35s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan:hover { border-color: var(--border-strong); }
.plan.featured {
  border-color: rgba(255, 122, 69, 0.32);
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.045), transparent 55%), var(--surface);
}
.plan-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 122, 69, 0.25);
  padding: 3px 9px;
  border-radius: 100px;
}
.plan-tier { font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.plan-amount {
  font-size: 34px;
  font-weight: 620;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.plan-amount span { font-size: 15px; font-weight: 400; color: var(--text-mute); }
.plan-note { font-size: 13.5px; color: var(--text-mute); margin-bottom: 20px; }
.plan-list {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.plan-list li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  margin-bottom: 9px;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}
.pricing-note { text-align: center; font-size: 13px; color: var(--text-mute); margin-top: 26px; }

/* ---------------- 代码区 ---------------- */
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.tabs-sm { margin: 0; width: auto; padding: 3px; gap: 2px; }
.tabs-sm .tab { padding: 6px 14px; font-size: 13.5px; }

.copy-btn {
  padding: 6px 13px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.copy-btn:hover { color: var(--text); border-color: var(--text-mute); }
.copy-btn.done { color: var(--accent); border-color: rgba(255, 122, 69, 0.35); }

.code-body {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #C9D4E2;
  background: transparent;
  border: none;
  margin: 0;
}
.code-body:not(.active) { display: none; }

/* ---------------- FAQ ----------------
   统一用原生 <details>，不再走「div + button + JS 加 .open」那套。
   两个理由：
   ① 全站曾经两套机制并存（首页 JS 版、支持页 details 版），维护时
      不知道该照哪个抄；
   ② 旧版 .faq-a 靠 max-height 做展开动画，答案一长就被 overflow:hidden
      静默裁掉（不报错、不滚动，用户以为答案就这么短）。原生 details
      没有这个上限，也无需 JS 即可展开。 */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 4px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  list-style: none;              /* <summary> 默认带三角标 */
  transition: color 0.2s var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:hover { color: var(--accent); }
.faq-x {
  position: relative;
  flex-shrink: 0;
  width: 15px; height: 15px;
}
.faq-x::before,
.faq-x::after {
  content: "";
  position: absolute;
  background: var(--text-mute);
  transition: transform 0.28s var(--ease), background 0.2s var(--ease);
}
.faq-x::before { width: 15px; height: 1.5px; top: 7px; left: 0; }
.faq-x::after  { width: 1.5px; height: 15px; left: 7px; top: 0; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::before,
.faq-item[open] .faq-x::after { background: var(--accent); }

.faq-a { padding: 0 4px 22px; }
.faq-a p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.78;
}

/* ---------------- 底部 CTA ---------------- */
.cta {
  padding: 88px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 122, 69, 0.05), transparent 65%);
}
.cta h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 620;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.cta p { color: var(--text-dim); margin-bottom: 30px; font-size: 16.5px; }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-slogan { font-size: 14.5px; color: var(--text-mute); margin-top: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-mute);
  margin-bottom: 9px;
  transition: color 0.18s var(--ease);
}
.footer-col a:hover { color: var(--text-dim); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px 26px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-mute);
}
.footer-bottom a:hover { color: var(--text-dim); }

/* ---------------- 响应式 ---------------- */
/* 栅格轨道一律写 minmax(0, 1fr) 而不是 1fr。
   裸 1fr 等价于 minmax(auto, 1fr)，auto 下限 = 内容 min-content，
   卡片里只要有一个断不开的长 token（URL / 代码），轨道就被顶宽、整页溢出。 */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  /* ---- 移动端导航：折叠为汉堡开关 ----
     纯 CSS 实现（checkbox + :checked ~），不依赖 JS。
     JS 挂掉时导航照样能用，只是少了"点空白 / Esc 收起"这点便利。 */
  .nav-toggle-input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 34px;
    padding: 0 9px;
    cursor: pointer;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.18s var(--ease);
  }
  .nav-toggle:hover { border-color: var(--text-mute); }
  .nav-toggle-bar {
    display: block;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  /* 展开态三横变叉，让"已打开"有明确反馈 */
  .nav-toggle-input:checked ~ .nav-actions .nav-toggle-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-actions .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-actions .nav-toggle-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  /* 键盘可达：焦点环画在看得见的 label 上，而不是那 1px 的隐藏输入框 */
  .nav-toggle-input:focus-visible ~ .nav-actions .nav-toggle {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  /* 折叠面板绝对定位挂在页头下方，不改变 .nav-inner 的 68px 高度 */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    /* 用抬升面而不是 --bg：与页面同色时整块菜单"糊"在背景里看不出边界 */
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: 13px 24px;
    font-size: 15.5px;
  }
  .nav-links a:hover { background: var(--surface); }

  .hero { padding: 72px 0 56px; }
  .sec { padding: 64px 0; }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* 超窄屏（≤360px，如初代 iPhone SE）页头收口。
   实测 320px 下 .nav-actions（登录 + 主 CTA + 汉堡）总宽 257px，
   品牌 59px + 左右内边距 24px 后右边界到 341px —— 比视口多 21px。
   后果不只是横向滚动：汉堡被挤出屏外，点它时坐标落在视口之外，
   于是"点了没反应"（test-nav-viewport [5b] 在 320px 报 openedViaClick=false）。
   这里收紧内边距与间距、并收起次要的「登录」（后台仍可经页脚「控制台」进入），
   保证品牌 + 主 CTA + 汉堡在 320px 内装得下、汉堡可点。 */
@media (max-width: 360px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-actions { gap: 6px; }
  /* 登录是页头里唯一的 .btn-ghost（主 CTA 是 .btn-primary）。
     按 class 收口，避免像 #btn-login 那样只有首页命中、其余 9 页漏掉。 */
  .nav-actions .btn-ghost { display: none; }
}

/* 尊重系统减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
