/* 课格官网 —— 纯静态，零构建。配色沿用小程序：#1A1A1A 文字 / #F5F7FA 底 / #C9A15A 点缀。 */

:root {
  --bg: #f5f7fa;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #55565c;
  --muted: #8e8e93;
  --line: #e6e8ec;
  --line-2: #eef0f3;
  --gold: #c9a15a;
  --gold-ink: #8a6a2e;
  --gold-soft: #f6efe2;
  /* 小程序里的 8 个课程色，只用在「格子」上 */
  --c1: #e06c60; --c2: #e39a4e; --c3: #d8b84a; --c4: #63a97c;
  --c5: #4fa39c; --c6: #5b84d1; --c7: #8e7bc6; --c8: #ce7ba4;
  --w: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(26,26,26,.04), 0 12px 32px -12px rgba(26,26,26,.14), 0 40px 80px -40px rgba(26,26,26,.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.3; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.top nav a[aria-current] { color: var(--ink); }
.top nav a:hover { text-decoration: none; color: var(--ink); }

/* 首页 Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.hero h1 { font-size: 54px; letter-spacing: -0.03em; line-height: 1.15; }
.hero .lede { margin-top: 26px; font-size: 18px; line-height: 1.85; color: var(--ink-2); max-width: 26em; }
.cta { margin-top: 40px; display: flex; align-items: center; gap: 22px; }
.qr {
  width: 148px; height: 148px; flex: none; border-radius: 16px; padding: 8px;
  background: var(--paper); box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.5;
}
.qr img { width: 100%; height: 100%; border-radius: 10px; }
.cta-text { font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 18em; }
.cta-text strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.cta-text .free { display: block; margin-top: 10px; color: var(--gold-ink); font-size: 14px; }
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .only-touch { display: inline; }
  .only-mouse { display: none; }
}

/* 周课表：整站唯一的「亮点」 */
.sched {
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow);
  padding: 20px 22px 22px; user-select: none; min-width: 0;
}
.sched-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 0 14px; }
.sched-head b { font-size: 15px; font-weight: 600; }
.sched-head span { font-size: 12px; color: var(--muted); }
.grid-wk {
  display: grid; grid-template-columns: 40px repeat(7, minmax(0, 1fr)); grid-auto-rows: 26px; gap: 4px;
  font-size: 11px; color: var(--muted); min-width: 0; position: relative;
}
.grid-wk .d { text-align: center; line-height: 26px; font-size: 12px; color: var(--ink-2); }
.grid-wk .d.today { color: var(--ink); font-weight: 600; }
.grid-wk .t { line-height: 10px; text-align: right; padding-right: 8px; font-variant-numeric: tabular-nums; font-size: 10.5px; }
.grid-wk .ln { grid-column: 2 / -1; border-top: 1px solid var(--line-2); align-self: start; pointer-events: none; }
.grid-wk .blk {
  border-radius: 7px; color: #fff; padding: 5px 7px; line-height: 1.3; overflow: hidden; min-width: 0;
  font-size: 11.5px; font-weight: 500; z-index: 1;
}
.grid-wk .blk small { display: block; opacity: .82; font-weight: 400; font-size: 10.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-wk .blk.done { opacity: .62; }
.grid-wk .blk.done small::after { content: " · 已点名"; }
.grid-wk .blk.now { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold); }

