/* 欣欣蛋糕 · 烘焙培训研习社 — 视觉与动效样式系统
   致敬并延续 Yapp Studio (yapp.studio) 的暗调浓缩咖啡底色、奶油白排版、树莓粉切边、固定视窗擦除、层叠卡片、横向画廊墙与底部剪辑时间轴语言 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --paper: #1A1714;
  --well: #100D0B;
  --surface: #241F1B;
  --surface-hi: #2E2823;
  --ink: #F6F2EC;
  --muted: #B6ACA0;
  --pink: #F0537A;
  --teal: #2BC6B5;
  --amber: #ECA94C;
  --rule: rgba(246, 242, 236, .13);
  --rule-strong: rgba(246, 242, 236, .24);
  --clip: #2C2622;
  --display: "Bricolage Grotesque", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --bar: 58px;
  --vh: 100vh;
  --gut: clamp(18px, 5.5vw, 88px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--well); color-scheme: dark; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.62 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
video, img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--well); }
h1, h2, h3, h4 { font-weight: inherit; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.d {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -.025em;
  line-height: 1.08;
}

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Yapp 标志性胶囊主按钮：悬停奶油色横切擦入 + 律动音柱圆点 ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 58px;
  padding: 0 10px 0 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--pink);
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  font: 700 17px/1 var(--display);
  letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 18px 44px -18px rgba(240, 83, 122, .72);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .48s cubic-bezier(.65, 0, .25, 1);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0); }
.btn:hover, .btn:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 22px 50px -18px rgba(246, 242, 236, .35);
}
.btn:active { transform: scale(.97); }

.btn-outline {
  background: rgba(36, 31, 27, .72);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 0 24px;
  box-shadow: none;
}
.btn-outline::before { background: var(--surface-hi); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--pink); box-shadow: 0 14px 34px -18px rgba(240, 83, 122, .45); }

.btn-ghost {
  background: rgba(246, 242, 236, .08);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0 22px;
  box-shadow: none;
}
.btn-ghost::before { background: rgba(246, 242, 236, .16); }

.btn.btn-sm { height: 44px; padding: 0 7px 0 19px; gap: 10px; font-size: 15px; }
.btn-ghost.btn-sm, .btn-outline.btn-sm { padding: 0 18px; }

.btn-meter {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
}
.btn-sm .btn-meter { width: 31px; height: 31px; }
.btn-meter b { width: 3px; height: 9px; border-radius: 2px; background: var(--pink); }
.btn-meter b:nth-child(2) { height: 16px; }
.btn-meter b:nth-child(3) { height: 12px; }
.btn-meter b:nth-child(4) { height: 6px; }
.btn-sm .btn-meter b:nth-child(2) { height: 13px; }
.btn:hover .btn-meter b, .btn:focus-visible .btn-meter b { animation: talk .68s ease-in-out infinite alternate; }
.btn:hover .btn-meter b:nth-child(2), .btn:focus-visible .btn-meter b:nth-child(2) { animation-delay: -.25s; }
.btn:hover .btn-meter b:nth-child(3), .btn:focus-visible .btn-meter b:nth-child(3) { animation-delay: -.5s; }
.btn:hover .btn-meter b:nth-child(4), .btn:focus-visible .btn-meter b:nth-child(4) { animation-delay: -.1s; }
@keyframes talk { from { transform: scaleY(.35); } to { transform: scaleY(1.18); } }

/* ---------- 顶部固定导航栏 ---------- */
.topbar {
  position: fixed;
  z-index: 60;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gut);
  border-bottom: 1px solid transparent;
  transition: opacity .7s, padding .35s, background-color .35s, border-color .35s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.topbar.away { transform: translateY(-102%); }
.topbar.solid {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: rgba(16, 13, 11, .86);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar:focus-within { transform: none; }

.topbar-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 800 21px/1 var(--display);
  letter-spacing: -.01em;
}
.topbar-name svg { width: 26px; height: 26px; color: var(--pink); flex: none; }
.topbar-tag {
  font: 600 12px/1 var(--body);
  font-style: normal;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(246, 242, 236, .07);
  border: 1px solid var(--rule);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(26, 23, 20, .72);
  border: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.topbar-nav a, .topbar-hub-link {
  padding: 7px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: 600 14px/1 var(--body);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.topbar-nav a:hover, .topbar-hub-link:hover { color: var(--ink); background: rgba(246, 242, 236, .08); }
.topbar-hub-link { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.topbar-hub-link b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: var(--pink); color: var(--paper); font-size: 11.5px; font-weight: 800;
}

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

/* ---------- 固定舞台与切边擦除系统 ---------- */
.scene { position: relative; z-index: var(--z, 1); }
.stage { position: sticky; top: 0; height: var(--vh); overflow: hidden; background: var(--paper); }
.scene.wipe { margin-top: calc(var(--vh) * -2); }
.scene.wipe > .stage { clip-path: inset(0 100% 0 0); pointer-events: none; }
.scene.wipe.is-in > .stage { pointer-events: auto; }

.cut-edge { position: absolute; z-index: 20; background: var(--pink); pointer-events: none; opacity: 0; }
.cut-edge.v { top: 0; bottom: 0; left: 0; width: 3px; box-shadow: 0 0 26px var(--pink); }
.cut-edge.h { left: 0; right: 0; top: 0; height: 3px; box-shadow: 0 0 26px var(--pink); }

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font: 700 12.5px/1 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pink);
}
.eyebrow-pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  font: 700 12px/1 var(--display);
  letter-spacing: .08em;
  background: rgba(240, 83, 122, .16);
  color: var(--pink);
  border: 1px solid rgba(240, 83, 122, .35);
}

