/* ============================================================
   小满公考官网改版 · 方向 D「暖调蓝白米金」 · 完整首页样式
   ============================================================ */
:root {
  --cream: #f6efe1;
  --cream-2: #efe5d2;
  --cream-3: #f1e8d6;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #2a2c38;
  --sub: #6d6a63;
  --blue: #2750dd;
  --blue-ink: #1b2a66;
  --blue-deep: #14225a;
  --gold: #c0923a;
  --gold-2: #ddb35e;
  --gold-3: #ecca81;
  --line: rgba(27, 42, 102, 0.12);
  --line-2: rgba(27, 42, 102, 0.08);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1180px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 26px;
  /* 品牌元素：logo 原始几何 —— 金色双矩形条 X（下半）、全彩 M 标、描线 M 标 */
  --xm-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='169 272 174 87'%3E%3Cg fill='%23F7B000'%3E%3Cpolygon points='256,323 205,272 169,308 220,359'/%3E%3Cpolygon points='256,323 307,272 343,308 292,359'/%3E%3C/g%3E%3C/svg%3E");
  --xm-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='58 101 396 310'%3E%3Cg fill='%23F7B000'%3E%3Cpolygon points='256,323 205,272 169,308 220,359'/%3E%3Cpolygon points='256,323 307,272 343,308 292,359'/%3E%3C/g%3E%3Cg fill='%23202B8E'%3E%3Cpolygon points='58,101 128,101 200,169 149,220 129,200 129,411 58,411'/%3E%3Cpolygon points='454,101 382,101 312,169 363,220 382,201 382,411 454,411'/%3E%3Cpolygon points='218,187 256,225 294,187 343,236 256,323 169,236'/%3E%3C/g%3E%3C/svg%3E");
  --xm-line-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='58 101 396 310'%3E%3Cg fill='none' stroke='%23DDB35E' stroke-opacity='0.6' stroke-width='4'%3E%3Cpolygon points='256,323 205,272 169,308 220,359'/%3E%3Cpolygon points='256,323 307,272 343,308 292,359'/%3E%3C/g%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.22' stroke-width='4'%3E%3Cpolygon points='58,101 128,101 200,169 149,220 129,200 129,411 58,411'/%3E%3Cpolygon points='454,101 382,101 312,169 363,220 382,201 382,411 454,411'/%3E%3Cpolygon points='218,187 256,225 294,187 343,236 256,323 169,236'/%3E%3C/g%3E%3C/svg%3E");
}
/* 关闭触屏系统默认的蓝色点按高亮，按压反馈由下方 hover:none 规则统一提供 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
::selection { background: var(--gold-3); color: var(--blue-deep); }
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

/* 触屏点按反馈：统一轻压变暗。用 filter 而不是 transform/opacity——
   data-anim 入场动画 fill:both 会永久锁住后两者，:active 缩放在那些元素上不生效 */
@media (hover: none) {
  a:active, button:active { filter: brightness(0.94); }
}

/* motion */
html.anim-ready [data-anim] { opacity: 0; }
html.anim-ready [data-anim].in { animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.anim-ready [data-anim] { opacity: 1; } html.anim-ready [data-anim].in { animation: none; } .mascot, .ticker-track { animation: none !important; } }

