/* ==========================================================
   上海威瑞教育科技有限公司 官网 · 主样式
   风格：简约大气（hairline 分栏 / 2px 圆角 / 零阴影 / 纯色 / 零位移动效）
   零外部依赖：不引 CDN、不引外链字体、不引外链图片
   ========================================================== */

:root {
  /* 主色：深海蓝（沉稳、国际化） */
  --navy: #0A2540;
  --navy-700: #123A5E;
  --navy-600: #1B4A73;
  --blue: #1366E0;
  --blue-light: #E8F1FE;
  /* 强调色：克制的金（只用于短线、序号、时间轴节点） */
  --gold: #B99A5B;
  --teal: #10B5A5;
  --teal-light: #E5F7F5;
  --rose: #C25B6E;
  --rose-light: #FBEDEF;

  --ink: #0E2136;
  --muted: #5C7189;
  --muted-2: #8CA0B5;

  /* 表单的字号与文字色。
     抽成变量是因为「访客填的内容」和「字段标签」必须**完全一致** ——
     之前是标签 13.5px 灰、内容 15.5px 深墨、复选框 14.5px，
     三个值各写各的，改一处就漏另一处。
     现在标签与内容共用 --form-fs / --form-fg，
     语义上也更对：这是一次填写，不是「题目 + 答题」两种视觉层级。 */
  --form-fs: 14px;
  --form-fg: #5C7189;
  --form-fs-hint: 12.5px;
  --line: #E3EBF3;
  --line-soft: #EEF3F8;
  --bg-soft: #F4F8FD;
  --paper: #F7F8F6;

  --radius: 2px;
  --radius-lg: 2px;
  --container: 1200px;
  --header-h: 72px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* 英文页字体栈：拉丁字体优先，中文回退在后（英文页仍可能出现少量中文） */
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
             "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 英文页面：html[lang="en"] 切换字体栈与字距 */
/* 拉丁字母不需要 CJK 那么紧的字距，负字距反而会挤 */
html[lang="en"] body { font-family: var(--font-en); letter-spacing: 0; }
html[lang="en"] .hero-title,
html[lang="en"] .sec-head-title,
html[lang="en"] .page-head h1,
html[lang="en"] .tl-title,
html[lang="en"] .cta-band h2,
html[lang="en"] .split-text h2,
html[lang="en"] .value-title,
html[lang="en"] .grid-x-title,
html[lang="en"] .case-title,
html[lang="en"] .promise h4,
html[lang="en"] .school-name,
html[lang="en"] .team-name { letter-spacing: -.015em; }
html[lang="en"] .sec-head-desc,
html[lang="en"] .hero-sub,
html[lang="en"] .tab-intro,
html[lang="en"] .case-story-body p,
html[lang="en"] .tl-desc { max-width: 62ch; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 语义工具类（替代内联样式，保持内联残留为 0） ---------- */
.site-main { display: block; }
.note-sm { font-size: 13px; color: var(--muted-2); }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.mb-64 { margin-bottom: 64px; }
.mb-28 { margin-bottom: 28px; }
.full-span { grid-column: 1 / -1; }
.load-line { grid-column: 1 / -1; }

/* ================= 顶部信息条 ================= */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; gap: 20px;
}
.topbar-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-item svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.topbar-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar a:hover { color: #fff; }

/* ================= 导航 ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
/* LOGO 用客户提供的图片。宽高比写死（162:44），
   浏览器才能在图片加载前就占好位置，避免页头加载时抖动。 */
.brand { display: flex; align-items: center; flex: none; }
.brand-logo {
  display: block;
  height: 40px; width: auto;
  max-width: 190px;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 15px; color: var(--ink);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); font-weight: 500; }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }

/* 语言切换器：中 / EN */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  font-size: 13px; letter-spacing: .04em;
  overflow: hidden; flex: none;
}
.lang-switch a {
  padding: 8px 13px; color: var(--muted);
  transition: background .2s ease, color .2s ease;
  line-height: 1;
}
.lang-switch a:hover { color: var(--navy); background: var(--bg-soft); }
.lang-switch a.on { background: var(--navy); color: #fff; }
.lang-switch a.lang-zh, .lang-switch a.lang-en { min-width: 46px; text-align: center; }
.site-header .lang-switch { border-color: var(--line); }
.site-header .lang-switch a.on { background: var(--navy); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 17px; height: 1.5px; background: var(--navy);
  transition: transform .26s ease, opacity .2s ease;
}
.nav.open ~ .header-cta .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open ~ .header-cta .burger span:nth-child(2) { opacity: 0; }
.nav.open ~ .header-cta .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px;
  font-size: 15px; font-weight: 500; letter-spacing: .03em;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy); color: #fff;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn svg { width: 16px; height: 16px; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ================= 通用区块 ================= */
.section { padding: 120px 0; }
.section-tight { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark-2 { background: var(--navy-700); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.eyebrow-no {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .16em; color: var(--gold); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.eyebrow-no::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .55; }
.section-dark .eyebrow { color: rgba(255, 255, 255, .6); }

/* 非对称章节头：左标题右描述，首行基线对齐 —— 欧美编辑风的灵魂 */
.sec-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px 64px; align-items: baseline;
  padding-top: 26px;
  border-top: 1px solid var(--navy);
  margin-bottom: 64px;
}
.section-dark .sec-head, .section-paper .sec-head { border-top-color: currentColor; }
.sec-head-title { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; line-height: 1.16; text-wrap: balance; }
.sec-head-desc { color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 46ch; }
.section-dark .sec-head-desc { color: rgba(255, 255, 255, .68); }
.sec-head-tight { margin-bottom: 44px; padding-top: 20px; }
.sec-foot { margin-top: 56px; }

/* ================= Hero ================= */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 132px 0 116px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 520px at 78% 18%, rgba(19, 102, 224, .2), transparent 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 64px; align-items: center;
}
/* 标题两行是设计意图（<br>），要保证的是**第二行内部不折行**。
   第二行「一站式国际教育服务」是 9 个全角字，在 PingFang/雅黑这类
   CJK 字体里每个字advance 恒为 1em —— 所以 9 个字的宽度是确定的：
       9em × (1 + letter-spacing) = 9em × (1 - 0.045) = 8.595em
   之前字号写 clamp(38px, 5.4vw, 74px)，是跟着**视口**走的；
   但可用宽度由 hero 左栏决定，而容器被 --container: 1200px 钉死。
   两者在宽屏下脱钩 ⇒ 视口越宽、字越大、栏越窄 ⇒ 必然折行。
   （实测：1280px 起折行，1200px 及以下正常。）

   改法：把上限从 74px 降到 64px。
   64px 时需要 8.595 × 64 = 550px，最窄的两列栏宽（1200px 容器下 579px）
   仍有余量。不用 white-space:nowrap —— 那只会把「折行」变成
   「被容器裁掉」，是更糟的故障；折行至少还能读。 */