/* ---------- 1. Hero：左侧排版主张 + 右侧竖屏导演视窗 ---------- */
.hero-stage {
  background:
    radial-gradient(circle at 78% 42%, rgba(240, 83, 122, .13), transparent 44%),
    radial-gradient(circle at 18% 80%, rgba(236, 169, 76, .08), transparent 40%),
    var(--paper);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--gut);
  top: 13.5vh;
  width: min(52vw, 720px);
  will-change: transform, opacity;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(36, 31, 27, .85);
  border: 1px solid var(--rule);
  font: 600 13.5px/1 var(--body);
  color: var(--muted);
  margin-bottom: 22px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

.hero-h {
  font-size: clamp(44px, 6.2vw, 102px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.028em;
}
.hero-sub {
  margin-top: 22px;
  max-width: 42ch;
  font-size: clamp(15.5px, 1.15vw, 18.5px);
  line-height: 1.65;
  color: var(--muted);
}

.hero-metrics {
  margin-top: 28px;
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  font-family: var(--display);
}
.hm-unit { display: inline-flex; flex-direction: column; align-items: flex-start; }
.hm-val {
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 800;
  font-stretch: 86%;
  line-height: 1;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.hm-unit small {
  margin-top: 7px;
  font: 600 12px/1 var(--body);
  color: var(--muted);
}
.hm-sep {
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1;
  color: rgba(246, 242, 236, .24);
  margin: 0 4px;
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-media {
  position: absolute;
  z-index: 1;
  right: calc(var(--gut) + 2vw);
  top: 10.5vh;
  height: calc(var(--vh) - var(--bar) - 15vh);
  aspect-ratio: 720 / 1280;
  will-change: transform;
}
.camera {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--well);
  box-shadow: 0 50px 100px -36px rgba(0, 0, 0, .85), 0 0 0 1px var(--rule-strong), 0 50px 130px -36px rgba(240, 83, 122, .25);
  transform-origin: 50% 50%;
  will-change: transform;
}
.camera-badge {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 13, 11, .76);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  font: 600 12px/1 var(--body);
  color: var(--ink);
  pointer-events: none;
}
.camera .is-pane { display: none; }
.is-flying .hero-copy > *, .is-flying .camera, .is-flying .topbar { opacity: 0; }

/* Scroll Cue 胶片播放头提示 */
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: var(--gut);
  bottom: calc(var(--bar) + 4.5vh);
  display: flex;
  align-items: flex-end;
  gap: 13px;
  will-change: opacity;
}
.cue-track { position: relative; width: 2px; height: 64px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.cue-track i {
  position: absolute; left: 0; top: 0; width: 2px; height: 28px; border-radius: 2px;
  background: linear-gradient(rgba(240, 83, 122, 0), var(--pink));
  box-shadow: 0 0 10px rgba(240, 83, 122, .8);
  animation: cue-drop 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes cue-drop { 0% { transform: translateY(-30px); } 70%, 100% { transform: translateY(68px); } }
.cue-text { display: flex; flex-direction: column; gap: 6px; }
.cue-text b { font: 600 13.5px/1 var(--body); color: var(--ink); }
.cue-tc { font: 700 13px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--pink); letter-spacing: .02em; }
.is-flying .scroll-cue { opacity: 0 !important; }
.rm .scroll-cue { display: none; }

/* ---------- 2. Split Wordmark + 悬浮倾斜作品墙 ---------- */
.split-stage { background: var(--well); }
.wall { position: absolute; inset: 0; will-change: transform; }
.wall .ph { position: absolute; left: var(--x); top: var(--y); height: var(--h); will-change: transform; }
.wall .ph .clip { height: 100%; transform: rotate(var(--r)); }
.wall .ph.is-pane .clip { aspect-ratio: 4 / 3; }
.wall-dim { position: absolute; inset: 0; background: radial-gradient(circle at 35% 65%, rgba(16,13,11,.92), rgba(16,13,11,.84)); opacity: 0; pointer-events: none; }

.works {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  bottom: calc(var(--bar) + 8vh);
  max-width: 58rem;
  opacity: 0;
}
.works h2 {
  font: 800 clamp(2.4rem, 5.8vw, 5.8rem)/1.08 var(--display);
  letter-spacing: -.02em;
}
.works p {
  margin-top: 1.2rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  color: #DDD5CA;
}
.works-actions { margin-top: 1.6rem; }

.door {
  position: absolute;
  left: 0; right: 0;
  height: 50.3%;
  display: flex;
  justify-content: center;
  background: var(--well);
  overflow: hidden;
  will-change: transform;
  pointer-events: none;
}
.door-top { top: 0; align-items: flex-end; }
.door-bot { bottom: 0; align-items: flex-start; }
.door span {
  display: block;
  font: 800 min(16vw, 28vh)/1.02 var(--display);
  letter-spacing: -.03em;
  white-space: nowrap;
  will-change: transform;
}
.door-top span { padding-bottom: .04em; transform-origin: 50% 100%; }
.door-bot span { color: var(--pink); padding-top: .04em; transform-origin: 50% 0; }
.scroll-hint {
  position: absolute;
  bottom: calc(var(--bar) + 3vh);
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .9rem;
  pointer-events: none;
}

/* 手机框与画板框容器 */
.clip {
  position: relative;
  background: var(--well);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.phone {
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  padding: 6px;
  background: #090807;
}
.phone video, .phone img { border-radius: 20px; }
.phone::after {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  width: 26%; height: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(9, 8, 7, .85);
}
.pane {
  border-radius: 18px;
  padding: 7px;
  background: var(--surface);
}
.pane video, .pane img { border-radius: 12px; }

/* ---------- 3. How it works：六步进阶固定视窗切换 ---------- */
.how-stage {
  --fy: calc(var(--vh) * .13);
  --fh: calc(var(--vh) - var(--bar) - var(--vh) * .21);
  --fw: calc(var(--fh) * .68);
  --fx: var(--gut);
  --cx: calc(var(--fx) + var(--fw) + 6vw);
  --kx: calc(var(--fx) + var(--fw) + 6vw);
}
.how-title {
  position: absolute;
  left: var(--fx);
  top: calc(var(--fy) - 38px);
  font: 500 15px/1.2 var(--body);
  color: var(--muted);
}
.how-title b { color: var(--pink); font-weight: 700; }

.ch-frame, .ch-media {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  width: var(--fw);
  height: var(--fh);
  border-radius: 18px;
  overflow: hidden;
}
.ch-frame {
  background: var(--well);
  box-shadow: 0 0 0 1px var(--rule-strong), 0 50px 100px -40px rgba(0, 0, 0, .78);
}
.ch-media { clip-path: inset(0 100% 0 0); }
.ch[data-i="0"] .ch-media { clip-path: none; }

.frame-edge {
  position: absolute;
  z-index: 8;
  top: var(--fy);
  left: var(--fx);
  height: var(--fh);
  width: 3px;
  background: var(--pink);
  opacity: 0;
  box-shadow: 0 0 24px var(--pink);
  will-change: transform;
}

.words {
  position: absolute;
  left: var(--cx);
  right: var(--gut);
  top: calc(var(--vh) * .11);
  height: calc(var(--vh) * .36);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.ch-word {
  position: absolute;
  left: 0;
  top: calc(var(--vh) * .05);
  font-size: clamp(54px, 7.6vw, 132px);
  font-weight: 800;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 242, 236, .3);
  will-change: transform;
}
.ch-num {
  display: block;
  margin-bottom: .18em;
  -webkit-text-stroke: 0;
  font: 700 clamp(14px, 1.2vw, 18px)/1 var(--display);
  color: var(--pink);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.ch-ask {
  position: absolute;
  z-index: 9;
  left: calc(var(--fx) + 18px);
  width: max-content;
  max-width: calc(var(--fw) - 36px);
  top: calc(var(--fy) + var(--fh) - 86px);
  padding: 12px 18px 13px;
  border-radius: 18px 18px 18px 4px;
  background: rgba(246, 242, 236, .96);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font: 700 clamp(14px, 1.1vw, 16.5px)/1.38 var(--body);
  box-shadow: 0 22px 46px -14px rgba(0, 0, 0, .85);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}
.ch-ask .r { color: transparent; }
.ch-ask .t::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1.05em;
  margin: 0 -2px -.16em 2px;
  background: var(--pink);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ch-copy {
  position: absolute;
  left: var(--kx);
  bottom: calc(var(--bar) + 8.5vh);
  width: min(44ch, 40vw);
  opacity: 0;
  will-change: transform, opacity, filter;
}
.ch-copy h3 {
  font: 800 clamp(22px, 2.1vw, 32px)/1.2 var(--display);
  margin-bottom: 12px;
}
.ch-copy p { color: var(--muted); font-size: 16px; }
.ch-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 83, 122, .45);
  background: rgba(240, 83, 122, .12);
  color: var(--ink);
  font: 600 13.5px/1 var(--body);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.ch-link:hover { background: var(--pink); color: var(--paper); transform: translateX(3px); }

/* ---------- 4. 六大实战课程层叠大卡片 + 快速选课条 ---------- */
.style {
  position: relative;
  z-index: 4;
  margin-top: calc(var(--vh) * -1);
  background: var(--paper);
  padding-top: 12vh;
}
.style > .cut-edge { opacity: 0; }

.style-head {
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: end;
}
.style-head h2 {
  font: 800 clamp(2.4rem, 5.6vw, 6.2rem)/1.08 var(--display);
  letter-spacing: -.02em;
}
.style-head-side p {
  color: var(--muted);
  font-size: clamp(.98rem, 1.1vw, 1.1rem);
  margin-bottom: 1.2rem;
}
.style-head-side strong { color: var(--ink); }
.bw { display: inline-block; will-change: transform, opacity, filter; }

/* 快速选课胶囊矩阵 */
.course-quick-bar {
  margin-top: 5vh;
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.cq-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, background .25s;
}
.cq-item:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  background: var(--surface-hi);
}
.cq-top { display: flex; align-items: center; justify-content: space-between; font: 700 11.5px/1 var(--display); color: var(--pink); }
.cq-item strong { font: 700 15.5px/1.25 var(--display); color: var(--ink); }
.cq-item small { font-size: 12.5px; color: var(--muted); }

/* 滚动层叠卡片 */
.stack { margin-top: 6vh; padding: 0 var(--gut); }
.card {
  position: sticky;
  top: calc(8.5vh + var(--i) * 1.15rem);
  height: calc(var(--vh) - var(--bar) - 11vh - 5.2rem);
  min-height: 460px;
  margin-bottom: 8.5vh;
  border-radius: 28px;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr);
  box-shadow: 0 36px 90px -36px rgba(0, 0, 0, .75);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.card.flip { grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); }
