/* MintCal landing (Neon edition): 薄荷宣纸 · 编辑级画册感，零构建、零外链 */

/* ============ Tokens ============ */
:root {
  --bg-paper: #F1F6F4;
  --surface: #FFFFFF;
  --surface-high: #F7FAF9;
  --surface-tonal: #E6EFEA;
  --surface-well: #E9F2EE;
  --primary: #2B7266;
  --primary-hover: #215C52;
  --primary-container: #CDEAE2;
  --on-primary-container: #18423A;
  --ink: #1F2D29;
  --ink-muted: #566862;
  --ink-subtle: #6B7C77;
  --hairline: rgba(31, 45, 41, 0.09);
  --hairline-strong: rgba(31, 45, 41, 0.14);

  --dark-canvas: #121817;
  --dark-surface: #1C2523;
  --dark-code: #161E1C;
  --dark-ink: #E6EEEB;
  --dark-muted: #8FA19B;
  --dark-primary: #7CCDBA;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-display: clamp(2.35rem, 4.1vw, 3.45rem);
  --text-h2: clamp(1.75rem, 2.7vw, 2.35rem);

  --radius-xs: 6px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-phone:
    0 28px 60px -22px rgba(24, 66, 58, 0.22),
    0 10px 22px -12px rgba(24, 66, 58, 0.12),
    0 1px 3px rgba(24, 66, 58, 0.06);
  --shadow-shot:
    0 22px 46px -20px rgba(24, 66, 58, 0.18),
    0 6px 16px -8px rgba(24, 66, 58, 0.08),
    0 1px 2px rgba(24, 66, 58, 0.04);
  --shadow-card:
    0 12px 32px -18px rgba(24, 66, 58, 0.10),
    0 1px 2px rgba(24, 66, 58, 0.04);
  --band-y: 96px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink);
  font: 400 16px/1.68 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-tonal);
  color: var(--on-primary-container);
  padding: .12em .42em;
  border-radius: var(--radius-xs);
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.footer :focus-visible, .code :focus-visible { outline-color: var(--dark-primary); }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 40px, 1140px); margin-inline: auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), box-shadow .2s var(--ease), transform 150ms var(--ease), border-color .18s;
}
.btn:active, .mode-btn:active, .dot:active, .copy-btn:active { transform: scale(.965); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(43, 114, 102, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 14px 26px -10px rgba(33, 92, 82, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-tonal {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 2px 6px rgba(24, 66, 58, 0.04);
}
.btn-tonal:hover { background: var(--surface-high); box-shadow: inset 0 0 0 1px rgba(43, 114, 102, 0.28), 0 4px 10px rgba(24, 66, 58, 0.06); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; box-shadow: 0 6px 14px -8px rgba(43, 114, 102, 0.5); }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-ic { width: 17px; height: 17px; flex: none; }

.textlink { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-muted); padding: 8px 6px; transition: color .15s; }
.textlink:hover { color: var(--ink); }

/* ============ Top bar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(241, 246, 244, .86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.topbar.is-scrolled {
  background: rgba(241, 246, 244, .94);
  box-shadow: 0 6px 24px -16px rgba(24, 66, 58, 0.16);
}
.topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand--dark { color: var(--dark-ink); }
.topnav { display: flex; gap: 6px; margin-right: auto; margin-left: 16px; }
.topnav a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none;
  padding: 7px 13px; border-radius: var(--radius-pill);
  transition: color .16s, background-color .16s;
}
.topnav a:hover { color: var(--ink); background: rgba(43, 114, 102, 0.06); }
.topnav a.is-active { color: var(--on-primary-container); background: rgba(43, 114, 102, 0.10); }
.topbar-act { display: flex; align-items: center; gap: 12px; }

/* ============ Type ============ */
.display, .h2, .h3-lg { text-wrap: balance; }
.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.022em;
}
.h3 { font-size: 17.5px; font-weight: 620; line-height: 1.35; letter-spacing: -0.01em; }
.h3-lg { font-size: clamp(1.375rem, 2vw, 1.65rem); font-weight: 660; line-height: 1.28; letter-spacing: -0.015em; }
.lead { font-size: 16.5px; line-height: 1.72; color: var(--ink-muted); max-width: 31em; }
.body { font-size: 15.5px; line-height: 1.7; color: var(--ink-muted); max-width: 30em; }

/* ============ Bands ============ */
.band { padding-block: var(--band-y); }
.band-tint { background: var(--surface-high); border-block: 1px solid var(--hairline); }
.band-head { display: grid; gap: 10px; margin-bottom: 36px; }

/* ============ Hero (精准首屏 1440×900 构图) ============ */
.hero {
  position: relative;
  overflow-x: clip;
  padding-block: 26px 64px;
  background:
    radial-gradient(640px 440px at 76% 42%, rgba(79, 167, 150, 0.09), transparent 72%),
    radial-gradient(520px 360px at 14% 22%, rgba(255, 255, 255, 0.72), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.7fr) minmax(0, 5.3fr);
  gap: 52px;
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }

.version-note {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 13px; font-weight: 500; line-height: 1.45;
}
.pill-ver { font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; }

.hero-copy .lead { margin-top: -2px; max-width: 28.5em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.cta-row--center { justify-content: center; }

.facts {
  display: flex; flex-wrap: wrap; gap: 8px 0;
  margin-top: 6px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px; color: var(--ink-muted);
}
.facts li { padding: 0 16px; border-left: 1px solid var(--hairline-strong); line-height: 1.25; }
.facts li:first-child { padding-left: 0; border-left: 0; }

/* Hero Stage（自适应 6 套主题柔光 + 精致双色表框） */
.stage {
  --stage-glow: #4FA796;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.stage[data-theme-preset="peach"] { --stage-glow: #C97D63; }
.stage[data-theme-preset="lavender"] { --stage-glow: #7466B5; }
.stage[data-theme-preset="sky"] { --stage-glow: #5A87C5; }
.stage[data-theme-preset="rose"] { --stage-glow: #B95D78; }
.stage[data-theme-preset="lemon"] { --stage-glow: #B5973B; }

.stage-glow {
  position: absolute;
  inset: 44px -24px 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, var(--stage-glow), transparent 68%);
  opacity: .16;
  filter: blur(28px);
  pointer-events: none;
  transition: background .35s var(--ease), opacity .35s var(--ease);
}
.stage[data-color-mode="dark"] .stage-glow { opacity: .20; }

.theme-bar {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 5px 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 16px -8px rgba(24, 66, 58, 0.14);
}
.dots { display: flex; align-items: center; }
.dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; border-radius: 50%;
  transition: transform 150ms var(--ease);
}
.dot:hover::before { transform: scale(1.12); }
.dot::before {
  content: ""; width: 17px; height: 17px; border-radius: 50%; background: var(--dot);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.dot[aria-pressed="true"]::before { box-shadow: 0 0 0 2px #fff, 0 0 0 3.8px var(--dot); }
.theme-div { width: 1px; height: 16px; background: var(--hairline-strong); margin-inline: 2px; }
.theme-name { min-width: 3em; font-size: 12.5px; font-weight: 550; color: var(--ink-muted); text-align: center; }
.mode-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 11px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--surface-tonal); color: var(--ink);
  font-size: 12.5px; font-weight: 550;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform 150ms var(--ease);
}
.mode-btn:hover { background: #DCE8E3; }
.mode-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg-paper); }
.ic { width: 15px; height: 15px; flex: none; }

.phone-shell {
  position: relative; z-index: 1;
  width: min(100%, 306px);
  padding: 7px;
  background: linear-gradient(165deg, #FFFFFF 0%, #F4F8F6 100%);
  border: 1px solid rgba(31, 45, 41, 0.12);
  border-radius: 36px;
  box-shadow: var(--shadow-phone), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.stage[data-color-mode="dark"] .phone-shell {
  background: linear-gradient(165deg, #27312E 0%, #19201E 100%);
  border-color: rgba(124, 205, 186, 0.18);
  box-shadow:
    0 30px 64px -22px rgba(10, 22, 19, 0.45),
    0 12px 24px -12px rgba(10, 22, 19, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.phone {
  position: relative;
  aspect-ratio: 1220 / 2712;
  border-radius: 29px;
  overflow: hidden;
  container-type: inline-size;
  background: #EBF0EE;
  box-shadow: inset 0 0 0 1px rgba(31, 45, 41, 0.06);
}
.stage-note {
  position: relative; z-index: 1;
  font-size: 12.5px;
  color: var(--ink-subtle);
  text-align: center;
  text-wrap: balance;
  line-height: 1.45;
}

/* ============ Unified Shot Frames（真机截图统一薄框） ============ */
.shot {
  position: relative;
  width: 100%;
  max-width: 288px;
  padding: 6px;
  border-radius: 31px;
  background: var(--surface);
  border: 1px solid rgba(31, 45, 41, 0.11);
  box-shadow: var(--shadow-shot), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.shot img {
  width: 100%;
  aspect-ratio: 1220 / 2712;
  object-fit: cover;
  object-position: top center;
  border-radius: 25px;
  background: #EBF0EE;
}
.shot--sm {
  max-width: 226px;
  padding: 5px;
  border-radius: 26px;
}
.shot--sm img { border-radius: 21px; }

/* Band 4 截断式橱窗画框：去除 appearance 下半空屏，聚焦核心内容 */
.shot--crop {
  max-width: 320px;
  padding: 6px 6px 0;
  border-radius: 28px 28px 0 0;
  border-bottom: 0;
  box-shadow: 0 -4px 28px -12px rgba(24, 66, 58, 0.16), 0 2px 10px rgba(24, 66, 58, 0.06);
}
.shot--crop img {
  aspect-ratio: 10 / 13.0;
  border-radius: 22px 22px 0 0;
}

/* ============ Band 2 · 广工教务原生 ============ */
.jxfw-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  gap: 64px;
  align-items: center;
}
.shot-stage {
  padding: 28px 24px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-well);
  border: 1px solid rgba(43, 114, 102, 0.10);
}
.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.shot-item {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.shot-item--drop { margin-top: 34px; }
.shot-item figcaption {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.01em;
}

.jxfw-copy { display: grid; gap: 12px; }
.spec-rows { margin-top: 12px; }
.spec-row {
  display: grid;
  gap: 5px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.spec-row:last-child { border-bottom: 1px solid var(--hairline); }
.spec-row p, .sys-item p { font-size: 15px; line-height: 1.65; color: var(--ink-muted); max-width: 34em; }

/* ============ Band 3 · 四个底栏视图 ============ */
.views-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  margin-bottom: 32px;
}
.views-head .band-head { margin-bottom: 0; }

.pill-tabs {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: min(100%, 496px);
  padding: 4px;
  background: var(--surface-tonal);
  border: 1px solid rgba(31, 45, 41, 0.05);
  border-radius: var(--radius-pill);
}
.pill-tabs--3 { width: min(100%, 420px); }
.pill-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 4);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(24, 66, 58, .10), 0 1px 1px rgba(24, 66, 58, .05);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 200ms var(--ease);
}
.pill-tabs--3 .pill-thumb { width: calc((100% - 8px) / 3); }
.pill-tabs button {
  position: relative; z-index: 1;
  min-height: 40px; padding: 0 10px; border: 0; background: none;
  border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 550; color: var(--ink-muted); white-space: nowrap;
  transition: color .16s, transform 150ms var(--ease);
}
.pill-tabs button:hover { color: var(--ink); }
.pill-tabs button:active { transform: scale(.96); }
.pill-tabs button.is-on { color: var(--on-primary-container); }

/* 画廊卡片容器：消除大面积空白断层 */
.views-stage {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.view-panel {
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr);
  align-items: stretch;
  animation: panel-in .24s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.view-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: 52px 48px 52px 56px;
}
.detail-list { width: 100%; max-width: 32em; margin-top: 8px; }
.detail-list > div {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.6;
}
.detail-list > div:last-child { border-bottom: 1px solid var(--hairline); }
.detail-list dt { font-weight: 620; color: var(--ink); }
.detail-list dd { color: var(--ink-muted); }

.view-media {
  display: grid;
  place-items: center;
  padding: 36px 32px;
  background: var(--surface-well);
  border-left: 1px solid var(--hairline);
}
.view-media .shot { max-width: 266px; }

/* ============ Band 4 · 桌面同源与安静细节 ============ */
.bento-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.bento-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bento-well {
  display: grid;
  justify-items: center;
  padding: 28px 28px 0;
  background: linear-gradient(180deg, #E8F2EE 0%, #EFF6F3 100%);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.bento-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 26px 30px 30px;
}
.bento-copy .body { font-size: 15px; max-width: none; }

.sys-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.sys-item {
  border-top: 1px solid var(--hairline-strong);
  padding-top: 18px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.sys-item .h3 { font-size: 16px; }

/* ============ Band 5 · 电脑端与 AI 开放能力 ============ */
.open-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  gap: 52px;
  align-items: start;
}
.open-copy { display: grid; gap: 12px; }
.open-list { display: grid; gap: 8px; margin-top: 12px; }
.open-item {
  position: relative;
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 15px 18px 15px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.open-item::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
  opacity: 0;
  transform: scaleY(.5);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.open-item:hover { background: rgba(255, 255, 255, 0.7); border-color: var(--hairline); }
.open-item.is-on {
  background: var(--surface);
  border-color: rgba(43, 114, 102, 0.16);
  box-shadow: 0 8px 22px -14px rgba(24, 66, 58, 0.14);
}
.open-item.is-on::before { opacity: 1; transform: scaleY(1); }
.open-item b { color: var(--ink); font-weight: 620; font-size: 15.5px; }
.open-item.is-on b { color: var(--on-primary-container); }
.open-item span { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }

.open-stage {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.open-panel { display: grid; gap: 14px; min-width: 0; animation: panel-in .2s var(--ease); }
.open-panel .body { font-size: 14.5px; max-width: none; }

.code {
  background: var(--dark-code);
  color: var(--dark-ink);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 205, 186, 0.10);
  overflow: hidden;
  min-width: 0;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px 9px 16px;
  background: var(--dark-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.code-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--dark-muted); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 0; border-radius: var(--radius-pill);
  background: rgba(124, 205, 186, .12); color: var(--dark-primary);
  font-size: 12.5px; font-weight: 550;
  transition: background-color .15s, color .15s, transform 150ms var(--ease);
}
.copy-btn:hover { background: rgba(124, 205, 186, .22); }
.copy-btn.is-ok { background: var(--dark-primary); color: #0B2A24; }
.code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
  font-variant-numeric: tabular-nums; tab-size: 2;
}
.code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.tk-k { color: var(--dark-primary); }
.tk-s { color: #E2B964; }
.tk-c { color: var(--dark-muted); }
.tk-p { color: #B4C4BE; }

/* ============ Band 6 · 收尾 CTA ============ */
.closing { padding-block: 80px 88px; }
.closing-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(560px 280px at 50% 0%, rgba(205, 234, 226, 0.55), transparent 72%),
    var(--surface);
  border: 1px solid rgba(43, 114, 102, 0.12);
  box-shadow: var(--shadow-card);
}
.closing-mark {
  border-radius: 12px;
  box-shadow: 0 10px 24px -10px rgba(43, 114, 102, 0.45);
  margin-bottom: 4px;
}
.closing .lead { text-align: center; font-size: 15.5px; max-width: none; }
.closing-note { font-size: 13.5px; color: var(--ink-subtle); margin-top: 6px; }

/* ============ Footer ============ */
.footer {
  background: var(--dark-canvas);
  color: var(--dark-ink);
  padding-block: 56px 64px;
  border-top: 1px solid rgba(124, 205, 186, 0.12);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: 48px; }
.footer-brand { display: grid; gap: 8px; align-content: start; }
.footer-brand p { color: var(--dark-muted); font-size: 14px; }
.footer-brand .brand { margin-bottom: 6px; }
.footer-ver { font-family: var(--font-mono); font-size: 12.5px !important; opacity: .88; }
.footer-col { display: grid; gap: 4px; align-content: start; }
.footer-col h2 { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--dark-ink); letter-spacing: 0.02em; }
.footer-col a { color: var(--dark-primary); text-decoration: none; font-size: 14px; padding: 5px 0; width: fit-content; opacity: .9; transition: opacity .15s; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Hero 手机内应用 (.ap)：1:1 还原真实截图（完整保留结构与交互）
   ============================================================ */
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

.ap {
  --a-primary: #356B5E;
  --a-onp: #FFFFFF;
  --a-pc: #CBE0D8;
  --a-opc: #235347;
  --a-paper: #EBF0EE;
  --a-surface: #F7FAF8;
  --a-tonal: #DFE7E4;
  --a-ink: #1F2A27;
  --a-muted: #5A6964;
  --a-subtle: #6E7D78;
  --a-hair: #D7E0DC;
  --a-danger: #B23E50;
  --a-conflict: #FCE9E7;
  --a-shadow: rgba(20, 48, 42, .12);

  /* 与真机截图一致的课程植物粉彩 */
  --c0b: #D3DCE2; --c0f: #385362;
  --c1b: #BDD4CC; --c1f: #285549;
  --c2b: #CCCDE2; --c2f: #45476D;
  --c3b: #E5DEC3; --c3f: #635728;
  --c4b: #E7CFD7; --c4f: #734253;

  position: absolute; inset: 0;
  display: flex; flex-direction: column; overflow: hidden;
  font-size: 12px; font-size: calc(100cqw / 25.7);
  line-height: 1.38; background: var(--a-paper); color: var(--a-ink);
  transition: background-color .28s, color .28s;
  user-select: none;
}

/* 深色（同步 Theme.kt: #141A19 / #1E2624 / #7CCDBA + DarkCourse） */
.ap[data-color-mode="dark"] {
  --a-primary: #7CCDBA;
  --a-onp: #0B2A24;
  --a-pc: #25433C;
  --a-opc: #BFEDE2;
  --a-paper: #141A19;
  --a-surface: #1E2624;
  --a-tonal: #28322F;
  --a-ink: #E6EEEB;
  --a-muted: #93A39E;
  --a-subtle: #788883;
  --a-hair: #2A3431;
  --a-danger: #FF8F84;
  --a-conflict: #4A2A27;
  --a-shadow: rgba(0, 0, 0, .48);

  --c0b: #2B414D; --c0f: #C2E0F0;
  --c1b: #24453E; --c1f: #B5E5DA;
  --c2b: #363557; --c2f: #D5D2F5;
  --c3b: #494124; --c3f: #EFE4B6;
  --c4b: #53323D; --c4f: #F4CBD6;
}

/* 6 套预设（浅色） */
.ap[data-theme-preset="peach"] { --a-primary: #9E5540; --a-pc: #F2D7CE; --a-opc: #5C2819; --a-paper: #F5EEEC; --a-surface: #FCF8F7; --a-tonal: #EBE0DC; --a-hair: #E4D6D1; }
.ap[data-theme-preset="lavender"] { --a-primary: #5E52A0; --a-pc: #DDD8F3; --a-opc: #312768; --a-paper: #F0EFF6; --a-surface: #F9F8FC; --a-tonal: #E4E2EE; --a-hair: #DAD7E8; }
.ap[data-theme-preset="sky"] { --a-primary: #37689E; --a-pc: #CFE1F5; --a-opc: #193F6B; --a-paper: #ECF1F6; --a-surface: #F7FAFD; --a-tonal: #E0E8F0; --a-hair: #D5E0EB; }
.ap[data-theme-preset="rose"] { --a-primary: #9E4764; --a-pc: #F2D3DD; --a-opc: #612037; --a-paper: #F5ECEF; --a-surface: #FCF7F9; --a-tonal: #EBDEE3; --a-hair: #E3D3D9; }
.ap[data-theme-preset="lemon"] { --a-primary: #826A1B; --a-pc: #ECE1BC; --a-opc: #4A3B07; --a-paper: #F3F0E6; --a-surface: #FBF9F3; --a-tonal: #E8E4D5; --a-hair: #DFD9C8; }

/* 6 套预设（深色） */
.ap[data-theme-preset="peach"][data-color-mode="dark"] { --a-primary: #F2B2A0; --a-pc: #4D2C23; --a-opc: #FAD4C8; --a-paper: #1B1615; --a-surface: #251F1D; --a-tonal: #302826; --a-hair: #382E2C; }
.ap[data-theme-preset="lavender"][data-color-mode="dark"] { --a-primary: #C8BEFA; --a-pc: #39335E; --a-opc: #E3DDFF; --a-paper: #16151C; --a-surface: #201E28; --a-tonal: #2A2834; --a-hair: #333040; }
.ap[data-theme-preset="sky"][data-color-mode="dark"] { --a-primary: #A3CBF5; --a-pc: #254461; --a-opc: #D4E8FC; --a-paper: #14181C; --a-surface: #1D232A; --a-tonal: #262E37; --a-hair: #2E3842; }
.ap[data-theme-preset="rose"][data-color-mode="dark"] { --a-primary: #F2A7BD; --a-pc: #542836; --a-opc: #FAD3DF; --a-paper: #1B1517; --a-surface: #251D20; --a-tonal: #302529; --a-hair: #3A2D31; }
.ap[data-theme-preset="lemon"][data-color-mode="dark"] { --a-primary: #E6C85C; --a-pc: #473E1F; --a-opc: #F4E4A6; --a-paper: #1A1914; --a-surface: #24221B; --a-tonal: #2F2C23; --a-hair: #38352A; }

.ap .ic { width: 1.35em; height: 1.35em; }
.ap button { -webkit-tap-highlight-color: transparent; }
.ap :focus-visible { outline: 2px solid var(--a-primary); outline-offset: -2px; border-radius: .45em; }
.ap-body:focus-visible { outline: none; }

/* 状态栏 + 顶部标题栏 */
.ap-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: .62em 1.25em .2em; font-size: .76em; font-weight: 600; flex: none;
  font-family: var(--font-mono);
}
.ap-status-r { display: inline-flex; gap: .42em; align-items: center; }

.ap-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  min-height: 3.4em; padding: .35em .85em .35em 1.15em; flex: none;
}
.ap-top--center { align-items: center; min-height: 2.9em; }
.ap-title { font-size: 1.52em; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.ap-title-btn {
  display: inline-flex; align-items: center; gap: .25em;
  padding: .15em 0; border: 0; background: none;
  font-size: 1.16em; font-weight: 600; color: var(--a-ink);
}
.ap-title-btn .ic { width: 1em; height: 1em; }
.ap-sub { font-size: .78em; color: var(--a-muted); margin-top: .15em; font-family: var(--font-mono); }
.ap-sub--sans { font-family: var(--font-sans); }
.ap-acts { display: flex; align-items: center; gap: .15em; margin-top: .15em; }
.ap-act {
  width: 2.35em; height: 2.35em; padding: 0; border: 0; background: none;
  border-radius: 50%; display: grid; place-items: center; color: var(--a-ink);
}
.ap-act:active { transform: scale(.92); }

/* 日历顶栏右侧「月 | 周」胶囊 */
.ap-cal-switch {
  display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: .18em; background: var(--a-tonal); border-radius: var(--radius-pill);
  min-width: 5.8em;
}
.ap-cal-switch button {
  padding: .28em .65em; border: 0; border-radius: var(--radius-pill);
  background: none; font-size: .78em; font-weight: 600; color: var(--a-muted);
}
.ap-cal-switch button.is-on {
  background: var(--a-surface); color: var(--a-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.ap-body {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding-bottom: 5.7em; scrollbar-width: none; overscroll-behavior: contain;
}
.ap-body::-webkit-scrollbar { display: none; }
.ap-body.is-in, [data-day-list].is-in { animation: ap-in .2s ease-out; }
@keyframes ap-in { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }

/* 分区标题 */
.ap-sec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.05em 1.2em .35em; font-size: .86em; font-weight: 500; color: var(--a-muted);
}
.ap-num, .ap-time, .ap-code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 今日摘要浮岛卡 */
.ap-card {
  margin: .3em .95em .35em; padding: 1.05em 1.15em;
  background: var(--a-surface); border-radius: 1.35em;
  box-shadow: 0 1px 4px rgba(20, 48, 42, .03);
  transition: background-color .28s;
}
.ap-sum { display: flex; justify-content: space-between; align-items: center; gap: .75em; }
.ap-sum-text { display: grid; gap: .25em; min-width: 0; }
.ap-sum-text b { font-size: 1.14em; font-weight: 650; }
.ap-sum-text span {
  font-size: .78em; color: var(--a-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-ring {
  position: relative; flex: none; width: 3.05em; height: 3.05em;
  border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--a-primary) var(--p), var(--a-tonal) 0);
  transition: --p .35s var(--ease);
}
.ap-ring::before {
  content: ""; position: absolute; inset: .28em;
  border-radius: 50%; background: var(--a-surface); transition: background-color .28s;
}
.ap-ring span { position: relative; font-size: .72em; font-weight: 600; font-family: var(--font-mono); }

/* 待办与取件行 */
.ap-row {
  display: flex; align-items: center;
  padding: .2em .95em .2em .55em; transition: opacity .22s ease;
}
.ap-row.is-done { opacity: .45; }
.ap-row.is-done .ap-row-title, .ap-row.is-done .ap-code { text-decoration: line-through; }
.ap-row.is-new { animation: ap-flash 1s ease-out; border-radius: .9em; }
@keyframes ap-flash { from { background: var(--a-pc); } to { background: transparent; } }
.ap-row-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: center; gap: .1em; padding: .35em 0;
}
.ap-row-title {
  font-size: .96em; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-row-sub { font-size: .76em; color: var(--a-muted); }
.ap-check {
  position: relative; flex: none; width: 2.75em; height: 2.75em;
  padding: 0; border: 0; background: none;
  display: grid; place-items: center; color: var(--a-onp);
}
.ap-check:active, .ap-icon-btn:active, .ap-code:active { transform: scale(.93); }
.ap-check::before {
  content: ""; position: absolute; width: 1.28em; height: 1.28em;
  border-radius: .28em; border: 1.8px solid var(--a-subtle);
  transition: background-color .18s, border-color .18s;
}
.ap-check .ic { position: relative; width: .92em; height: .92em; opacity: 0; transition: opacity .15s; stroke-width: 2.5; }
.ap-check[aria-checked="true"]::before { background: var(--a-primary); border-color: var(--a-primary); }
.ap-check[aria-checked="true"] .ic { opacity: 1; }
.ap-code {
  align-self: flex-start; padding: 0; border: 0; background: none;
  color: var(--a-primary); font-size: 1.06em; font-weight: 700;
  letter-spacing: .01em; text-align: left; line-height: 1.25;
}
.ap-icon-btn {
  flex: none; width: 2.4em; height: 2.4em;
  display: grid; place-items: center; border: 0; background: none;
  border-radius: 50%; color: var(--a-muted);
}
.ap-icon-btn .ic { width: 1.15em; height: 1.15em; }

/* ============ 课表（1:1 对齐 shot-timetable.webp） ============ */
.ap-tt-wrap { padding: 0 .35em 0 .1em; }
.ap-tt-week {
  display: grid; grid-template-columns: 2.45em repeat(7, minmax(0, 1fr));
  gap: .16em; align-items: center; padding: .1em 0 .35em;
}
.ap-tt-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .28em 0; border-radius: .75em; line-height: 1.22; gap: .05em;
}
.ap-tt-day b { font-size: .78em; font-weight: 500; color: var(--a-muted); }
.ap-tt-day span { font-size: .64em; color: var(--a-muted); font-family: var(--font-mono); }
.ap-tt-day.is-today { background: var(--a-pc); }
.ap-tt-day.is-today b, .ap-tt-day.is-today span { color: var(--a-opc); font-weight: 600; }

.ap-tt-grid {
  display: grid;
  grid-template-columns: 2.45em repeat(7, minmax(0, 1fr));
  grid-template-rows:
    repeat(4, 3.65em)
    .48em
    repeat(4, 3.65em)
    .42em
    repeat(2, 3.65em);
  column-gap: .18em;
  row-gap: .1em;
}
.ap-tt-break {
  grid-column: 1 / -1;
  align-self: center;
  height: 1px;
  background: var(--a-hair);
  margin: 0 .15em;
}
.ap-tt-slot {
  grid-column: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.12; text-align: center;
}
.ap-tt-slot b { font-size: .78em; font-weight: 600; color: var(--a-ink); margin-bottom: .06em; }
.ap-tt-slot span { font-size: .56em; color: var(--a-muted); font-family: var(--font-mono); }

.ap-course {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: .14em; min-width: 0; padding: .38em .28em .38em .34em;
  border: 0; border-radius: .78em;
  background: var(--bg); color: var(--fg);
  text-align: left; font-size: .68em; line-height: 1.22; overflow: hidden;
  transition: transform 150ms var(--ease), filter .16s, background-color .28s, color .28s;
}
.ap-course:hover { filter: brightness(0.965); }
.ap[data-color-mode="dark"] .ap-course:hover { filter: brightness(1.08); }
.ap-course:active { transform: scale(.96); }
.ap-course-name {
  font-weight: 650;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.ap-course-room {
  opacity: .88; font-size: .92em; line-height: 1.18;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}

/* ============ 日历（1:1 对齐 shot-calendar.webp） ============ */
.ap-cal-card {
  margin: .15em .85em .55em; padding: .65em .45em .55em;
  background: var(--a-surface); border-radius: 1.45em;
  box-shadow: 0 1px 4px rgba(20, 48, 42, .03);
}
.ap-cal-wk, .ap-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ap-cal-wk { padding: .1em 0 .35em; text-align: center; font-size: .72em; color: var(--a-muted); }
.ap-cal-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .14em; height: 2.85em; padding: .1em 0 0; border: 0; background: none; color: var(--a-ink);
}
.ap-cal-cell b {
  width: 1.88em; height: 1.88em; display: grid; place-items: center;
  border-radius: 50%; font-size: .86em; font-weight: 500;
  font-family: var(--font-mono);
  transition: background-color .18s, color .18s, border-color .18s;
}
.ap-cal-cell:active b { transform: scale(.92); }
.ap-cal-cell.is-dim { color: var(--a-subtle); opacity: .45; }
.ap-cal-cell.is-today b {
  border: 1.6px solid var(--a-primary);
  color: var(--a-primary);
  font-weight: 650;
}
.ap-cal-cell.is-sel b {
  background: var(--a-primary);
  color: var(--a-onp);
  border-color: var(--a-primary);
  font-weight: 650;
}
.ap-cal-marks {
  display: flex; align-items: center; justify-content: center; gap: .16em; height: .38em;
}
.ap-bar {
  width: .52em; height: .18em; border-radius: 99px; background: var(--a-primary);
}
.ap-cal-cell.is-dim .ap-bar { background: var(--a-subtle); }
.ap-ringdot {
  width: .34em; height: .34em; border-radius: 50%;
  border: 1.2px solid var(--a-primary);
}

.ap-day-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .35em .95em .45em;
}
.ap-day-ttl b { display: block; font-size: 1.26em; font-weight: 700; line-height: 1.22; }
.ap-day-ttl span { display: block; font-size: .74em; color: var(--a-muted); margin-top: .15em; }
.ap-day-acts { display: flex; align-items: center; gap: .35em; margin-top: .15em; }
.ap-back-today {
  padding: .3em .55em; border: 0; border-radius: var(--radius-pill);
  background: none; color: var(--a-primary); font-size: .82em; font-weight: 600;
}
.ap-back-today:active { transform: scale(.95); }

.ap-cal-event {
  display: flex; align-items: center; gap: .85em;
  margin: .42em .85em; padding: .78em .95em;
  border-radius: 1.1em; background: var(--bg); color: var(--fg);
}
.ap-cal-time { font-family: var(--font-mono); font-size: .92em; font-weight: 600; flex: none; }
.ap-cal-info { min-width: 0; display: grid; gap: .08em; }
.ap-cal-info b { font-size: .92em; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-cal-info span { font-size: .76em; opacity: .86; }

/* ============ 待办（1:1 对齐 shot-todo.webp + 自然语言录入） ============ */
.ap-todo-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .15em .95em .35em; gap: .5em;
}
.ap-pri-pill {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .42em .85em; border: 0; border-radius: var(--radius-pill);
  background: var(--a-surface); color: var(--a-ink);
  font-size: .78em; font-weight: 500;
  box-shadow: 0 1px 2px rgba(20, 48, 42, .04);
}
.ap-pri-pill .ic { width: 1em; height: 1em; color: var(--a-muted); }

.ap-nl { padding: .15em .95em .3em; }
.ap-nl-field {
  display: grid; padding: .55em .8em;
  background: var(--a-surface); border: 1px solid var(--a-hair);
  border-radius: .85em;
}
.ap-nl-field:focus-within { border-color: var(--a-primary); }
.ap-nl-mirror, .ap-nl-input {
  grid-area: 1 / 1; font: inherit; font-size: .84em; line-height: 1.4;
  padding: 0; margin: 0; white-space: pre; min-height: 1.4em;
}
.ap-nl-mirror { overflow: hidden; pointer-events: none; color: var(--a-ink); }
.ap-nl-input {
  width: 100%; min-width: 0; border: 0; outline: 0;
  background: transparent; color: transparent; caret-color: var(--a-primary);
}
.ap-nl-input::placeholder { color: var(--a-subtle); }
.ap-hl { border-radius: .28em; background: var(--a-pc); color: var(--a-opc); box-shadow: 0 0 0 .12em var(--a-pc); }
.ap-hl-pri { background: var(--a-conflict); color: var(--a-danger); box-shadow: 0 0 0 .12em var(--a-conflict); }
.ap-nl-preview {
  display: none; align-items: center; gap: .5em;
  margin-top: .45em; padding: .5em .6em .5em .85em;
  background: var(--a-surface); border: 1px solid var(--a-hair); border-radius: 1em;
}
.ap-nl-preview.is-on { display: flex; animation: ap-in .18s ease-out; }
.ap-pv-main { flex: 1; min-width: 0; display: grid; gap: .2em; }
.ap-pv-title { font-weight: 600; font-size: .85em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-pv-tags { display: flex; flex-wrap: wrap; gap: .25em; font-size: .72em; }
.ap-pv-tags .ap-hl { padding: .12em .55em; border-radius: var(--radius-pill); box-shadow: none; }
.ap-pv-none { color: var(--a-muted); }
.ap-chips { display: flex; flex-wrap: wrap; gap: .32em; margin-top: .45em; }
.ap-chip {
  padding: .3em .68em; border: 0; border-radius: var(--radius-pill);
  background: var(--a-tonal); color: var(--a-muted);
  font-size: .72em; font-weight: 500;
}
.ap-chip:active { transform: scale(.96); }
.ap-btn-sm {
  height: 2.1em; padding: 0 .85em; border: 0; border-radius: var(--radius-pill);
  background: var(--a-primary); color: var(--a-onp); font-size: .78em; font-weight: 600;
}

/* 可折叠分组 */
.ap-grp-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .65em .95em .3em; border: 0; background: none;
  color: var(--a-ink); font-size: .88em; font-weight: 600;
}
.ap-grp-l { display: inline-flex; align-items: center; gap: .4em; }
.ap-grp-l .ic { width: 1.05em; height: 1.05em; transition: transform .18s var(--ease); }
.ap-grp-head[aria-expanded="false"] .ap-grp-l .ic { transform: rotate(-90deg); }
.ap-grp-r { display: inline-flex; align-items: center; gap: .55em; color: var(--a-muted); }
.ap-grp-cnt {
  min-width: 1.65em; height: 1.45em; padding: 0 .45em;
  border-radius: var(--radius-pill); background: var(--a-tonal);
  display: inline-grid; place-items: center;
  font-size: .78em; font-family: var(--font-mono); font-weight: 600;
}
.ap-grp-r .ic { width: 1.15em; height: 1.15em; }

/* ============ 底部悬浮胶囊栏 & 圆形 FAB & 抽屉 ============ */
.ap-nav {
  position: absolute; left: .8em; right: .8em; bottom: .65em; z-index: 3;
  height: 4.3em; padding: .26em;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--a-surface); border-radius: var(--radius-pill);
  box-shadow: 0 .25em 1em -.15em var(--a-shadow), 0 1px 3px rgba(20, 48, 42, .05);
  transition: background-color .28s;
}
.ap-nav-thumb {
  position: absolute; top: .26em; bottom: .26em; left: .26em;
  width: calc((100% - .52em) / 4); border-radius: var(--radius-pill);
  background: var(--a-pc);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 180ms var(--ease), background-color .28s;
}
.ap-nav-item {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .14em; padding: 0; border: 0; background: none;
  border-radius: var(--radius-pill); font-size: .74em; font-weight: 500;
  color: var(--a-muted); transition: color .18s, transform 150ms var(--ease);
}
.ap-nav-item:active { transform: scale(.95); }
.ap-nav-item .ic { width: 1.72em; height: 1.72em; }
.ap-nav-item.is-on { color: var(--a-opc); font-weight: 600; }

.ap-fab {
  position: absolute; right: 1.05em; bottom: 5.55em; z-index: 2;
  width: 3.45em; height: 3.45em; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--a-pc); color: var(--a-opc);
  box-shadow: 0 .25em .85em -.1em var(--a-shadow);
  transition: transform 150ms var(--ease), background-color .28s, color .28s;
}
.ap-fab:active { transform: scale(.93); }
.ap-fab .ic { width: 1.55em; height: 1.55em; }

/* 底部课程详情抽屉 */
.ap-scrim {
  position: absolute; inset: 0; z-index: 4;
  background: rgba(10, 20, 17, .38); opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.ap.has-sheet .ap-scrim { opacity: 1; pointer-events: auto; }
.ap-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  max-height: 76%; overflow-y: auto; padding: .55em 1.2em 1.5em;
  background: var(--a-surface); border-radius: 1.65em 1.65em 0 0;
  transform: translateY(105%); visibility: hidden;
  transition: transform .25s var(--ease), visibility 0s .25s, background-color .28s;
  scrollbar-width: none;
}
.ap.has-sheet .ap-sheet { transform: none; visibility: visible; transition-delay: 0s; }
.ap-grab { display: block; width: 2.5em; height: .28em; margin: 0 auto .65em; border-radius: var(--radius-pill); background: var(--a-hair); }
.ap-sheet-head { display: flex; align-items: center; gap: .75em; margin-bottom: .45em; }
.ap-swatch { flex: none; width: 2.1em; height: 2.1em; border-radius: .7em; background: var(--bg); border: 2px solid var(--fg); }
.ap-sheet-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-sheet-ttl b { font-size: 1.1em; font-weight: 650; line-height: 1.28; }
.ap-sheet-ttl span { font-size: .78em; color: var(--a-muted); }
.ap-vrow {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1em; width: 100%; padding: .55em 0; border: 0; background: none;
  color: var(--a-ink); font-size: .9em; text-align: left;
  border-top: 1px solid var(--a-hair);
}
.ap-vrow span { color: var(--a-muted); flex: none; }
.ap-vrow b { font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: .28em; }
.ap-vrow-btn { cursor: pointer; }
.ap-chev { width: 1.05em !important; height: 1.05em !important; transition: transform .2s var(--ease); }
.ap-vrow-btn.is-open .ap-chev { transform: rotate(180deg); }
.ap-rooms { display: flex; flex-wrap: wrap; gap: .38em; padding: .15em 0 .55em; }
.ap-rooms span {
  padding: .28em .7em; border-radius: var(--radius-pill);
  background: var(--a-tonal); font-family: var(--font-mono); font-size: .78em;
}

.ap-toast {
  position: absolute; left: 50%; bottom: 5.7em; z-index: 6;
  max-width: 88%; padding: .55em 1.05em; border-radius: var(--radius-pill);
  background: var(--a-ink); color: var(--a-paper); font-size: .82em; text-align: center;
  opacity: 0; pointer-events: none; transform: translate(-50%, .45em);
  transition: opacity .18s, transform .18s var(--ease);
}
.ap-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  :root { --band-y: 76px; }
  .topnav { display: none; }
  .hero { padding-block: 32px 64px; }
  .hero-grid, .jxfw-grid, .open-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .jxfw-grid .shot-stage { order: 2; max-width: 520px; width: 100%; justify-self: center; }
  .views-head { align-items: flex-start; }
  .pill-tabs { width: 100%; }
  .view-panel { grid-template-columns: minmax(0, 1fr); }
  .view-copy { padding: 36px 28px 32px; }
  .view-media { border-left: 0; border-top: 1px solid var(--hairline); padding: 32px 20px; }
  .bento-pair { grid-template-columns: minmax(0, 1fr); }
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 36px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --band-y: 60px; --text-display: clamp(1.75rem, 7.6vw, 2.25rem); }
  .wrap { width: min(100% - 32px, 1140px); }
  .topbar-act .textlink { display: none; }
  .brand { font-size: 16px; }
  .hero { padding-block: 24px 52px; }
  .hero-copy { gap: 16px; }
  .hero-copy .cta-row { width: 100%; flex-wrap: nowrap; gap: 10px; }
  .hero-copy .cta-row .btn-lg { min-height: 46px; padding: 0 16px; font-size: 14.5px; flex: 1 1 auto; }
  .hero-copy .cta-row .btn-tonal { flex: 0 0 auto; padding: 0 16px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; width: 100%; padding-top: 14px; }
  .facts li, .facts li:first-child { padding: 0; border: 0; }
  .theme-bar { max-width: 100%; padding: 4px 5px 4px 6px; gap: 6px; }
  .stage-glow { inset: 44px 0 28px; }
  .dot { width: 26px; height: 26px; }
  .dot::before { width: 16px; height: 16px; }
  .phone-shell { width: min(100%, 332px); }
  .shot-stage { padding: 18px 14px 16px; border-radius: 24px; }
  .shot-pair { gap: 12px; }
  .shot-item--drop { margin-top: 24px; }
  .pill-tabs button { font-size: 12px; padding: 0 4px; }
  .views-stage { border-radius: 24px; }
  .view-copy { padding: 26px 20px 24px; gap: 12px; }
  .detail-list > div { grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; }
  .bento-well { padding: 20px 20px 0; }
  .bento-copy { padding: 20px 20px 24px; }
  .sys-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sys-item { padding-top: 16px; }
  .open-stage { padding: 16px; border-radius: 20px; }
  .code pre { font-size: 12.2px; padding: 15px; }
  .closing { padding-block: 56px 64px; }
  .closing-card { padding: 40px 20px; border-radius: 24px; }
  .closing .cta-row { width: 100%; }
  .closing .cta-row .btn { flex: 1 1 100%; min-height: 48px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