.hero-title {
  font-size: clamp(30px, 5.4vw, 64px);
  font-weight: 500; letter-spacing: -.045em; line-height: 1.06;
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: #fff; }
.hero-title .hl { color: var(--gold); }
.hero-sub {
  margin-top: 26px; font-size: 17px; line-height: 1.9;
  color: rgba(255, 255, 255, .72); max-width: 40ch;
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; }

/* ==========================================================
   Hero 球体动效（2026-10）
   ------------------------------------------------------------
   四层各动各的，互不干扰：
     .globe-grid        经纬网格 —— 90s 一圈，绕球心自转
     .globe-route-a/b   金色弧线 —— 虚线沿路径流动（方向相反）
     .globe-node        金色节点 —— 呼吸 + 错开延迟形成波次
     .globe-core        中心环   —— 慢速脉冲

   ⚠ 三个容易做错的地方
   --------------------------------------------------------
   1. **自转必须绕球心，不是绕 SVG 原点。**
      球心在 viewBox 里是 (210, 190)，SVG 左上角是 (0,0)。
      直接写 transform: rotate() 会绕左上角转，结果是球整个飞出去。
      → 必须显式给 transform-box: fill-box + transform-origin: center。
        对 <g> 而言 fill-box 就是它的自身包围盒；因为所有图形都以
        (210,190) 为中心对称，包围盒中心恰好等于球心。

   2. **只动 transform / opacity，不动几何属性。**
      动 r / cx / cy 会触发 SVG 重新布局与重绘，逐帧成本远高于
      compositor 层的 transform。90s 一圈时两者视觉上没差别，
      但前者会让低配机器掉帧。

   3. **旋转的是「网格」，不是节点。**
      节点若跟着网格转，闪烁节奏会随自转相位漂移，看起来杂乱。
      分成两层后，节点呼吸是独立的时间轴，视觉上更稳。

   动效强度刻意压得很低（90s / 4.4s / 3.2s）：hero 是客户第一印象，
   球体是配角，不该抢标题。文件头写的「零位移动效」指的是页面元素
   不做位移动画，这里是唯一例外，且严格限定在 hero 球体内。
   ========================================================== */

/* transform-box/origin 的前缀：Safari 15.4 以下认 -webkit- 前缀版本 */
.globe-grid {
  transform-box: fill-box;
  -webkit-transform-box: fill-box;
  transform-origin: center;
  -webkit-transform-origin: center;
  animation: globeSpin 90s linear infinite;
}
@keyframes globeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 弧线：虚线偏移动画做出「流动」感。
   两条方向相反（一个负值一个正值），避免整体同步导致的规律感。 */
.globe-route path {
  stroke-dasharray: 3 5;
  animation: globeFlow 6s linear infinite;
}
.globe-route-a { animation-direction: normal; }
.globe-route-b { animation-direction: reverse; }
@keyframes globeFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -32; }
}

/* 节点呼吸。scale 需以自身中心为原点 —— SVG 元素默认以 fill-box 中心为准，
   这里显式写出来是为了不依赖「默认行为恰好正确」。 */
.globe-node circle {
  transform-box: fill-box;
  -webkit-transform-box: fill-box;
  transform-origin: center;
  -webkit-transform-origin: center;
  animation: globePulse 4.4s ease-in-out infinite;
}
/* 六个节点错开 0.7s，形成从左上向右下扩散的波次 */
.globe-node circle:nth-child(1) { animation-delay: 0s; }
.globe-node circle:nth-child(2) { animation-delay: .7s; }
.globe-node circle:nth-child(3) { animation-delay: 1.4s; }
.globe-node circle:nth-child(4) { animation-delay: 2.1s; }
.globe-node circle:nth-child(5) { animation-delay: 2.8s; }
.globe-node circle:nth-child(6) { animation-delay: 3.5s; }
@keyframes globePulse {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.45); opacity: 1; }
}

/* 中心环与中心点同步脉冲，暗示「这里是枢纽」 */
.globe-core, .globe-core-dot {
  transform-box: fill-box;
  -webkit-transform-box: fill-box;
  transform-origin: center;
  -webkit-transform-origin: center;
  animation: globeCore 3.2s ease-in-out infinite;
}
@keyframes globeCore {
  0%, 100% { transform: scale(1);   opacity: .5; }
  50%      { transform: scale(1.12); opacity: .95; }
}