.card.flip .card-copy { order: 2; }

.card-copy {
  padding: clamp(26px, 3.8vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 0;
}
.card-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card-code {
  font: 800 12.5px/1 var(--display);
  letter-spacing: .08em;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(16, 13, 11, .14);
}
.card-badge { font: 600 13px/1 var(--body); opacity: .88; }

.card h3 {
  font: 800 clamp(1.9rem, 3.6vw, 3.6rem)/1.1 var(--display);
  letter-spacing: -.02em;
}
.card-desc {
  max-width: 46ch;
  font-size: clamp(.95rem, 1.08vw, 1.08rem);
  line-height: 1.58;
  opacity: .9;
}
.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-pills span {
  padding: 6px 12px;
  border-radius: 99px;
  font: 600 13px/1.1 var(--body);
  background: rgba(16, 13, 11, .12);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 13, 11, .14);
}
.card-duration { font: 700 14px/1.2 var(--display); }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--well);
  color: var(--ink);
  font: 700 15px/1 var(--display);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.card-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 32px -14px rgba(0,0,0,.55); }

.card-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5vh 3vw;
  min-height: 0;
}
.card-stage .clip {
  height: 100%;
  max-height: 62vh;
  transform: rotate(var(--tilt, -3deg));
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.card-stage .clip:hover { transform: rotate(0deg) scale(1.02); }
.card-stage .pane { aspect-ratio: 4 / 3; width: 100%; height: auto; max-height: 54vh; }

/* 六门课程专属色彩主题 */
.theme-pink { background: var(--pink); color: var(--well); }
.theme-pink .clip { --tilt: 3.5deg; }

.theme-cream { background: var(--ink); color: var(--paper); }
.theme-cream .clip { --tilt: -3.5deg; }

.theme-amber { background: var(--amber); color: var(--well); }
.theme-amber .clip { --tilt: 3deg; }

.theme-mocha {
  background: #28211D;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.theme-mocha .card-code, .theme-mocha .card-pills span { background: rgba(246, 242, 236, .1); }
.theme-mocha .card-foot { border-top-color: var(--rule); }
.theme-mocha .card-cta { background: var(--pink); color: var(--paper); }

.theme-teal { background: var(--teal); color: var(--well); }
.theme-teal .clip { --tilt: -4deg; }

.theme-berry {
  background: linear-gradient(135deg, #3A1928 0%, #1F181B 65%, #2D2018 100%);
  color: var(--ink);
  border: 1px solid rgba(240, 83, 122, .38);
}
.theme-berry .card-code { background: var(--pink); color: var(--paper); }
.theme-berry .card-pills span { background: rgba(246, 242, 236, .1); }
.theme-berry .card-foot { border-top-color: var(--rule); }
.theme-berry .card-cta { background: var(--pink); color: var(--paper); }

.note {
  position: absolute;
  z-index: 3;
  left: 6%;
  bottom: 10%;
  padding: .7rem 1.1rem;
  border-radius: 1.1rem 1.1rem 1.1rem .25rem;
  background: rgba(16, 13, 11, .9);
  color: var(--ink);
  border: 1px solid var(--rule);
  font: 600 13.5px/1.3 var(--body);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.7);
  pointer-events: none;
}
.note::before {
  content: "课堂实操贴士";
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 3px;
}

.stack-end { height: calc(var(--vh) * 1.9); }

/* ---------- 5. 横向实拍作品与课堂画廊墙 ---------- */
.tour-stage { background: var(--well); }
.track {
  display: flex;
  align-items: center;
  height: calc(100% - var(--bar));
  padding: 0 12vw 0 var(--gut);
  gap: 6.5vw;
  width: max-content;
  will-change: transform;
}
.slot { position: relative; display: flex; align-items: center; flex: none; }
.slot:nth-child(even) { align-self: flex-start; margin-top: calc(11vh + var(--off, 0vh)); }
.slot:nth-child(odd) { align-self: flex-end; margin-bottom: calc(11vh + var(--off, 0vh)); }
.slot-frame { flex: none; will-change: transform; cursor: pointer; }
.slot-frame .clip { transform: rotate(var(--rot, 0deg)); transition: border-color .25s; }
.slot-frame:hover .clip { border-color: var(--pink); }
.slot-frame .phone { height: 58vh; }
.slot-frame .pane.tall { height: 55vh; aspect-ratio: var(--ar); }
.slot-frame .pane.wide { width: min(36vw, calc(50vh * var(--arn))); aspect-ratio: var(--ar); }

.slot-text {
  position: relative;
  z-index: 2;
  width: min(28vw, 26rem);
  margin-left: 2.6vw;
  will-change: transform;
}
.slot-text h3 {
  font: 800 clamp(1.8rem, 3.2vw, 3.4rem)/1.12 var(--display);
  text-shadow: 0 2px 30px rgba(16, 13, 11, .75);
}
.slot-text p { margin-top: .85rem; max-width: 30ch; color: var(--muted); }
.slot-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.slot-chip {
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--rule-strong);
  background: rgba(36, 31, 27, .85);
  color: var(--ink);
  font: 600 12.5px/1 var(--body);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.slot-chip:hover { background: var(--pink); color: var(--paper); border-color: var(--pink); }

.slot.group, .slot.intro, .slot.coming { display: block; align-self: center; margin: 0; }
.slot.group h2 {
  font: 800 min(20vh, 12vw)/1 var(--display);
  letter-spacing: -.03em;
  color: var(--pink);
  white-space: nowrap;
}
.slot.intro { width: min(44vw, 38rem); }
.slot.intro h2 { font: 800 clamp(2.6rem, 5.8vw, 6.2rem)/1.06 var(--display); }
.slot.intro p { margin-top: 1.2rem; color: var(--muted); max-width: 36ch; }
.slot.coming { width: min(24vw, 20rem); }
.slot.coming p { font: 700 clamp(1.3rem, 1.9vw, 1.85rem)/1.35 var(--display); color: var(--teal); }

.tour-rail {
  position: absolute;
  left: var(--gut); right: var(--gut);
  bottom: calc(var(--bar) + 2.8vh);
  display: flex;
  gap: clamp(.8rem, 2.2vw, 2.2rem);
  font: 600 .92rem/1 var(--body);
  color: var(--muted);
  pointer-events: none;
}
.tour-rail span { transition: color .25s; }
.tour-rail span.on { color: var(--ink); }
.tour-bar {
  position: absolute;
  left: 0; bottom: var(--bar);
  height: 3px; width: 100%;
  background: var(--pink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- 6. 奶油白反差章节：六大硬核教学保障 ---------- */
.editor {
  position: relative;
  z-index: 6;
  background: var(--ink);
  color: var(--paper);
  padding: 15vh var(--gut) 17vh;
  will-change: clip-path;
  overflow-x: clip;
}
.editor-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2.2vw; }
.editor-h {
  grid-column: 1 / 8;
  grid-row: 1;
  font-size: clamp(46px, 7.6vw, 128px);
  font-weight: 800;
  will-change: transform;
}
.editor-clip {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  align-self: start;
  margin-top: 8vh;
  position: sticky;
  top: 13vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.editor-clip .media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 36px 72px -34px rgba(26, 23, 20, .55);
}
.editor-clip .media-sub { aspect-ratio: 16 / 11; background: #EAE3D9; padding: 10px; }
.editor-clip .media-sub img { border-radius: 12px; height: calc(100% - 28px); }
.editor-clip figcaption { padding-top: 8px; font-size: 13px; color: #5E554D; text-align: center; font-weight: 600; }

.points {
  grid-column: 1 / 8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5vh 3.6vw;
  margin-top: 8vh;
}
.points li:nth-child(even) { transform: translateY(5vh); }
.pt { will-change: opacity, filter, transform; }
.pt-num {
  display: inline-block;
  margin-bottom: 8px;
  font: 800 13px/1 var(--display);
  color: var(--pink);
  letter-spacing: .06em;
}
.points h3 { font: 800 clamp(19px, 1.55vw, 24px)/1.25 var(--display); margin-bottom: 8px; }
.points p { color: #554C44; font-size: 15.5px; line-height: 1.6; }

/* ---------- 7. 逐词点亮办学承诺 ---------- */
.private-stage { background: var(--well); }
.private-in {
  position: absolute;
  inset: 0 0 var(--bar);
  padding: 13vh var(--gut) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  align-content: start;
}
.private-in h2 {
  grid-column: 1 / 8;
  font: 700 15px/1 var(--display);
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: 3.5vh;
}
.privacy {
  grid-column: 1 / 12;
  font-size: clamp(26px, 3.6vw, 58px);
  font-weight: 800;
  line-height: 1.26;
}
.privacy .w { color: rgba(246, 242, 236, .15); transition: color .12s; }
.private-facts {
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 3vw;
  margin-top: 6vh;
  will-change: opacity, transform;
}
.private-facts h3 { font: 700 19px/1.2 var(--display); margin-bottom: 6px; }
.private-facts p { color: var(--muted); font-size: 15px; }
.private-facts .private-more { grid-column: 1 / -1; }
.text-link-btn {
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 16px/1.3 var(--display);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: .25em;
  cursor: pointer;
}
.text-link-btn:hover { color: var(--pink); }

/* ---------- 8. 常见问题 FAQ ---------- */
.faq {
  position: relative;
  z-index: 8;
  background: var(--paper);
  padding: 16vh var(--gut) 13vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}
.faq-side { grid-column: 1 / 5; align-self: start; position: sticky; top: 14vh; }
.faq-side h2 { font-size: clamp(42px, 5.2vw, 86px); font-weight: 800; }
.faq-side p { margin-top: 14px; color: var(--muted); max-width: 26ch; }
.faq-list { grid-column: 6 / 13; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  font: 700 clamp(17.5px, 1.45vw, 22px)/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 15px; height: 15px;
  transition: transform .3s;
  background:
    linear-gradient(var(--pink), var(--pink)) center / 15px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) center / 2px 15px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 58ch; line-height: 1.7; }

/* ---------- 9. 预约试听与报名咨询 ---------- */
.join {
  position: relative;
  z-index: 8;
  background: var(--paper);
  padding: 8vh var(--gut) 15vh;
  overflow-x: clip;
}
.join-h {
  font-size: clamp(44px, 8.2vw, 144px);
  font-weight: 800;
  line-height: 1.06;
}
.join-h span { display: block; will-change: transform; }
.join-h span:nth-child(2) { padding-left: 12vw; color: var(--pink); }
.join-h span:nth-child(3) { padding-left: 4vw; }

.join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 4vw;
  margin-top: 7vh;
  align-items: start;
}
.join-lead { font-size: 19px; color: var(--ink); font-weight: 600; max-width: 32ch; }
.contact-cards { margin-top: 26px; display: grid; gap: 16px; }
.contact-item {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-item small { color: var(--muted); font-size: 13px; }
.contact-item strong { font-size: 17px; color: var(--ink); }
.contact-item span { font-size: 13.5px; color: var(--muted); }
.phone-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 83, 122, .45);
  background: rgba(240, 83, 122, .12);
  color: var(--ink);
  font: 700 16px/1 var(--display);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.copy-pill span {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--pink);
  color: var(--paper);
}
.copy-pill:hover { background: rgba(240, 83, 122, .24); transform: translateY(-2px); }

.enroll-box {
  padding: clamp(22px, 3vw, 38px);
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  display: grid;
  gap: 18px;
}
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font: 600 13.5px/1 var(--body); color: var(--muted); }
.field input, .field select {
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font: 500 15.5px var(--body);
  transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--pink); }
.enroll-submit-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-note { font-size: 15px; color: var(--teal); font-weight: 600; }
.form-note.is-error { color: var(--pink); }
.form-note:empty { display: none; }
.fine { font-size: 13.5px; color: var(--muted); }

/* ---------- 10. 速度感应倾斜页脚 ---------- */
.footer { position: relative; z-index: 8; background: var(--well); padding: 6vh 0 0; overflow: hidden; }
.loop { white-space: nowrap; }
.loop-row {
  display: inline-flex;
  align-items: center;
  gap: .28em;
  will-change: transform;
  font: 800 clamp(4rem, 13vw, 15rem)/1 var(--display);
  letter-spacing: -.03em;
}
.loop-row span:nth-of-type(even) { color: var(--pink); }
.loop-row svg {
  color: var(--pink);
  width: .42em;
  height: .42em;
  flex: none;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 5vh;
  padding: 24px var(--gut) calc(var(--bar) + 24px);
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--rule);
}
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.foot a, .foot-btn {
  border: 0; background: none; color: var(--muted); text-decoration: none; cursor: pointer;
}
.foot a:hover, .foot-btn:hover { color: var(--ink); }

