/* 张老师的数学笔记 — 全局样式 */
:root {
  --bg: #F6F1E7;
  --surface: #FFFDF8;
  --surface-2: #FBF6EC;
  --ink: #2B2A26;
  --muted: #726B5E;
  --line: #E6DCCB;
  --brand: #2F6B5F;
  --brand-dark: #245449;
  --brand-soft: #E6EFEA;
  --accent: #B4623A;
  --accent-soft: #F5E7DD;
  --warn: #B07A2A;
  --danger: #A94436;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(43, 42, 38, .35);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable both-edges; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(47, 107, 95, .10), transparent 62%),
    radial-gradient(900px 520px at -8% 104%, rgba(180, 98, 58, .08), transparent 60%);
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(47, 107, 95, .16); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 231, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 220, 203, .85);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--serif); font-size: 19px; letter-spacing: .4px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; flex: none;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 16px -10px rgba(47, 107, 95, .9);
}
.brand-mark svg { width: 19px; height: 19px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--brand-dark); font-weight: 600; }
.spacer { flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
@media (min-width: 721px) { .topbar-user .topbar-workspace { display: none; } }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

/* ---------- 通用容器 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.page { padding-block: 46px 80px; }
.page > .card { max-width: 880px; margin-left: auto; margin-right: auto; }
.page > .quick-panel { max-width: none; margin-left: 0; margin-right: 0; }
.page > .mistakes-toolbar { max-width: none; margin-left: 0; margin-right: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-title { font-family: var(--serif); font-size: 30px; letter-spacing: .5px; }
.page-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 1.2px; color: var(--brand-dark);
  text-transform: uppercase; font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 22px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s ease, transform .05s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: #D8CDB8; }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-soft:hover { background: #D9E8E1; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8f382c; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-dark); font-size: 13.5px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px -26px rgba(43, 42, 38, .45);
}
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-title svg { width: 18px; height: 18px; color: var(--brand); }
.card-desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- 首页 ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding: 70px 0 46px; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); line-height: 1.35; letter-spacing: .5px; margin: 16px 0 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--brand-dark); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 9px;
  background: linear-gradient(transparent 55%, rgba(180, 98, 58, .22) 55%);
  z-index: -1;
}
.lead { color: var(--muted); font-size: 16px; max-width: 30em; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { width: 16px; height: 16px; color: var(--brand); }
.promise-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .42); }
.promise-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 22px; padding-bottom: 22px; }
.promise { padding: 0 28px; border-left: 1px solid var(--line); }
.promise:first-child { border-left: 0; padding-left: 0; }
.promise:last-child { padding-right: 0; }
.promise b { display: block; font-size: 15px; color: var(--brand-dark); margin-bottom: 5px; }
.promise span { display: block; color: var(--muted); font-size: 13px; line-height: 1.65; }
@media (max-width: 760px) {
  .promise-inner { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
  .promise { border-left: 0; padding: 0; }
}

.mini-paper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 34px 70px -40px rgba(43, 42, 38, .5), 0 2px 0 rgba(0,0,0,.02);
  border: 1px solid #efe8da;
  padding: 26px 26px 20px;
  transform: rotate(-1.2deg);
  position: relative;
  font-family: var(--serif);
  max-width: 430px;
  margin-left: auto;
}
.mini-paper::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid #f2ead9; border-radius: 6px; pointer-events: none;
}
.mini-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid #2b2a26; padding-bottom: 8px; }
.mini-title { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.mini-tag { font-family: var(--sans); font-size: 11px; color: #8b8477; }
.mini-meta { font-family: var(--sans); font-size: 11px; color: #8b8477; margin: 8px 0 12px; }
.mini-q { margin: 9px 0; font-size: 13px; color: #3a3833; display: flex; gap: 8px; }
.mini-q b { font-weight: 600; }
.mini-lines { margin-top: 6px; border-bottom: 1px dotted #c9c0ae; height: 14px; }
.mini-foot { margin-top: 14px; border-top: 1px dashed #ddd3c2; padding-top: 8px; font-family: var(--sans); font-size: 9.5px; color: #a49b8b; text-align: center; }
.mini-stamp {
  position: absolute; right: 22px; top: 58px;
  width: 74px; height: 74px; border: 2px solid rgba(47, 107, 95, .5); border-radius: 50%;
  display: grid; place-items: center; color: rgba(47, 107, 95, .7);
  font-size: 11px; font-family: var(--sans); text-align: center; line-height: 1.35;
  transform: rotate(12deg);
}

.section { padding: 54px 0; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 { font-family: var(--serif); font-size: 28px; letter-spacing: .4px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; }
.icon-tile {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon-tile svg { width: 21px; height: 21px; }
.icon-tile.accent { background: var(--accent-soft); color: var(--accent); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 13px; color: var(--brand-dark);
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 12px; font-weight: 700;
}
.step h4 { font-size: 14.5px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 13px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; margin-top: 30px; color: var(--muted); font-size: 12.5px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 表单 / 登录 ---------- */
.auth-shell { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-title { font-family: var(--serif); font-size: 26px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 6px 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, select.input {
  width: 100%; height: 44px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 95, .12); }
.form-hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.demo-tip { margin-top: 18px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; font-size: var(--text-sm); color: var(--muted); }
.wechat-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.wechat-box { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.wechat-qr, .wechat-qr-empty { width: 132px; height: 132px; border-radius: 8px; }
.wechat-qr { display: block; background: #fff; object-fit: cover; }
.wechat-qr-empty { display: grid; place-items: center; border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; text-align: center; padding: 10px; }
.wechat-account { font-size: 13.5px; }
.wechat-steps { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.wechat-code { text-align: center; font-size: 20px; letter-spacing: .4em; padding-left: .4em; font-variant-numeric: tabular-nums; }
.wechat-code::placeholder { letter-spacing: normal; font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--muted); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 420px) {
  .wechat-box { grid-template-columns: 1fr; }
  .wechat-qr, .wechat-qr-empty { margin: 0 auto; }
}

/* ---------- 工作台 ---------- */
.children-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.child-card { display: flex; align-items: center; gap: 14px; padding: 18px; position: relative; }
.child-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 19px; font-family: var(--serif); font-weight: 700;
}
.child-info { flex: 1; min-width: 0; }
.child-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.child-meta { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.child-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.add-child { grid-column: 1 / -1; border-style: dashed; background: transparent; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); cursor: pointer; min-height: 64px; }
.add-child:hover { border-color: var(--brand); color: var(--brand-dark); background: rgba(230, 239, 234, .4); }
.add-child svg { width: 18px; height: 18px; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 14.5px; }
.list-meta { color: var(--muted); font-size: var(--text-xs); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.badge.warn { background: #F7EDD8; color: var(--warn); }
.badge.muted { background: #EFEAE0; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; margin: 0 auto 12px; color: #BDB4A3; }

/* ---------- 生成试卷 ---------- */
.generate-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.generate-grid > * { min-width: 0; }
.form-block { margin-bottom: 26px; }
.form-block > h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.form-block > h3 .step-no { font-family: var(--serif); color: var(--brand-dark); background: var(--brand-soft); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice.disabled { opacity: .45; cursor: not-allowed; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; cursor: pointer; transition: all .15s ease;
}
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.child-select { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.child-option { cursor: pointer; }
.child-option input { position: absolute; opacity: 0; pointer-events: none; }
.child-option .child-card { min-width: 200px; border: 1px solid var(--line); }
.child-option input:checked + .child-card { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 95, .1); background: #fff; }
.kp-groups { display: flex; flex-direction: column; gap: 14px; max-height: 320px; overflow: auto; padding-right: 8px; }
.kp-group h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.kp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; cursor: pointer; color: var(--ink);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.summary-card { position: sticky; top: 88px; }
.summary-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.summary-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-list .k { color: var(--muted); }
.summary-list .v { font-weight: 600; text-align: right; }
.summary-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.summary-cta .btn { width: 100%; }

/* ---------- 知识图谱 ---------- */
.graph-shell { display: block; position: relative; scroll-margin-top: 84px; }
.graph-card { width: 100%; padding: 0; overflow: hidden; }
.graph-toolbar { display: flex; align-items: center; gap: 10px; row-gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--surface-2); }
.graph-toolbar .spacer { flex: 1; }
.domain-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; }
.domain-group .small { margin-right: 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.graph-viewport {
  position: relative;
  height: clamp(500px, calc(100vh - 330px), 760px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(109, 84, 214, .18), transparent 58%),
    radial-gradient(circle at 50% 40%, #1c1d24 0%, #121318 58%, #0d0e12 100%);
  touch-action: none;
  user-select: none;
}
.graph-viewport::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(178, 166, 255, .22) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .34;
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 76%);
}
.graph-viewport::after {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  opacity: .22;
}
.graph-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; }
.graph-hud {
  position: absolute; left: 16px; top: 14px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px; letter-spacing: .12em; color: #8d8e99;
  pointer-events: none;
}
.graph-hud b { color: #d8d3ff; font-weight: 500; }
.graph-hud .hud-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #7fe7ff;
  box-shadow: 0 0 8px #7fe7ff;
  animation: hud-pulse 2.4s ease-in-out infinite;
}
.graph-hud .hud-sep { color: #4d4e59; }
@keyframes hud-pulse {
  0%, 100% { opacity: .45; box-shadow: 0 0 4px #7fe7ff; }
  50% { opacity: 1; box-shadow: 0 0 10px #7fe7ff; }
}
.graph-svg.panning { cursor: grabbing; }
.graph-world { will-change: transform; }
.g-edge {
  stroke: #454650;
  stroke-width: var(--graph-line-width, 1);
  opacity: .5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  transition: opacity .18s ease, stroke .18s ease;
}
.g-edge.hot {
  stroke: #b2a6ff;
  opacity: 1;
  stroke-dasharray: 4 5;
  animation: graph-edge-flow 1.1s linear infinite;
  filter: drop-shadow(0 0 3px rgba(178, 166, 255, .5));
}
@keyframes graph-edge-flow { to { stroke-dashoffset: -18; } }
.g-edge.faded { opacity: .07; }
.g-node { cursor: pointer; outline: none; }
.g-node .halo { fill-opacity: .18; transition: fill-opacity .18s ease; }
.g-node .disc { stroke: transparent; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .18s ease, stroke .18s ease; }
.g-node .hit { fill: transparent; }
.g-node .ring { fill: none; stroke: #b2a6ff; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .18s ease; }
.g-node:hover .halo, .g-node.hot .halo, .g-node.selected .halo { fill-opacity: .38; }
.g-node:hover .ring, .g-node.hot .ring, .g-node.selected .ring { opacity: 1; }
.g-node.selected .ring { stroke-dasharray: 4 5; animation: graph-ring-flow 1.4s linear infinite; }
@keyframes graph-ring-flow { to { stroke-dashoffset: -18; } }
.g-node.selected .halo { animation: graph-node-pulse 2.2s ease-in-out infinite; }
@keyframes graph-node-pulse {
  0%, 100% { fill-opacity: .22; }
  50% { fill-opacity: .46; }
}
.g-node.hot .disc, .g-node.selected .disc { filter: drop-shadow(0 0 6px rgba(178, 166, 255, .7)); }
.g-node.hot .disc { fill: #b2a6ff; }
.g-node.faded { opacity: .18; }
.g-node.dragging { cursor: grabbing; }
.g-label {
  font-family: var(--sans);
  font-weight: 400;
  fill: #c9cad4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, fill .18s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9));
}
.g-node.hot .g-label, .g-node.selected .g-label { fill: #fff; }
.g-label-tag { fill: #8d90a3; font-size: .82em; }
.g-node.hot .g-label-tag, .g-node.selected .g-label-tag { fill: #d3d5e4; }
.graph-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #8d8e99; font-size: 13.5px; z-index: 4; }
.graph-hint { position: absolute; left: 16px; bottom: 14px; color: #6d6e79; font-size: 11px; letter-spacing: .02em; pointer-events: none; z-index: 3; }
.graph-controls {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
  padding: 5px; border: 1px solid #30313b; border-radius: 13px;
  background: rgba(20, 21, 27, .86);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px -22px #000;
}
.graph-ctrl { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #a7a8b4; display: grid; place-items: center; cursor: pointer; }
.graph-ctrl:hover, .graph-ctrl.active { background: #292a34; color: #fff; }
.graph-ctrl svg { width: 16px; height: 16px; }
.graph-settings {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 250px; max-height: calc(100% - 28px); overflow: auto;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px; border: 1px solid #30313b; border-radius: 14px;
  background: rgba(22, 23, 29, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -24px #000;
  color: #c9cad4; font-size: 12.5px;
}
.graph-settings[hidden] { display: none; }
.graph-settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; color: #e6e6ee; }
.graph-settings-section { margin: 12px 0 6px; color: #7f808c; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.graph-settings-head + .graph-settings-section { margin-top: 0; }
.graph-settings-close { border: 0; background: transparent; color: #8d8e99; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.graph-settings-close:hover { background: #2b2c36; color: #fff; }
.graph-settings-close svg { width: 14px; height: 14px; }
.graph-setting { margin: 10px 0; }
.graph-setting label { display: flex; justify-content: space-between; gap: 10px; color: #a6a7b2; }
.graph-setting label span { color: #e1e1e9; font-variant-numeric: tabular-nums; }
.graph-setting input[type="range"] { width: 100%; margin-top: 6px; accent-color: #b2a6ff; }
.graph-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: #a6a7b2; cursor: pointer; }
.graph-check input { accent-color: #b2a6ff; }
.graph-settings hr { border: 0; border-top: 1px solid #30313b; margin: 12px 0; }
.graph-settings-reset { width: 100%; height: 30px; margin-top: 6px; border: 1px solid #34353f; border-radius: 8px; background: transparent; color: #b9bac5; font-size: 12px; cursor: pointer; }
.graph-settings-reset:hover { background: #282933; color: #fff; }
.graph-shell:not(.list-mode) .graph-card { background: #101116; border-color: rgba(178, 166, 255, .28); box-shadow: 0 0 0 1px rgba(178, 166, 255, .06), 0 24px 60px -42px rgba(0, 0, 0, .8); }
.graph-shell:not(.list-mode) .kp-panel { background: #15161c; border-color: #2b2c35; color: #c9cad4; width: min(100%, 760px); margin: 22px auto 0; }
.graph-shell:not(.list-mode) .graph-toolbar { background: linear-gradient(180deg, #181922, #14151b); border-bottom-color: rgba(178, 166, 255, .18); color: #a6a7b2; }
.graph-shell:not(.list-mode) .graph-toolbar .small,
.graph-shell:not(.list-mode) .graph-toolbar .muted,
.graph-shell:not(.list-mode) .legend { color: #8d8e99; }
.graph-shell:not(.list-mode) #child-filter { background: #1c1d24; border-color: #34353f; color: #d6d7df; }
.graph-shell:not(.list-mode) .stage-tabs { background: #1b1c22; border-color: #30313b; }
.graph-shell:not(.list-mode) .stage-btn,
.graph-shell:not(.list-mode) .view-btn { color: #9a9ba6; }
.graph-shell:not(.list-mode) .stage-btn.active,
.graph-shell:not(.list-mode) .view-btn.active { background: #2b2c36; color: #fff; }
.graph-shell:not(.list-mode) .domain-btn { border-color: transparent; color: #a4a5b0; }
.graph-shell:not(.list-mode) .domain-btn:hover { background: #22232b; border-color: #30313b; color: #fff; }
.graph-shell:not(.list-mode) .domain-btn.active { background: #262730; color: #fff; }
.graph-shell:not(.list-mode) .kp-panel h3 { color: #f1f1f6; }
.graph-shell:not(.list-mode) .kp-panel .kp-desc { color: #a9aab5; }
.graph-shell:not(.list-mode) .kp-panel .card-title { color: #e6e6ee; }
.graph-shell:not(.list-mode) .kp-panel .badge { background: #262730; color: #d4d4dc; }
.graph-shell:not(.list-mode) .kp-panel .badge.muted { background: #1f2027; color: #a0a1ac; }
.graph-shell:not(.list-mode) .kp-panel .chip { background: #1d1e25; border-color: #34353f; color: #c9cad4; }
.graph-shell:not(.list-mode) .kp-panel .chip:hover { background: #282933; border-color: #3a3b46; }
.graph-shell:not(.list-mode) .kp-panel .divider { background: #2c2d36; }
.graph-shell:not(.list-mode) .kp-panel .kp-tags { margin-top: 12px; }
.graph-shell:not(.list-mode) .kp-panel .mastery-bar { background: #2a2b34; }
.graph-shell:not(.list-mode) .kp-panel .mastery-row { color: #a8a9b4; }
.graph-shell:not(.list-mode) .kp-panel .form-hint,
.graph-shell:not(.list-mode) .kp-panel .kp-empty { color: #8d8e99; }
.graph-shell:not(.list-mode) .kp-panel .summary-cta .btn-soft { background: #262a34; color: #dcdce6; }
.graph-shell:not(.list-mode) .kp-panel .summary-cta .btn-soft:hover { background: #303442; }
@media (max-width: 860px) {
  .graph-viewport { height: 62vh; }
  .graph-settings { width: min(250px, calc(100% - 28px)); }
  .graph-hint, .graph-hud { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .graph-hud .hud-dot,
  .g-edge.hot,
  .g-node.selected .ring,
  .g-node.selected .halo { animation: none; }
}
.kp-panel { min-height: 0; width: min(100%, 760px); margin: 22px auto 0; position: relative; }
.kp-panel[hidden] { display: none; }
.kp-panel h3 { padding-right: 34px; }
.kp-panel-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #8d8e99; display: grid; place-items: center; cursor: pointer; }
.kp-panel-close:hover { background: #2b2c36; color: #fff; }
.kp-panel-close svg { width: 15px; height: 15px; }
.kp-panel h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.kp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.kp-desc { color: var(--muted); font-size: 13.5px; }
.mastery-bar { height: 8px; border-radius: 999px; background: #EFE9DD; overflow: hidden; margin: 8px 0 6px; }
.mastery-bar span { display: block; height: 100%; border-radius: 999px; }
.mastery-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.kp-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 40px 10px; }

/* ---------- 试卷页 ---------- */
.paper-page { padding-block: 26px 70px; }
.paper-toolbar {
  position: sticky; top: 66px; z-index: 30;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(246, 241, 231, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 22px;
}
.paper-toolbar .spacer { flex: 1; }
.paper-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tab {
  border: 0; background: transparent; padding: 0 16px; height: 32px; border-radius: 8px;
  font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.tab.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 2px 6px -4px rgba(0,0,0,.25); }
.paper-meta-bar { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.paper-meta-bar b { color: var(--ink); font-weight: 600; }
.grading { max-width: 210mm; margin: 0 auto; }
.grade-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.grade-stem { font-size: 14px; white-space: pre-wrap; }
.grade-answer { color: var(--brand-dark); font-size: 13px; margin-top: 4px; }
.grade-actions { display: flex; gap: 8px; }
.mark-btn {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 12.5px; cursor: pointer; color: var(--muted);
}
.mark-btn[aria-pressed="true"].ok { background: var(--brand); border-color: var(--brand); color: #fff; }
.mark-btn[aria-pressed="true"].no { background: var(--danger); border-color: var(--danger); color: #fff; }
.result-card { max-width: 210mm; margin: 0 auto 24px; }
.result-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.result-stat b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.result-stat span { font-size: 12.5px; color: var(--muted); }
.kp-delta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kp-delta:last-child { border-bottom: 0; }
.kp-delta .rate { color: var(--brand-dark); font-weight: 600; }

/* ---------- 补充 ---------- */
.input-inline, select.input-inline { width: auto; min-width: 170px; height: 34px; padding: 0 10px; font-size: 13px; }
select.input, select.input-inline {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23726B5E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px;
}
select.input { padding-right: 34px; background-position: right 14px center; }
select.input-inline { padding-right: 30px; background-position: right 10px center; }
.domain-btn.active { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; font-weight: 600; }
.chip-disabled { opacity: .4; cursor: not-allowed; }
.paper-more { display: flex; justify-content: center; padding-top: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mb-14 { margin-bottom: 14px; }
.mt-42 { margin-top: 42px; }
.mt-14 { margin-top: 14px; }
.quick-add-form { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.center { justify-content: center; }
.stage-tabs { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.stage-btn { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.stage-btn.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.view-btn { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.view-btn.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.kp-list { max-height: 72vh; overflow: auto; padding: 8px 18px 24px; background: #FBF8F1; }
.kp-grade-group { margin-top: 14px; }
.kp-grade-group > h4 { font-family: var(--serif); font-size: 16px; color: var(--ink); margin: 6px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.kp-row { border-bottom: 1px solid var(--line); }
.kp-row:last-child { border-bottom: 0; }
.kp-row > summary { display: flex; align-items: center; gap: 10px; padding: 12px 4px; cursor: pointer; list-style: none; }
.kp-row > summary::-webkit-details-marker { display: none; }
.kp-row > summary::after { content: "+"; color: var(--muted); font-size: 16px; width: 16px; text-align: center; }
.kp-row[open] > summary::after { content: "–"; }
.kp-row-title { flex: 1; font-size: 14px; min-width: 0; }
.kp-row-title small { color: var(--muted); font-size: 12px; margin-left: 8px; }
.kp-row-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kp-row-body { padding: 2px 4px 16px; }
.kp-row-body .kp-desc { margin: 4px 0 10px; }
.kp-row .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.kp-row .dot.lvl-none { background: #D9D3C6; }
.kp-row .dot.lvl-learning { background: #D97B4F; }
.kp-row .dot.lvl-consolidating { background: #C9A227; }
.kp-row .dot.lvl-mastered { background: #2F6B5F; }
.kp-row .cta { margin-top: 12px; }
@media (max-width: 860px) {
  .kp-list { max-height: none; }
}
.legend .lg-none { background: #7f8494; }
.legend .lg-learning { background: #e06c5a; }
.legend .lg-consolidating { background: #d6a93f; }
.legend .lg-mastered { background: #4fbf8f; }
.mastery-bar span.lvl-none { width: 0; background: #D9D3C6; }
.mastery-bar span.lvl-learning { width: 35%; background: #D97B4F; }
.mastery-bar span.lvl-consolidating { width: 70%; background: #C9A227; }
.mastery-bar span.lvl-mastered { width: 100%; background: #2F6B5F; }
.paper-meta-bar span b { color: var(--ink); font-weight: 600; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 30px 80px -30px rgba(0,0,0,.45); background: var(--surface); }
dialog::backdrop { background: rgba(43, 42, 38, .45); backdrop-filter: blur(2px); }
.dialog-body { padding: 26px; }
.dialog-title { font-size: 18px; font-weight: 700; }
.dialog-desc { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
#toast-root { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #2B2A26; color: #fff; font-size: 13.5px; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.5); animation: toast-in .18s ease-out;
}
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 工具类 ---------- */
[hidden] { display: none !important; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.span-2 { grid-column: span 2; }
.mt-20 { margin-top: 20px; }
.section-title-lg { font-family: var(--serif); font-size: 26px; margin: 10px 0 8px; }
.card-desc-lg { font-size: 14px; max-width: 46em; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.row-gap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.text-center { text-align: center; }

/* ---------- 数学笔记 ---------- */
.notes-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; }
.notes-filter .input { width: min(360px, 100%); height: 36px; }
.notes-filter .small { margin-left: auto; }
.note-group { margin-top: 26px; }
.note-group:first-child { margin-top: 0; }
.note-group-title { font-family: var(--serif); font-size: 19px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.note-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note-row { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.note-row:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 12px 26px -20px rgba(43, 42, 38, .5); }
.note-row h3 { font-size: 15.5px; }
.note-row p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 6px; }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.note-arrow { color: var(--brand-dark); font-size: 12.5px; }
.note-crumb { max-width: 880px; margin: 0 auto 18px; color: var(--muted); font-size: 13px; }
.note-crumb a { color: var(--brand-dark); }
.note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.note-card { padding: 30px 34px 32px; }
.note-story { display: grid; grid-template-columns: minmax(0, 1fr) clamp(76px, 22vw, 112px); gap: 16px; align-items: center; margin-top: 20px; padding: 14px 16px 14px 18px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 8px; }
.note-story-text { min-width: 0; }
.note-story-art { color: #8a4b2c; }
.note-story-art svg { display: block; width: 100%; height: auto; transform: rotate(-1.5deg); }
.note-story-label { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .4px; }
.note-story p { margin-top: 6px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.note-summary { font-size: 16.5px; line-height: 1.85; color: var(--ink); margin-top: 20px; }
.note-section { margin-top: 24px; }
.note-section h2 { font-family: var(--serif); font-size: 18px; margin-bottom: 10px; }
.note-points { padding-left: 20px; color: var(--ink); }
.note-points li { margin: 7px 0; line-height: 1.75; }
.note-example { background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 8px; padding: 14px 16px; }
.note-example .q { font-weight: 600; line-height: 1.7; }
.note-example .a { color: var(--brand-dark); margin-top: 8px; line-height: 1.7; }
.note-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .span-2 { grid-column: span 1; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; }
  .mini-paper { margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .generate-grid { grid-template-columns: 1fr; }
  .children-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card { position: static; }
  .nav { gap: 16px; }
  .note-rows { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner { height: 60px; gap: 10px; padding: 0 12px; }
  .nav { display: none; }
  .children-row { grid-template-columns: 1fr; }
  .child-select { grid-template-columns: 1fr; }
  .brand { font-size: 15px; gap: 8px; white-space: nowrap; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-mark svg { width: 16px; height: 16px; }
  .topbar-user { gap: 6px; }
  .topbar-user .btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
  .wrap { padding: 0 16px; }
  .page { padding-block: 30px 60px; }
  .steps { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .hero h1 { font-size: 30px; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .grade-item { grid-template-columns: 1fr; }
  .topbar-user .name { display: none; }
  .note-card { padding: 22px 18px 24px; }
  .note-head { flex-direction: column; }
  .notes-filter .small { margin-left: 0; }
}
@media (max-width: 640px) {
  .list-item { flex-wrap: wrap; row-gap: 10px; }
  .list-item .child-actions { width: 100%; justify-content: flex-end; }
}
.brand { white-space: nowrap; }
.btn { white-space: nowrap; }

/* ---------- 图表 / 周计划 / 错题本 / 在线作答 ---------- */
.q-figure { margin: 8px 0 4px; }
.q-figure-svg { width: 100%; max-width: 260px; height: auto; }

.quick-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 22px 26px; margin-bottom: 26px;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface));
  border: 1px solid rgba(47, 107, 95, .16);
}
.quick-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.weekly-card { display: flex; align-items: stretch; justify-content: space-between; gap: 26px; padding: 24px 26px; }
.weekly-main { flex: 1; min-width: 0; }
.weekly-head { align-items: flex-start; }
.weekly-meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.weekly-meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .35s ease; }
.weekly-focus { color: var(--brand-dark); margin-top: 4px; }
.weekly-actions { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 172px; }

.next-step { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); border: 1px solid rgba(47, 107, 95, .14); }
.next-step-title { font-weight: 700; color: var(--brand-dark); }

.mistakes-toolbar { padding: 20px 22px; margin-bottom: 18px; }
.mistakes-list { display: flex; flex-direction: column; gap: 14px; }
.mistake-item { padding: 20px 22px; }
.mistake-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mistake-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mistake-stem { margin-top: 10px; font-family: var(--serif); font-size: 16px; line-height: 1.8; white-space: pre-wrap; }
.mistake-compare { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mistake-answer { margin-top: 10px; }
.mistake-answer summary { cursor: pointer; color: var(--brand-dark); font-size: 13.5px; }
.mistake-answer-line { margin-top: 8px; color: var(--brand-dark); }
.chip-btn { cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.chip-btn:hover { border-color: #c9bfae; color: var(--ink); }
.chip-btn.active { background: var(--brand-soft); border-color: #bcd3cb; color: var(--brand-dark); font-weight: 600; }

.practice { max-width: 210mm; margin: 0 auto; }
.practice-card { padding: 26px; }
.practice-list { display: flex; flex-direction: column; gap: 14px; }
.practice-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.practice-item.is-ok { border-color: #bcd8ca; background: #f4faf6; }
.practice-item.is-no { border-color: #e7c3b4; background: #fdf6f2; }
.practice-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.practice-no { font-weight: 700; }
.practice-type { font-size: 12px; color: var(--muted); }
.practice-stem { font-family: var(--serif); font-size: 16px; line-height: 1.8; white-space: pre-wrap; }
.practice-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 10px; }
.practice-option { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.6; }
.practice-option input { margin-top: 5px; }
.practice-input { margin-top: 10px; max-width: 380px; }
.practice-answer { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13.5px; line-height: 1.7; }
.practice-answer.user-answer { margin-bottom: 6px; background: #F1ECE1; color: #4a463d; }
.demo-banner-row { flex-wrap: wrap; gap: 12px; }
.demo-banner-row .row-gap { flex-wrap: wrap; }
@media (max-width: 720px) {
  .demo-banner-row { flex-direction: column; align-items: flex-start; }
}
.practice-fix { margin-top: 8px; }

@media (max-width: 760px) {
  .quick-panel { flex-direction: column; align-items: flex-start; }
  .weekly-card { flex-direction: column; }
  .weekly-actions { flex-direction: column; align-items: stretch; }
  .weekly-actions .btn { width: 100%; }
  .practice-card { padding: 18px 16px; }
  .practice-options { grid-template-columns: 1fr; }
  .practice-input { max-width: 100%; }
  .mistake-head { flex-direction: column; }
}

.related-notes { max-width: 880px; margin: 28px auto 0; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* =====================================================================
   Landing refresh — design tokens, flat surfaces, floating nav,
   scroll reveal and the new homepage sections.
   ===================================================================== */
:root {
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: var(--font-ui);
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.6;
}
body::before { display: none; }
h1, h2, h3, h4 { font-family: var(--font-ui); text-wrap: balance; }
p, li { text-wrap: pretty; }
.sheet, .pack-notes .sheet, .mini-paper,
.note-card .page-title, .note-section h2, .note-summary, .note-story p,
.note-points, .note-example, .practice-stem, .mistake-stem, .grade-stem {
  font-family: var(--serif);
}

/* Floating compact navigation */
.topbar {
  top: var(--space-100);
  width: calc(100% - 24px);
  max-width: 1180px;
  margin: var(--space-100) auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 241, 231, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px -32px rgba(43, 42, 38, .6);
}
.topbar-inner { height: 56px; padding: 0 var(--space-200); gap: var(--space-300); }
.brand { font-size: var(--text-lg); gap: var(--space-75); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.brand-mark svg { width: 17px; height: 17px; }
.nav { gap: var(--space-300); }
.nav a { font-size: var(--text-sm); }

/* Menu toggle + full height mobile panel */
.menu-toggle {
  display: none; width: 40px; height: 40px; flex: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.menu-toggle span {
  display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 35;
  padding: 104px var(--space-300) var(--space-400);
  display: flex; flex-direction: column; gap: var(--space-75);
  background: rgba(246, 241, 231, .97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.mobile-menu a {
  font-size: var(--text-2xl); font-weight: 600; color: var(--ink);
  padding: var(--space-75) 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(var(--space-300));
  animation: menu-link-in .5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .menu-secondary { font-size: var(--text-lg); color: var(--brand-dark); }
@keyframes menu-link-in { to { opacity: 1; transform: translateY(0); } }

.skip-link {
  position: fixed; left: var(--space-200); top: -100px; z-index: 200;
  padding: var(--space-75) var(--space-200); border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-size: var(--text-sm);
  transition: top .3s var(--ease);
}
.skip-link:focus { top: var(--space-200); }

/* Controls and type scale */
.btn {
  height: auto; min-height: 40px; padding: 8px 12px;
  font-size: var(--text-base); font-weight: 600; border-radius: var(--radius-md);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: var(--text-sm); border-radius: 10px; }
.btn-xs { min-height: 28px; padding: 4px 8px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.input, select.input { font-size: var(--text-base); }
.card { border-radius: var(--radius-lg); padding: var(--space-300); box-shadow: 0 14px 34px -32px rgba(43, 42, 38, .45); }
.panel { border-radius: var(--radius-lg); padding: var(--space-300); }
.card-title { font-size: var(--text-lg); }
.card-desc { font-size: var(--text-sm); }
.small, .form-hint { font-size: var(--text-sm); }
.muted { color: var(--muted); }
.page-title { font-size: var(--text-3xl); }
.page-sub { font-size: var(--text-base); }
.section { padding: var(--space-700) 0; }
.section-head { max-width: 680px; margin-bottom: var(--space-500); }
.section-head h2 { font-size: var(--text-3xl); line-height: 1.2; letter-spacing: -.01em; }
.section-head p { font-size: var(--text-lg); margin-top: var(--space-100); }
.section-title-lg { font-size: var(--text-2xl); }
.card-desc-lg { font-size: var(--text-base); }
.eyebrow { font-size: var(--text-xs); letter-spacing: .12em; }

/* Hero */
.hero { grid-template-columns: 1.08fr .92fr; gap: var(--space-700); padding: var(--space-800) 0 var(--space-700); }
.hero h1 {
  font-family: var(--font-ui); font-size: var(--text-5xl); line-height: 1.14;
  letter-spacing: -.015em; max-width: 680px; margin: var(--space-200) 0 var(--space-300);
}
.hero h1 .hl { color: var(--brand-dark); white-space: nowrap; }
.hero h1 .hl::after { display: none; }
.hero .lead { font-size: var(--text-lg); line-height: 1.65; max-width: 680px; }
.hero-actions { margin-top: var(--space-400); }
.hero-actions .btn { min-height: 48px; padding: 12px 24px; }
.hero-proof { display: flex; gap: var(--space-300); flex-wrap: wrap; margin-top: var(--space-300); color: var(--muted); font-size: var(--text-sm); }
.hero-proof b { color: var(--ink); font-size: var(--text-lg); font-weight: 700; }
.hero-points { margin-top: var(--space-300); gap: var(--space-200) var(--space-300); font-size: var(--text-sm); }
.hero-points svg { width: 15px; height: 15px; }

/* Tagline reveal */
.tagline-reveal {
  padding: var(--space-900) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.tagline-inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-300); }
.tagline-kicker { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-300); }
.tagline {
  max-width: 680px; margin: 0;
  font-size: var(--text-5xl); line-height: 1.16; letter-spacing: -.02em; font-weight: 600;
}
.tagline .word { opacity: 1; }
.js .tagline .word { opacity: .28; transition: opacity .5s var(--ease); }
.js .tagline .word.is-on { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(var(--space-400)); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Outcomes */
.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-300); }
.reason { padding: var(--space-400); }
.reason-num { font-size: var(--text-xs); letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.reason h3 { font-size: var(--text-xl); margin: var(--space-200) 0 var(--space-75); }
.reason p { color: var(--muted); font-size: var(--text-base); line-height: 1.7; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-3 .step { padding: var(--space-300); }
.steps-3 .step h4 { font-size: var(--text-lg); }
.steps-3 .step p { font-size: var(--text-base); line-height: 1.7; }

/* Proof band */
.proof-band { background: var(--brand-dark); color: #fff; padding: var(--space-700) 0; }
.proof-band .wrap { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: var(--space-700); align-items: center; }
.proof-copy h2 { font-size: var(--text-3xl); line-height: 1.2; color: #fff; max-width: 460px; }
.proof-copy p { color: rgba(255, 255, 255, .72); font-size: var(--text-base); margin-top: var(--space-200); max-width: 480px; }
.proof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-300); }
.proof-stat b { display: block; font-size: var(--text-4xl); line-height: 1.1; font-weight: 700; }
.proof-stat span { display: block; color: rgba(255, 255, 255, .68); font-size: var(--text-sm); margin-top: var(--space-75); }

/* FAQ */

/* Final CTA */
.final-cta { padding: var(--space-800) 0; }
.final-cta-card {
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--surface); padding: var(--space-800) var(--space-600);
  text-align: center;
}
.final-cta-card h2 { font-size: var(--text-4xl); line-height: 1.2; }
.final-cta-card p { color: var(--muted); font-size: var(--text-lg); margin-top: var(--space-200); }
.final-cta-card .hero-actions { justify-content: center; margin-top: var(--space-400); }

/* Footer */
.footer { padding: var(--space-600) 0; margin-top: 0; font-size: var(--text-sm); }
.footer-inner { gap: var(--space-300); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand-dark); }

/* Flat overrides for previously gradient surfaces */
.quick-panel { background: var(--brand-soft); }
.weekly-meter span { background: var(--brand); }
.hero h1 .hl::after { display: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-600); padding: var(--space-600) 0 var(--space-500); }
  .hero h1 { font-size: var(--text-4xl); }
  .mini-paper { margin: 0 auto; }
  .reason-grid { grid-template-columns: 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
  .proof-band .wrap { grid-template-columns: 1fr; gap: var(--space-500); }
  .proof-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .topbar { top: var(--space-75); width: calc(100% - 16px); margin-top: var(--space-75); }
  .topbar-inner { height: 52px; padding: 0 var(--space-100); gap: var(--space-75); }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar-user > .btn { display: none; }
  .brand { font-size: var(--text-base); }
  .hero h1 { font-size: var(--text-3xl); }
  .hero .lead { font-size: var(--text-base); }
  .hero-points { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-75); }
  .tagline { font-size: var(--text-4xl); }
  .tagline-reveal { padding: var(--space-700) 0; }
  .proof-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-400) var(--space-300); }
  .proof-stat b { font-size: var(--text-3xl); }
  .final-cta-card { padding: var(--space-500) var(--space-300); }
  .final-cta-card h2 { font-size: var(--text-3xl); }
  .final-cta-card p { font-size: var(--text-base); }
  .page { padding-block: var(--space-500) var(--space-700); }
  .section { padding: var(--space-600) 0; }
  .paper-toolbar { top: 76px; }
  .summary-card { top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tagline .word { opacity: 1; transition: none; }
  .mobile-menu a { animation: none; opacity: 1; transform: none; }
  .btn, .menu-toggle span { transition: none; }
}

/* Dense UI typography aligned to the same scale */
.tab, .choice span, .grade-answer, .note-row p, .note-crumb, .dialog-desc { font-size: var(--text-sm); }
.paper-meta-bar, .mark-btn, .chip, .note-meta, .badge, .form-hint { font-size: var(--text-xs); }
.list-title, .form-block > h3, .summary-list, .note-row h3, .footer, .toast { font-size: var(--text-base); }
.list-meta, .child-meta, .child-meta, .note-meta { font-size: var(--text-xs); }
.note-row h3 { font-size: var(--text-base); }
.note-row p { font-size: var(--text-sm); }
.note-crumb { font-size: var(--text-sm); }
.note-summary { font-size: var(--text-lg); }
.dialog-desc { font-size: var(--text-sm); }

@media (max-width: 720px) {
  .paper-toolbar { gap: var(--space-75); }
  .paper-toolbar .tabs { flex-basis: 100%; width: 100%; }
  .paper-toolbar .tab { flex: 1; padding: 0 var(--space-75); }
  .paper-toolbar .paper-actions { flex-basis: 100%; }
  .paper-actions .btn { flex: 1; }
}

/* Interface headings use the UI typeface; paper and note surfaces keep the handwritten/print serif. */
.page-title, .section-title-lg, .auth-title, .note-group-title, .kp-panel h3, .result-stat b, .step::before {
  font-family: var(--font-ui);
}
.note-card .page-title { font-family: var(--serif); }

@media (max-width: 720px) {
  .auth-shell { min-height: 0; padding: var(--space-600) var(--space-200) var(--space-700); align-items: start; }
}

/* Notes teaser on the homepage */
.notes-teaser { display: grid; grid-template-columns: 1fr .82fr; gap: var(--space-700); align-items: center; }
.notes-teaser .section-head { margin-bottom: 0; }
.note-preview {
  display: block; padding: var(--space-400); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 44px -36px rgba(43, 42, 38, .55);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.note-preview:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.note-preview-meta { font-size: var(--text-xs); color: var(--muted); letter-spacing: .06em; }
.note-preview h3 { font-family: var(--serif); font-size: var(--text-2xl); margin: var(--space-75) 0 var(--space-100); }
.note-preview-story { font-family: var(--serif); font-size: var(--text-base); line-height: 1.8; color: var(--ink); }
.note-preview-rule { height: 1px; background: var(--line); margin: var(--space-200) 0; }
.note-preview ul { padding-left: var(--space-200); color: var(--muted); font-size: var(--text-sm); line-height: 1.8; }
.note-preview li { margin: var(--space-25) 0; }
.note-preview-link { display: inline-block; margin-top: var(--space-200); color: var(--brand-dark); font-size: var(--text-sm); font-weight: 600; }
@media (max-width: 980px) {
  .notes-teaser { grid-template-columns: 1fr; gap: var(--space-400); }
  .note-preview { max-width: 520px; }
}

.child-card { padding: var(--space-200); }

.js .tagline .word { transition-delay: calc(var(--wi, 0) * 25ms); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(90deg, var(--ink) 0%, #66625a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@media print {
  .skip-link, .mobile-menu, .menu-toggle { display: none !important; }
}

.menu-toggle:hover { background: var(--surface-2); border-color: #d8cdb8; }

.note-story { border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.note-example { border: 1px solid var(--line); border-left: 3px solid var(--brand); }

/* Lean pain-first homepage */
.hero-note { margin-top: var(--space-200); }
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-300); }
.pain-card { padding: var(--space-400); }
.pain-index { font-size: var(--text-xs); letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.pain-card h3 { font-size: var(--text-xl); margin: var(--space-200) 0 var(--space-100); }
.pain-card p { color: var(--muted); font-size: var(--text-base); line-height: 1.7; }
.pain-fix { margin-top: var(--space-200); padding-top: var(--space-200); border-top: 1px solid var(--line); color: var(--brand-dark) !important; font-size: var(--text-sm) !important; }
.pain-fix::before { content: "我们怎么接住："; font-weight: 700; }
.loop-steps { grid-template-columns: repeat(4, 1fr); }
.mastery-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-700); align-items: center; }
.mastery-copy h2 { font-size: var(--text-3xl); line-height: 1.2; margin: var(--space-100) 0 var(--space-200); }
.mastery-copy > p:not(.eyebrow) { color: var(--muted); font-size: var(--text-base); line-height: 1.7; max-width: 560px; }
.mastery-preview { padding: var(--space-400); }
.mastery-preview-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: var(--text-sm); color: var(--muted); }
.mastery-preview-row { margin-top: var(--space-300); }
.mastery-preview-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: var(--text-sm); }
.mastery-preview-row em { font-style: normal; color: var(--brand-dark); }
.mastery-preview .mastery-bar { margin-top: var(--space-75); }
.mastery-preview > .small { margin-top: var(--space-300); }
@media (max-width: 980px) {
  .pain-grid { grid-template-columns: 1fr; }
  .loop-steps { grid-template-columns: repeat(2, 1fr); }
  .mastery-grid { grid-template-columns: 1fr; gap: var(--space-500); }
}
@media (max-width: 720px) {
  .loop-steps { grid-template-columns: 1fr; }
  .pain-card { padding: var(--space-300); }
  .mastery-preview { padding: var(--space-300); }
}

@media (max-width: 720px) {
  .mini-stamp { display: none; }
}

/* 教育理念 */
.philosophy-section {
  padding: var(--space-800) 0;
  background: var(--brand-dark);
  color: #fff;
}
.philosophy-top {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: var(--space-700); align-items: end;
}
.philosophy-section .eyebrow { color: rgba(255, 255, 255, .9); font-size: 18px; letter-spacing: .08em; }
.philosophy-section .eyebrow::before { width: 26px; background: #D8946B; }
.philosophy-section h2 {
  margin-top: var(--space-200);
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06; letter-spacing: -.02em;
}
.philosophy-lead {
  justify-self: end; max-width: 520px;
  color: rgba(255, 255, 255, .8);
  font-size: var(--text-xl); line-height: 1.7;
}
.philosophy-points {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-500); margin-top: var(--space-700);
}
.philosophy-points article { padding-top: var(--space-300); border-top: 1px solid rgba(255, 255, 255, .22); }
.philosophy-index { color: #E4AE8C; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; }
.philosophy-points h3 { margin: var(--space-200) 0 var(--space-100); color: #fff; font-size: var(--text-lg); }
.philosophy-points p { color: rgba(255, 255, 255, .72); font-size: var(--text-base); line-height: 1.75; }
.philosophy-goal {
  margin-top: var(--space-600); padding-top: var(--space-400);
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .74);
  font-size: var(--text-lg); line-height: 1.7;
}
.philosophy-goal strong { color: #fff; }
@media (max-width: 980px) {
  .philosophy-top { grid-template-columns: 1fr; gap: var(--space-300); }
  .philosophy-lead { justify-self: start; }
  .philosophy-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-400) var(--space-500); margin-top: var(--space-600); }
}
@media (max-width: 720px) {
  .philosophy-section { padding: var(--space-600) 0; }
  .philosophy-section h2 { font-size: var(--text-4xl); }
  .philosophy-lead { font-size: var(--text-base); }
  .philosophy-points { grid-template-columns: 1fr; gap: var(--space-300); }
  .philosophy-points article { padding-top: var(--space-200); }
  .philosophy-points p { font-size: var(--text-sm); }
  .philosophy-goal { margin-top: var(--space-500); font-size: var(--text-base); }
}