/* Hero 浮动数据卡 */
.float-cards { display: grid; gap: 1px; background: rgba(255, 255, 255, .12); margin-top: 34px; }
.float-card {
  background: var(--navy); padding: 20px 22px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.float-card .k { font-size: 13px; color: rgba(255, 255, 255, .58); letter-spacing: .04em; }
.float-card .v {
  font-size: 26px; font-weight: 500; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.float-card .v small { font-size: 13px; color: var(--gold); margin-left: 3px; font-weight: 500; }

/* 顶部滚动提示 */
.hero-note {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  font-size: 14px; color: rgba(255, 255, 255, .56);
}
.hero-note span { display: inline-flex; align-items: center; gap: 9px; }
.hero-note svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ================= 数据条（hairline，单行用竖线分隔） ================= */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-bar .x { padding: 42px 30px; border-left: 1px solid var(--line); }
.stat-bar .x:first-child { border-left: 0; padding-left: 0; }
.stat-bar .x:last-child { padding-right: 0; }
.stat-num {
  font-size: clamp(34px, 3.8vw, 50px); font-weight: 500; letter-spacing: -.04em;
  line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: .42em; color: var(--gold); margin-left: 4px; font-weight: 500; }
.stat-label { margin-top: 14px; font-size: 14px; color: var(--muted); }
.section-dark .stat-num { color: #fff; }
.section-dark .stat-bar .x { border-left-color: rgba(255, 255, 255, .16); }
.section-dark .stat-label { color: rgba(255, 255, 255, .6); }

/* ================= hairline 分栏网格（核心手法） ================= */
.grid-x { display: grid; gap: 52px 40px; }
.grid-x-2 { grid-template-columns: repeat(2, 1fr); }
.grid-x-3 { grid-template-columns: repeat(3, 1fr); }
.grid-x-4 { grid-template-columns: repeat(4, 1fr); }
.grid-x-item { border-top: 1px solid var(--line); padding: 32px 0 0; transition: border-color .25s ease; }
.grid-x-item:hover { border-top-color: var(--navy); }
.grid-x-no {
  font-size: 12px; letter-spacing: .16em; color: var(--gold);
  font-variant-numeric: tabular-nums; margin-bottom: 20px; display: block;
}
.grid-x-icon {
  width: 44px; height: 44px; margin-bottom: 24px;
  display: grid; place-items: center;
  background: var(--blue-light); color: var(--blue);
}
.section-dark .grid-x-icon { background: rgba(255, 255, 255, .08); color: #fff; }
.grid-x-icon svg { width: 22px; height: 22px; }
.grid-x-title { font-size: 19px; margin-bottom: 12px; letter-spacing: -.01em; }
.grid-x-desc { font-size: 15px; color: var(--muted); line-height: 1.85; }
.section-dark .grid-x-desc { color: rgba(255, 255, 255, .62); }
.section-dark .grid-x-item:hover { border-top-color: #fff; }
.section-dark .grid-x-item { border-top-color: rgba(255, 255, 255, .18); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 12.5px; letter-spacing: .04em;
  padding: 5px 12px; border: 1px solid var(--line); color: var(--muted);
  border-radius: var(--radius);
}
.section-dark .chip { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); }
.chip-meta { font-size: 13px; color: var(--gold); margin-top: 20px; letter-spacing: .04em; }

/* ================= 服务流程时间轴 ================= */
.tl { position: relative; margin-top: 8px; }
.tl::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line); transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 0 56px 60px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 60px 56px; }
.tl-item:nth-child(even) .tl-body { text-align: left; }
.tl-dot {
  position: absolute; top: 6px; right: -5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -5px; }
.tl-num {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  background: var(--navy); color: #fff;
  font-size: 13px; letter-spacing: .1em; font-variant-numeric: tabular-nums;
  border-radius: var(--radius);
}
.tl-num.year { width: auto; min-width: 0; }
.tl-title { font-size: 22px; margin: 20px 0 10px; letter-spacing: -.02em; }
.tl-sub { font-size: 14px; color: var(--gold); letter-spacing: .04em; margin-bottom: 14px; }
.tl-desc { font-size: 15px; color: var(--muted); line-height: 1.9; }
.tl-item:nth-child(even) .tl-body { text-align: left; }
.tl-item:nth-child(even) { text-align: left; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-item:nth-child(odd) .tl-body { text-align: right; }
.tl-dur { font-size: 13px; color: var(--muted-2); margin-top: 14px; letter-spacing: .04em; }
.tl-chips { justify-content: flex-end; }
.tl-item:nth-child(even) .tl-chips { justify-content: flex-start; }

/* 深色区时间轴 */
.section-dark .tl::before { background: rgba(255, 255, 255, .18); }
.section-dark .tl-dot { background: var(--navy); border-color: var(--gold); }
.section-dark .tl-num { background: rgba(255, 255, 255, .1); }
.section-dark .tl-desc { color: rgba(255, 255, 255, .62); }
.section-dark .tl-dur { color: rgba(255, 255, 255, .45); }
.section-dark .chip { border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .66); }

/* ================= 案例卡片 ================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 52px; }
.filter-bar button {
  background: none; border: 0; padding: 0 0 16px;
  font-size: 15px; color: var(--muted); position: relative;
  transition: color .2s ease;
}
.filter-bar button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .26s ease;
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.on { color: var(--navy); font-weight: 500; }
.filter-bar button.on::after { transform: scaleX(1); }
.filter-count { font-size: 13px; color: var(--muted-2); margin-left: auto; align-self: center; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-card {
  background: #fff; padding: 34px 30px 30px;
  display: flex; flex-direction: column;
  transition: background .25s ease;
}
.case-card:hover { background: var(--bg-soft); }
.case-cover {
  height: 4px; width: 44px; margin-bottom: 26px; background: var(--navy);
}
.case-card.accent-teal .case-cover { background: var(--teal); }
.case-card.accent-gold .case-cover { background: var(--gold); }
.case-card.accent-rose .case-cover { background: var(--rose); }
.case-tag {
  font-size: 12px; letter-spacing: .1em; color: var(--gold);
  margin-bottom: 14px; display: block;
}
.case-title { font-size: 19px; line-height: 1.45; margin-bottom: 12px; letter-spacing: -.015em; }
.case-summary {
  font-size: 14.5px; color: var(--muted); line-height: 1.85;
  flex: 1; margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.case-meta { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 9px; }
.case-meta-row { display: flex; gap: 12px; font-size: 13.5px; }
.case-meta-row .k { color: var(--muted-2); flex: none; width: 46px; }
.case-meta-row .v { color: var(--ink); min-width: 0; }
.case-outcome {
  margin-top: 18px; padding: 11px 14px;
  background: var(--blue-light); color: var(--blue);
  font-size: 13px; letter-spacing: .02em; border-radius: var(--radius);
}

/* 卡片现在是 <a>（客户 2026-10-24：点进去是独立详情页），
   所以要把链接的默认样式压掉，视觉上仍然是一张卡片。 */
a.case-card { color: inherit; text-decoration: none; }
.case-more {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted-2); letter-spacing: .02em;
  transition: color .2s ease, gap .2s ease;
}
.case-more svg { width: 14px; height: 14px; }
.case-card:hover .case-more { color: var(--navy); gap: 10px; }

/* ================= 案例详情页（case.html?id=N） =================
   版式参考客户给的《学生案例合集》：标题 / 一句话 / 背景表 / 录取卡片 / 正文。
   两栏：左正文（约 2/3）+ 右侧栏（速览 + 咨询入口）。
   侧栏用 sticky，长案例往下读时咨询入口始终在视野里。 */

.case-hero {
  background: var(--navy); color: #fff;
  padding: 84px 0 64px;
  position: relative; overflow: hidden;
}
.case-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 68%);
  pointer-events: none;
}
.case-hero .container { position: relative; z-index: 1; }
.case-hero .crumb { color: rgba(255, 255, 255, .5); margin-bottom: 26px; }
.case-hero .crumb a { color: rgba(255, 255, 255, .62); }
.case-hero .crumb a:hover { color: #fff; }
.case-hero .crumb svg { width: 13px; height: 13px; }
.case-hero .eyebrow { color: var(--gold); }
.case-hero h1 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 500; letter-spacing: -.03em; line-height: 1.32;
  margin: 16px 0 0; max-width: 24em; text-wrap: balance;
}
.case-hero-line {
  margin-top: 22px; max-width: 60ch;
  font-size: 15px; line-height: 1.95; color: rgba(255, 255, 255, .68);
}
.case-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.case-hero-tags .chip {
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .82);
  border-color: rgba(255, 255, 255, .14);
}

.case-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px; align-items: start;
}
/* grid 子项默认 min-width:auto，长英文校名/表格会把列撑破，这里显式放开 */
.case-main { min-width: 0; }
.case-block + .case-block { margin-top: 56px; }
.case-block-title {
  font-size: 20px; font-weight: 500; letter-spacing: -.02em;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.case-block-title::before {
  content: ""; width: 3px; height: 16px; background: var(--gold); flex: none;
}

/* 学生背景表：左列窄、底色浅，右列留足阅读宽度（客户原版就是这种两栏表） */
.case-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }

/* 背景表外框（客户 2026-10-25：背景区要「高级的边框」）：
   细线 + 大圆角 + 顶部一道渐变金线 + 轻柔外投影，整体像一张浮起的卡。
   overflow:hidden 让 th 的底色和表格四角都被圆角裁齐 ——
   直接给 table 加 border-radius 在 border-collapse:collapse 下会被浏览器忽略。 */
.case-table-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(10, 37, 64, .04),
    0 12px 32px -16px rgba(10, 37, 64, .14);
}
/* 顶部金线：两端淡出，避免生硬的一道横杠 */
.case-table-wrap::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, rgba(185,154,91,0) 0%, var(--gold) 50%, rgba(185,154,91,0) 100%);
  opacity: .55; pointer-events: none;
}
.case-table-wrap .case-table th,
.case-table-wrap .case-table td {
  text-align: left; vertical-align: top;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  line-height: 1.75;
}
.case-table-wrap .case-table th {
  width: 132px; font-weight: 400; color: var(--muted-2);
  background: var(--bg-soft); white-space: nowrap;
}
.case-table-wrap .case-table td { color: var(--ink); }
/* 最后一行不再画分隔线：外框本身就是收边 */
.case-table-wrap .case-table tr:last-child th,
.case-table-wrap .case-table tr:last-child td { border-bottom: 0; }