/* 通用分节 */
.sec { padding: 104px 0; }
.sec.tint { background: var(--bg); }
.sec-head { max-width: 34em; }
.sec h2 { font-size: 38px; letter-spacing: -0.025em; }
.sec .sub { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

/* 功能：左侧一列功能块，右侧走马灯 */
.stage { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: center; }
.feats { display: grid; grid-template-columns: 1fr; gap: 26px; }
.feat { border-top: 1px solid var(--line); padding-top: 18px; }
.feat:first-child { border-top-color: var(--ink); }
.feat h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.feat .sq { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.feat p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.8; }

/* 走马灯 */
.carousel { width: 100%; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 24px 0 56px; margin: -24px 0 -56px; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0 28px; }
.cap { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 0 28px; font-size: 14px; color: var(--ink-2); }
.dots { display: flex; gap: 8px; }
.dots button { width: 6px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 20px; background: var(--ink); }
.cap .dots { margin-left: auto; }
.arrows { display: flex; gap: 6px; margin-left: 16px; }
.arrows button { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 0 2px; }
.arrows button:hover { border-color: var(--ink); }
.shot {
  aspect-ratio: 9 / 19.5; border-radius: 28px; padding: 0; background: var(--bg);
  box-shadow: 0 2px 6px rgba(26,26,26,.05), 0 24px 48px -16px rgba(26,26,26,.2), 0 48px 96px -40px rgba(26,26,26,.22);
  overflow: hidden;
}
.shot > * { width: 100%; height: 100%; border-radius: 28px; background: var(--bg); }
.shot img { object-fit: cover; }

/* 定价：一块面板，三栏以细线分隔 */
.plans { margin-top: 56px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.plan { padding: 40px 36px 36px; position: relative; }
.plan + .plan { border-left: 1px solid var(--line-2); }
.plan h3 { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.price { margin-top: 18px; font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan .first { margin-top: 14px; color: var(--gold-ink); font-size: 14px; line-height: 1.6; }
.plan ul { margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line-2); }
.plan li:first-child { border-top: 0; padding-top: 0; }
.plan.hl::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.tag { position: absolute; top: 36px; right: 36px; color: var(--gold-ink); background: var(--gold-soft); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.plans-note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 300; font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* 结尾再给一次扫码 */
.close { padding: 120px 0; text-align: center; }
.close h2 { font-size: 40px; letter-spacing: -0.025em; }
.close .cta { justify-content: center; margin-top: 44px; }
.close .cta-text { text-align: left; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--muted); line-height: 2; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.foot .links { margin-left: auto; display: flex; gap: 20px; }

/* 正文页（关于 / 协议 / 隐私 / 帮助） */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 680px; }
.doc h1 { font-size: 36px; letter-spacing: -0.025em; margin-bottom: 10px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 44px; }
.doc h2 { font-size: 24px; margin: 52px 0 14px; }
.doc h3 { font-size: 18px; margin: 32px 0 8px; }
.doc p { margin: 14px 0; color: var(--ink-2); }
.doc ul, .doc ol { margin: 14px 0; padding-left: 1.4em; color: var(--ink-2); }
.doc li { margin: 6px 0; }
.doc blockquote { margin: 20px 0; padding: 14px 20px; border-left: 2px solid var(--gold); background: var(--bg); color: var(--ink-2); border-radius: 0 10px 10px 0; }
.doc blockquote p { margin: 4px 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.doc code { font-family: inherit; background: var(--bg); border-radius: 4px; padding: 1px 6px; font-size: .95em; }
.doc pre { background: var(--bg); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.doc pre code { padding: 0; background: none; }
.doc table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { border-bottom-color: var(--ink); font-weight: 600; }
.doc .toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.doc .toc li { padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0; }
.doc .toc a { font-weight: 600; color: var(--ink); font-size: 18px; }
.doc .toc p { margin: 4px 0 0; font-size: 15px; }
.doc .back { display: inline-block; margin-top: 56px; color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { font-size: 44px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .carousel { width: min(380px, 100%); margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.75; }
  .wrap { width: min(var(--w), 100% - 32px); }
  .brand { font-size: 17px; }
  .brand small { display: none; }
  .top .wrap { height: 58px; gap: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .hero { padding: 44px 0 64px; }
  .hero h1 { font-size: clamp(25px, 7.2vw, 28px); }
  .hero .lede { margin-top: 20px; font-size: 15px; }
  .cta { gap: 16px; margin-top: 32px; }
  .cta-text { font-size: 14px; }
  .cta-text strong { font-size: 16px; }
  .cta-text .free { font-size: 13px; }
  .qr { width: 124px; height: 124px; }
  .sched { padding: 14px 12px 14px; border-radius: 16px; }
  .grid-wk { grid-template-columns: 30px repeat(7, minmax(0, 1fr)); grid-auto-rows: 22px; gap: 3px; }
  .grid-wk .d { font-size: 11px; }
  .grid-wk .t { padding-right: 5px; font-size: 9.5px; }
  /* 左右内边距吃掉多余宽度，内容区正好 2em：课程名两字一行，不会断成「初一数 / 学」 */
  .grid-wk .blk { font-size: 10px; padding: 3px max(3px, calc(50% - 1em)); border-radius: 5px; text-align: center; }
  .grid-wk .blk small { display: none; }
  .sec { padding: 64px 0; }
  .sec h2, .close h2 { font-size: 22px; }
  .sec .sub { margin-top: 12px; font-size: 15px; }
  .stage { margin-top: 40px; gap: 44px; }
  .feats { gap: 20px; }
  .feat h3 { font-size: 17px; }
  .feat p { margin-top: 8px; font-size: 15px; }
  .track { padding: 16px 0 40px; margin: -16px 0 -40px; }
  /* 手机框按 9:19.5 撑满整宽会有 650px 高，收窄到约 220px 宽 / 480px 高 */
  .carousel { width: min(260px, 100%); }
  .slide, .cap { padding-inline: 20px; }
  /* 手机端不显示页名，排成「‹ 圆点 ›」 */
  .cap-name { display: none; }
  .cap { justify-content: space-between; }
  .cap { gap: 8px; }
  .cap .dots { margin: 0; gap: 6px; }
  .arrows { display: contents; }
  .arrows .prev { order: -1; }
  /* 阴影收到 slide 的 20px 内边距以内，否则会被 track 的横向滚动裁出直边 */
  .shot { border-radius: 18px; box-shadow: 0 2px 6px rgba(26,26,26,.05), 0 14px 24px -10px rgba(26,26,26,.22); }
  .shot > * { border-radius: 18px; }
  /* 手机端保持三列并排，每列约 110px：缩字号；「首年 ¥68」标签已说明首年价，长句省掉 */
  .plans { margin-top: 32px; border-radius: 18px; }
  .plan { padding: 24px 12px 18px; }
  .plan h3 { font-size: 13px; }
  /* 窄列放不下「年卡 + 标签」，标签改成右上角角标 */
  .tag { top: 3px; right: 0; font-size: 10px; padding: 1px 6px; border-radius: 0 0 0 8px; }
  .price { margin-top: 12px; font-size: clamp(18px, 5.6vw, 21px); white-space: nowrap; }
  .price small { font-size: 10px; margin-left: 2px; }
  .plan .first { display: none; }
  .plan ul { margin-top: 12px; font-size: 11px; line-height: 1.5; }
  .plan li { padding: 5px 0; }
  .plans-note { margin-top: 16px; font-size: 12px; }
  .faq summary { font-size: 15px; padding: 16px 0; }
  .close { padding: 72px 0; }
  .close .cta { flex-direction: column; }
  .close .cta-text { text-align: center; }
  .foot .links { margin-left: 0; }
  .doc h1 { font-size: 22px; }
  .doc h2 { font-size: 20px; margin: 40px 0 12px; }
  .doc h3 { font-size: 17px; }
  .doc table, .doc .toc p { font-size: 14px; }
  .doc .toc a { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: fade .2s ease-out; }
  @keyframes fade { from { opacity: 0; transform: translateY(-2px); } }
}

/* 截图示意：按小程序真实页面结构用 HTML 画的缩略图，有真机截图后整块替换为 <img> 即可。
   所有尺寸用 em，字号随手机框宽度缩放（容器查询单位）。 */
.shot { container-type: inline-size; }
.scr { --fs: clamp(4.6px, 4.1cqw, 13.5px); font-size: var(--fs); line-height: 1.35; color: #111; overflow: hidden; display: flex; flex-direction: column; font-weight: 400; position: relative; }
/* 灵动岛 + 状态栏时间 */
.scr::after { content: "9:41"; position: absolute; left: 1.9em; top: 1.2em; font-size: calc(var(--fs) * 1.05); font-weight: 600; letter-spacing: .02em; z-index: 2; }
.scr::before { content: ""; position: absolute; right: 1.9em; top: 1.65em; width: 2.6em; height: 1.1em; border-radius: .25em; border: 1px solid #111; z-index: 2; background: linear-gradient(90deg, #111 70%, transparent 70%) padding-box; }
.scr * { box-sizing: border-box; min-width: 0; }
.scr .nav { background: #fff; text-align: center; font-weight: 600; font-size: calc(var(--fs) * 1.15); padding: 3.6em 0 1.1em; flex: none; }
.scr .body { flex: 1; padding: 1.2em 1.2em 0; display: flex; flex-direction: column; gap: .9em; overflow: hidden; }
.scr .body.scroll { overflow-y: auto; scrollbar-width: none; padding-bottom: 1em; overscroll-behavior: contain; }
.scr .body.scroll::-webkit-scrollbar { display: none; }
.scr .body.scroll > * { flex: none; }
.scr .ic { width: 2em; height: 2em; border-radius: .6em; flex: none; }
.scr .lbl { color: #8c8c8c; font-size: calc(var(--fs) * .95); margin: .3em 0 -.2em; display: flex; justify-content: space-between; }
.scr .card { background: #fff; border-radius: 1.3em; padding: 1em 1.1em; box-shadow: 0 .3em .9em rgba(0,0,0,.025); position: relative; overflow: hidden; }
.scr .bar { position: absolute; left: 0; top: 0; bottom: 0; width: .3em; }
.scr .row { display: flex; align-items: center; gap: .8em; }
.scr .grow { flex: 1; }
.scr .t { font-weight: 600; }
.scr .s { color: #888; font-size: calc(var(--fs) * .9); }
.scr .pill { border-radius: 99em; padding: .35em .9em; font-size: calc(var(--fs) * .9); font-weight: 500; flex: none; white-space: nowrap; }
.scr .pill.k { background: #111827; color: #fff; }
.scr .pill.g { background: #dcfce7; color: #15803d; }
.scr .pill.d { background: #f3f4f6; color: #9ca3af; }
.scr .pill.r { background: #ff3b30; color: #fff; }
.scr .dot { width: .8em; height: .8em; border-radius: 50%; background: #ffc53d; flex: none; }
.scr .av { width: 2.4em; height: 2.4em; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: calc(var(--fs) * .95); font-weight: 600; flex: none; }
.scr .seg { display: flex; background: #ededed; border-radius: .8em; padding: .2em; font-size: calc(var(--fs) * .85); }
.scr .seg span { padding: .3em .7em; border-radius: .6em; color: #9ca3af; white-space: nowrap; }
.scr .seg .on { background: #fff; color: #111827; box-shadow: 0 .1em .3em rgba(0,0,0,.08); }
.scr .seg.k .on { background: #1a1a1a; color: #fff; }
.scr .seg.r .on { background: #ff3b30; color: #fff; }
.scr .btn { border-radius: 1.6em; padding: 1em; text-align: center; color: #fff; font-weight: 600; background: #111827; margin: auto 1.1em 1.4em; flex: none; }
.scr .btn.wx { background: #07c160; border-radius: .9em; }
.scr .tabs { flex: none; background: #fff; border-top: 1px solid #eee; display: flex; justify-content: space-around; padding: .8em 0 1.6em; font-size: calc(var(--fs) * .85); color: #8e8e93; }
.scr .tabs .on { color: #1a1a1a; font-weight: 600; }
.scr .tabs i { display: grid; place-items: center; width: 2.8em; height: 2.2em; border-radius: .7em; margin: 0 auto .25em; }
.scr .tabs i svg { width: 1.7em; height: 1.7em; }
.scr .tabs .on i { background: #eceae6; }
/* 月历 */
.scr .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; font-size: calc(var(--fs) * .85); }
.scr .cal .wd { text-align: center; color: #999; font-size: calc(var(--fs) * .9); }
.scr .cal .wd.we { color: #c4c4c4; }
.scr .cal .c { aspect-ratio: 1 / 1.25; border-radius: .6em; background: #fbfbfa; padding: .3em; color: #bbb; position: relative; }
.scr .cal .c.h { background: #f7f7f5; color: #333; }
.scr .cal .c.h i { position: absolute; left: .35em; right: .35em; bottom: .35em; height: .35em; border-radius: 99em; }
.scr .cal .c.td b { background: #111; color: #fff; border-radius: 99em; padding: 0 .35em; }
.scr .big { font-size: calc(var(--fs) * 2.1); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.scr .prog { height: .55em; background: #ededeb; border-radius: 99em; overflow: hidden; margin: .5em 0; }
.scr .prog i { display: block; height: 100%; width: 62%; background: #111; }
/* 对账单长图 */
.scr .stmt { border-radius: 1.2em; overflow: hidden; box-shadow: 0 .6em 1.6em rgba(0,0,0,.12); font-size: calc(var(--fs) * .92); }
.scr .stmt .hd { background: #111827; color: #fff; padding: 1em 1.1em; }
.scr .stmt .hd .s { color: rgba(255,255,255,.6); }
.scr .stmt .band { background: #f5f4f1; padding: .9em 1.1em; display: flex; justify-content: space-between; align-items: flex-end; }
.scr .stmt .tbl { background: #fff; padding: .3em 1.1em; }
.scr .stmt .tbl + .tbl { padding-top: 0; }
.scr .stmt .tr { display: grid; grid-template-columns: 1.4fr 1.4fr .8fr 1fr; align-items: center; gap: .4em; padding: .45em 0; border-top: 1px solid #f3f3f3; }
.scr .stmt .tr > :nth-child(3) { text-align: center; }
.scr .stmt .tr > :last-child { text-align: right; }
.scr .stmt .tr.h { border-top: 0; color: #999; }
.scr .stmt .tr .bdg { justify-self: center; }
.scr .cd { width: .7em; height: .7em; border-radius: 50%; display: inline-block; margin-right: .4em; vertical-align: middle; }
.scr .bdg { font-size: calc(var(--fs) * .85); padding: .1em .5em; border-radius: .4em; background: #e7f8ec; color: #15803d; }
.scr .bdg.l { background: #f0f0f0; color: #999; }
/* 家长端 */
.scr.parent { background: #f7f3ed; }
.scr .hero { background: #f0f4f1; padding: 4.4em 1.1em 2.6em; border-radius: 0 0 1.6em 1.6em; flex: none; }
.scr .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35em; margin-top: 1em; }
.scr .days span { background: #fff; border-radius: .6em; padding: .4em 0 .5em; text-align: center; color: #999; font-size: calc(var(--fs) * .85); }
.scr .days i { display: block; width: 1.2em; height: 1.2em; border-radius: 50%; border: 1px solid #ddd; margin: .35em auto 0; }
.scr .days .on i { border-color: #227a4d; border-width: .15em; }
.scr .stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin-top: -1.8em; padding: 0 1.1em; }
.scr .bars { display: flex; gap: .25em; align-items: flex-end; height: 2em; margin-top: .6em; }
.scr .bars i { flex: 1; background: #227a4d; border-radius: .2em .2em 0 0; }
.scr .next { background: #f4f3fb; color: #555; font-size: calc(var(--fs) * .85); padding: .35em .8em; margin: .7em -1em -.9em; }
.scr .fab { position: absolute; right: 1.2em; bottom: 1.6em; width: 3.4em; height: 3.4em; border-radius: 50%; background: #227a4d; color: #fff; display: grid; place-items: center; font-size: calc(var(--fs) * 1.2); }
.scr .gn { color: #227a4d; }
/* 成长档案 */
.scr .tl { position: relative; padding-left: 1.6em; display: flex; flex-direction: column; gap: .8em; }
.scr .tl::before { content: ""; position: absolute; left: .5em; top: .4em; bottom: 0; width: .15em; background: #eaeaea; }
.scr .tl .nd { position: absolute; left: -1.6em; top: 1em; width: 1.1em; height: 1.1em; border-radius: 50%; }
.scr .tl .nd.ms { border-radius: .2em; background: #b8873a; }
.scr .tag2 { border-radius: 99em; padding: .15em .6em; font-size: calc(var(--fs) * .85); font-weight: 500; }
.scr .tag2.a { background: #fcf3de; color: #f5a623; }
.scr .tag2.b { background: #e7f8ec; color: #34c759; }
.scr .tag2.c { background: #eaedfd; color: #5b6bf0; }
.scr .thumbs { display: flex; gap: .4em; margin-top: .6em; }
.scr .thumbs i { flex: 1; aspect-ratio: 1; border-radius: .5em; background: linear-gradient(135deg, #e8e4dc, #cfc9bd); }
.scr .ms { background: linear-gradient(135deg, #1f1811, #3a2e1c); color: #f3ead9; border-radius: 1.5em; }
.scr .ms .pill { background: rgba(201,161,90,.25); color: #e0b76c; }
.scr .ms .s { color: #b9a37c; }

/* 示意图补充元素 */
.scr .legend { display: grid; grid-template-columns: 1fr; gap: .35em; font-size: calc(var(--fs) * .9); color: #555; margin-top: .6em; }
.scr .legend span b { float: right; font-weight: 500; color: #111; }
.scr .qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; text-align: center; font-size: calc(var(--fs) * .85); color: #555; }
.scr .qa i { display: block; width: 2.6em; height: 2.6em; border-radius: .8em; margin: 0 auto .35em; background: #f3f4f6; }
.scr .stmt .note { background: #f5f4f1; border-radius: .8em; padding: .7em .9em; color: #555; font-size: calc(var(--fs) * .9); margin: 0; border-top: 1px solid #fff; }
.scr .stmt .note { margin: 0 1.1em .8em; }
.scr .stmt .tbl + .note { margin-top: .4em; }
.scr .stmt .ft { background: #fff; margin-top: .2em; padding: .7em 1.1em .9em; display: flex; justify-content: space-between; color: #999; font-size: calc(var(--fs) * .85); border-top: 1px solid #f3f3f3; }
.scr .stmt .qrl { background: #fff; padding: .8em 1.1em 1em; display: flex; flex-direction: column; align-items: center; gap: .6em; color: #555; font-size: calc(var(--fs) * .9); }
.scr .stmt .qrl i { width: 6em; height: 6em; flex: none; display: block; }
.scr .stmt .qrl svg { width: 100%; height: 100%; fill: #111; display: block; }

/* 新增四屏：排课规则 / 排课海报 / 课堂速记 / 成员详情 */
.scr .seg.wide { width: 100%; }
.scr .seg.wide span { flex: 1; text-align: center; }
.scr .cal2 { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2em; text-align: center; font-size: calc(var(--fs) * .9); }
.scr .cal2 .wd { color: #999; font-size: calc(var(--fs) * .8); }
.scr .cal2 .wd.we { color: #c4c4c4; }
.scr .cal2 .n { height: 2.6em; display: grid; place-items: center; position: relative; color: #333; }
.scr .cal2 .n.o { color: #ccc; }
.scr .cal2 .n i { position: absolute; bottom: .25em; left: 50%; width: .4em; height: .4em; margin-left: -.2em; border-radius: 50%; }
.scr .cal2 .n.sel b { width: 2em; height: 2em; border-radius: 50%; background: #111827; color: #fff; display: grid; place-items: center; font-weight: 500; }
.scr .cal2 .n.td b { width: 2em; height: 2em; border-radius: 50%; border: 1px solid #111; display: grid; place-items: center; font-weight: 500; }
.scr .rule { display: flex; gap: .7em; padding: .8em 0; border-bottom: 1px solid #f3f3f3; align-items: flex-start; }
.scr .rule:last-child { border-bottom: 0; }
.scr .rule .lab { background: #111; color: #fff; border-radius: .4em; padding: .1em .5em; font-size: calc(var(--fs) * .8); flex: none; margin-top: .15em; }
.scr .rule .lab.lt { background: #f4f2ee; color: #111; }
.scr .rule .act { color: #111; font-size: calc(var(--fs) * .9); flex: none; }
.scr .rule .act b { color: #ff3b30; font-weight: 400; margin-left: .6em; }
.scr .btn2 { display: flex; gap: .8em; margin: auto 1.2em 1.4em; flex: none; }
.scr .btn2 > * { flex: 1; text-align: center; padding: .9em; border-radius: .9em; font-weight: 600; }
.scr .btn2 .wx { background: #07c160; color: #fff; }
.scr .btn2 .wh { background: #fff; border: 1px solid #e5e5e5; }
/* 排课海报 */
.scr .poster { background: #fff; border-radius: 1.2em; overflow: hidden; box-shadow: 0 .6em 1.6em rgba(0,0,0,.12); font-size: calc(var(--fs) * .92); }
.scr .poster .ph { background: #1a1a1a; color: #fff; padding: 1.2em 1.1em 1.1em; }
.scr .poster .ph .s { color: #b0aba3; }
.scr .poster .ph .nm { font-size: calc(var(--fs) * 1.5); font-weight: 600; margin: .25em 0; display: flex; align-items: center; gap: .4em; }
.scr .poster .pm { padding: .9em 1.1em .4em; }
.scr .poster .pm .t { margin-bottom: .4em; }
.scr .poster .pg { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25em; text-align: center; font-size: calc(var(--fs) * .85); }
.scr .poster .pg .wd { color: #999; font-size: calc(var(--fs) * .78); }
.scr .poster .pg .wd.we, .scr .poster .pg .we { color: #c4c4c4; }
.scr .poster .pg span { height: 2.9em; display: grid; place-items: center; color: #4b5563; border-radius: .5em; line-height: 1.15; }
.scr .poster .pg .on { color: #fff; font-weight: 500; }
.scr .poster .pg .on small { display: block; font-size: calc(var(--fs) * .7); font-weight: 400; opacity: .9; }
.scr .poster .pf { background: #f5f7fa; color: #a8a49c; text-align: center; padding: .7em; font-size: calc(var(--fs) * .8); }
/* 课堂速记·墨金 */
.scr .mg { border-radius: 1.4em; overflow: hidden; box-shadow: 0 .6em 1.6em rgba(0,0,0,.12); background: #fff; }
.scr .mg .mh { background: #2b2620; color: #fff; padding: 1.1em 1.2em 1.2em; }
.scr .mg .mh .g { color: #c9a15a; }
.scr .mg .mh .s { color: #9a948b; }
.scr .mg .mh .ln { border-top: 1px solid rgba(255,255,255,.14); margin: .7em 0; }
.scr .mg .mh .box { width: 2.2em; height: 2.2em; border: 1px solid #c9a15a; color: #c9a15a; display: grid; place-items: center; font-weight: 600; flex: none; }
.scr .mg .mh .nm { font-size: calc(var(--fs) * 1.7); font-weight: 600; }
.scr .mg .mh .typ { border: 1px solid rgba(255,255,255,.35); border-radius: 99em; padding: .15em .7em; font-size: calc(var(--fs) * .8); }
.scr .mg .mb { padding: .8em 1.2em 1em; }
.scr .mg .mr { display: flex; justify-content: space-between; align-items: center; padding: .55em 0; border-bottom: 1px solid #f0f0f0; }
.scr .mg .mr .s { color: #888; }
.scr .mg .gl { width: 2em; border-top: 2px solid #c9a15a; margin: 1em 0 .6em; }
.scr .mg .q { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; line-height: 1.7; color: #222; }
.scr .mg .mf { text-align: right; color: #888; font-size: calc(var(--fs) * .85); border-top: 1px solid #f0f0f0; margin-top: .9em; padding-top: .7em; }
/* 成员详情 */
.scr .tagsm { background: #f0f0f0; color: #666; border-radius: .3em; padding: 0 .4em; font-size: calc(var(--fs) * .75); margin-left: .4em; vertical-align: middle; }
.scr .st4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #f3f3f3; margin-top: .8em; padding-top: .8em; text-align: center; }
.scr .st4 b { display: block; font-size: calc(var(--fs) * 1.25); font-weight: 600; }
.scr .st4 .s { font-size: calc(var(--fs) * .8); }
.scr .bind { background: #efedfe; border-radius: .9em; padding: .6em .8em; display: flex; align-items: center; gap: .6em; margin-top: .8em; font-size: calc(var(--fs) * .9); }
.scr .bind i { width: 1.8em; height: 1.8em; border-radius: .5em; background: #fff; flex: none; }
.scr .bind .more { background: #fff; border-radius: 99em; padding: .1em .6em; }
.scr .crs { padding: .6em 0; border-bottom: 1px solid #f3f3f3; }
.scr .crs:last-child { border-bottom: 0; }
.scr .crs .p { height: .4em; background: #edece8; border-radius: 99em; overflow: hidden; margin: .5em 0 .3em; }
.scr .crs .p i { display: block; height: 100%; }
.scr .ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; text-align: center; font-size: calc(var(--fs) * .8); color: #555; }
.scr .ops i { display: block; width: 2.6em; height: 2.6em; border-radius: .8em; margin: 0 auto .3em; background: #fff0e8; }
.scr .rec { display: flex; justify-content: space-between; align-items: center; padding: .6em 0; border-bottom: 1px solid #f3f3f3; }
.scr .rec:last-child { border-bottom: 0; }
.scr .bdg.ok { background: #e7f1ea; color: #227a4d; }
.scr .bdg.no { background: #fbe7e6; color: #d9534f; }