/* eyebrow */
.ey { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; }
.ey::before { content: ""; width: 19px; height: 11px; background: var(--xm-x) center/contain no-repeat; }
.ey.on-dark { color: var(--gold-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; white-space: nowrap; transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.btn.pri { background: var(--blue); color: #fff; box-shadow: 0 16px 32px rgba(39,80,221,0.26); }
.btn.pri:hover { transform: translateY(-2px); }
.btn.pri::after { content: "→"; }
.btn.gho { border: 1px solid var(--line); background: rgba(255,255,255,0.6); color: var(--blue-ink); }
.btn.gho:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 16px 32px rgba(192,146,58,0.3); }
.btn.gold:hover { transform: translateY(-2px); }
.btn.gold::after { content: "→"; }
.btn.on-dark.gho { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn.on-dark.gho:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }

/* section shell */
.section { padding: clamp(78px, 11vh, 132px) 0; }
.section.alt { background: var(--cream-3); }
.section.dark { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--blue-ink), var(--blue-deep)); color: #fff; }
.section.dark .wrap { position: relative; z-index: 1; }
.dark-mark { position: absolute; right: -120px; bottom: -90px; width: clamp(320px, 34vw, 520px); height: auto; pointer-events: none; }
.dark-mark .bm-blue polygon { stroke: rgba(255, 255, 255, 0.07); }
.dark-mark .bm-gold polygon { stroke: rgba(221, 179, 94, 0.2); }
.head { max-width: 760px; margin-bottom: clamp(38px, 5vh, 58px); }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { margin: 16px 0 0; text-wrap: balance; font-size: clamp(30px, 4vw, 54px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--blue-ink); }
.section.dark .head h2 { color: #fff; }
.head h2 .gold { color: var(--gold); }
.section.dark .head h2 .gold { color: var(--gold-3); }
.head p { margin: 16px 0 0; color: var(--sub); font-size: 1.04rem; text-wrap: pretty; }
.section.dark .head p { color: rgba(255,255,255,0.74); }

/* ============ HEADER ============ */
.hd { position: fixed; inset: 14px clamp(14px,3vw,32px) auto; z-index: 60; height: 60px; display: flex; align-items: center; padding: 0 10px 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 253, 248, 0.8); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 10px 30px rgba(27, 42, 102, 0.07); transition: box-shadow 0.3s, background 0.3s, transform 0.4s var(--ease); }
.hd.scrolled { background: rgba(255, 253, 248, 0.95); box-shadow: 0 12px 34px rgba(27, 42, 102, 0.12); }
.hd .row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 14px; }
.hd .brand { display: flex; align-items: center; gap: 10px; }
.hd .brand img { width: 110px; }
.hd nav { display: flex; gap: 4px; }
.hd nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: 999px; white-space: nowrap; font-size: 0.88rem; font-weight: 600; color: #44485c; transition: background 0.2s, color 0.2s; }
.hd nav a:hover { background: rgba(27,42,102,0.06); color: var(--blue-ink); }
.hd nav a.accent { color: var(--gold); }
.hd nav a.accent:hover { color: #fff; background: var(--gold); }
.hd .cta { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; white-space: nowrap; font-size: 0.86rem; font-weight: 700; color: #fff; background: var(--blue); box-shadow: 0 10px 22px rgba(39,80,221,0.28); transition: transform 0.2s; }
.hd .cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; background: rgba(27,42,102,0.06); place-content: center; justify-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--blue-ink); transition: transform 0.3s, opacity 0.3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 55; display: grid; align-content: center; gap: 2px; padding: 12vh 32px 32px; background: linear-gradient(165deg, var(--blue-ink), var(--blue-deep)); opacity: 0; visibility: hidden; transform: translateY(-2%); transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s; }
body.nav-open .sheet { opacity: 1; visibility: visible; transform: none; }
.sheet a { display: flex; align-items: baseline; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 1.4rem; font-weight: 700; color: #fff; }
.sheet a span { font-size: 0.8rem; color: var(--gold-3); }
.sheet .scta { margin-top: 22px; justify-content: center; border-radius: 999px; background: var(--gold); color: #fff; padding: 15px; font-size: 1rem; font-weight: 800; }

/* ============ HERO ============ */
/* 首屏预算制：纵向尺寸全部走「视口高 × 系数 + clamp 上下限」，≥600px 高的视口进入即见完整
   hero（含 trust 数据条）；更矮的窗口触到可读性下限后退化为页内滚动。
   --svh 默认 1vh，支持 svh 的浏览器升级为 1svh（移动端地址栏展开时也按最小视口算才不被裁）。
   同时 min-height:100svh + grid 弹性行：内容到 clamp 上限后若还有富余视口，剩余空间均分给
   「文案→舞台」「舞台→数据条」两个间隙行，整页恰好填满，下一节永远从折叠线开始——
   既不被裁、也不上挤下空；文案区内部间隙在 ≥850px 高时由下方 media 增益补足。
   注意：内容行必须是纯 auto，写成 minmax(auto, 1.1fr) 会触发 Chromium 对「min-height 网格
   + 多 fr 行」的错误解析（间隙行被算成 ~300px，全线溢出），别改回去。 */
.hero { --svh: 1vh; position: relative; display: grid; grid-template-columns: 100%;
  grid-template-rows: auto minmax(clamp(12px, calc(var(--svh) * 2.2), 56px), 1fr) auto minmax(clamp(12px, calc(var(--svh) * 2), 40px), 1fr) auto;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(84px, calc(var(--svh) * 10.6), 124px) 0 clamp(8px, calc(var(--svh) * 1.2), 20px); overflow: hidden;
  background: radial-gradient(110% 70% at 50% -8%, rgba(221,179,94,0.16), transparent 56%), linear-gradient(180deg, var(--paper), var(--cream) 70%); }
@supports (height: 1svh) { .hero { --svh: 1svh; } }
.hero .brandmark { position: absolute; top: -48px; right: -110px; width: clamp(380px, 42vw, 640px); height: auto; pointer-events: none; }
.brandmark polygon, .brandmark polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.brandmark .bm-blue { stroke: rgba(27, 42, 102, 0.13); }
.brandmark .bm-gold { stroke: rgba(212, 162, 56, 0.5); }
/* 描边显形：加载时品牌标逐笔描出（动效不可用时默认完整可见兜底）；M 中峰为开放折线，与金 X 重合的下斜边交给金色（重合处取金） */
html.anim-ready .brandmark polygon, html.anim-ready .brandmark polyline { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: xm-bm-draw 0.8s ease both; }
html.anim-ready .brandmark .bm-blue polygon:nth-of-type(1) { animation-delay: 0.45s; }
html.anim-ready .brandmark .bm-blue polygon:nth-of-type(2) { animation-delay: 0.72s; }
html.anim-ready .brandmark .bm-blue polyline { animation-delay: 0.99s; }
html.anim-ready .brandmark .bm-gold polygon:nth-of-type(1) { animation-delay: 1.32s; }
html.anim-ready .brandmark .bm-gold polygon:nth-of-type(2) { animation-delay: 1.52s; }
@keyframes xm-bm-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html.anim-ready .brandmark polygon, html.anim-ready .brandmark polyline { stroke-dashoffset: 0 !important; animation: none !important; } }
.hero .dia { position: absolute; pointer-events: none; background: var(--xm-x) center/contain no-repeat; }
.hero .d1 { left: 7%; top: 168px; width: 34px; height: 20px; opacity: 0.85; }
.hero .d2 { left: 13%; top: 60%; width: 24px; height: 14px; opacity: 0.5; }
.hero .intro { position: relative; z-index: 2; grid-row: 1; max-width: 900px; margin-inline: auto; text-align: center; }
.hero .kick-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.66); white-space: nowrap; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em; color: var(--blue-ink); }
.hero .kick-pill .dot { width: 15px; height: 9px; background: var(--xm-x) center/contain no-repeat; }
.hero .kick-pill b { color: var(--gold); font-weight: 800; }
a.kick-pill { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
a.kick-pill:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(27,42,102,0.1); transform: translateY(-1px); }
.hero h1 { margin: clamp(10px, calc(var(--svh) * 1.5), 26px) 0 0; font-size: min(clamp(48px, 8.6vw, 116px), calc(var(--svh) * 10)); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; color: var(--blue-ink); }
.hero h1 .gold { color: var(--gold); }
.hero .sub { max-width: 38ch; margin: clamp(8px, calc(var(--svh) * 1.4), 24px) auto 0; font-size: min(clamp(17px, 1.5vw, 21px), max(15px, calc(var(--svh) * 2.4))); line-height: 1.55; color: var(--sub); }
.hero .sub b { color: var(--ink); font-weight: 600; }
.hero .acts { display: flex; gap: 13px; justify-content: center; margin-top: clamp(12px, calc(var(--svh) * 1.9), 32px); flex-wrap: wrap; }
.hero .acts .btn { height: min(54px, max(44px, calc(var(--svh) * 6.6))); }
/* 高瘦视口（大桌面、长屏手机）：文案区内部间隙同步放宽，避免「区块间很松、文案内很挤」。
   850 以下禁用——785~830 恰是双行舞台预算最紧的区间，加不起这几十像素 */
