/* 格物塾 · GEWU ACADEMY — 视觉系统
   米白纸面 / 藏青 / 朱红 / 星空金 */
:root {
  --paper: #f4eedd;
  --paper-2: #ede5cf;
  --paper-3: #e3d9bf;
  --navy: #1b2a4a;
  --navy-2: #243a66;
  --navy-deep: #0e1830;
  --red: #d9482b;
  --red-2: #b93a21;
  --gold: #e6c46a;
  --ink: #1f2430;
  --ink-2: #4b5363;
  --muted: #7a8190;
  --line: rgba(27, 42, 74, .14);
  --shadow: 0 1px 0 rgba(27,42,74,.06), 0 14px 40px -18px rgba(27,42,74,.35);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", "Georgia", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { /* 纸纹 */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(27,42,74,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}
a { color: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; position: relative; z-index: 1; }
.en { font-family: var(--sans); letter-spacing: .32em; font-size: 11px; text-transform: uppercase; color: var(--muted); }

/* ---------- Logo 九宫格 ---------- */
.logo { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 11%; width: 40px; height: 40px; flex: none; }
.logo i { display: block; background: var(--navy); border-radius: 22%; }
.logo i.dot { background: var(--red); border-radius: 50%; }
.logo.light i { background: var(--paper); }
.logo.light i.dot { background: var(--red); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .12em; line-height: 1.1; }
.brand .en { display: block; margin-top: 3px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(244,238,221,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.topbar nav { display: flex; gap: 28px; align-items: center; }
.topbar nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.topbar nav a:hover { color: var(--navy); }
.topbar nav a.cta { background: var(--red); color: #fff; padding: 8px 16px; border-radius: 3px; font-weight: 600; }
.topbar nav a.cta:hover { background: var(--red-2); }

/* ---------- Hero 星空 ---------- */
.hero { position: relative; color: var(--paper); overflow: hidden; background: var(--navy-deep); }
.hero .sky { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, rgba(230,196,106,.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 12% 30%, rgba(77,112,189,.35), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(36,58,102,.9), transparent 70%),
    linear-gradient(180deg, #0c1530 0%, #16244a 55%, #1e2f5a 100%);
}
.hero .swirl { position: absolute; z-index: 0; border-radius: 50%; border: 2px solid rgba(230,196,106,.18); }
.hero .swirl.a { width: 520px; height: 520px; right: -140px; top: -200px; border-width: 26px; border-color: rgba(230,196,106,.07); }
.hero .swirl.b { width: 300px; height: 300px; right: 40px; top: -40px; border-style: dashed; }
.hero .swirl.c { width: 760px; height: 760px; left: -300px; bottom: -520px; border-width: 40px; border-color: rgba(77,112,189,.12); }
.hero .moon { position: absolute; z-index: 0; right: 9%; top: 56px; width: 74px; height: 74px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 60px 22px rgba(230,196,106,.25); opacity: .9; }
.hero .stars { position: absolute; inset: 0; z-index: 0; background-image:
  radial-gradient(#fff 0.8px, transparent 1px), radial-gradient(rgba(255,255,255,.7) 0.6px, transparent 1px);
  background-size: 140px 140px, 90px 90px; background-position: 20px 30px, 60px 10px; opacity: .55; }
.hero .formulas { position: absolute; inset: 0; z-index: 0; pointer-events: none; font-family: var(--serif); font-style: italic; color: rgba(244,238,221,.22); font-size: 15px; }
.hero .formulas span { position: absolute; white-space: nowrap; }
.hero .brush { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.618fr 1fr; gap: 55px; align-items: center; padding: 89px 0 89px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .3em; color: var(--gold); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-size: 50px; line-height: 1.3; margin: 0 0 20px; font-weight: 700; letter-spacing: .04em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 17px; line-height: 1.9; color: rgba(244,238,221,.84); max-width: 520px; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 36px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(244,238,221,.18); }
.hero .facts b { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1.1; }
.hero .facts span { font-size: 13px; color: rgba(244,238,221,.7); }
/* 九宫格小方块：仰望星空的那九个（会呼吸、眨眼、看你、被点会蹦） */
.hero .mascot { position: relative; margin: 0 auto; width: 300px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7%; perspective: 600px; }
.hero .mascot .fx { position: absolute; inset: -40%; pointer-events: none; z-index: 5; }
.hero .mascot .fx .p { position: absolute; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); text-shadow: 0 0 12px rgba(230,196,106,.8); white-space: nowrap; will-change: transform, opacity; }
.hero .mascot .fx .p.star { color: #fff; font-style: normal; font-size: 18px; text-shadow: 0 0 10px #fff; }
.cube { position: relative; border-radius: 24%; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 35% 25%, #7a8bbb 0, #5e6f9e 45%, #4b5b8a 100%);
  box-shadow: inset 0 -10px 14px rgba(0,0,0,.18), inset 0 3px 4px rgba(255,255,255,.22), 0 22px 40px -18px rgba(0,0,0,.75);
  filter: url(#fuzz);
  animation: breathe var(--bd, 4s) ease-in-out infinite; animation-delay: var(--d, 0s);
  transform-style: preserve-3d; transition: transform .25s; }
.cube::before { /* 绒毛高光 */ content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 1px, transparent 1px 3px); mix-blend-mode: screen; pointer-events: none; }
.cube .face { position: absolute; inset: 0; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .25s ease-out; }
.cube .eye { position: absolute; top: 36%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset 0 -2px 3px rgba(0,0,0,.12); overflow: hidden; animation: blink var(--bd, 4s) infinite; animation-delay: var(--d, 0s); }
.cube .eye.l { left: 20% } .cube .eye.r { right: 20% }
.cube .pupil { position: absolute; left: 50%; top: 52%; width: 52%; aspect-ratio: 1; border-radius: 50%; background: #151826; transform: translate(calc(-50% + var(--ex, 0px)), calc(-50% + var(--ey, 0px))); transition: transform .12s linear; }
.cube .pupil::after { content: ""; position: absolute; left: 22%; top: 18%; width: 34%; height: 34%; border-radius: 50%; background: #fff; }
.cube .cheek { position: absolute; top: 60%; width: 20%; height: 11%; border-radius: 50%; background: rgba(255,140,160,.7); filter: blur(1px); }
.cube .cheek.l { left: 8% } .cube .cheek.r { right: 8% }
.cube .mouth { position: absolute; left: 50%; top: 68%; width: 14%; height: 8%; border-bottom: 2px solid rgba(21,24,38,.75); border-radius: 0 0 50% 50%; transform: translateX(-50%); }
.cube.surprised .eye { animation: none; transform: scale(1.18); }
.cube.surprised .mouth { height: 12%; width: 12%; border: 2px solid rgba(21,24,38,.75); border-radius: 50%; }
/* 红色那只：眯眼笑 */
.cube.red { background: radial-gradient(circle at 35% 25%, #ef7a5f 0, var(--red) 50%, #b4381e 100%); border-radius: 46%; animation-name: bounce; animation-duration: 3.4s; }
.cube.red .eye { background: transparent; box-shadow: none; overflow: visible; animation: none; height: 12%; aspect-ratio: auto; border-top: 3px solid #151826; border-radius: 50% 50% 0 0 / 100% 100% 0 0; top: 40%; }
.cube.red .pupil { display: none; }
.cube.red .cheek { background: rgba(255,220,190,.75); }
.cube.red .mouth { width: 22%; height: 11%; }
.cube.red.wow .eye { border-top-width: 0; height: 22%; width: 20%; background: #fff; border-radius: 50%; top: 34%; }
.cube.red.wow .mouth { width: 26%; height: 20%; border: 2px solid #151826; border-radius: 50%; background: #5a1a10; top: 60%; }
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1,1) } 50% { transform: translateY(-6px) scale(1.02,.98) } }
@keyframes bounce { 0%,100% { transform: translateY(0) rotate(0) } 40% { transform: translateY(-16px) rotate(-8deg) } 60% { transform: translateY(-10px) rotate(6deg) } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.08) } }
@media (prefers-reduced-motion: reduce) { .cube, .cube .eye { animation: none !important; } }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 3px; border: 1px solid transparent; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: var(--sans); transition: all .15s; letter-spacing: .04em; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-red:disabled { background: #b8b1a2; cursor: not-allowed; }
.btn-ghost { border-color: rgba(244,238,221,.5); color: var(--paper); background: transparent; }
.btn-ghost:hover { background: rgba(244,238,221,.1); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: rgba(27,42,74,.06); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 区块通用（间距：斐波那契 3·5·8·13·21·34·55·89） ---------- */
.section { padding: 89px 0; position: relative; }
.section.tint { background: var(--paper-2); }
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head .en { display: block; margin-bottom: 12px; color: var(--red); }
.sec-head h2 { font-size: 36px; margin: 0 0 14px; color: var(--navy); line-height: 1.3; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 16px; }
.rule { width: 42px; height: 2px; background: var(--red); margin: 18px auto 0; }

/* 理念 */
.belief { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.belief .card { background: var(--paper); border: 1px solid var(--line); padding: 34px 30px; box-shadow: var(--shadow); position: relative; }
.belief .card::before { content: attr(data-n); position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 44px; color: rgba(27,42,74,.08); font-weight: 700; }
.belief h3 { font-size: 22px; color: var(--navy); margin: 0 0 10px; }
.belief h3 small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .25em; color: var(--red); margin-bottom: 10px; font-weight: 600; }
.belief p { margin: 0; color: var(--ink-2); font-size: 15px; }
.quote { margin: 64px auto 0; max-width: 820px; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.5; color: var(--navy); }
.quote blockquote em { font-style: normal; color: var(--red); }
.quote .en { display: block; margin-top: 14px; }

/* 师资 */
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.teacher { background: #fbf8ef; border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 30px 28px 26px; box-shadow: var(--shadow); position: relative; }
.teacher .subj { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.teacher .subj .en { color: var(--red); }
.teacher .subj b { font-family: var(--serif); color: var(--navy); font-size: 15px; letter-spacing: .2em; }
.teacher h3 { font-size: 40px; margin: 0 0 16px; color: var(--navy); line-height: 1; }
.teacher ul { list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-size: 14.5px; }
.teacher li { padding: 6px 0; border-top: 1px dashed var(--line); }
.teacher li:first-child { border-top: 0; }
.teacher li b { color: var(--ink); font-weight: 600; }
.teacher .seal { position: absolute; right: 20px; top: 20px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); box-shadow: inset -4px -5px 0 rgba(0,0,0,.18); }
.teacher .say { margin-top: 16px; font-family: var(--serif); color: var(--red); font-size: 14px; letter-spacing: .04em; }

/* ---------- 我们的约定 ---------- */
.promise-wrap { display: grid; grid-template-columns: 1fr 1.618fr; gap: 55px; align-items: center; }
.promise-text .en { display: block; color: var(--red); margin-bottom: 13px; }
.promise-text h2 { font-size: 40px; color: var(--navy); margin: 0 0 21px; }
.promise-text p { color: var(--ink-2); font-size: 16px; line-height: 1.9; }
.promise-text .sign { font-family: var(--serif); color: var(--navy); margin-top: 21px; }
.mdcard { background: #14192a; color: #e9e3d2; border-radius: 6px; box-shadow: 0 34px 80px -30px rgba(10,14,30,.8); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.mdbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0f1322; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #9aa3b8; }
.mdbar .d { width: 10px; height: 10px; border-radius: 50%; background: #3a4258; }
.mdbar .d:first-child { background: var(--red); } .mdbar .d:nth-child(2) { background: var(--gold); } .mdbar .d:nth-child(3) { background: #4caf7a; }
.mdbar b { margin-left: 8px; color: #e9e3d2; font-weight: 600; }
.mdbar em { margin-left: auto; font-style: normal; color: var(--gold); }
.mdbody { padding: 21px 26px 24px; font-family: var(--serif); }
.mdbody h4 { margin: 0 0 13px; font-size: 20px; color: var(--gold); font-weight: 700; }
.mdbody ul { list-style: none; margin: 0; padding: 0; }
.mdbody li { position: relative; padding: 8px 0 8px 22px; font-size: 15px; line-height: 1.75; border-top: 1px dashed rgba(255,255,255,.08); }
.mdbody li:first-child { border-top: 0; }
.mdbody li::before { content: "·"; position: absolute; left: 4px; color: var(--red); font-weight: 700; font-size: 22px; line-height: 1.1; }
.mdbody li b { color: #fff; }
.mdfoot { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.1); color: #9aa3b8; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mdfoot::before { content: "> "; color: var(--gold); }
/* 质感：暗纹 + 内发光 */
.mdcard { position: relative; background-image: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(230,196,106,.06), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
.mdcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 30px 60px -40px rgba(230,196,106,.15); }
/* 逐行读入 */
.mdbody li { cursor: pointer; transition: background .2s, color .2s; border-radius: 4px; }
.mdbody li:hover { background: rgba(255,255,255,.04); }
.mdbody li.unread { opacity: 0; transform: translateX(-8px); transition: none; cursor: default; }
.mdbody li.typing { opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
.mdbody li.typing::after { content: "▌"; color: var(--gold); margin-left: 4px; animation: caret .5s steps(1) infinite; }
.mdbody li:not(.unread):not(.typing) { opacity: 1; transform: none; transition: opacity .3s, transform .3s, background .2s; }
@keyframes caret { 50% { opacity: 0 } }
/* 列表 / 一行 / 一圈 */
.modes { display: inline-flex; gap: 4px; margin-left: 16px; }
.modes button { background: transparent; border: 1px solid rgba(255,255,255,.14); color: #9aa3b8; font-size: 11px; padding: 2px 9px; border-radius: 3px; cursor: pointer; font-family: inherit; letter-spacing: .1em; }
.modes button.on { background: var(--gold); border-color: var(--gold); color: #14192a; font-weight: 700; }
.mdcard .mdbody ul { position: relative; transition: height .5s; }
.mdcard[data-mode="line"] .mdbody ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.mdcard[data-mode="line"] .mdbody li { flex: 1 1 120px; border: 1px solid rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); padding: 10px 12px 10px 22px; font-size: 13px; line-height: 1.5; }
.mdcard[data-mode="line"] .mdbody li b { display: block; }
.mdcard[data-mode="ring"] .mdbody ul { height: 520px; }
.mdcard[data-mode="ring"] .mdbody li { position: absolute; left: 50%; top: 50%; width: 150px; margin: -46px 0 0 -75px; transform: translate(var(--x, 0px), var(--y, 0px)); border: 1px solid rgba(255,255,255,.14); background: #1a2036; padding: 10px 12px 10px 22px; font-size: 12.5px; line-height: 1.5; text-align: left; box-shadow: 0 10px 30px -14px rgba(0,0,0,.8); transition: transform .3s, background .2s; }
.mdcard[data-mode="ring"] .mdbody li b { display: block; }
.mdcard[data-mode="ring"] .mdbody li:hover { transform: translate(var(--x, 0px), var(--y, 0px)) scale(1.06); z-index: 2; }
.ring-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 8px; color: var(--gold); font-family: var(--serif); letter-spacing: .3em; font-size: 18px; text-indent: .3em; }
.ring-center .logo { width: 56px; height: 56px; }
.mdcard[data-mode="ring"] .mdbody ul { height: 560px; }
/* 点一条弹出 */
.pop-backdrop { position: fixed; inset: 0; background: rgba(10,14,30,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 150; }
.pop-backdrop.on { opacity: 1; pointer-events: auto; }
/* 弹出的那张卡要盖在毛玻璃遮罩之上。它原先留在 .mdbody 里，而祖先 .wrap 带
   position:relative + z-index:1，自成一个层叠上下文，把 z-index:160 关在了里面，
   结果遮罩反过来盖住了卡、把卡也糊掉。改成把卡搬进这个挂在 body 上的全屏层。 */
.pop-layer { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pop-layer > li { pointer-events: auto; }
/* 占位：卡被搬走后，列表不要塌下去 */
li.pop-slot { visibility: hidden; border: 0 !important; background: none !important; box-shadow: none !important; }
li.pop-slot::before { content: none !important; }

/* 不用 transform 居中（靠 flex），也不加旋转——旋转会让中文被重采样、看着发虚 */
li.pop { position: relative !important; left: auto !important; top: auto !important; width: min(560px, 86vw) !important; margin: 0 !important; transform: none !important; list-style: none; font-family: var(--serif);
  background: #f6efdc; color: var(--ink); border: 0 !important; border-radius: 4px; padding: 34px 38px 30px 56px !important; font-size: 19px !important; line-height: 1.8 !important; box-shadow: 0 50px 120px -30px rgba(0,0,0,.8); cursor: zoom-out;
  background-image: radial-gradient(rgba(27,42,74,.05) 1px, transparent 1px); background-size: 3px 3px; }
li.pop b { display: block; font-size: 28px; color: var(--navy); margin-bottom: 8px; }
li.pop::before { content: "·"; position: absolute; color: var(--red); font-weight: 700; line-height: 1.1; font-size: 34px; left: 26px; top: 30px; }
li.pop::after { content: "— 老马 · 格物塾"; display: block; margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: .1em; font-family: var(--sans); }
@media (max-width: 640px) {
  .mdcard[data-mode="ring"] .mdbody ul { height: 440px; }
  .mdcard[data-mode="ring"] .mdbody li { width: 112px; margin: -40px 0 0 -56px; font-size: 11px; padding: 8px 8px 8px 16px; }
  .ring-center { font-size: 14px; } .ring-center .logo { width: 40px; height: 40px; }
  .modes { margin-left: 8px; } .modes button { padding: 2px 6px; }
  li.pop { padding: 26px 22px 22px 40px !important; font-size: 16px !important; }
  li.pop b { font-size: 22px; }
  li.pop::before { left: 16px; top: 20px; font-size: 26px; }
}

/* ---------- 一题不落 · 蜡笔故事 ---------- */
.story-sec { background: #ece4cf; }
.story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.frame { background: #f6f0df; border: 1px solid rgba(27,42,74,.12); padding: 13px 13px 21px; box-shadow: var(--shadow); }
.frame .scene { position: relative; height: 170px; overflow: hidden; border-radius: 3px;
  background-color: #2f3f73;
  background-image: repeating-linear-gradient(-38deg, rgba(255,255,255,.07) 0 2px, transparent 2px 7px), repeating-linear-gradient(52deg, rgba(0,0,0,.08) 0 1px, transparent 1px 9px);
}
.frame .lamp { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, #f3d27a 0 45%, rgba(243,210,122,.35) 60%, transparent 72%); }
.frame .desk { position: absolute; left: 22%; right: 22%; bottom: 34px; height: 8px; background: #8a5a3a; border-radius: 2px; }
.frame .desk::before, .frame .desk::after { content: ""; position: absolute; top: 8px; width: 6px; height: 26px; background: #6e4730; }
.frame .desk::before { left: 8% } .frame .desk::after { right: 8% }
.frame .paper { position: absolute; left: 38%; bottom: 42px; width: 46px; height: 32px; background: #fbf7ec; transform: rotate(-6deg); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.frame .paper.tick::after { content: "✓✓"; position: absolute; inset: 0; color: var(--red); font-weight: 900; font-size: 15px; letter-spacing: 2px; display: grid; place-items: center; }
.frame .scene.far .lamp { width: 54px; height: 54px; margin: -27px 0 0 -27px; top: 62%; }
.frame .scene.far .desk { left: 42%; right: 42%; bottom: 40px; height: 4px; }
.frame .scene.far .desk::before, .frame .scene.far .desk::after { height: 12px; width: 3px; top: 4px; }
.frame .rain { position: absolute; inset: 0; background-image: repeating-linear-gradient(100deg, transparent 0 18px, rgba(255,255,255,.18) 18px 19px, transparent 19px 40px); }
.frame .scene.city { background-color: #26355f; }
.frame .win { position: absolute; bottom: 0; width: 22%; background: #1c2848; border: 2px solid rgba(255,255,255,.25); border-bottom: 0; }
.frame .win::before { content: ""; position: absolute; left: 25%; top: 22%; width: 34%; height: 24%; background: #f3d27a; box-shadow: 0 0 18px 6px rgba(243,210,122,.45); }
.frame .w1 { left: 4%; height: 62% } .frame .w2 { left: 28%; height: 48% } .frame .w3 { left: 50%; height: 76% } .frame .w4 { left: 72%; height: 55% } .frame .w5 { left: 90%; height: 40%; width: 14% }
.frame .w2::before { top: 40% } .frame .w4::before { top: 55%; left: 40% }
.frame p { margin: 13px 0 3px; font-family: var(--serif); font-size: 16px; color: var(--navy); line-height: 1.6; }
.frame small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }

/* 故事条 · 互动：滚到时一格一格亮灯，雨一直下，窗会闪，点击有事发生 */
.frame { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.frame:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 22px 44px -22px rgba(27,42,74,.45); }
.frame .scene::after { content: ""; position: absolute; inset: 0; background: #141c33; opacity: 1; transition: opacity 1.1s ease; pointer-events: none; }
.frame.lit .scene::after { opacity: 0; }
.frame .lamp, .frame .paper, .frame .desk { opacity: 0; transition: opacity .9s .2s; }
.frame.lit .lamp, .frame.lit .paper, .frame.lit .desk { opacity: 1; }
.frame.lit .lamp { animation: lampflick 7s infinite; }
.frame.lit.off .lamp { opacity: .06; animation: none; transition: opacity .25s; }
.frame .lamp::after { content: ""; position: absolute; left: 50%; top: -60px; width: 2px; height: 60px; margin-left: -1px; background: rgba(255,255,255,.18); }
.frame .scene.far .lamp::after { top: -40px; height: 40px; }
.frame .paper.tick::after { transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.4,1) .9s; }
.frame.lit .paper.tick::after { transform: scale(1); }
.frame .rain { opacity: 0; transition: opacity 1s .4s; }
.frame.lit .rain { opacity: 1; }
.frame .scene .drop { position: absolute; top: -20px; width: 1px; height: 18px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.6)); pointer-events: none; }
.frame .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.frame .stamp { position: absolute; color: var(--red); font-weight: 900; font-family: var(--serif); pointer-events: none; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.frame .scene.city .win::before { transition: background .35s, box-shadow .35s; }
.frame .scene.city .win.dark::before { background: #2d3a62; box-shadow: none; }
.frame.lit .scene.city .win:not(.dark)::before { animation: twinkle 4.5s infinite; }
.frame .w2::before { animation-delay: -1.3s !important } .frame .w3::before { animation-delay: -2.6s !important } .frame .w4::before { animation-delay: -.7s !important } .frame .w5::before { animation-delay: -3.4s !important }
.frame .scene.city .win { cursor: pointer; }
.frame .scene.city .win:hover { border-color: rgba(255,255,255,.55); }
.frame .count { position: absolute; right: 8px; top: 6px; font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .06em; font-family: var(--serif); }
.frame .lit-note { display: block; margin-top: 8px; font-size: 11px; color: var(--red); letter-spacing: .06em; opacity: 0; transform: translateY(4px); transition: .5s; }
.frame.allon .lit-note { opacity: 1; transform: none; }
@keyframes lampflick { 0%, 100% { filter: brightness(1) } 47% { filter: brightness(1) } 48% { filter: brightness(.72) } 49% { filter: brightness(1.05) } 51% { filter: brightness(.9) } 52% { filter: brightness(1) } 80% { filter: brightness(1) } 81% { filter: brightness(.85) } 82% { filter: brightness(1) } }
@keyframes twinkle { 0%, 100% { filter: brightness(1) } 40% { filter: brightness(.75) } 55% { filter: brightness(1.15) } }

/* 老师卡 · 互动：入场盖章、随指针微倾、点一下翻面看老师想说的话 */
.teacher { background: none; border: 0; padding: 0; box-shadow: none; perspective: 1200px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.teacher .tinner { display: grid; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.8,.2,1); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.teacher.flip .tinner { transform: rotateY(180deg); }
.teacher .front, .teacher .back { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; position: relative; border: 1px solid var(--line); border-left: 4px solid var(--red); box-shadow: var(--shadow); }
.teacher .front { background: #fbf8ef; padding: 30px 28px 26px; }
.teacher .back { background: var(--navy); color: var(--cream); transform: rotateY(180deg); padding: 30px 28px 26px; display: flex; flex-direction: column; justify-content: space-between; border-left-color: var(--gold); overflow: hidden; }
.teacher .back::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 10%, rgba(230,196,106,.18), transparent 55%); pointer-events: none; }
.teacher .back .en { color: var(--gold); }
.teacher .back blockquote { margin: 21px 0; font-family: var(--serif); font-size: 26px; line-height: 1.5; color: #fff; }
.teacher .back blockquote::before { content: "“"; display: block; font-size: 60px; line-height: .4; color: var(--gold); margin-bottom: 18px; }
.teacher .back .who { font-size: 13px; color: rgba(244,238,221,.7); letter-spacing: .08em; }
.teacher .back .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 21px; align-self: flex-start; background: var(--red); color: #fff; text-decoration: none; padding: 10px 16px; font-size: 14px; letter-spacing: .06em; border-radius: 2px; transition: transform .25s, background .25s; }
.teacher .back .go:hover { transform: translateX(4px); background: #c33f24; }
.teacher .back .hint { position: absolute; right: 20px; top: 20px; font-size: 11px; color: rgba(244,238,221,.5); letter-spacing: .08em; }
.teacher .seal { transition: transform .25s; }
.teacher:hover .seal { transform: rotate(-8deg) scale(1.08); }
.teacher .seal::after { content: "格"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-family: var(--serif); font-weight: 700; }
.teacher.pre .front { opacity: 0; transform: translateY(34px); }
.teacher.pre .seal { transform: scale(2.6) rotate(-30deg); opacity: 0; }
.teacher.in .front { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.teacher.in .seal { transition: transform .45s cubic-bezier(.3,1.8,.4,1) .55s, opacity .2s .55s; transform: none; opacity: 1; }
.teacher .tap { display: block; margin-top: 14px; text-align: right; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.teacher .tap::before { content: "↻ "; }
@media (prefers-reduced-motion: reduce) { .frame .scene::after, .frame .lamp, .frame .rain, .frame .win::before, .teacher .tinner, .teacher .front, .teacher .seal { animation: none !important; transition: none !important; } }

/* ---------- 比例来自数学 ---------- */
.ratio-note { display: grid; grid-template-columns: 89px 1fr; gap: 21px; align-items: center; margin-top: 55px; padding-top: 34px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.ratio-note .phi { font-family: var(--serif); font-style: italic; font-size: 64px; color: var(--navy); text-align: center; line-height: 1; }
.ratio-note b { display: block; color: var(--navy); font-family: var(--serif); font-size: 17px; margin-bottom: 3px; }

/* 秒杀课 · 黑板 */
.board-wrap { background: var(--navy-deep); color: var(--paper); }
.board-wrap .sec-head h2 { color: var(--paper); }
.board-wrap .sec-head p { color: rgba(244,238,221,.7); }
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.board { background: #1f4a3d; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 4px 4px; border: 10px solid #5a3f2a; outline: 1px solid rgba(0,0,0,.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); padding: 26px 24px 22px; min-height: 250px; position: relative; display: flex; flex-direction: column; }
.board .tag { font-size: 12px; letter-spacing: .2em; color: rgba(244,238,221,.6); border-bottom: 1px solid rgba(244,238,221,.2); padding-bottom: 8px; margin-bottom: 18px; display: flex; justify-content: space-between; }
.board h3 { font-size: 26px; margin: 0 0 8px; color: #fff; }
.board h3 span { color: var(--gold); }
.board p { margin: 0 0 auto; color: rgba(244,238,221,.8); font-size: 14.5px; }
.board .chalk { margin-top: 16px; font-family: var(--serif); font-style: italic; color: rgba(244,238,221,.55); font-size: 13px; }
.board .tray { position: absolute; left: 12px; right: 12px; bottom: -14px; height: 6px; display: flex; gap: 6px; justify-content: flex-end; padding-right: 10px; }
.board .tray i { width: 26px; height: 6px; border-radius: 3px; background: #f4eedd; } .board .tray i:nth-child(2) { background: var(--gold) } .board .tray i:nth-child(3) { background: var(--red) }
.board-note { text-align: center; margin-top: 56px; color: rgba(244,238,221,.6); font-size: 14px; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.step { padding: 30px 26px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 34px; color: var(--red); display: block; line-height: 1; margin-bottom: 14px; }
.step h4 { margin: 0 0 6px; font-size: 17px; color: var(--navy); font-family: var(--serif); }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- 领资料 / 表单 ---------- */
.lead-sec { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; }
.lead-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 100% 0%, rgba(230,196,106,.18), transparent 60%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(217,72,43,.18), transparent 60%); }
.lead-sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lead-sec .en { color: var(--gold); }
.lead-sec h2 { font-size: 38px; margin: 10px 0 18px; line-height: 1.3; }
.lead-sec h2 em { font-style: normal; color: var(--gold); }
.lead-sec p { color: rgba(244,238,221,.82); font-size: 16px; }
.gifts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.gifts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.gifts li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(217,72,43,.25); }
.gifts b { color: #fff; }
.form-card { background: var(--paper); color: var(--ink); padding: 34px 34px 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); position: relative; }
.form-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.form-card h3 { font-size: 24px; margin: 0 0 4px; color: var(--navy); }
.form-card .hint { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.field { margin-bottom: 15px; position: relative; z-index: 1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--navy); letter-spacing: .04em; }
.field label .req { color: var(--red); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.field input, .field select { width: 100%; height: 46px; border: 1px solid #c9c0a9; background: #fffdf7; border-radius: 3px; padding: 0 12px; font-size: 15px; color: var(--ink); font-family: inherit; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,74,.14); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agree { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; position: relative; z-index: 1; }
.msg { font-size: 14px; padding: 10px 12px; border-radius: 3px; margin-bottom: 14px; display: none; position: relative; z-index: 1; }
.msg.error { display: block; background: #fbe9e5; color: #9b2d17; border: 1px solid #efb9ad; }
.msg.ok { display: block; background: #e7f1e9; color: #1f5e36; border: 1px solid #b7d6c0; }
.msg a { color: inherit; font-weight: 600; }

/* 位置 */
.place { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.place .big { font-family: var(--serif); font-size: 44px; color: var(--navy); line-height: 1.2; margin: 0 0 12px; }
.place p { color: var(--ink-2); margin: 0 0 8px; }
.place .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { font-size: 13px; padding: 6px 12px; border: 1px solid var(--navy); color: var(--navy); border-radius: 2px; letter-spacing: .06em; }
.chip.red { border-color: var(--red); color: var(--red); }
.seal-card { background: var(--paper); border: 1px solid var(--line); padding: 36px; text-align: center; box-shadow: var(--shadow); }
.seal-card .logo { width: 86px; height: 86px; margin: 0 auto 18px; }
.seal-card .n { font-family: var(--serif); font-size: 34px; letter-spacing: .3em; color: var(--navy); margin-left: .3em; }
.seal-card .motto { margin-top: 10px; color: var(--red); font-family: var(--serif); font-size: 16px; letter-spacing: .3em; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(244,238,221,.65); padding: 40px 0 30px; font-size: 13px; position: relative; z-index: 1; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer .brand .name { color: var(--paper); font-size: 18px; }
footer a { color: inherit; text-decoration: none; }

/* ---------- 资料库页 ---------- */
.page-head { background: var(--navy); color: var(--paper); padding: 40px 0; }
.page-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 30px; }
.page-head p { margin: 6px 0 0; color: rgba(244,238,221,.72); font-size: 14px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 2px; background: rgba(27,42,74,.08); color: var(--navy); font-weight: 600; margin-right: 6px; letter-spacing: .06em; vertical-align: middle; }
.badge.rec { background: var(--red); color: #fff; }
.group-title { font-size: 20px; color: var(--navy); margin: 40px 0 16px; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.material { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; padding: 22px 24px; align-items: center; margin-bottom: 14px; background: #fbf8ef; border: 1px solid var(--line); box-shadow: var(--shadow); }
.material .icon { width: 64px; height: 76px; background: var(--navy); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; letter-spacing: .1em; writing-mode: vertical-rl; position: relative; }
.material .icon::before { content: ""; position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.material h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.material p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.material .meta { font-size: 12px; color: var(--muted); }
.material .actions { display: flex; gap: 8px; flex-direction: column; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ---------- 后台 ---------- */
.admin-login { max-width: 420px; margin: 80px auto; padding: 34px; background: #fbf8ef; border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.kpi { padding: 18px 20px; background: #fbf8ef; border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.kpi strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--navy); }
.kpi span { font-size: 13px; color: var(--muted); }
.panel { background: #fbf8ef; border: 1px solid var(--line); padding: 20px 24px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.toolbar .btn { width: auto; }
.toolbar input { height: 40px; border: 1px solid #c9c0a9; background: #fffdf7; border-radius: 3px; padding: 0 10px; font-size: 14px; min-width: 260px; font-family: inherit; }
table { width: 100%; border-collapse: collapse; background: #fbf8ef; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-2); color: var(--navy); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
tr:hover td { background: #f6f1e3; }
.table-wrap { overflow: auto; border: 1px solid var(--line); max-height: 70vh; }
.danger { color: var(--red); background: none; border: none; cursor: pointer; font-size: 13px; font-family: inherit; }
.mini-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* 后台 · 今天要回访的 */
.callback { margin: 28px 0 0; border-left: 4px solid var(--red); }
.cb-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cb-head h3 { margin: 0; font-size: 17px; color: var(--navy); }
.cb-head .cb-sub { color: var(--muted); font-size: 13px; margin-right: auto; }
.cb-head .btn { width: auto; }
.cb-item { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px dashed var(--line); }
.cb-item:first-child { border-top: 0; }
.cb-item.done { opacity: .55; }
.cb-item.overdue { background: rgba(217,72,43,.05); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.cb-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700; background: rgba(27,42,74,.1); color: var(--navy); }
.cb-rank.r1 { background: var(--red); color: #fff; }
.cb-rank.r2 { background: var(--gold); color: var(--navy); }
.cb-l1 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14.5px; color: var(--ink); }
.cb-l1 b { color: var(--navy); font-size: 16px; }
.cb-l1 span { color: var(--muted); font-size: 13px; }
.cb-l1 em { font-style: normal; font-size: 12px; letter-spacing: .06em; color: var(--red); border: 1px solid rgba(217,72,43,.35); padding: 1px 7px; border-radius: 2px; }
.cb-l2 { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.cb-l2 .od { color: var(--red); }
.cb-tel { font-family: var(--serif); font-size: 17px; color: var(--navy); text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.cb-tel:hover { color: var(--red); }
.cb-empty { color: var(--muted); font-size: 14px; margin: 4px 0; }
.cb-fallback { width: 100%; margin-top: 12px; min-height: 120px; border: 1px solid #c9c0a9; background: #fffdf7; border-radius: 3px; padding: 10px; font: 13px/1.7 var(--sans); color: var(--ink); resize: vertical; }
@media (max-width: 640px) {
  .cb-item { grid-template-columns: 26px 1fr; }
  .cb-tel, .cb-item .btn { grid-column: 2; justify-self: start; }
}

.bar { display: grid; grid-template-columns: 90px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.bar i { display: block; height: 10px; background: var(--navy); }

/* ---------- 宣传片按钮 / 弹窗 ---------- */
.play { display: inline-flex; align-items: center; gap: 10px; }
.play .tri { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.play .tri::after { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,24,.86); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .box { width: min(960px, 100%); background: #000; box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); position: relative; }
.modal video { width: 100%; display: block; max-height: 82vh; }
.modal .close { position: absolute; right: -6px; top: -44px; background: none; border: 0; color: var(--paper); font-size: 30px; cursor: pointer; line-height: 1; font-family: var(--sans); }
.modal .hdswitch { position: absolute; left: -2px; top: -38px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: var(--paper); font-size: 12px; letter-spacing: .06em; padding: 5px 12px; border-radius: 2px; cursor: pointer; font-family: var(--sans); }
.modal .hdswitch:hover { background: rgba(255,255,255,.22); }

/* ---------- 课程体系 ---------- */
.terms { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: -16px 0 36px; }
.terms button { background: transparent; border: 1px solid var(--navy); color: var(--navy); padding: 10px 20px; font-family: var(--serif); font-size: 15px; letter-spacing: .1em; cursor: pointer; border-radius: 2px; }
.terms button.on { background: var(--navy); color: var(--paper); }
.term-meta { text-align: center; color: var(--ink-2); font-size: 14px; margin-bottom: 26px; }
.term-meta b { color: var(--navy); font-family: var(--serif); font-size: 16px; margin-right: 10px; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course { background: #fbf8ef; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.course .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .15em; color: var(--red); }
.course .top .g { color: var(--paper); background: var(--navy); padding: 2px 8px; letter-spacing: .1em; font-family: var(--serif); }
.course h3 { margin: 0; font-size: 19px; color: var(--navy); line-height: 1.4; }
.course .info { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 3px; }
.course .info span::before { content: "· "; color: var(--red); }
.course .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.course .tags i { font-style: normal; font-size: 12px; padding: 2px 8px; background: rgba(27,42,74,.07); color: var(--navy); }
.course .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.course .price { font-family: var(--serif); color: var(--red); font-size: 16px; }
.course .price small { color: var(--muted); font-family: var(--sans); font-size: 12px; margin-left: 4px; }

/* ---------- 预约试听 ---------- */
.trial-sec { background: var(--paper); }
.trial { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.trial .pitch h2 { font-size: 36px; color: var(--navy); margin: 10px 0 14px; line-height: 1.3; }
.trial .pitch p { color: var(--ink-2); }
.trial .promise { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.trial .promise li { display: flex; gap: 10px; font-size: 15px; }
.trial .promise li::before { content: "✓"; color: var(--red); font-weight: 700; }
.trial .form-card { box-shadow: var(--shadow); }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { flex: 1; min-width: 80px; border: 1px solid #c9c0a9; background: #fffdf7; padding: 10px 0; text-align: center; font-size: 14px; cursor: pointer; border-radius: 3px; font-weight: 500; }
.radio-row input { display: none; }
.radio-row input:checked + label { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.field textarea { width: 100%; min-height: 70px; border: 1px solid #c9c0a9; background: #fffdf7; border-radius: 3px; padding: 10px 12px; font-size: 15px; font-family: inherit; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,74,.14); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-family: var(--serif); font-size: 18px; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--red); font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); font-size: 15px; line-height: 1.9; }

/* ---------- 手机底部悬浮栏 ---------- */
.sticky-bar { display: none; }

/* ---------- 资料库：视频 ---------- */
.material.video { grid-template-columns: 1fr; }
.material.video .vwrap { display: grid; grid-template-columns: 180px 1fr auto; gap: 20px; align-items: center; }
.material.video video { width: 180px; aspect-ratio: 9/16; background: #000; object-fit: cover; border: 4px solid var(--navy); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .courses { grid-template-columns: 1fr 1fr; }
  .promise-wrap { grid-template-columns: 1fr; gap: 34px; }
  .promise-text h2 { font-size: 32px; }
  .story { grid-template-columns: 1fr 1fr; }
  .ratio-note { grid-template-columns: 55px 1fr; }
  .trial { grid-template-columns: 1fr; gap: 28px; }
  .trial .pitch h2 { font-size: 28px; }
  .material.video .vwrap { grid-template-columns: 120px 1fr; }
  .material.video video { width: 120px; }
  .material.video .actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .courses { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .mdbody { padding: 16px 16px 18px; }
  .sticky-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
  .sticky-bar a { height: 54px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .08em; }
  .sticky-bar a.l { background: var(--navy); color: var(--paper); }
  .sticky-bar a.r { background: var(--red); color: #fff; }
  body { padding-bottom: 54px; }
  footer { padding-bottom: 40px; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 64px; }
  .hero h1 { font-size: 31px; letter-spacing: 0; }
  .hero .mascot { width: 200px; order: -1; }
  .belief, .teachers, .boards, .kpis, .mini-bars, .lead-sec .wrap, .place { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .sec-head h2 { font-size: 28px; }
  .quote blockquote { font-size: 22px; }
  .lead-sec h2 { font-size: 30px; }
  .material { grid-template-columns: 52px 1fr; }
  .material .icon { width: 52px; height: 64px; font-size: 13px; }
  .material .actions { grid-column: 1 / -1; flex-direction: row; }
  .topbar nav a:not(.cta) { display: none; }
  .brand .en { display: none; }
}
@media (max-width: 520px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .row2 { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px 22px; }
  .hero .facts { gap: 22px; }
  .hero .facts b { font-size: 24px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .teacher h3 { font-size: 32px; }
}

/* Keep account controls reachable on small screens. */
@media(max-width:680px){.topbar nav a#logout:not([hidden]){display:inline-flex!important;font-size:12px}.topbar nav{gap:10px}}

/* 教学现场 · 四图横条（生成的场景示意图，非实拍，文案已注明） */
.classroom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 34px; }
.classroom figure { margin: 0; background: #fbf8ef; border: 1px solid var(--line); padding: 7px 7px 0; box-shadow: var(--shadow); }
.classroom img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.classroom figcaption { font-family: var(--serif); font-size: 13.5px; line-height: 1.7; color: var(--ink-2); padding: 10px 6px 12px; }
.classroom-note { margin: 13px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 900px) { .classroom { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .classroom { gap: 8px; } .classroom figcaption { font-size: 12.5px; padding: 8px 4px 10px; } }

/* 联系方式（由 config.json 驱动，填了才显示） */
.contact { margin-top: 21px; padding-top: 21px; border-top: 1px solid var(--line); }
.contact .en { display: block; margin-bottom: 10px; }
.crow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.crow b { font-weight: 600; color: var(--ink-2); font-size: 13px; letter-spacing: .04em; min-width: 60px; }
.crow a, .crow code { font-family: var(--serif); font-size: 21px; color: var(--navy); text-decoration: none; letter-spacing: .04em; }
.crow a:hover { color: var(--red); }
.crow code { background: rgba(27,42,74,.05); padding: 2px 10px; border-radius: 3px; user-select: all; }
.crow .btn { width: auto; }
.contact-status { min-height: 20px; margin: 6px 0 0; font-size: 12.5px; color: var(--red); }
@media (max-width: 420px) { .crow a, .crow code { font-size: 18px; } .crow b { min-width: 0; } }
.contact-hours { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