/* ---------- 底部固定剪辑时间轴 ---------- */
.tl {
  position: fixed;
  z-index: 50;
  left: 0; right: 0; bottom: 0;
  height: var(--bar);
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 0 16px 0 14px;
  background: rgba(16, 13, 11, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s;
}
.tl:not(.on) { visibility: hidden; }
.tl.on { transform: none; transition-delay: 0s; }
.tl-tc {
  flex: none;
  align-self: center;
  width: 108px;
  font: 700 14.5px/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tl-lanes { position: relative; flex: 1; min-width: 0; }
.tl-clips { position: absolute; left: 0; right: 0; top: 9px; height: 22px; }
.tl-clip {
  position: absolute;
  top: 0; height: 100%;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: var(--clip);
  box-shadow: inset 0 0 0 1px rgba(246, 242, 236, .1);
  color: var(--muted);
  font: 600 11.5px/22px var(--body);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.tl-clip:hover { color: var(--ink); }
.tl-clip.on { color: var(--ink); background: #3D332D; box-shadow: inset 0 0 0 1px rgba(246, 242, 236, .34); }
.tl-tick { position: absolute; top: 4px; bottom: 4px; width: 1px; background: rgba(246, 242, 236, .22); pointer-events: none; }
.tl-wave { position: absolute; left: 0; top: 35px; width: 100%; height: 13px; }
.tl-head { position: absolute; top: 2px; bottom: 4px; left: 0; width: 0; pointer-events: none; will-change: transform; }
.tl-head::before { content: ""; position: absolute; left: -1px; top: 4px; bottom: 0; width: 2px; background: var(--pink); }
.tl-head::after { content: ""; position: absolute; left: -6px; top: 0; width: 12px; height: 9px; border-radius: 3px 3px 6px 6px; background: var(--pink); }

.tl-hub-btn {
  flex: none;
  align-self: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(240, 83, 122, .5);
  background: rgba(240, 83, 122, .16);
  color: var(--ink);
  font: 700 12.5px/1 var(--display);
  cursor: pointer;
}
.tl-hub-btn:hover { background: var(--pink); color: var(--paper); }

/* ---------- 全屏课程中心与标准课纲抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, .82);
  backdrop-filter: blur(12px);
}
.drawer-panel {
  position: relative;
  z-index: 1;
  width: min(1380px, 96vw);
  height: 93vh;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
  box-shadow: 0 -30px 90px rgba(0, 0, 0, .85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drawer-up .38s cubic-bezier(.2, .8, .2, 1);
}
@keyframes drawer-up { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(16, 13, 11, .92);
  border-bottom: 1px solid var(--rule);
}
.drawer-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.drawer-tabs::-webkit-scrollbar { display: none; }
.d-tab {
  flex: none;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font: 600 13.5px/1 var(--body);
  cursor: pointer;
  transition: all .2s;
}
.d-tab:hover { color: var(--ink); border-color: var(--rule-strong); }
.d-tab.active {
  background: var(--pink);
  color: var(--paper);
  border-color: var(--pink);
  font-weight: 700;
}

.drawer-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 13.5px/1 var(--body);
  cursor: pointer;
}
.drawer-close i { font-style: normal; color: var(--pink); font-weight: 800; }
.drawer-close:hover { border-color: var(--pink); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(22px, 3.5vw, 48px);
}

/* 总览模式 (Hub Overview) */
.hub-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.hub-intro h2 { font: 800 clamp(28px, 3.6vw, 48px)/1.12 var(--display); }
.hub-intro p { margin-top: 10px; color: var(--muted); max-width: 58ch; }

.hub-guide {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.guide-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(240, 83, 122, .08);
  border: 1px solid rgba(240, 83, 122, .24);
}
.guide-card strong { display: block; font: 700 15px/1.3 var(--display); color: var(--pink); margin-bottom: 5px; }
.guide-card p { font-size: 13.5px; color: var(--ink); opacity: .9; }

.hub-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.hub-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s;
}
.hub-card:hover { transform: translateY(-5px); border-color: var(--pink); }
.hub-card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; cursor: pointer; }
.hub-card-media span {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 11px; border-radius: 99px;
  background: rgba(16, 13, 11, .82); color: var(--pink);
  font: 800 11.5px/1 var(--display); border: 1px solid var(--rule);
}
.hub-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.hub-card h3 { font: 800 21px/1.22 var(--display); margin-bottom: 6px; }
.hub-card-sub { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-stages { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13px; color: #DDD5CA; }
.hub-stages li::before { content: "• "; color: var(--pink); font-weight: 800; }
.hub-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-card-foot small { color: var(--teal); font-weight: 600; font-size: 12.5px; }
.hub-open-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--pink);
  color: var(--paper);
  font: 700 13.5px/1 var(--display);
  cursor: pointer;
}
.hub-open-btn:hover { background: var(--ink); }

/* 单门课程深度课纲视图 */
.cd-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.cd-kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cd-code-pill { padding: 6px 12px; border-radius: 99px; background: var(--pink); color: var(--paper); font: 800 12px/1 var(--display); }
.cd-badge-pill { padding: 6px 12px; border-radius: 99px; background: var(--surface-hi); color: var(--teal); font: 600 12.5px/1 var(--body); border: 1px solid var(--rule); }
.cd-detail-hero h2 { font: 800 clamp(28px, 3.6vw, 48px)/1.12 var(--display); }
.cd-detail-sub { margin-top: 14px; font-size: 16.5px; color: var(--muted); line-height: 1.65; }

.cd-metrics-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cd-metric {
  padding: 13px 16px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.cd-metric small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cd-metric strong { font: 700 14.5px/1.3 var(--display); color: var(--ink); }

.cd-equip {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(43, 198, 181, .09);
  border: 1px solid rgba(43, 198, 181, .28);
  font-size: 13.5px;
  color: #DDF7F3;
}
.cd-hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.cd-hero-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--well);
  aspect-ratio: 4 / 4.6;
  max-height: 500px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
}

.cd-section-title {
  margin: 38px 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.cd-section-title h3 { font: 800 26px/1.2 var(--display); }
.cd-section-title span { font-size: 14px; color: var(--muted); }

.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.stage-card {
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stage-num { font: 800 12.5px/1 var(--display); letter-spacing: .08em; color: var(--pink); }
.stage-days { padding: 4px 10px; border-radius: 99px; background: rgba(246, 242, 236, .08); font-size: 12px; color: var(--muted); }
.stage-card h4 { font: 800 20px/1.28 var(--display); margin-top: 8px; }
.stage-focus { margin-top: 6px; font-size: 14px; color: var(--muted); }
.stage-items { display: grid; gap: 9px; padding-top: 8px; }
.stage-items li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}
.stage-items li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--teal);
  font-weight: 800;
}
.stage-milestone {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(240, 83, 122, .1);
  border: 1px solid rgba(240, 83, 122, .25);
  font-size: 13px;
  color: var(--ink);
}
.stage-milestone b { color: var(--pink); }