@media (min-height: 850px) {
  .hero h1 { margin-top: clamp(18px, calc(var(--svh) * 2.4), 34px); }
  .hero .sub { margin-top: clamp(16px, calc(var(--svh) * 2.1), 30px); }
  .hero .acts { margin-top: clamp(20px, calc(var(--svh) * 2.8), 40px); }
}

.hero .show { position: relative; z-index: 2; grid-row: 3; width: min(100% - 36px, 1240px); margin: 0 auto; }
.hero .show + .wrap { grid-row: 5; }
.hero .stage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: clamp(150px, calc(var(--svh) * 20), 236px) clamp(118px, calc(var(--svh) * 15.5), 196px); gap: clamp(10px, calc(var(--svh) * 1.4), 14px); }
.hero .tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 26px 64px rgba(27,42,102,0.16); }
.hero .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero .t1 { grid-column: 1 / 8; grid-row: 1 / 3; }
.hero .t1 img { object-position: center 36%; }
.hero .t1::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(16,26,74,0.5)); }
.hero .t2 { grid-column: 8 / 13; grid-row: 1; }
.hero .t3 { grid-column: 8 / 11; grid-row: 2; }
.hero .t4 { grid-column: 11 / 13; grid-row: 2; display: grid; place-content: center; gap: 6px; text-align: center; padding: 18px; background: linear-gradient(155deg, var(--blue-ink), var(--blue-deep)); color: #fff; }
.hero .t4::after { content: ""; position: absolute; right: -28px; bottom: -24px; width: 130px; height: 102px; background: var(--xm-line-dark) center/contain no-repeat; opacity: 0.7; pointer-events: none; }
.hero .t4 > * { position: relative; z-index: 1; }
.hero .t4 b { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 800; line-height: 1; }
.hero .t4 b em { font-style: normal; font-size: 0.55em; color: var(--gold-2); }
.hero .t4 span { font-size: 0.78rem; color: rgba(255,255,255,0.78); line-height: 1.4; }
.hero .tl { position: absolute; top: 13px; left: 13px; z-index: 3; padding: 6px 13px; border-radius: 999px; background: rgba(255,253,248,0.9); white-space: nowrap; font-size: 0.76rem; font-weight: 800; color: var(--blue-ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .chip { position: absolute; left: 18px; bottom: 18px; z-index: 3; padding: 13px 17px; border-radius: 16px; background: rgba(255,253,248,0.92); border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 18px 40px rgba(16,26,74,0.24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .chip .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; color: var(--gold); }
.hero .chip .tag::before { content: ""; width: 13px; height: 8px; background: var(--xm-x) center/contain no-repeat; }
.hero .chip .nm { margin-top: 6px; font-size: 1rem; font-weight: 800; color: var(--blue-ink); white-space: nowrap; }
.hero .chip .sc { margin-top: 3px; font-size: 1.35rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
.hero .chip .sc em { font-style: normal; font-size: 0.55em; color: var(--gold); font-weight: 700; }
.hero .stage .mascot { position: absolute; right: -10px; top: -44px; z-index: 4; width: clamp(96px, 10vw, 132px); filter: drop-shadow(0 16px 28px rgba(16,26,74,0.28)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero .trust { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 0 auto; padding: 0; }
.hero .trust div { text-align: center; padding: 6px 12px; }
.hero .trust div + div { border-left: 1px solid var(--line); }
.hero .trust div b { display: block; font-size: max(1.3rem, min(clamp(1.7rem, 2.4vw, 2.2rem), calc(var(--svh) * 3.8))); font-weight: 800; color: var(--blue-ink); line-height: 1; }
.hero .trust div b em { font-style: normal; font-size: 0.52em; color: var(--gold); }
.hero .trust div b span { display: inline; font-size: inherit; color: inherit; margin: 0; }
.hero .trust div > span { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--sub); }

/* 矮视口宽屏（1366×768 老笔记本、iPad 横屏、小窗口）：两行舞台塞不进一屏，压成单行电影条。
   阈值 784 = 双行舞台预算的收支平衡点（≈781）+ 缓冲，别下调，否则 745~780 高的窗口两头落空 */
@media (min-width: 761px) and (max-height: 784px) {
  .hero .stage { grid-template-rows: clamp(150px, calc(var(--svh) * 26), 224px); }
  .hero .t1 { grid-column: 1 / 6; grid-row: 1; }
  .hero .t2 { grid-column: 6 / 9; grid-row: 1; }
  .hero .t3 { grid-column: 9 / 11; grid-row: 1; }
  .hero .t4 { grid-column: 11 / 13; grid-row: 1; }
  .hero .t1::after { background: linear-gradient(180deg, transparent 38%, rgba(16,26,74,0.5)); }
  .hero .chip { padding: 9px 13px; }
  .hero .chip .nm { font-size: 0.88rem; }
  .hero .chip .sc { font-size: 1.15rem; }
  .hero .stage .mascot { width: clamp(84px, 9vw, 104px); top: -30px; }
}

/* 移动端：大图 + 三缩略一行，trust 紧凑两列，整段按 svh 预算压进一屏 */
@media (max-width: 760px) {
  /* 高度富余交给中间舞台照片(1fr)吸收，而不是塞进间隙或堆到头脚：
     高屏→照片自动长高变沉浸、intro 贴头部、trust 贴底部、缝隙固定小且均匀，头脚不留白；
     短屏→无富余、照片回到最小、整段正好铺满一屏不溢出。 */
  /* hero 改 flex 纵向：中间舞台(.show)flex-grow 吃掉富余高度→照片自动长高变沉浸；
     intro/trust 取自然高度紧贴头尾；缝隙固定小值。flex-basis:0 让富余精确=剩余空间，
     不被照片原始高度带跑（绕开 grid 1fr+min-height 拿不到剩余高度的循环撑高问题）。 */
  .hero { display: flex; flex-direction: column; gap: clamp(14px, calc(var(--svh) * 2.2), 22px); }
  .hero .intro, .hero .show + .wrap { flex: 0 0 auto; }
  .hero .show { flex: 1 1 0; min-height: 0; }
  .hero h1 { margin-top: clamp(12px, calc(var(--svh) * 2), 20px); }
  .hero .sub { margin-top: clamp(10px, calc(var(--svh) * 1.7), 16px); }
  .hero .acts { margin-top: clamp(14px, calc(var(--svh) * 2.3), 22px); }
  .hero h1 { font-size: max(38px, min(clamp(44px, 12.5vw, 60px), calc(var(--svh) * 7.2))); }
  .hero .sub { max-width: none; font-size: max(13.5px, min(15px, calc(var(--svh) * 2.2))); line-height: 1.5; }
  .hero .acts { gap: 10px; }
  .hero .acts .btn { height: 44px; padding: 0 16px; font-size: 0.86rem; }
  .hero .stage { grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(96px, 1.7fr) minmax(60px, 1fr); gap: 8px; height: 100%; }
  .hero .t1 { grid-column: 1 / 4; grid-row: 1; }
  .hero .t2 { grid-column: 1 / 2; grid-row: 2; }
  .hero .t3 { grid-column: 2 / 3; grid-row: 2; }
  .hero .t4 { grid-column: 3 / 4; grid-row: 2; padding: 8px; gap: 3px; }
  .hero .t4 b { font-size: 1.05rem; }
  .hero .t4 span { font-size: 0.62rem; line-height: 1.3; }
  .hero .tile { border-width: 3px; border-radius: 14px; }
  .hero .tl { top: 8px; left: 8px; font-size: 0.62rem; padding: 4px 9px; }
  .hero .chip { left: 10px; bottom: 10px; padding: 8px 11px; border-radius: 12px; }
  .hero .chip .tag { font-size: 0.56rem; }
  .hero .chip .nm { font-size: 0.8rem; margin-top: 3px; }
  .hero .chip .sc { font-size: 1rem; margin-top: 2px; }
  .hero .stage .mascot { width: 64px; top: -26px; right: -2px; }
  .hero .trust { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .hero .trust div { padding: 2px 8px; }
  .hero .trust div:nth-child(3) { border-left: none; }
  .hero .trust div b { font-size: max(1.1rem, min(1.4rem, calc(var(--svh) * 3.3))); }
  .hero .trust div > span { margin-top: 4px; font-size: 0.72rem; }
}

/* ============ BASE 住学一体化 ============ */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bc { padding: 28px 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.bc:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(27,42,102,0.1); }
.bc .k { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(150deg, #eef2ff, #e3e9ff); color: var(--blue); font-size: 1.3rem; font-weight: 800; }
.bc h3 { margin: 16px 0 8px; font-size: 1.22rem; font-weight: 700; color: var(--ink); }
.bc p { font-size: 0.92rem; color: var(--sub); }
.dlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.82rem; font-weight: 800; color: var(--blue); opacity: 0.75; transition: opacity 0.2s, gap 0.2s; }
.dlink::after { content: "→"; color: var(--gold); }
.bc:hover .dlink, .pillar:hover .dlink { opacity: 1; gap: 9px; }
.basewide { margin-top: 16px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.basewide .photo { border-radius: var(--r); overflow: hidden; min-height: 240px; }
.basewide .photo img { width: 100%; height: 100%; object-fit: cover; }
.basewide .meta { position: relative; overflow: hidden; display: grid; gap: 18px; align-content: center; padding: 34px; border-radius: var(--r); background: linear-gradient(155deg, var(--blue-ink), var(--blue-deep)); color: #fff; }
.basewide .meta::after { content: ""; position: absolute; right: -46px; bottom: -40px; width: 210px; height: 164px; background: var(--xm-line-dark) center/contain no-repeat; opacity: 0.6; pointer-events: none; }
.basewide .meta > * { position: relative; z-index: 1; }
/* 线稿描出：滚到此块时白描 M + 金描 X 逐笔描出，重合的下斜边由金描独占（替代静态 ::after 线稿） */
.basewide .meta::after { display: none; }
.basewide .meta .meta-line { position: absolute; right: -44px; bottom: -36px; width: 210px; height: 164px; z-index: 0; pointer-events: none; }
.meta-line .ld { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-width: 4; }
.meta-line .ld-m { stroke: #fff; stroke-opacity: 0.5; }
.meta-line .ld-x { stroke: var(--gold-3); stroke-opacity: 0.85; }
.meta-line .ld-legL, .meta-line .ld-legR { stroke-dasharray: 900; stroke-dashoffset: 900; }
.meta-line .ld-ctr { stroke-dasharray: 360; stroke-dashoffset: 360; }
.meta-line .ld-xL, .meta-line .ld-xR { stroke-dasharray: 260; stroke-dashoffset: 260; }
.basewide .meta.in .meta-line .ld-legL { animation: xm-ld-draw 0.6s ease 0.15s forwards; }
.basewide .meta.in .meta-line .ld-legR { animation: xm-ld-draw 0.6s ease 0.55s forwards; }
.basewide .meta.in .meta-line .ld-ctr { animation: xm-ld-draw 0.55s ease 1s forwards; }
.basewide .meta.in .meta-line .ld-xL { animation: xm-ld-draw 0.45s ease 1.5s forwards; }
.basewide .meta.in .meta-line .ld-xR { animation: xm-ld-draw 0.45s ease 1.83s forwards; }
@keyframes xm-ld-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .meta-line .ld { animation: none !important; stroke-dashoffset: 0 !important; } }
/* 线稿描出（其它深色块）：loopbar / 成绩汇总 / 锦鲤班 / 页脚，由 xm-shared.js 注入，滚到视口逐笔描出 */
.loopbar::after, .rsum::before, .prog.feat::after, .ft::after { display: none; }
.xm-line { pointer-events: none; }
.xm-line .ld { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-width: 4; }
.xm-line .ld-m { stroke: #fff; stroke-opacity: 0.5; }
.xm-line .ld-x { stroke: var(--gold-3); stroke-opacity: 0.85; }
.xm-line .ld-legL, .xm-line .ld-legR { stroke-dasharray: 900; stroke-dashoffset: 900; }
.xm-line .ld-ctr { stroke-dasharray: 360; stroke-dashoffset: 360; }
.xm-line .ld-xL, .xm-line .ld-xR { stroke-dasharray: 260; stroke-dashoffset: 260; }
.xm-line.in .ld-legL { animation: xm-ld-draw 0.6s ease 0.1s forwards; }
.xm-line.in .ld-legR { animation: xm-ld-draw 0.6s ease 0.5s forwards; }
.xm-line.in .ld-ctr { animation: xm-ld-draw 0.55s ease 0.95s forwards; }
.xm-line.in .ld-xL { animation: xm-ld-draw 0.45s ease 1.45s forwards; }
.xm-line.in .ld-xR { animation: xm-ld-draw 0.45s ease 1.78s forwards; }
@media (prefers-reduced-motion: reduce) { .xm-line .ld { animation: none !important; stroke-dashoffset: 0 !important; } }
.loopbar .xm-line { position: absolute; z-index: 0; right: 17%; top: 50%; transform: translateY(-50%); width: 190px; height: 148px; }
.rsum .xm-line { position: absolute; z-index: 0; right: -54px; top: -34px; width: 250px; height: 196px; }
.prog.feat .xm-line { position: absolute; z-index: 0; right: -50px; top: -40px; width: 220px; height: 172px; }
.ft .xm-line { position: absolute; z-index: 0; right: -70px; bottom: -80px; width: 360px; height: 282px; }
.basewide .meta .m, .basewide .meta hr { position: relative; z-index: 1; }
.basewide .meta .m b { display: block; font-size: clamp(30px,3.4vw,44px); font-weight: 800; line-height: 1; }
.basewide .meta .m b em { font-style: normal; font-size: 0.5em; color: var(--gold-2); }
.basewide .meta .m span { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.basewide .meta hr { border: none; border-top: 1px solid rgba(255,255,255,0.16); margin: 0; }

/* ============ RESULTS 上岸榜 ============ */
.rwrap { display: grid; grid-template-columns: 330px 1fr; gap: clamp(22px, 3vw, 44px); align-items: start; }
.rsum { position: sticky; top: 100px; padding: 34px 30px 30px; border-radius: var(--r-lg); background: linear-gradient(165deg, var(--blue-ink), var(--blue-deep)); color: #fff; box-shadow: 0 26px 60px rgba(27,42,102,0.2); overflow: hidden; }
.rsum::before { content: ""; position: absolute; right: -54px; top: -34px; width: 250px; height: 196px; background: var(--xm-line-dark) center/contain no-repeat; pointer-events: none; }
.rsum .big { position: relative; display: flex; align-items: baseline; font-size: clamp(64px, 6.6vw, 92px); font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; }
.rsum .big em { font-style: normal; font-size: 0.42em; color: var(--gold-2); }
.rsum .lbl { position: relative; margin: 12px 0 0; font-size: 0.95rem; color: rgba(255,255,255,0.82); }
.rsum .mini { position: relative; display: grid; gap: 0; margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.16); }
.rsum .mini div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.rsum .mini b { font-size: 1.4rem; font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.rsum .mini span { font-size: 0.86rem; color: rgba(255,255,255,0.78); text-align: right; }
.rsum .note { position: relative; margin: 18px 0 0; font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.rsum .btn { position: relative; width: 100%; margin-top: 22px; }
.rsum .rmore { position: relative; display: block; margin-top: 14px; text-align: center; font-size: 0.84rem; font-weight: 800; color: var(--gold-2); opacity: 0.9; }
.rsum .rmore:hover { opacity: 1; }
.rfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rfilter button { height: 42px; padding: 0 20px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper); color: var(--blue-ink); font-weight: 700; font-size: 0.9rem; transition: all 0.2s; }
.rfilter button:hover { border-color: var(--gold); }
.rfilter button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.rboard { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 14px 40px rgba(27,42,102,0.06); }
.rrow { display: grid; grid-template-columns: 44px 150px 1fr auto; align-items: center; gap: 14px; padding: 17px 24px; border-bottom: 1px solid var(--line-2); transition: background 0.2s; }
.rrow:last-child { border-bottom: none; }
.rrow:hover { background: #fff; }
.rrow .idx { font-size: 0.78rem; font-weight: 800; color: rgba(27,42,102,0.34); }
.rrow .who { display: flex; align-items: center; gap: 8px; }
.rrow .nm { font-size: 1.04rem; font-weight: 800; color: var(--blue-ink); white-space: nowrap; }
.rrow .bd { flex: 0 0 auto; white-space: nowrap; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em; padding: 3px 8px; border-radius: 999px; background: rgba(39,80,221,0.08); color: var(--blue); }
.rrow .post { font-size: 0.9rem; color: var(--sub); }
.rrow .sc { font-size: 0.92rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
.rrow.hl { background: linear-gradient(90deg, rgba(221,179,94,0.14), rgba(221,179,94,0.03) 55%, transparent); }
.rrow.hl .idx { color: var(--gold); }
.rrow.hl .sc { color: var(--gold); }
.rrow.hl .sc::before { content: "★ "; font-size: 0.82em; }

/* ============ TEACHERS ============ */
.tfeature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px,4vw,52px); align-items: center; margin-bottom: 48px; padding: clamp(20px,3vw,32px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(27,42,102,0.06); }
.tfeature .photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/4.6; background: linear-gradient(160deg, var(--cream), var(--cream-2)); }
.tfeature .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tfeature .photo::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 46px; height: 42px; border-radius: 12px; background: rgba(255,253,248,0.92) var(--xm-mark) center/26px no-repeat; box-shadow: 0 10px 24px rgba(27,42,102,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tfeature .role { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; color: var(--gold); }
.tfeature h3 { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 0; font-size: clamp(28px,3.2vw,42px); font-weight: 800; color: var(--blue-ink); }
.tfeature h3 .yr { flex: 0 0 auto; white-space: nowrap; font-size: 0.92rem; font-weight: 700; color: var(--gold); }
.tfeature .copy { margin-top: 16px; font-size: 1rem; line-height: 1.85; color: #4a4d5e; }
.tfeature .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tfeature .tags span { flex: 0 0 auto; white-space: nowrap; padding: 7px 15px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; color: var(--blue-ink); }
.tfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tfilter button { height: 40px; padding: 0 18px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 0.88rem; color: var(--blue-ink); transition: all 0.2s; }
.tfilter button:hover { border-color: var(--gold); }
.tfilter button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tcard { border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid var(--line-2); cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(27,42,102,0.1); border-color: var(--gold); }
.tcard .pic { position: relative; aspect-ratio: 1/1.1; background: linear-gradient(160deg, var(--cream), var(--cream-2)); overflow: hidden; }
.tcard .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tcard .pic .g { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,253,248,0.9); font-size: 0.68rem; font-weight: 800; color: var(--blue-ink); }
.tcard .nm { padding: 13px 16px 2px; font-weight: 800; font-size: 1.1rem; color: var(--blue-ink); }
.tcard .rl { padding: 0 16px 15px; font-size: 0.78rem; color: var(--sub); }

/* ============ SYSTEM 四维护航 ============ */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pillar { padding: 30px 26px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.pillar:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(27,42,102,0.1); }
.pillar .rn { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.1em; color: var(--gold); }
.pillar h3 { margin: 12px 0 10px; font-size: 1.35rem; font-weight: 800; color: var(--blue-ink); }
.pillar p { font-size: 0.9rem; color: var(--sub); line-height: 1.75; }

/* ============ PATH 学习路径 ============ */
.ladder { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.ladder .step { position: relative; padding: 26px 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.ladder .step:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(27,42,102,0.1); }
.ladder .step .ln { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.ladder .step h3 { margin: 12px 0 8px; font-size: 1.18rem; font-weight: 700; color: var(--blue-ink); }
.ladder .step p { font-size: 0.88rem; color: var(--sub); }
.ladder .step::after { content: ""; position: absolute; top: 38px; right: -9px; width: 8px; height: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); z-index: 1; }
.ladder .step:last-child::after { display: none; }
.loopbar { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 30px 34px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--blue), #1d3eb8); color: #fff; }
.loopbar::after { content: ""; position: absolute; right: -44px; top: -36px; width: 220px; height: 172px; background: var(--xm-line-dark) center/contain no-repeat; opacity: 0.7; pointer-events: none; }
.loopbar > * { position: relative; z-index: 1; }
.loopbar::after { content: ""; position: absolute; right: 17%; top: 50%; transform: translateY(-50%); width: 190px; height: 148px; background: var(--xm-line-dark) center/contain no-repeat; pointer-events: none; }
.loopbar > div, .loopbar > a { position: relative; z-index: 1; }
.loopbar h3 { font-size: clamp(20px,2.2vw,27px); font-weight: 800; }
.loopbar p { margin-top: 8px; color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ============ CAMPUS ============ */
.campus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cc { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; color: #fff; box-shadow: 0 20px 50px rgba(27,42,102,0.14); }
.cc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cc:hover img { transform: scale(1.05); }
.cc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,34,90,0.86)); }
.cc .b { position: relative; z-index: 1; padding: 30px; }
.cc .en { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-3); }
.cc .en::before { content: ""; width: 16px; height: 10px; background: var(--xm-x) center/contain no-repeat; }
.cc h3 { font-size: 1.7rem; font-weight: 800; margin: 5px 0 7px; }
.cc p { font-size: 0.9rem; color: rgba(255,255,255,0.84); }
.cc .lk { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 800; font-size: 0.88rem; color: var(--gold-3); }
.cc .lk::after { content: "→"; }

/* ============ PROGRAMS ============ */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prog { position: relative; display: flex; flex-direction: column; padding: 34px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-2); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.prog.feat { overflow: hidden; }
.prog.feat::after { content: ""; position: absolute; right: -50px; top: -40px; width: 220px; height: 172px; background: var(--xm-line-dark) center/contain no-repeat; pointer-events: none; }
.prog > * { position: relative; z-index: 1; }
.prog:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(27,42,102,0.1); }
.prog.feat { background: linear-gradient(160deg, var(--blue-ink), var(--blue-deep)); color: #fff; border-color: transparent; }
.prog .pl { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; color: var(--gold); }
.prog h3 { margin: 12px 0 10px; font-size: 1.9rem; font-weight: 800; color: var(--blue-ink); }
.prog.feat h3 { color: #fff; }
.prog > p { font-size: 0.95rem; color: var(--sub); }
.prog.feat > p { color: rgba(255,255,255,0.76); }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.pb { padding: 16px 18px; border-radius: var(--r-sm); background: var(--cream); border: 1px solid var(--line); }
.prog.feat .pb { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
.pb span { font-size: 0.72rem; font-weight: 700; color: var(--sub); }
.prog.feat .pb span { color: rgba(255,255,255,0.7); }
.pb strong { display: block; margin: 4px 0; font-size: 1.55rem; font-weight: 800; color: var(--blue-ink); }
.prog.feat .pb strong { color: var(--gold-3); }
.pb small { font-size: 0.72rem; color: var(--sub); }
.prog.feat .pb small { color: rgba(255,255,255,0.7); }
.prog .pcta { margin-top: 22px; }

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.fi { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.fi button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-size: 1.12rem; font-weight: 700; color: var(--blue-ink); text-align: left; }
.fi .ic { flex: none; width: 24px; height: 24px; position: relative; }
.fi .ic::before, .fi .ic::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--gold); }
.fi .ic::before { width: 14px; height: 2px; }
.fi .ic::after { width: 2px; height: 14px; transition: transform 0.3s; }
.fi.open .ic::after { transform: scaleY(0); }
.fi .ans { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.fi .ans p { padding: 0 26px 24px; color: var(--sub); line-height: 1.85; }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,60px); align-items: stretch; }
.contact .copy h2 { text-wrap: balance; font-size: clamp(30px,4vw,50px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; color: #fff; }
.contact .copy h2 .gold { color: var(--gold-3); }
.contact .copy p { margin-top: 18px; color: rgba(255,255,255,0.76); font-size: 1.04rem; max-width: 440px; }
.contact .phone { display: inline-block; margin-top: 24px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: 0.02em; color: var(--gold-3); white-space: nowrap; }
.contact .mascot-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
.contact .mascot-row img { width: 84px; }
.contact .mascot-row span { font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.contact .mascot-row b { color: var(--gold-3); }
.cform { display: grid; gap: 15px; padding: clamp(26px,3vw,38px); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 30px 70px rgba(8,12,38,0.28); }
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.cform label { display: grid; gap: 7px; font-size: 0.84rem; font-weight: 700; color: var(--blue-ink); }
.cform input, .cform select, .cform textarea { font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--cream); color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.cform textarea { resize: vertical; min-height: 92px; }
.cform .btn { width: 100%; }
.cform .note { font-size: 0.8rem; color: var(--sub); text-align: center; }
.cform .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ FOOTER ============ */
.ft { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue-ink), var(--blue-deep) 72%); color: rgba(243,246,255,0.62); padding: 72px 0 30px; }
.ft::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent 4%, var(--gold) 38%, var(--gold-3) 50%, var(--gold) 62%, transparent 96%); }
.ft::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 360px; height: 282px; background: var(--xm-line-dark) center/contain no-repeat; opacity: 0.55; pointer-events: none; }
.ft .wrap { position: relative; z-index: 1; }
.ft .main { display: grid; grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr; gap: clamp(26px, 4vw, 48px); }
.ft .brand > img { width: 148px; filter: brightness(0) invert(1); opacity: 0.96; }
.ft .slogan { margin-top: 18px; font-size: 1.18rem; font-weight: 800; letter-spacing: 0.01em; color: #fff; }
.ft .slogan i { font-style: normal; color: var(--gold-3); }
.ft .brand > p:not(.slogan) { margin-top: 10px; font-size: 0.88rem; line-height: 1.85; max-width: 300px; }
.ft-mascot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 14px 10px 10px; max-width: 280px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.ft-mascot img { width: 44px; height: auto; flex: 0 0 auto; filter: none; } /* 吉祥物保持彩色，不吃 logo 的反白滤镜 */
.ft-mascot b { display: block; font-size: 0.88rem; color: #fff; }
.ft-mascot small { display: block; font-size: 0.74rem; color: rgba(243,246,255,0.55); }
.ft .col h4 { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 800; color: #fff; margin-bottom: 18px; }
.ft .col h4::before { content: ""; width: 14px; height: 8px; background: var(--xm-x) center/contain no-repeat; }
.ft .col a, .ft .col p { display: block; font-size: 0.88rem; margin-bottom: 11px; transition: color 0.2s, transform 0.2s; }
.ft .col a:hover { color: var(--gold-3); transform: translateX(2px); }
.ft .col .phone { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.01em; color: var(--gold-3); }
.ft .col .phone:hover { color: #fff; }
.ft .addr { display: grid; gap: 2px; }
.ft .addr b { font-size: 0.82rem; font-weight: 800; color: rgba(255,255,255,0.92); }
.ft .legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.78rem; color: rgba(243,246,255,0.46); }
.ft .legal a { transition: color 0.2s; }
.ft .legal a:hover { color: var(--gold-3); }
.ft .legal-links { display: inline-flex; flex-wrap: wrap; gap: 18px; }
.ft .totop { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.8); font-size: 0.78rem; font-weight: 700; transition: all 0.2s; }
.ft .totop:hover { border-color: var(--gold-3); color: var(--gold-3); transform: translateY(-2px); }
.ft .totop b { color: var(--gold-3); }
@media (max-width: 980px) { .ft .main { grid-template-columns: 1fr 1fr; } }

/* sticky mobile cta */
.sticky { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 50; display: none; gap: 10px; }
.sticky a { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px; font-weight: 800; box-shadow: 0 14px 30px rgba(8,12,38,0.2); }
.sticky .pri { background: var(--blue); color: #fff; }
.sticky .gold { background: var(--gold); color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .rwrap { grid-template-columns: 1fr; }
  /* 取消吸顶但保持定位上下文：static 会让 ::before 装饰逃出卡片，把整页撑宽 54px（全站移动端右移被裁的根因） */
  .rsum { position: relative; top: auto; }
  .hd nav, .hd .cta { display: none; }
  .nav-toggle { display: grid; }
  /* hero 品牌线稿在窄屏锚定到数据条行（grid-row:5，hero 是 grid，绝对定位子项可锚定行）：
     数据条区域没有图片，线稿完整可见——上溢入照片区的部分被照片自然裁切，下溢被 hero 裁切，
     露出的正是金色双菱（线稿最有辨识度的中段）。顶部从此只留纯文字。
     不支持该特性的老浏览器回退到 hero 右上（仅纹理，无碍） */
  .hero .brandmark { grid-row: 5; grid-column: 1; width: 200px; top: -34px; left: auto; right: -54px; }
  .hero .brandmark .bm-blue { stroke: rgba(27, 42, 102, 0.1); }
  .hero .brandmark .bm-gold { stroke: rgba(212, 162, 56, 0.34); }
  /* 两颗金 X 贴舞台上沿：上浮量必须 < 间隙行下限 12px（360 宽时按钮还会溢出排版槽 2px，
     横向留白槽不可依赖），这样无论间隙被压到多小都不会碰到按钮 */
  .hero .d1 { grid-row: 3; grid-column: 1; left: 8px; top: -11px; width: 16px; height: 10px; opacity: 0.8; }
  .hero .d2 { grid-row: 3; grid-column: 1; left: 30px; top: -10px; width: 11px; height: 7px; opacity: 0.45; }
  .hero .grid { grid-template-columns: 1fr; gap: 44px; }
  .hv { max-width: 480px; order: -1; margin-inline: auto; width: 100%; }
  .cards4, .pillars, .tgrid { grid-template-columns: 1fr 1fr; }
  .basewide { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder .step::after { display: none; }
  .tfeature { grid-template-columns: 1fr; }
  .tfeature .photo { max-width: 300px; }
}
@media (max-width: 620px) {
  .rrow { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 15px 18px; }
  .rrow .idx { display: none; }
  .rrow .post { grid-column: 1 / -1; }
  .wrap { width: calc(100% - 36px); }
  .cards4, .pillars, .campus, .programs, .contact, .ladder { grid-template-columns: 1fr; }
  /* 页脚移动端压缩：品牌全宽 → 「了解小满/学习参考」两栏并排 → 联系校区全宽，收紧行距与上下留白 */
  .ft { padding: 46px 0 22px; }
  .ft .main { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .ft .brand, .ft .main > div:last-child { grid-column: 1 / -1; }
  .ft .col h4 { margin-bottom: 12px; }
  .ft .col a, .ft .col p { margin-bottom: 9px; }
  .ft .legal { margin-top: 26px; padding-top: 18px; }
  .ft .xm-line { width: 230px; height: 180px; right: -46px; bottom: -48px; }
  /* 师资网格保持双列：单列大图卡在手机上一屏不到一位老师，13 位要滑三屏 */
  .tgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard .nm { font-size: 0.95rem; }
  .tcard .rl { font-size: 0.74rem; }
  .cform .two { grid-template-columns: 1fr; }
  .sticky { display: flex; }
  /* 顶部胶囊：缩字号保住单行，超窄屏仍允许换行，避免长文案被裁 */
  .hero .kick-pill { white-space: normal; text-align: center; line-height: 1.5; padding: 8px 16px; font-size: 0.72rem; }
  /* 班型价格盒：窄屏堆叠，双列装不下 ¥26,800 的大字 */
  .prices { grid-template-columns: 1fr; }
  .prog { padding: 26px 22px; }
}