/* 录取院校卡片：一个 offer 一张卡，卡片内是「键：值」明细 */
.offer-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer-card { background: #fff; padding: 26px 28px; }
.offer-head { display: flex; gap: 16px; align-items: flex-start; }
.offer-ico {
  width: 40px; height: 40px; flex: none;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; border-radius: var(--radius);
}
.offer-ico svg { width: 19px; height: 19px; }
.offer-school { font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.offer-major { font-size: 13.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.offer-rows { margin-top: 18px; display: grid; gap: 10px; }
.offer-row { display: flex; gap: 14px; font-size: 14px; line-height: 1.7; }
.offer-row .k { flex: none; width: 76px; color: var(--muted-2); }
.offer-row .v { color: var(--ink); min-width: 0; }

/* 带录取通知书照片的卡片：左边院校信息，右边竖幅缩略图。
   用 grid 而不是 flex，是因为右栏要固定 232px（通知书普遍是 A4 竖幅），
   左栏则必须能压缩 —— minmax(0,1fr) 才能让长院校名折行而不是把卡片撑破。 */
.offer-card--shot { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 32px; align-items: start; }
.offer-main { min-width: 0; }
.offer-shot {
  display: block; width: 100%; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background: #fff; cursor: zoom-in; text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.offer-shot img { display: block; width: 100%; height: auto; }
.offer-shot-cap {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-top: 1px solid var(--line);
  background: #fbfbfa; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.offer-shot-cap svg { width: 13px; height: 13px; flex: none; }
.offer-shot:hover { border-color: var(--navy); box-shadow: 0 10px 26px rgba(15, 30, 55, .12); transform: translateY(-2px); }
.offer-shot:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* 通知书放大浮层（main.js · openShot）。层级压在页眉/浮层之上，z-index 取 9 字头避开导航 */
body.shot-locked { overflow: hidden; }
.shot-zoom {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 28px; background: rgba(10, 18, 30, .88);
  animation: shotFade .18s ease-out;
}
.shot-zoom img {
  width: auto; height: auto;
  max-width: min(92vw, 860px); max-height: 90vh;
  background: #fff; border-radius: 2px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .5);
}
.shot-zoom-close {
  position: absolute; top: 16px; right: 20px;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 26px; line-height: 1; font-family: inherit;
}
.shot-zoom-close:hover { background: rgba(255, 255, 255, .28); }
@keyframes shotFade { from { opacity: 0 } to { opacity: 1 } }

.case-story-body p { font-size: 15.5px; line-height: 2; color: var(--muted); }
.case-story-body p + p { margin-top: 18px; }

/* 侧栏 */
.case-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.case-side-card { border: 1px solid var(--line); padding: 26px 24px; background: #fff; }
.case-side-card h3 {
  font-size: 14px; letter-spacing: .08em; color: var(--muted-2);
  font-weight: 400; margin-bottom: 18px;
}
.case-side-meta { border-top: 0; padding-top: 0; margin-top: 0; grid-template-columns: 1fr; gap: 12px; }
.case-side-cta { background: var(--navy); color: #fff; padding: 28px 24px; }
.case-side-cta p { font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, .72); margin-bottom: 18px; }
.case-side-cta .btn { width: 100%; justify-content: center; }
.case-side-back {
  display: block; margin-top: 14px; text-align: center;
  font-size: 13px; color: rgba(255, 255, 255, .6); text-decoration: none;
}
.case-side-back:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1080px) {
  .case-layout { grid-template-columns: 1fr; gap: 44px; }
  .case-side { position: static; }
}

/* ================= 院校项目 Tab ================= */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.tabs button {
  background: none; border: 0; padding: 0 26px 18px 0;
  font-size: 15.5px; color: var(--muted); position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color .2s ease;
}
.tabs button:first-child { padding-left: 0; }
.tabs button::after {
  content: ""; position: absolute; left: 0; right: 26px; bottom: -1px;
  height: 2px; background: var(--navy); transform: scaleX(0);
  transform-origin: left; transition: transform .26s ease;
}
.tabs button:first-child::after { right: 0; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--navy); font-weight: 500; }
.tabs button.on::after { transform: scaleX(1); }
.tab-flag { font-size: 15px; }

.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeUp .5s cubic-bezier(.2, .7, .3, 1) both; }
.tab-intro {
  max-width: 62ch; font-size: 16px; line-height: 1.95; color: var(--muted);
  padding-bottom: 32px; margin-bottom: 44px; border-bottom: 1px solid var(--line);
}
.school-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.school-card { background: #fff; padding: 30px 30px 28px; display: flex; gap: 20px; transition: background .25s ease; }
.school-card:hover { background: var(--bg-soft); }
.school-icon {
  width: 42px; height: 42px; flex: none;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; border-radius: var(--radius);
}
.school-icon svg { width: 21px; height: 21px; }
.school-name { font-size: 17px; line-height: 1.45; margin-bottom: 6px; letter-spacing: -.01em; }
.school-en { font-size: 12.5px; color: var(--muted-2); letter-spacing: .02em; margin-bottom: 12px; }
.school-where { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.school-where .r { color: var(--gold); }
.school-note { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.school-majors { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

/* ================= 关于我们 ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-text h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -.03em; margin: 20px 0 24px; text-wrap: balance; }
.split-text p { font-size: 16px; line-height: 2; color: var(--muted); }
.split-figure { position: relative; }
.split-figure svg { width: 100%; height: auto; }

.value-list { display: grid; gap: 0; }
.value-item {
  display: grid; grid-template-columns: 68px 1fr;
  gap: 26px; padding: 28px 0; border-top: 1px solid var(--line);
  transition: padding-left .28s cubic-bezier(.4, 0, .2, 1);
}
.value-item:hover { padding-left: 14px; }
.value-item:last-child { border-bottom: 1px solid var(--line); }
.value-no { font-size: 13px; color: var(--gold); letter-spacing: .12em; font-variant-numeric: tabular-nums; padding-top: 5px; }
.value-title { font-size: 19px; margin-bottom: 10px; letter-spacing: -.01em; }
.value-desc { font-size: 15px; color: var(--muted); line-height: 1.85; }

/* 团队 */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-card { background: #fff; padding: 34px 30px; transition: background .25s ease; }
.team-card:hover { background: var(--bg-soft); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: 21px; font-weight: 500; margin-bottom: 22px;
}
.team-name { font-size: 18px; margin-bottom: 6px; }
.team-role { font-size: 13.5px; color: var(--gold); letter-spacing: .04em; margin-bottom: 14px; }
.team-bio { font-size: 14.5px; color: var(--muted); line-height: 1.85; }

/* ================= 合作资源墙 ================= */
.res-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.res-cell {
  background: #fff; padding: 30px 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 132px; transition: background .25s ease;
}
.res-cell:hover { background: var(--bg-soft); }
.res-ico { width: 30px; height: 30px; color: var(--navy); }
.res-ico svg { width: 100%; height: 100%; }
.res-name { font-size: 15.5px; font-weight: 500; }
.res-desc { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

/* ================= 办公地点 ================= */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.office-card { background: #fff; padding: 34px 30px 30px; display: flex; flex-direction: column; transition: background .25s ease; }
.office-card:hover { background: var(--bg-soft); }
.office-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.office-ico { width: 38px; height: 38px; flex: none; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; border-radius: var(--radius); }
.office-ico svg { width: 19px; height: 19px; }
.office-city { font-size: 18px; letter-spacing: -.01em; }
.office-city-en { font-size: 12px; color: var(--muted-2); letter-spacing: .08em; margin-top: 3px; }
.office-badge {
  margin-left: auto; font-size: 11px; letter-spacing: .1em;
  background: var(--navy); color: #fff; padding: 3px 9px; flex: none;
}
.office-rows { display: grid; gap: 14px; flex: 1; }
.office-row { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; font-size: 14px; line-height: 1.75; }
.office-row svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 4px; }
.office-row .lab { color: var(--muted-2); font-size: 12px; letter-spacing: .06em; display: block; margin-bottom: 2px; }
.office-row a:hover { color: var(--blue); }
.office-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.75; }

/* 英文内容缺失时的降级提示 —— 空白比中英混排更伤专业形象 */
.en-pending {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .04em;
  padding: 4px 11px; margin-top: 14px;
  background: var(--amber-light); color: #7A4E00;
  border-left: 2px solid var(--gold);
}

/* ================= 咨询 CTA 横条（全站统一） ================= */
.cta-band { background: var(--navy); color: #fff; padding: 92px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(820px 380px at 88% 20%, rgba(185, 154, 91, .16), transparent 60%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance; }
.cta-band p { margin-top: 18px; font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, .66); max-width: 48ch; }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.cta-band-points span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.cta-band-points svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ================= 表单（关于我们留言） ================= */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; }

.form-card { border: 1px solid var(--line); padding: 44px 46px; background: #fff; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-full { grid-column: 1 / -1; }
/* 标签与访客填的内容用同一套字号与颜色（见 --form-fs / --form-fg） */
.field label {
  font-size: var(--form-fs); color: var(--form-fg);
  display: flex; align-items: center; gap: 5px;
}
.field label .req { color: var(--rose); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 2px;
  font-family: inherit;
  font-size: var(--form-fs);
  color: var(--form-fg);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .22s ease;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--navy);
}
/* placeholder 比正文浅一档是必要的（提示未填写），
   但不能浅到读不清 —— 用 --muted-2 而不是更淡的灰 */
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C7189' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 15px;
  padding-right: 26px; cursor: pointer;
}
.field-err { font-size: var(--form-fs-hint); color: var(--rose); min-height: 0; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-bottom-color: var(--rose); }
.field.has-err .field-err { min-height: 18px; }
.field-label { font-size: var(--form-fs); color: var(--form-fg); display: flex; align-items: center; gap: 5px; }
.field-hint { font-size: var(--form-fs-hint); color: var(--muted-2); line-height: 1.7; }

/* ---------------- 单选 / 复选组 ----------------
   参考客户 2026-10 给的截图：白底细边框块、hover 变浅蓝、选中时边框变深蓝并显示对勾。
   实现上用 input + .choice-box 伪元素，不依赖 JS —— 键盘可达、屏幕阅读器可读。 */
/* 「意向国家」复选框组：两列网格，最后一项（还没想清楚）单独占左列 */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.choice {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer; user-select: none;
  font-size: var(--form-fs); color: var(--form-fg); line-height: 1.5;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.choice:hover { border-color: var(--navy-600); background: #F7FAFD; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }

/* 自绘勾选框。原生 checkbox 外观在 Windows/Mac 上不一致，
   而且 12px 的原生框在这个字号下几乎看不清 —— 自绘能保证两端一致。
   参考客户 2026-10 给的截图：白底细边框块，选中后深蓝底 + 白色对勾。 */
.choice-box {
  position: relative; flex: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--muted-2);
  background: #fff;
  transition: border-color .18s ease, background .18s ease;
}
.choice input[type="checkbox"] + .choice-box { border-radius: 2px; }

/* 选中：对勾 */
.choice input:checked + .choice-box { background: var(--navy); border-color: var(--navy); }
.choice input:checked + .choice-box::after {
  content: ''; position: absolute;
  left: 4.5px; top: 1px;
  width: 5px; height: 9.5px;
  border: solid #fff; border-width: 0 1.8px 1.8px 0;
  transform: rotate(42deg);
}
/* 选中态只加粗，不改字号与颜色 —— 否则「选中的那几项」又和其他项不一样了 */
.choice input:checked ~ .choice-text { font-weight: 600; }

/* 键盘可达：input 虽然视觉隐藏，但聚焦轮廓要画在可见元素上 */
.choice input:focus-visible + .choice-box {
  outline: 2px solid var(--navy); outline-offset: 2px;
}
.field.has-err .choice { border-color: rgba(175, 65, 84, .38); }

@media (max-width: 640px) {
  .choice-grid { grid-template-columns: 1fr; }
}

.form-foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
/* 隐私说明：属于「填写」的一部分，用同一套字号。
   颜色仍浅一档（它是辅助信息，不该和访客填的内容抢注意力）。 */
.form-privacy { font-size: var(--form-fs-hint); color: var(--muted-2); line-height: 1.7; }
.form-msg {
  margin-top: 20px; padding: 14px 18px; font-size: 14.5px; line-height: 1.7;
  border-left: 3px solid var(--teal); background: var(--teal-light); color: #0A6E64;
}
.form-msg.err { border-left-color: var(--rose); background: var(--rose-light); color: #8C2F3E; }
.form-msg.hide { display: none; }
.form-loading { position: relative; pointer-events: none; opacity: .6; }

/* 联系方式卡 */
.ccard { border: 1px solid var(--line); padding: 30px 30px; margin-bottom: 1px; background: #fff; transition: border-color .25s ease; }
.ccard:hover { border-color: var(--navy); }
.ccard-ico { width: 38px; height: 38px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; border-radius: var(--radius); }
.ccard-ico svg { width: 19px; height: 19px; }
.ccard-k { font-size: 12.5px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 8px; }
.ccard-v { font-size: 17px; font-weight: 500; line-height: 1.55; word-break: break-word; }
.ccard-v a:hover { color: var(--blue); }
.ccard-note { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-top: 6px; }
.ph {
  display: inline-block; padding: 1px 9px;
  border: 1px dashed var(--gold); color: var(--gold);
  font-size: .92em; border-radius: var(--radius);
  background: rgba(185, 154, 91, .06);
}

.promise-list { display: grid; gap: 0; margin-top: 8px; }
.promise {
  display: grid; grid-template-columns: 40px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.promise:last-child { border-bottom: 1px solid var(--line); }
.promise-ico { width: 40px; height: 40px; border: 1px solid var(--navy); color: var(--navy); display: grid; place-items: center; border-radius: var(--radius); }
.promise-ico svg { width: 19px; height: 19px; }
.promise h4 { font-size: 17px; margin-bottom: 8px; }
.promise p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ================= 页脚 ================= */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .6); padding: 84px 0 0; font-size: 14.5px; }
/* 页脚 4 栏：品牌 / 快速导航 / 服务体系 / 联系我们（社交平台 2026-10-13 移出页脚，
   改成右侧悬浮侧边栏 + 移动端悬浮按钮 —— 见文件后面的「社交平台悬浮组件」）。 */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px 40px; padding-bottom: 60px; }
.footer-brand .brand-logo { height: 34px; }
/* 反白版已经由脚本把像素刷白，这里只需保证不被高亮描边影响 */
.brand-logo-invert { background: transparent; }
.footer-brand-full {
  color: rgba(255, 255, 255, .62);
  font-size: 13px; line-height: 1.5;
  margin: 10px 0 0;
}
.footer-brand p { margin-top: 22px; line-height: 1.9; max-width: 34ch; font-size: 14px; }
.footer-col h5 { font-size: 13px; letter-spacing: .14em; color: #fff; margin: 0 0 22px; text-transform: uppercase; font-weight: 500; }
.footer-col li { margin-bottom: 13px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; line-height: 1.7; }
.footer-contact svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 4px; }

/* 巨型描边字标 */
.footer-giant {
  font-size: clamp(50px, 13vw, 176px);
  font-weight: 600;
  letter-spacing: -.05em; line-height: .74;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  padding-bottom: 6px;
}

.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.topbar-item a { color: inherit; text-decoration: none; }
.topbar-item a:hover { color: #fff; }

/* 页脚声明行：单行居中，竖线分隔
   ------------------------------------------------------------------------
   目标样式（传统页脚写法，2026-10 客户要求）：
     © 2018-2026 某某有限公司 版权所有 | 闽ICP备XXXXXXXX号 | 闽公网安备 XXXXXXXX号 | 技术支持：xxx

   实现要点：
   1. 用 flex + justify-content:center 做单行居中，不用 grid 三列 ——
      客户要的就是「一行读完」，三列布局会把备案甩到中间某个位置。
   2. 分隔竖线是真实的 .fl-sep 元素（而不是 border），
      这样中文/英文、备案有无各种组合下都不会出现「双竖线」或「开头竖线」。
   3. flex-wrap:wrap —— 窄屏放不下时自动折行，而不是把整行挤扁或溢出。
   4. 备案号不截断：nowrap 完整可读、可点。
*/
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* 顶线把「声明区」和上面的导航/联系区分开 */
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 26px;
  padding: 18px 0 16px;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .42);
  text-align: center;
}
.footer-legal .fl-cell { min-width: 0; }
/* 三段都不换行断开：宁可整段折到下一行，也不要半截 */
.footer-legal .fl-cell { white-space: nowrap; }

/* 三段的语义标识（单行布局下不再需要各自对齐，统一继承父级居中）。
   保留这三个类名，一是结构上标明「版权 / 备案 / 技术支持」的职责，
   二是自检脚本与冒烟测试靠它们断言顺序 —— 改版时别顺手删。 */
.footer-legal .fl-left,
.footer-legal .fl-mid,
.footer-legal .fl-right { display: inline-flex; align-items: center; }

/* 竖线分隔符：颜色再淡一点，避免和文字抢视线。
   display 被 JS 收敛为 none 时（相邻那段没有可见内容），
   flex 会自动把它收成 0 宽，不会留下多余空白。 */
.footer-legal .fl-sep {
  flex: 0 0 auto;
  margin: 0 12px;
  color: rgba(255, 255, 255, .22);
  white-space: nowrap;
  user-select: none;
}
.footer-legal .fl-sep[style*="display: none"] { display: none; }

.footer-legal a { color: rgba(255, 255, 255, .52); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.fl-right a { margin-left: 4px; }

/* 备案号与公安备案之间要有个间隔（两者都可能显示，也可能只显示一个） */
.footer-legal .fl-mid > * + * { margin-left: 10px; }

@media (max-width: 860px) {
  /* 窄屏：字号微调 + 竖线两侧留白收窄，尽量维持单行 */
  .footer-legal { font-size: 12px; }
  .footer-legal .fl-sep { margin: 0 7px; }
}

/* 备案微标：整站最底行、水平居中、按官方原始尺寸。
   ⚠️ 不要给 img 设 height/width —— 工信部对备案徽标的展示有原始尺寸要求，
   缩放会显得不正式，甚至被认为未按规定展示。 */
.footer-compliance {
  display: flex; align-items: center; justify-content: center;
  padding: 4px 0 26px;
  min-height: 24px;   /* 微标未加载时也保留位置，避免布局跳动 */
}
.footer-icp-text a { color: rgba(255, 255, 255, .6); }
.footer-icp-text a:hover { color: #fff; }
.footer-badge { display: inline-flex; align-items: center; line-height: 1; }
/* 不设尺寸：让官方徽标按原始大小显示 */
.footer-badge img { display: block; border: 0; }
.footer-police { color: rgba(255, 255, 255, .5); display: inline-flex; align-items: center; }
.footer-police:hover { color: #fff; }
/* 公安备案小国徽：客户 2026-10-24 要求「图标 + 备案文字」标准展示。
   国徽是按官方样式的等比小图，固定在 16px 高，和 12.5px 的备案文字视觉齐平；
   用 align-items:center 对齐而不是 vertical-align —— 后者在 flex 容器里不生效。
   ⚠️ 不要加圆角/边框/滤镜，国徽属于官方标识，改动会被认为不规范。 */
.footer-police-icon {
  width: 16px; height: 16px;
  display: block;
  margin-right: 6px;
  flex: none;
  object-fit: contain;
}
.footer-police-text { white-space: nowrap; }
/* 备案号暂时没配时的提示样式，避免上线后「一片空白」看不出漏了 */
.footer-icp-text:empty::after {
  content: 'ICP 备案号待补充';
  color: rgba(255, 255, 255, .3);
  border: 1px dashed rgba(255, 255, 255, .18);
  padding: 2px 8px;
}

/* ================= 内页页头 ================= */
.page-head { background: var(--navy); color: #fff; padding: 92px 0 84px; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 340px at 82% 12%, rgba(19, 102, 224, .18), transparent 62%);
}
.page-head .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.page-head h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; margin: 18px 0 0; text-wrap: balance; }
.page-head p { margin-top: 22px; font-size: 17px; line-height: 1.85; color: rgba(255, 255, 255, .66); max-width: 52ch; }
.page-num {
  font-size: clamp(90px, 12vw, 168px); font-weight: 600; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .15);
  font-variant-numeric: tabular-nums; letter-spacing: -.05em; opacity: .85;
}
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.crumb a:hover { color: #fff; }
.crumb svg { width: 12px; height: 12px; opacity: .6; }

/* 快捷跳转条 */
.jump-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: -34px; position: relative; z-index: 2; }
.jump-bar a { background: #fff; padding: 24px 26px; transition: background .25s ease; }
.jump-bar a:hover { background: var(--bg-soft); }
.jump-bar .jb-no { font-size: 12px; color: var(--gold); letter-spacing: .12em; display: block; margin-bottom: 9px; }
.jump-bar .jb-title { font-size: 15.5px; font-weight: 500; }
.jump-bar .jb-desc { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* ================= 加载 / 空态 / 提示 ================= */
.loading-line { height: 2px; background: var(--line); overflow: hidden; position: relative; }
.loading-line::after {
  content: ""; position: absolute; inset: 0; width: 34%;
  background: var(--gold); animation: slide 1.15s ease-in-out infinite;
}
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(390%); } }

.empty { padding: 68px 24px; text-align: center; color: var(--muted-2); font-size: 15px; }
.empty svg { width: 40px; height: 40px; margin-bottom: 16px; opacity: .4; }

.notice-strip {
  padding: 13px 20px; background: var(--blue-light); color: #0B4CA8;
  font-size: 13.5px; line-height: 1.7; display: flex; align-items: flex-start; gap: 10px;
  border-left: 3px solid var(--blue); margin-bottom: 32px;
}
.notice-strip svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.notice-strip.warn { background: #FFF6E5; color: #8A5A00; border-left-color: var(--gold); }

/* 回到顶部 */
.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 90;
  width: 44px; height: 44px;
  background: var(--navy); color: #fff; border: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  border-radius: var(--radius);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-700); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================
   社交平台悬浮组件（客户 2026-10-13 需求）
   客户原话：页脚恢复原布局；社交平台改成 PC 右侧固定悬浮侧边栏、
   随滚动常驻；移动端右下角悬浮按钮 + 展开式菜单；用通用/品牌原色图标；
   动画只要微交互（颜色渐变、轻微跳动），不要抢注意力。

   为什么放在悬浮层而不是页脚：社交入口要「随时能点」，
   页脚得滚到底才看得见 —— 悬浮组件在任何滚动位置都在。

   两套形态、一份数据：
     · .social-rail  固定侧边栏，图标竖排，悬停出名字提示（≥1280px）
     · .social-fab   右下角圆钮，点击展开清单（<1280px）
   清单与**顺序**都来自后台「站点设置 → 社交主页」（顺序键 settings.social_order）。

   ⚠️ 断点为什么是 1280px（不是随手取的数）：
      .container 是 border-box，最大 1200px（含左右各 32px 内边距）。
      视口 ≥1200px 时正文右边缘距视口 = (视口宽-1200)/2 + 32。
      侧边栏宽 ~46px，要留 20px 以上安全间距 → 需要 (W-1200)/2 + 32 ≥ 66 → W ≥ 1268。
      取整到 1280，既够宽又是常用断点。1280 以下不硬挤一条栏（会压到正文），
      改用右下角圆钮 —— 这也是客户要的移动端形态，顺理成章。
      （1200~1280 这一小段会用圆钮，是有意的：那个宽度塞侧边栏一定压字。）
   ========================================================== */
.social-rail,
.social-fab { --brand: var(--navy); }   /* 兜底：JS 会给每个条目写真实的品牌色 */

/* ---------- PC：右侧固定悬浮侧边栏 ---------- */
.social-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 80;   /* 低于 .site-header(100)：滚到页头时让页头盖住它，不会叠成两层 */
  display: none; /* 默认不出现；≥1280px 的媒体查询里才 display:flex */
  padding: 8px 0 8px 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
/* ⚠️ [hidden] 必须显式写。
   [hidden] 是 UA 样式表里的 display:none，而 .social-rail 在媒体查询里声明了
   display:flex —— 媒体查询不提升优先级，但作者样式一律压过 UA 样式，
   所以不写这条，「后台一个链接都没填」时右侧会永久挂着一个空的白条。
   （本项目栽过同类：只写 if 没写 else，计数归零后仍显示历史值。） */
.social-rail[hidden] { display: none; }

.social-rail-list {
  display: flex; flex-direction: column; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.social-rail-list li { margin: 0; }

/* ---------- 条目（两套形态共用同一份标记） ---------- */
.social-item {
  position: relative;                 /* 侧边栏里承载「名字提示」 */
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  color: var(--brand);                /* 品牌原色图标：常态就是各家的品牌色，一眼认得出 */
  text-decoration: none;
  /* 微交互只有两种：颜色渐变 + 极轻微的缩放。
     不做位移、不做阴影、不做循环动画 —— 与整站「纯色 / 零阴影 / 零位移动效」一致，
     也符合客户「谨慎使用动画，避免分散注意力」的要求。 */
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.social-rail-list .social-item:hover,
.social-rail-list .social-item:focus-visible {
  background: var(--brand); color: #fff; transform: scale(1.06);
}
.social-item:active { transform: scale(.94); }
.social-ico { display: grid; place-items: center; }
.social-ico svg { display: block; width: 20px; height: 20px; }

/* 侧边栏的名字提示：向左展开的小黑牌。
   图标排列本身就够紧凑，名字放常驻会把侧栏撑成一块板子，
   所以做成 hover / 键盘聚焦才出现的提示。
   ⚠️ 用 :focus 而不是 :focus-visible：后者只在「键盘导航」时匹配，
      用 Tab 走到的确会显示，但用脚本 focus() 或某些辅助设备聚焦时不会 ——
      提示该不该显示，取决于「控件被聚焦了没有」，不取决于用什么方式聚焦。 */
.social-rail-list .social-name {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  padding: 7px 10px; border-radius: 4px;
  background: var(--navy); color: #fff;
  font-size: 12.5px; line-height: 1; letter-spacing: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.social-rail-list .social-item:hover .social-name,
.social-rail-list .social-item:focus .social-name {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);
}

/* ---------- 移动端：右下角悬浮按钮 + 展开式菜单 ---------- */
.social-fab {
  position: fixed; right: 16px; bottom: 16px;
  z-index: 96;    /* 低于移动端导航抽屉(300)，高于 .to-top(90) */
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.social-fab[hidden] { display: none; }

.social-fab-btn {
  position: relative;
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color .22s ease, transform .22s ease;
}
.social-fab-btn:hover { background: var(--navy-700); transform: scale(1.05); }
.social-fab-btn:active { transform: scale(.94); }
.social-fab-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 图标切换：「分享」与「关闭」两个图标交叉淡入 + 各自转 90°，
   是这一处唯一的动效，幅度小、时间短，不会抢注意力。 */
.social-fab-ico {
  position: absolute; width: 22px; height: 22px;
  transition: opacity .22s ease, transform .26s ease;
}
.social-fab-ico-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.social-fab.is-open .social-fab-ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.social-fab.is-open .social-fab-ico-close { opacity: 1; transform: none; }

/* 展开面板。
   ⚠️ 收起状态**不能**用 [hidden]：display:none 会让过渡直接失效（元素不参与渲染）。
   这里用 opacity + visibility 表达收起 —— visibility:hidden 同时会把它从
   无障碍树里摘掉，所以键盘/读屏也不会读到一堆看不见的链接。

   ⚠️⚠️ 这个属性块**必须整块留在同一条规则里**（2026-10-13 踩过）：
   曾经有人（我）在中间插了一条 `::-webkit-scrollbar` 之后忘了把后面的声明
   接回去，`padding/background/opacity/visibility` 那一截就落在了**规则块外面**。
   CSS 解析器遇到顶层游离声明会直接丢弃到下一个 `}` 为止 ——
   不报错、lint 不吭声、DevTools 里连一条被划掉的行都看不到，
   表现就是**手机端一进页面分享清单就一直摊开着**（因为 opacity:0 / visibility:hidden
   这两个**收起态**的声明被吃掉了，`.is-open` 那条反而还在）。
   所以：伪元素/滚动条这类规则一律写在主规则**之后**。
   build/selfcheck.py 里有一条通用的「游离声明」检查盯着这件事。 */
.social-fab-panel {
  width: min(78vw, 232px);
  max-height: min(70vh, 460px);
  overflow-y: auto;                 /* 平台多、屏幕矮时不让面板顶出屏幕 */
  scrollbar-width: thin;            /* 细滚动条：面板里是图标行，默认粗滚动条很抢眼 */
  scrollbar-color: var(--line) transparent;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transform-origin: 100% 100%;
  transform: translateY(8px) scale(.96);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.social-fab-panel::-webkit-scrollbar { width: 4px; }
.social-fab-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.social-fab.is-open .social-fab-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.social-fab-title {
  margin: 0 0 8px; padding: 0 4px;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
}
.social-fab-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.social-fab-list li { margin: 0; }
.social-fab-list .social-item {
  width: 100%; height: auto; justify-content: flex-start; gap: 10px;
  padding: 9px 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px; line-height: 1.4;
}
.social-fab-list .social-ico { flex: none; color: var(--brand); transition: color .22s ease; }
.social-fab-list .social-item:hover,
.social-fab-list .social-item:focus-visible { background: var(--brand); color: #fff; }
.social-fab-list .social-item:hover .social-ico,
.social-fab-list .social-item:focus-visible .social-ico { color: #fff; }
/* 逐条上浮：错开 24ms/条，靠 JS 写进来的 --i 做延迟 ——
   不必为 11 个平台各写一条 nth-child 规则。 */
@keyframes fabItemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.social-fab.is-open .social-fab-list li {
  animation: fabItemIn .26s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 24ms);
}
/* 移动端面板里的浅灰备注小字（海外平台需境外网络环境） */
.social-note {
  margin: 10px 4px 0; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px; line-height: 1.6; color: var(--muted-2);
}

/* ================= 动画 ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .62s cubic-bezier(.2, .7, .3, 1) both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }
.reveal.d5 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { animation: none; opacity: 1; }
  * { transition-duration: .01ms !important; }

  /* ⚠ 这一段以前是缺的。
     上面只把 transition 和 .reveal 关掉了，**没管 animation** ——
     球体做的是无限循环的 animation（不是 transition），
     于是「开了减弱动效的用户」照样看到一个永不停歇的球在转。
     前庭功能障碍者遇到持续旋转会不适，这是无障碍硬要求，不能漏。
     animation: none 后元素回到 CSS 里声明的静态值
     （节点 opacity 各不相同，正是原设计的样子）。 */
  .globe-grid,
  .globe-route path,
  .globe-node circle,
  .globe-core,
  .globe-core-dot { animation: none !important; }

  /* 社交悬浮组件同理：上面那条只关 transition，管不到 animation。
     面板逐条上浮是 animation，不显式关掉的话，「开了减弱动效的用户」
     点开圆钮仍会看到一串条目往上蹿。 */
  .social-fab.is-open .social-fab-list li { animation: none !important; opacity: 1; }
}

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .res-wall { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .split { gap: 48px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 84px 0; }
  .section-tight { padding: 64px 0; }
  .topbar-left .hide-sm { display: none; }

  /* 移动端导航：抽屉式 */
  .burger { display: flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 38px);
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 22px;
    display: none;
    max-height: calc(100vh - var(--header-h) - 38px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav a::after { display: none; }
  .nav a.active { color: var(--blue); }

  .sec-head { grid-template-columns: 1fr; gap: 22px; align-items: start; margin-bottom: 44px; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar .x { padding: 28px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .stat-bar .x:nth-child(-n+2) { border-top: 0; }
  .stat-bar .x:nth-child(even) { border-left: 1px solid var(--line); }
  .stat-bar .x:first-child { padding-left: 20px; }
  .stat-bar .x:last-child { padding-right: 20px; }

  .grid-x-3, .grid-x-4 { grid-template-columns: repeat(2, 1fr); }
  .school-list { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cta-band-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band-actions { flex-direction: row; flex-wrap: wrap; }
  .page-head .container { grid-template-columns: 1fr; }
  .page-num { display: none; }

  /* 时间轴退化为左脊线单列 */
  .tl::before { left: 5px; transform: none; }
  .tl-item, .tl-item:nth-child(even) {
    width: 100%; margin-left: 0;
    padding: 0 0 46px 42px; text-align: left;
  }
  .tl-item:nth-child(even) .tl-body, .tl-item:nth-child(odd) .tl-body { text-align: left; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
  .tl-chips, .tl-item:nth-child(even) .tl-chips { justify-content: flex-start; }

  .jump-bar { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 32px 26px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .case-hero { padding: 56px 0 44px; }
  .case-table th { width: 100px; padding: 11px 12px; }
  .case-table td { padding: 11px 12px; }
  .case-table-wrap { border-radius: 12px; }
  .case-table-wrap .case-table th,
  .case-table-wrap .case-table td { padding: 11px 12px; }
  .offer-card { padding: 22px 20px; }
  .offer-card--shot { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .offer-shot { max-width: 300px; }
}

@media (max-width: 640px) {
  .hero { padding: 76px 0 68px; }
  .hero-sub { font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-note { font-size: 13px; }

  /* 窄屏单独压一档字号。
     320px 屏上 .container 左右各留 24px，栏宽只剩 272px；
     第二行 9 个全角字在 30px 下需要 8.595 × 30 = 258px —— 刚好塞得下，
     但余量只有 14px。降到 26px 后需要 223px，留 49px 余量，
     才扛得住不同设备实际渲染字宽的细微差异。
     （这里不用 vw：vw 按视口算，而窄屏栏宽由内边距决定，两者会脱钩。） */
  .hero-title { font-size: 26px; }

  .grid-x-2, .grid-x-3, .grid-x-4 { grid-template-columns: 1fr; gap: 40px; }
  .res-wall { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-giant { font-size: 15vw; }
  .brand-logo { height: 32px; }
  .page-head { padding: 60px 0 56px; }
  .cta-band { padding: 64px 0; }
  .cta-band-actions { flex-direction: column; }
  .cta-band-actions .btn { width: 100%; }
  .value-item { grid-template-columns: 1fr; gap: 12px; }
  .jump-bar { grid-template-columns: 1fr; margin-top: -24px; }
  .filter-bar { gap: 0 20px; }
  .filter-count { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- 悬浮组件的形态切换（两种屏幕各用一套，数据同一份） ---------- */
@media (min-width: 1280px) {
  .social-rail { display: flex; }   /* 够宽才出侧边栏（断点依据见组件注释） */
  .social-fab { display: none; }    /* 宽屏不再多给一个圆钮，避免两个入口打架 */
}
@media (max-width: 1279px) {
  /* 圆钮与「回到顶部」都落向右下角 —— 让它们并排：圆钮贴角，回到顶部左移。
     ⚠️ 只用 html.has-social-fab 命中：这个类由 JS 在**真的渲染出条目**时才加。
        不这么写的话，没配社交链接的站点会看到一个回到顶部按钮莫名其妙地左移 64px。
        （症状很轻，但属于「不填配置也变形」那类问题，不值得留。） */
  html.has-social-fab .to-top { right: 80px; bottom: 16px; }
}

@media print {
  .site-header, .topbar, .to-top, .cta-band, .burger,
  .social-rail, .social-fab { display: none !important; }
  body { color: #000; }
}