/* 课程内嵌真实图集 */
.cd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cd-shot {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: transform .25s, border-color .25s;
}
.cd-shot:hover { transform: translateY(-4px); border-color: var(--pink); }
.cd-shot-media { position: relative; aspect-ratio: 4 / 4.8; overflow: hidden; }
.cd-shot-badge {
  position: absolute; right: 10px; top: 10px;
  padding: 4px 9px; border-radius: 99px;
  background: rgba(16,13,11,.8); color: var(--pink); font: 700 11px/1 var(--display);
}
.cd-shot figcaption { padding: 11px 13px; font-size: 13px; color: var(--muted); line-height: 1.45; }

.cd-bottom-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* ---------- 灯箱与轻提示 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 5, .9); backdrop-filter: blur(10px); }
.lightbox-card {
  position: relative;
  z-index: 1;
  max-width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-media {
  max-height: 80vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--well);
}
.lightbox-media img, .lightbox-media video {
  max-height: 80vh;
  width: auto;
  height: auto;
  max-width: 90vw;
  object-fit: contain;
}
.lightbox-card figcaption { color: var(--ink); font-size: 14.5px; text-align: center; }
.lightbox-close {
  position: absolute;
  right: -8px; top: -14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 180;
  left: 50%;
  bottom: calc(var(--bar) + 24px);
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--well);
  font: 700 14.5px/1 var(--body);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1120px) {
  .topbar-nav { display: none; }
  .course-quick-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --bar: 48px; }
  body { font-size: 15.5px; }
  .topbar { padding: 12px var(--gut); }
  .topbar-tag, .topbar-actions .btn-ghost { display: none; }

  .hero-copy { top: 11vh; width: auto; right: var(--gut); }
  .hero-h { font-size: clamp(36px, 10.2vw, 56px); }
  .hero-sub { display: none; }
  .hero-metrics { margin-top: 16px; gap: .35rem; }
  .hm-val { font-size: 24px; }
  .hero-ctas { margin-top: 18px; gap: 10px; }
  .btn { height: 48px; padding: 0 8px 0 18px; font-size: 15px; gap: 9px; }
  .btn-outline { padding: 0 16px; }
  .btn-meter { width: 34px; height: 34px; }

  .hero-media {
    top: auto;
    right: auto;
    left: 50%;
    translate: -50% 0;
    height: 41vh;
    bottom: calc(var(--bar) + 2.5vh);
  }
  .camera .is-wide { display: none; }
  .camera .is-pane { display: block; }
  .scroll-cue { display: none; }

  .wall .ph.wide-only { display: none; }
  .door span { font-size: 22vw; }

  .how-stage { --fy: calc(var(--vh) * .1); --fh: calc(var(--vh) * .42); --fx: var(--gut); --cx: var(--gut); }
  .how-title { top: calc(var(--fy) - 28px); font-size: 12.5px; }
  .words { left: var(--gut); top: calc(var(--fy) + var(--fh) + 1.5vh); height: calc(var(--vh) * .13); }
  .ch-word { top: calc(var(--vh) * .01); font-size: 13.5vw; }
  .ch-num { display: inline-block; margin: 0 8px 0 0; }
  .ch-ask { left: auto; right: var(--gut); top: calc(var(--fy) + var(--fh) * .58); max-width: 68vw; font-size: 13.5px; padding: 10px 14px; }
  .ch-copy { width: auto; left: var(--gut); right: var(--gut); bottom: calc(var(--bar) + 2.5vh); }
  .ch-copy h3 { font-size: 19px; margin-bottom: 6px; }
  .ch-copy p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .style-head { grid-template-columns: 1fr; gap: 16px; }
  .course-quick-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.flip {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    top: calc(6vh + var(--i) * .75rem);
    height: calc(var(--vh) - var(--bar) - 7.5vh - 3.6rem);
    min-height: 0;
    border-radius: 22px;
  }
  .card.flip .card-copy { order: 0; }
  .card-copy { padding: 20px 20px 10px; gap: .65rem; }
  .card h3 { font-size: 1.55rem; }
  .card-desc, .card-pills { display: none; }
  .card-stage { padding: 10px 18px 18px; }
  .note { display: none; }

  .track { gap: 12vw; padding-right: 18vw; }
  .slot, .slot:nth-child(n) { flex-direction: column-reverse; align-items: flex-start; align-self: center; margin: 0; }
  .slot-text { width: 80vw; margin: 0 0 2.5vh; }
  .slot-frame .phone { height: 44vh; }
  .slot-frame .pane.wide { width: 80vw; }
  .slot.intro, .slot.coming { width: 82vw; }
  .tour-rail { font-size: .72rem; gap: .6rem; bottom: calc(var(--bar) + 1.8vh); }

  .editor-h, .editor-clip, .points { grid-column: 1 / -1; }
  .editor-clip { position: static; margin-top: 4vh; }
  .points { grid-template-columns: 1fr; gap: 4vh; margin-top: 5vh; }
  .points li:nth-child(even) { transform: none; }

  .private-in h2, .privacy, .private-facts { grid-column: 1 / -1; }
  .private-facts { grid-template-columns: 1fr; }

  .faq-side, .faq-list { grid-column: 1 / -1; position: static; }
  .faq-side { margin-bottom: 4vh; }

  .join-row, .enroll-grid, .cd-detail-hero, .syllabus-grid, .hub-grid, .hub-guide { grid-template-columns: 1fr; }

  .tl-tc { width: 78px; font-size: 12px; }
  .tl-clip { font-size: 0; padding: 0; }
  .tl-clip.on { font-size: 10.5px; padding: 0 6px; }
  .tl-hub-btn { display: none; }
}

/* ---------- Reduced Motion 静态无障碍回退布局 ---------- */
.rm .scene { height: auto !important; margin-top: 0 !important; }
.rm .stage { position: relative; height: auto; clip-path: none !important; pointer-events: auto; overflow: visible; }
.rm .cut-edge, .rm .ch-frame, .rm .frame-edge, .rm .stack-end, .rm .scroll-hint, .rm .wall-dim, .rm .tour-rail, .rm .tour-bar { display: none; }
.rm .hero-stage { min-height: var(--vh); padding-bottom: 8vh; }
.rm .split-stage { padding: 12vh 0 10vh; display: flex; flex-direction: column; }
.rm .door { position: relative; height: auto; background: none; order: -1; }
.rm .wall { position: relative; display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; padding: 6vh var(--gut); }
.rm .wall .ph { position: relative; left: auto; top: auto; height: 42vh; }
.rm .works { position: relative; left: auto; bottom: auto; padding: 0 var(--gut); opacity: 1; }
.rm .how-stage { padding: 12vh var(--gut) 8vh; }
.rm .how-title { position: static; margin-bottom: 5vh; }
.rm .ch { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 4vw; align-items: center; margin-bottom: 8vh; }
.rm .ch-media, .rm .ch-word, .rm .ch-ask, .rm .ch-copy { position: static; transform: none !important; opacity: 1 !important; filter: none !important; clip-path: none !important; }
.rm .words { position: static; height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.rm .ch-media { grid-row: 1 / 4; width: auto; height: auto; aspect-ratio: .72; }
.rm .ch-word { font-size: clamp(42px, 6vw, 88px); color: var(--ink); -webkit-text-stroke: 0; }
.rm .ch-ask .r { color: inherit; }
.rm .ch-ask .t::after { display: none; }
.rm .ch-copy { width: auto; }
.rm .style { margin-top: 0; padding-bottom: 10vh; }
.rm .card { position: relative; top: auto; height: auto; margin-bottom: 32px; }
.rm .track { width: auto; height: auto; flex-wrap: wrap; padding: 10vh var(--gut); row-gap: 8vh; }
.rm .editor, .rm .pt, .rm .editor-h, .rm .join-h span, .rm .private-facts { clip-path: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
.rm .private-in { position: static; padding-bottom: 12vh; }
.rm .privacy .w { color: var(--ink); }
.rm .wall-only { display: none; }
.is-loading:not(.rm) main { visibility: hidden; }
