/* Night reading palette. Geometry and existing motion stay in their component rules. */
:root {
  --bg:#0A0B12;
  --card:#141622;
  --card2:#1A1D2C;
  --line:rgba(255,255,255,.08);
  --fg:#F3F4F9;
  --fg2:#9297AD;
  --fg3:#6E7490;
  --tick-off:#363B52;
  --a1:#A574FF;
  --a2:#5D7BFF;
  --a3:#2FD0E8;
  --warm:#F5A623;
  --f-red:#F0506A;
  --f-green:#3FCF8E;
  --halo:rgba(93,123,255,.22);
  --glass:rgba(20,22,34,.62);
  --on-accent:#FFFFFF;
  --btn:linear-gradient(135deg,#A574FF,#5D7BFF);
  --numfill:linear-gradient(180deg,#FFFFFF 30%,#8F95AE);
  --shadow:0 22px 44px -22px rgba(0,0,0,.85);
  --on-primary:var(--bg);
  --button-shade:color-mix(in srgb,var(--bg) 23%,var(--on-accent));
  color-scheme:dark;
  --surface:var(--card); --muted:var(--fg2); --faint:var(--line); --soft:var(--card2);
  --accent:var(--a2); --accent-ink:color-mix(in srgb,var(--a2) 80%,var(--fg)); --apple:var(--card2); --tint:color-mix(in srgb,var(--a2) 8%,var(--card));
  --primary:var(--a2); --primary-hover:color-mix(in srgb,var(--a2) 86%,var(--fg));
  --on-fg:var(--bg); --ring:var(--line); --ring-strong:color-mix(in srgb,var(--a2) 38%,var(--line));
  --lens:var(--tint); --hl:color-mix(in srgb,var(--fg) 12%,transparent); --edge:var(--line);
  --gshadow:color-mix(in srgb,var(--a2) 18%,transparent); --veil:color-mix(in srgb,var(--bg) 70%,transparent);
  --danger-ink:color-mix(in srgb,var(--f-red) 88%,var(--fg));
  --font:Outfit,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --num:Outfit,"PingFang SC",sans-serif; --ease:cubic-bezier(.22,1,.36,1); --r:24px;
  --press:cubic-bezier(.3,.7,.4,1);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg:#F2F3F8;
  --card:#FFFFFF;
  --card2:#FFFFFF;
  --line:rgba(20,22,40,.08);
  --fg:#151824;
  --fg2:#666B80;
  --fg3:#848A9E;
  --tick-off:#DADCE6;
  --a1:#8D57F2;
  --a2:#4566F0;
  --a3:#0B8BA3;
  --warm:#B36D00;
  --f-red:#D63A55;
  --f-green:#1F9D63;
  --halo:rgba(130,120,255,.16);
  --glass:rgba(255,255,255,.72);
  --on-accent:#FFFFFF;
  --btn:linear-gradient(135deg,#8D57F2,#4566F0);
  --numfill:linear-gradient(180deg,#151824 35%,#5E6378);
  --shadow:0 18px 36px -22px rgba(30,30,80,.35);
  --on-primary:var(--on-accent);
  --button-shade:color-mix(in srgb,var(--fg) 8%,var(--on-accent));
  color-scheme:light;
} }
:root[data-theme="light"] {
  --bg:#F2F3F8;
  --card:#FFFFFF;
  --card2:#FFFFFF;
  --line:rgba(20,22,40,.08);
  --fg:#151824;
  --fg2:#666B80;
  --fg3:#848A9E;
  --tick-off:#DADCE6;
  --a1:#8D57F2;
  --a2:#4566F0;
  --a3:#0B8BA3;
  --warm:#B36D00;
  --f-red:#D63A55;
  --f-green:#1F9D63;
  --halo:rgba(130,120,255,.16);
  --glass:rgba(255,255,255,.72);
  --on-accent:#FFFFFF;
  --btn:linear-gradient(135deg,#8D57F2,#4566F0);
  --numfill:linear-gradient(180deg,#151824 35%,#5E6378);
  --shadow:0 18px 36px -22px rgba(30,30,80,.35);
  --on-primary:var(--on-accent);
  --button-shade:color-mix(in srgb,var(--fg) 8%,var(--on-accent));
  color-scheme:light;
}
:root[data-theme="dark"] {
  --bg:#0A0B12;
  --card:#141622;
  --card2:#1A1D2C;
  --line:rgba(255,255,255,.08);
  --fg:#F3F4F9;
  --fg2:#9297AD;
  --fg3:#6E7490;
  --tick-off:#363B52;
  --a1:#A574FF;
  --a2:#5D7BFF;
  --a3:#2FD0E8;
  --warm:#F5A623;
  --f-red:#F0506A;
  --f-green:#3FCF8E;
  --halo:rgba(93,123,255,.22);
  --glass:rgba(20,22,34,.62);
  --on-accent:#FFFFFF;
  --btn:linear-gradient(135deg,#A574FF,#5D7BFF);
  --numfill:linear-gradient(180deg,#FFFFFF 30%,#8F95AE);
  --shadow:0 22px 44px -22px rgba(0,0,0,.85);
  --on-primary:var(--bg);
  --button-shade:color-mix(in srgb,var(--bg) 23%,var(--on-accent));
  color-scheme:dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; text-wrap: balance; line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(32px, 9vw, 46px); line-height: 1.15; }
h2 { font-size: clamp(22px, 6vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0; }
a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
@media(hover:hover) { a:hover { text-decoration: underline; text-underline-offset: 3px; } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-user-select: none; user-select: none; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) calc(120px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.view { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.sub { font-size: 17px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.texts { display: flex; flex-direction: column; gap: 10px; }
.group { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plain { margin: 0; padding: 18px 20px 18px 38px; background: var(--surface); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.foot { padding-top: 40px; font-size: 12px; color: var(--muted); }

/* 按钮：黑色胶囊、描边胶囊、文字链接 */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--fg); color: var(--on-fg); font-weight: 600; font-size: 17px; transition: transform .16s var(--ease), opacity .2s; align-self: flex-start; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--faint); }
.btn.big { align-self: stretch; min-height: 56px; }
.btn.sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; }
.link { min-height: 44px; padding: 0 2px; color: var(--muted); font-size: 15px; font-weight: 600; align-self: flex-start; transition: opacity .2s; }
.link:active { opacity: .55; }
.more { color: var(--fg); font-size: 15px; font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.more::after { content: "›"; font-size: 20px; line-height: 1; margin-top: -2px; }
.more:active { opacity: .55; }

/* 玻璃：模糊 + 提亮，上沿一道高光、一圈细边，手指按住的地方亮一点 */
.glass { -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%); background: var(--glass);
  box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--edge), 0 12px 32px -14px var(--gshadow); isolation: isolate; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: var(--hl); opacity: .5; transition: opacity .3s; }
.glass:active::after { opacity: .9; }

/* 顶栏：往下滑时变成玻璃 */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.top.scrolled { background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%); box-shadow: inset 0 -1px 0 var(--edge), 0 1px 0 var(--faint); }
.topin { max-width: 600px; margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; min-height: 44px; }
.logo svg { width: 22px; height: 22px; }
.pill-note { font-size: 12px; color: var(--muted); border: 1px solid var(--faint); border-radius: 999px; padding: 3px 10px; }

/* 首页 */
.hero { padding-top: 8px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(40px, 11vw, 64px); line-height: 1.08; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.resume { font-size: 14px; color: var(--muted); margin-top: -10px; }
.resume button { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.hexstage { position: relative; aspect-ratio: 1 / 1; width: min(100%, 420px); align-self: center; }
.hexstage svg { width: 100%; height: 100%; overflow: visible; display: block; }
.hexcap { text-align: center; font-size: 14px; color: var(--muted); margin-top: -10px; min-height: 1.6em; }
.tryit { display: flex; flex-direction: column; gap: 10px; }
.tryit .lbl { font-size: 14px; font-weight: 600; color: var(--muted); }
.tchips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tchip { min-height: 46px; border-radius: 14px; background: var(--surface); font-weight: 700; font-size: 15px; transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.tchip[aria-pressed="true"] { background: var(--fg); color: var(--on-fg); }
.tryres { font-size: 15px; color: var(--muted); min-height: 3.2em; }
.tryres b { color: var(--fg); }
.tryres button { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.statement { padding: 72px 0 24px; font-size: clamp(26px, 7vw, 36px); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.statement .ch { opacity: .18; }
.want { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.want h2, .story-head h2, .sec h2 { font-size: clamp(26px, 7vw, 34px); line-height: 1.2; }
.wbox { position: relative; }
.wbox input { width: 100%; min-height: 58px; border-radius: 18px; border: 0; background: var(--surface); padding: 0 18px 0 74px; font-size: 18px; font-weight: 600; box-shadow: 0 0 0 1px var(--faint); outline: none; transition: box-shadow .2s; }
.wbox input:focus { box-shadow: 0 0 0 2px var(--fg); }
.wbox span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); line-height: 1; font-size: 18px; font-weight: 800; pointer-events: none; }
.wquick { display: flex; flex-wrap: wrap; gap: 8px; }
.wquick button { min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; box-shadow: 0 0 0 1px var(--faint); transition: transform .16s var(--ease); }
.wres { display: flex; flex-direction: column; gap: 8px; }
.wrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 14px 16px; text-align: left; width: 100%; transition: transform .16s var(--ease); }
.wrow b { font-size: 17px; display: block; }
.wrow small { color: var(--muted); font-size: 13px; display: block; line-height: 1.5; }
.wrow svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.story-head { display: flex; flex-direction: column; gap: 8px; padding-top: 64px; }
/* 四步：一张卡片盖过一张，下面那张往后退 */
.scards { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.scard { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px + var(--k) * 14px); border-radius: 24px; background: var(--surface); transform-origin: 50% 0;
  box-shadow: inset 0 1px 0 var(--hl), 0 0 0 1px var(--faint), 0 24px 48px -28px var(--gshadow); }
.sbody { display: flex; flex-direction: column; gap: 20px; padding: 24px 22px 22px; }
.stext { display: flex; flex-direction: column; gap: 8px; }
.stext .k { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.stext .num { font-family: var(--num); font-weight: 700; font-size: 15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--on-fg); }
.stext h3 { font-size: 26px; }
.stext p { color: var(--muted); }
.svis { min-height: 220px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--bg); padding: 18px; }
.svis svg { width: 230px; height: 230px; overflow: visible; }
.scard .dim { position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: 0; pointer-events: none; }
.vlist { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.vlist div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-weight: 600; font-size: 15px; }
.vlist span:last-child { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tl { display: flex; align-items: flex-end; gap: 14px; width: 100%; max-width: 300px; }
.tl div { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.tl i { width: 100%; border-radius: 12px; background: var(--fg); }
.sec { display: flex; flex-direction: column; gap: 16px; padding-top: 72px; }
#plan .sec { padding-top: 44px; }
#plan .sec.tight { padding-top: 12px; }
.sec.tight { padding-top: 12px; }
.sec > h2:only-of-type { font-size: 22px; }
#plan .sec h2 { font-size: 22px; }
.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ring { position: relative; background: var(--surface); border-radius: 18px; padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ring .dial { position: relative; width: 72px; height: 72px; }
.ring svg { width: 72px; height: 72px; transform: rotate(-90deg); display: block; }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--num); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.ring small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.anon { font-size: 14px; color: var(--muted); background: var(--surface); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.anon b { color: var(--fg); }

/* 普通页面的标题区 */
.rhead { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.rhead h1 em { font-style: normal; color: var(--accent-ink); }

/* 提示、卡片、盒子 */
.warn { background: var(--surface); border-radius: 16px; padding: 14px 16px; font-size: 15px; box-shadow: inset 3px 0 0 var(--fg); }
.box, .choice, .aibox { background: var(--surface); border-radius: var(--r); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.box h3 { font-size: 18px; }
.choice { gap: 12px; padding: 22px 20px; }
.aibox > .eyebrow { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.aibox > .eyebrow span:first-child { color: var(--accent-ink); }
.aibox p { font-size: 16px; }
.loading { color: var(--muted); }
.loading::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: breathe 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .2; transform: scale(.6); } }
.skel { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.skel i { display: block; height: 12px; border-radius: 6px; background: var(--soft); animation: skelpulse 1.3s ease-in-out infinite; }
.skel i:nth-child(2) { width: 88%; }
.skel i:nth-child(3) { width: 62%; }
@keyframes skelpulse { 50% { opacity: .45; } }
.dirs { display: flex; flex-direction: column; gap: 10px; }
.dir { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.dir h3 { font-size: 16px; }
.dir p { font-size: 15px; color: var(--muted); }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 28px; }
.sechead h2 { font-size: 24px; }

/* 访谈 */
.chat-head { display: flex; justify-content: space-between; align-items: center; }
.log { display: flex; flex-direction: column; gap: 10px; min-height: 40vh; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 20px; white-space: pre-wrap; word-break: break-word; }
.bubble.ai { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { background: var(--fg); color: var(--on-fg); align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble.sys { background: var(--soft); align-self: stretch; max-width: none; font-size: 15px; border-radius: 14px; }
.bubble.typing { color: var(--muted); }
.composer { display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 10px; border-radius: 22px; }
.composer textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface); resize: none; outline: none; box-shadow: 0 0 0 1px var(--faint); }
.composer textarea:focus { box-shadow: 0 0 0 2px var(--fg); }
.composer-row { display: flex; justify-content: space-between; align-items: center; }

/* 答题 */
.qhead { display: flex; flex-direction: column; gap: 14px; }
.qbar { height: 6px; border-radius: 9px; background: var(--faint); overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: var(--fg); border-radius: 9px; transition: width .6s var(--ease); }
.qcount { display: flex; align-items: baseline; gap: 6px; font-family: var(--num); font-weight: 800; font-variant-numeric: tabular-nums; }
.qcount .big { font-size: 64px; line-height: 1; height: 64px; overflow: hidden; display: inline-block; }
.qcount .big span { display: block; }
.qcount .of { font-size: 20px; color: var(--muted); }
.qcard { display: flex; flex-direction: column; gap: 18px; }
.qtext { font-size: clamp(23px, 6.4vw, 29px); font-weight: 700; line-height: 1.38; min-height: 4em; letter-spacing: -.01em; }
.qhint { margin-top: -10px; font-size: 14px; color: var(--muted); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { min-height: 56px; border-radius: 18px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; text-align: left; font-size: 17px; font-weight: 600;
  transition: background .22s, color .22s, transform .22s var(--ease); }
.opt.sel, .opt[aria-pressed="true"] { background: var(--fg); color: var(--on-fg); }
.opt .lv { display: flex; gap: 4px; }
.opt .lv b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .22; }
.opt .lv b.f { opacity: 1; }
.qnav { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.kbd { display: none; }
@media (hover: hover) and (pointer: fine) { .kbd { display: block; } }
.fbopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fbopts .opt { justify-content: center; min-height: 48px; padding: 0 8px; background: var(--bg); }

/* 学科、话题：小胶囊 */
.qlabel { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; box-shadow: 0 0 0 1px var(--faint);
  transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease), box-shadow .16s; }
.chip.sel { background: var(--fg); color: var(--on-fg); box-shadow: 0 0 0 1px var(--fg); }
#tdislike .chip.sel { background: var(--soft); color: var(--muted); box-shadow: 0 0 0 1px var(--faint); text-decoration: line-through; }
.chip.static { cursor: default; min-height: 34px; display: inline-flex; align-items: center; background: var(--surface); box-shadow: none; font-weight: 500; }
.likes { display: flex; flex-direction: column; gap: 8px; }
.like { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: 18px; padding: 12px 12px 12px 16px; }
.like > span { font-weight: 700; }
.like .chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.like .chip { min-height: 38px; padding: 0; border-radius: 12px; font-size: clamp(11px, 3.1vw, 13px); letter-spacing: 0; white-space: nowrap; background: var(--bg); }
.like .chip.sel { background: var(--fg); }
.like .chip:last-child:not(.sel) { color: var(--muted); }
select { padding: 12px 14px; border-radius: 14px; border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--faint); max-width: 100%; }

/* 兴趣形状：六边形 + 六个分数 */
.hx-grid { fill: none; stroke: var(--faint); stroke-width: 1.2; }
.hx-shape { fill: var(--fg); fill-opacity: .08; stroke: var(--fg); stroke-width: 2.5; stroke-linejoin: round; }
.hx-dot { fill: var(--fg); }
.hx-dot.lead { fill: var(--accent); }
.hx-lab { fill: var(--muted); font-size: 15px; font-weight: 600; font-family: var(--font); }
.hx-lab.lead { fill: var(--accent-ink); font-weight: 800; }
.onfg .hx-grid { stroke: currentColor; stroke-opacity: .25; }
.onfg .hx-shape { fill: currentColor; fill-opacity: .15; stroke: currentColor; }
.onfg .hx-dot { fill: currentColor; }
.shape { display: flex; flex-direction: column; gap: 14px; }
.shape .hexstage { margin-top: 4px; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.legend button { background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; transition: background .2s, color .2s, transform .16s var(--ease); }
.legend button.lead { color: var(--accent-ink); }
.legend button[aria-pressed="true"] { background: var(--fg); color: var(--on-fg); }
.legend .v { font-family: var(--num); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.legdesc { min-height: 1.6em; font-size: 15px; color: var(--muted); }
.legdesc b { color: var(--fg); }

/* 专业卡片 */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 6px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .rank { font-family: var(--num); font-weight: 700; color: var(--muted); font-size: 14px; }
.card h3 { font-size: 22px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--fg); color: var(--on-fg); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.soft { background: var(--soft); color: var(--muted); }
.why1 { color: var(--muted); font-size: 15px; }
.card.open .why1 { display: none; }
.elbad { display: inline-flex; margin-left: 6px; padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fg); color: var(--fg); font-size: 12px; font-weight: 700; line-height: 1.7; vertical-align: 1px; }
.cbody { display: grid; grid-template-rows: 0fr; }
.card.open .cbody { grid-template-rows: 1fr; }
.cin { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; visibility: hidden; }
.card.open .cin { visibility: visible; padding-top: 4px; }
.crow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--faint); margin-top: 6px; }
.ctog { min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ctog::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.card.open .ctog::after { transform: rotate(-135deg) translateY(-2px); }
.points { display: flex; flex-direction: column; gap: 4px; }
.points > b { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.points ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.points li { position: relative; padding-left: 1.4em; font-size: 15px; }
.points li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.points.good li::before { content: "✓"; color: var(--accent-ink); }
.points.watch li::before { content: "!"; left: .3em; }
.kv { display: grid; grid-template-columns: 4em minmax(0, 1fr); font-size: 15px; gap: 8px; }
.kv > b { color: var(--muted); font-weight: 600; }
.bad { font-weight: 700; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.plist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plist button { width: 100%; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 14px 16px; background: var(--surface); border-radius: 16px; text-align: left; transition: transform .16s var(--ease); }
.plist .n { font-family: var(--num); font-weight: 700; color: var(--muted); }
.plist .nm { font-weight: 700; font-size: 17px; }
.plist .go { color: var(--muted); font-size: 20px; line-height: 1; }
.plist .wait { padding: 4px 2px; }

/* 兴趣名片 */
.idcard { border-radius: 24px; padding: 22px; background: var(--fg); color: var(--on-fg); display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; align-items: center; }
.idcard .who { font-size: 13px; opacity: .7; letter-spacing: .04em; }
.idcard h3 { font-size: 26px; line-height: 1.2; margin-top: 4px; }
.idcard ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; }
.idcard li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; margin-right: 8px; vertical-align: middle; }
.idcard .cfoot { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--faint); padding-top: 10px; }
.idcard svg { width: 112px; height: 112px; overflow: visible; }

/* 人格画像 */
.dom { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 18px; padding: 16px 18px; }
.dom .dh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scale { position: relative; height: 6px; border-radius: 9px; background: var(--faint); margin: 10px 0 2px; }
.scale > i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 3px var(--surface); transform: translate(-50%, -50%); }
.ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.portrait { font-size: 17px; }

/* 专业库 */
.search { position: relative; }
.search input { width: 100%; min-height: 50px; border-radius: 16px; border: 0; background: var(--surface); padding: 0 16px 0 44px; font-size: 17px; outline: none; box-shadow: 0 0 0 1px var(--faint); -webkit-appearance: none; appearance: none; }
.search input:focus { box-shadow: 0 0 0 2px var(--fg); }
.search svg { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; margin: -4px -2px 0; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; min-height: 38px; padding: 0 15px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; transition: background .25s, color .25s, transform .16s var(--ease); }
.fchip[aria-pressed="true"] { background: var(--fg); color: var(--on-fg); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; text-align: left; min-height: 124px; transition: transform .16s var(--ease); }
.tile .tt { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile h3 { font-size: 18px; }
.tile small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.tile.saved .tt::after { content: " · 已收藏"; color: var(--accent-ink); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* 我的规划 */
.saved { display: flex; flex-direction: column; gap: 10px; }
.srow { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: 18px; padding: 6px 8px 6px 18px; gap: 10px; }
.srow .name { text-align: left; min-height: 52px; flex: 1; }
.srow .name b { display: block; font-size: 17px; }
.srow .name small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.srow .rm { color: var(--muted); font-size: 14px; min-height: 44px; padding: 0 10px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 26px; padding-left: 34px; }
.tbar { position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--faint); }
.tbar i { position: absolute; inset: 0; background: var(--fg); transform-origin: top; }
.tstep { position: relative; display: flex; flex-direction: column; gap: 4px; }
.tstep::before { content: ""; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--fg); }
.tstep h3 { font-size: 19px; }
.tstep p { color: var(--muted); font-size: 15px; }

/* 底部导航：玻璃胶囊，选中的那一格有一块会滑动的“镜片” */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); transition: transform .45s var(--ease), opacity .3s; }
.tabbar.away { transform: translateY(120%); opacity: 0; }
.tabs { pointer-events: auto; position: relative; max-width: 420px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px; border-radius: 32px; transform-origin: 50% 100%; }
.tab { position: relative; z-index: 2; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); transition: color .3s; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--fg); }
.tab .tlab { transition: opacity .25s var(--ease); }
.tabpill { position: absolute; z-index: 1; top: 6px; bottom: 6px; left: 6px; width: 33.3%; border-radius: 26px; background: var(--lens); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--edge), 0 4px 14px -6px var(--gshadow); }
.badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: var(--on-primary); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; padding: 0 4px; }

/* 专业详情：整页 */
.scrim { position: fixed; inset: 0; z-index: 49; background: var(--veil); opacity: 0; pointer-events: none; }
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--surface); overflow: hidden; }
.sheet .scroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet .inner { max-width: 600px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(120px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 24px; }
.sheet .close { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .22s var(--ease); }
.sheet .close svg { position: relative; z-index: 1; width: 18px; height: 18px; }
.dhead { display: flex; flex-direction: column; gap: 6px; padding-top: 30px; padding-right: 40px; }
.dhead h2 { font-size: clamp(34px, 10vw, 48px); line-height: 1.1; }
.dsub { font-size: 15px; color: var(--muted); }
.dbody { display: flex; flex-direction: column; gap: 26px; }
.dsec { display: flex; flex-direction: column; gap: 10px; }
.dsec > h2 { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.dsec > p { font-size: 17px; }
.dsec > p.small { font-size: 14px; }
.dsec h3 { font-size: 16px; margin-top: 4px; }
.dsec.box { background: var(--surface); }
.types { display: flex; flex-wrap: wrap; gap: 6px; }
.types span { padding: 2px 12px; border-radius: 999px; background: var(--fg); color: var(--on-fg); font-weight: 600; font-size: 14px; }
.slist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.slist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--faint); }
.slist li:last-child { border-bottom: 1px solid var(--faint); }
.slist .nm { font-weight: 700; }
.slist .small { flex-basis: 100%; order: 3; }
.slist .badges { display: flex; gap: 6px; margin-left: auto; }
.links { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.dfoot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: center;
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%); box-shadow: inset 0 1px 0 var(--edge); }
.dfoot .btn { width: 100%; max-width: 560px; }
.toast { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 60; transform: translateX(-50%); padding: 12px 22px; border-radius: 20px; font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; width: max-content; max-width: min(420px, calc(100% - 32px)); text-align: center; text-wrap: balance; }
.toast::after { content: none; }

/* 往下翻到时浮上来 */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.ink > * { animation: fadeup .7s var(--ease) backwards; }
.ink > :nth-child(2) { animation-delay: .08s; }
.ink > :nth-child(3) { animation-delay: .16s; }
.ink > :nth-child(n+4) { animation-delay: .24s; }
.inked { animation: fadeup .6s var(--ease) backwards; }
.flash { animation: fadeup .35s var(--ease); }
.bubble { animation: bubble .32s var(--ease) backwards; transform-origin: left bottom; }
.bubble.me { transform-origin: right bottom; }
.chip.pop { animation: pop .3s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@keyframes bubble { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: none; } }

/* 系统设置了“减少动态效果”：不浮、不滑、不弹 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .rv { opacity: 1; transform: none; }
  .scard { position: relative; top: auto; }
  .statement .ch { opacity: 1; }
}
@media print { .rv { opacity: 1; transform: none; } .tabbar, .top, .toast, .scrim { display: none; } .statement .ch { opacity: 1; } }

/* 管理页 */
.admin { padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.input { padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--faint); }
.pre { white-space: pre-line; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--faint); padding: 6px 10px; text-align: left; white-space: nowrap; }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.slist .tag { background: var(--soft); color: var(--fg); }

/* 官方专业名单 */
.olist .code { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tile.cross { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }

/* 结果页：先一句话，再 3 个专业，其余折起来 */
.rsum .sub { font-size: 17px; color: var(--fg); }
.rsdirs, .rswant { font-size: 16px; color: var(--muted); }
.rsdirs b { color: var(--fg); font-weight: 700; }
.top3 .why { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.top3 .elbad { margin-left: 6px; }
.morebar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; }
.morebar .btn { width: 100%; }
.morebar .small { text-align: center; }
.rmore { display: flex; flex-direction: column; gap: 18px; }
.rmore[hidden] { display: none; }

/* 我的规划：并排比较 */
.cmpbtn { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--soft); color: var(--fg); transition: background .2s var(--ease), color .2s var(--ease); }
.cmpbtn.on { background: var(--fg); color: var(--on-fg); }
.cmpbar { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.cmpbar .btn[disabled] { opacity: .45; pointer-events: none; }
.cgrid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 10px; }
.cgrid .cc { background: var(--surface); border-radius: 14px; padding: 12px; }
.cgrid .cc p { font-size: 14px; line-height: 1.6; margin: 0; }
.cgrid .cc p.bad { color: var(--fg); font-weight: 700; }
.chead { position: sticky; top: 64px; z-index: 2; padding: 8px 0; margin: 30px 0 0; background: var(--bg); box-shadow: 0 -64px 0 var(--bg); }
.chead .cname { text-align: left; background: var(--fg); color: var(--on-fg); display: flex; flex-direction: column; gap: 2px; }
.chead .cname b { font-size: 15px; line-height: 1.3; }
.chead .cname small { font-size: 12px; opacity: .7; }
.slist .tag.gp { background: var(--fg); color: var(--on-fg); }
.gbox { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.gbox p { margin: 0; }

/* 专业详情：速览卡（一屏看懂）、适合/不喜欢并排、和相近专业的区别、三个标签 */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qc, .pc { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qc:first-child { grid-column: 1 / -1; }
.ql { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.qc p { font-size: 16px; line-height: 1.55; }
.qc p.big { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.qc p.small { font-size: 13px; }
.qc p.bad { color: var(--fg); font-weight: 700; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc p { font-size: 15px; line-height: 1.6; }
@media (max-width: 420px) { .pair { grid-template-columns: 1fr; } }
.difflist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--faint); }
.difflist li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--faint); font-size: 15px; line-height: 1.55; }
.difflist .nm { font-weight: 700; text-align: left; color: var(--fg); }
.difflist button.nm { color: var(--accent-ink); }
.difflist li.me .nm { color: var(--fg); }
.tabs-d { display: flex; flex-direction: column; gap: 22px; }
.tabs-d .seg { position: sticky; top: 64px; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: var(--soft); box-shadow: 0 -12px 0 var(--bg); }
.tabs-d .seg button { min-height: 40px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); transition: background .2s var(--ease), color .2s; }
.tabs-d .seg button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px var(--line); }
.pane { display: flex; flex-direction: column; gap: 28px; }
.qc.wide { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 12px; }
.qc.wide .ql { flex: none; }

/* 首页：三个入口 + 可展开的匿名声明 */
.entries { display: flex; flex-direction: column; gap: 10px; }
.entry { display: flex; justify-content: flex-start; align-items: center; gap: 8px; background: var(--surface); border-radius: 18px; padding: 16px 18px; text-align: left; width: fit-content; max-width: 100%; transition: transform .16s var(--ease); }
.entry b { font-size: 18px; display: block; }
.entry small { color: var(--muted); font-size: 14px; display: block; }
.entry svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
details.anon { display: block; background: none; padding: 0 2px; }
details.anon summary { cursor: pointer; list-style: none; font-size: 13px; color: var(--muted); min-height: 44px; display: flex; align-items: center; gap: 6px; }
details.anon summary::-webkit-details-marker { display: none; }
details.anon summary::after { content: "展开"; color: var(--accent-ink); font-weight: 600; margin-left: auto; }
details.anon[open] summary::after { content: "收起"; }
details.anon p { font-size: 13px; }

/* 去哪读：阳光高考入口、本省全部本科院校（可展开） */
.chsi { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chsi p { font-size: 15px; }
.chsi p.small { font-size: 13px; }
.chsi .btn { text-decoration: none; }
.dsec h4 { margin: 6px 0 0; font-size: 15px; font-weight: 700; }
.dsec h3.dfc { margin-top: 10px; }
details.allsch { background: var(--surface); border-radius: 16px; padding: 0 16px; }
details.allsch summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.allsch summary::-webkit-details-marker { display: none; }
details.allsch summary small { color: var(--muted); font-size: 14px; }
details.allsch .tog::after { content: "展开"; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
details.allsch[open] .tog::after { content: "收起"; }
details.allsch[open] { padding-bottom: 14px; }
details.allsch > p.small { font-size: 13px; }
.alist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.alist li { font-size: 14px; line-height: 1.5; padding: 5px 0; border-bottom: 1px solid var(--faint); min-width: 0; }
.alist li small { display: block; color: var(--muted); font-size: 12px; }
.plist li.subjnote { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: var(--r); padding: 16px 18px; }
.plist li.subjnote p { font-size: 15px; }
.plist li.subjnote p.small { font-size: 13px; }
.plist li.subjnote .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.plist li.subjnote .chips button { display: inline-flex; width: auto; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--bg); box-shadow: none; font-size: 15px; font-weight: 700; grid-template-columns: none; }
.conflict { background: var(--surface); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.conflict p { font-size: 15px; }
.conflict p.small { font-size: 13px; }
.rchange { font-size: 13px; }
.ties { display: flex; flex-direction: column; gap: 8px; }
.tie .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tie .chip { justify-content: center; text-align: center; }
.tips { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

/* ---------- 私人学习助手（2026-10-14 第一期）：助手、档案 ---------- */
.field { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--faint); outline: none; }
.field:focus { box-shadow: 0 0 0 2px var(--fg); }
select.field { appearance: auto; }
.link.inline { min-height: 0; padding: 0; color: var(--accent-ink); }
.chip.ghost { background: transparent; color: var(--muted); }
.guide { color: var(--muted); }
.exlib { padding-top: 12px; }

/* 今天卡片 */
.today { gap: 8px; }
.tmain { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.tmain b { font-size: 19px; line-height: 1.35; }
.tmain small { color: var(--muted); font-size: 14px; }
.thints { margin: 0; padding: 10px 0 0 18px; border-top: 1px solid var(--faint); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.examples .chip { background: var(--bg); }
.qbox { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* 对话 */
.alog { min-height: 30vh; padding-bottom: 4px; }
.bubble.ai.safe { box-shadow: inset 3px 0 0 var(--accent); }
.imgtag { opacity: .7; font-size: 14px; }
.changes { align-self: flex-start; max-width: 92%; background: var(--surface); border-radius: 16px; padding: 8px 14px; font-size: 14px; margin-top: -4px; }
.changes summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 32px; display: flex; align-items: center; list-style: none; }
.changes summary::-webkit-details-marker { display: none; }
.changes summary::after { content: "›"; margin-left: 6px; transition: transform .2s; }
.changes[open] summary::after { transform: rotate(90deg); }
.changes.gone summary { text-decoration: line-through; }
.chg { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--faint); }
.chg .link { min-height: 36px; font-size: 14px; flex: none; }
.chg.gone span { color: var(--muted); text-decoration: line-through; }
.chgx { border-top: 1px solid var(--faint); }
.chgx .chg { border-top: 0; }
.stable { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; padding: 4px 0 6px; }
.srow2 { display: grid; grid-template-columns: 3em 1fr auto 1fr; align-items: center; gap: 4px; font-size: 15px; }
.srow2 span { font-weight: 600; }
.srow2 i { font-style: normal; color: var(--muted); }
.srow2 input { width: 100%; min-width: 0; min-height: 36px; border: 0; border-radius: 10px; background: var(--bg); padding: 0 8px; text-align: center; font-family: var(--num); font-variant-numeric: tabular-nums; outline: none; }
.srow2 input:focus { box-shadow: 0 0 0 2px var(--fg); }
.qs { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.q { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.q p { font-weight: 600; font-size: 15px; }
.q.done { opacity: .5; }
.q .chip { min-height: 36px; background: var(--bg); }
.mrow .chip { min-height: 36px; }

/* 输入框：贴在底部导航上面，一只手能操作；拍照按钮比发送更显眼 */
.acomp { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 26px; }
.acomp > * { position: relative; z-index: 1; }
.arow { display: flex; align-items: flex-end; gap: 8px; }
.arow textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 10px 14px; border: 0; border-radius: 20px; background: var(--surface); resize: none; outline: none; box-shadow: 0 0 0 1px var(--faint); line-height: 1.5; }
.arow textarea:focus { box-shadow: 0 0 0 2px var(--fg); }
.cam { flex: none; width: 48px; height: 44px; border-radius: 22px; background: var(--fg); color: var(--on-fg); display: grid; place-items: center; }
.cam svg, .sendb svg { width: 22px; height: 22px; }
.sendb { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--faint); display: grid; place-items: center; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.thumb { position: relative; flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--fg); color: var(--on-fg); font-size: 16px; line-height: 24px; }
.thumb.add { display: grid; place-items: center; font-size: 26px; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--faint); background: transparent; }
.quota { padding: 0 8px; }
.safe-line { text-align: center; margin-top: -6px; }

/* 考后复盘 */
.review { gap: 12px; box-shadow: inset 0 0 0 1.5px var(--fg); }
.rvhead { display: flex; justify-content: space-between; align-items: center; }
.rvhead .link { min-height: 32px; font-size: 14px; }
.cmp { display: flex; flex-direction: column; }
.cmprow { display: grid; grid-template-columns: 3.5em 1fr auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--faint); font-size: 15px; font-variant-numeric: tabular-nums; }
.cmprow b { font-weight: 600; color: var(--muted); }
.cmprow b.up { color: var(--accent-ink); }
.cmprow b.down { color: var(--fg); }
.rsub { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.rsub small { color: var(--muted); font-weight: 400; }
.rvl ul { margin: 4px 0 0; padding-left: 20px; }

/* 档案 */
.acard { gap: 10px; }
.acard > summary { cursor: pointer; list-style: none; }
.acard > summary::-webkit-details-marker { display: none; }
.ilist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ilist li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--faint); }
.ilist li.editing { flex-direction: column; align-items: stretch; }
.itext { text-align: left; flex: 1; font-size: 16px; line-height: 1.5; }
.itext:disabled { opacity: 1; cursor: default; }
.itext small { color: var(--muted); font-size: 12px; }
.st { flex: none; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.st0 { background: var(--fg); color: var(--on-fg); }
.st1 { box-shadow: inset 0 0 0 1.5px var(--fg); }
.st2 { background: var(--soft); color: var(--muted); }
.kgroup { display: flex; flex-direction: column; gap: 2px; }
.addline { display: flex; gap: 8px; align-items: center; }
.kv { display: grid; grid-template-columns: 3em 1fr; gap: 10px; align-items: center; }
.kv > span { font-weight: 600; color: var(--muted); font-size: 14px; }
.card .kv { grid-template-columns: 4.5em minmax(0, 1fr); align-items: baseline; }
.card .kv > span { font: inherit; color: var(--fg); }
.card .kv > .bad { font-weight: 700; }
.exam { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--faint); }
.exhead { text-align: left; }
.box.inner { background: var(--bg); }
.sparkw { display: flex; flex-direction: column; gap: 4px; }
.spark { width: 100%; height: auto; }
.spark .g { stroke: var(--faint); stroke-dasharray: 3 4; }
.spark .l0 { fill: none; stroke: var(--fg); stroke-width: 2; }
.spark .l1 { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.spark .d0 { fill: var(--fg); }
.spark .d1 { fill: var(--muted); }
.lrow { display: flex; flex-direction: column; padding-top: 8px; }
.lrow > small { color: var(--muted); }
.settings details summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
pre.md { white-space: pre-wrap; word-break: break-word; font-size: 13px; background: var(--bg); padding: 12px; border-radius: 12px; max-height: 60vh; overflow: auto; }
.lock { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-top: 40px; }
.pin { width: 9em; min-height: 56px; font-size: 28px; letter-spacing: .5em; text-align: center; border: 0; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--faint); outline: none; }

/* 助手第二版：照片类型、这次不记、心情先挂着、错题重做 */
.aopts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 2px 8px; }
.aopts .small { margin: 0 2px 0 0; }
.chip.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.held { display: grid; gap: 6px; margin: 2px 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--soft); }
.held .small { margin: 0; }
.practice { gap: 10px; }
.phead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ptext { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.ptext .tag { flex: none; }
.pimg { max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: contain; align-self: flex-start; box-shadow: 0 0 0 1px var(--faint); }
.pdone { margin: 0; font-size: 17px; font-weight: 600; }
.rbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 6px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--faint); text-align: center; transition: transform .15s var(--ease); }
.rbtn b { font-size: 14px; line-height: 1.3; }
.rbtn small { font-size: 12px; color: var(--muted); }
.rbtn.r0 { background: var(--fg); color: var(--on-fg); box-shadow: none; }
.rbtn.r0 small { color: inherit; opacity: .7; }

/* 一口气说和自建栏目：沿用全站配色与 Smooth 过渡。 */
#dump-open { min-height: 44px; flex: none; }
#dump-text { overflow-y: auto; max-height: 50dvh; }
.dump-panel button:disabled { opacity: 1; background: var(--card2); color: var(--fg2); }
.dump-panel { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--fg); }
.dump-panel h3,.dump-panel h4 { margin: 0 0 10px; }
.dump-panel textarea { width: 100%; min-height: 150px; resize: vertical; }
.dump-count { text-align: right; font-variant-numeric: tabular-nums; }
.dump-group { margin: 16px 0; }
.dump-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px; border-radius: 10px; color: var(--fg); background: var(--card2); overflow-wrap: anywhere; }
label.dump-choice { cursor: pointer; }
.dump-choice + .dump-choice { margin-top: 6px; }
.dump-choice input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--a2); }
.dump-choice:focus-within { outline: 2px solid var(--a2); outline-offset: 2px; }
.dump-dropped summary,.custom-section summary,.custom-create summary,.custom-actions summary { min-height: 44px; cursor: pointer; padding: 10px 0; }
.dump-panel .link,.custom-actions .link { min-height: 44px; min-width: 44px; }
.dump-panel .btn,.custom-form .btn { min-height: 44px; }
.dump-dropped small,.item-prev { color: var(--fg2); }
.dump-error { color: var(--fg); border-top: 1px solid var(--line); margin-top: 12px; }
.custom-section { border-top: 1px solid var(--line); padding: 4px 0; }
.custom-section > summary { color: var(--fg); font-weight: 600; }
.custom-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 16px; }
.custom-actions details { max-width: 100%; }
.custom-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.custom-form .field { min-width: 0; max-width: 100%; flex: 1; }
.custom-form button { flex: none; }
.ilist li:has(.item-prev) { flex-wrap: wrap; }
.item-prev { flex-basis: 100%; font-size: 12px; }
/* 长期记忆：回复下面“助手注意到……对吗？”，档案页“以前聊过的事” */
.notice-row { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--faint); }
.notice-row p { margin: 0; line-height: 1.5; }
.notice-row small { color: var(--fg2); }
.ilist.episodes .itext { margin: 0; }
.ilist.episodes .itext small { display: block; }
.ilist.episodes .link, [data-understand] li > .link { flex: none; white-space: nowrap; }
/* 长期记忆第二轮：助手页“上周小结”卡、档案页“每周小结”、整理建议 */
.week-card .week-text { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.week-card > .row { justify-content: flex-end; }
.tidy { display: grid; gap: 6px; margin: 2px 0 4px; }
.tidy > .small { margin: 0; }
.tidy-row { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--faint); min-width: 0; }
.tidy-row p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.tidy-row b { font-weight: 600; }
.tidy-row small { color: var(--fg2); overflow-wrap: anywhere; }
.ilist.weeks .itext { margin: 0; padding: 0; line-height: 1.6; }
.ilist.weeks .itext small { display: block; color: var(--fg2); }
.weeks-more > summary { color: var(--fg2); padding: 8px 0; }
/* 第二块 2A：回答里引用了学生自己的资料。小号数字跟在那句话后面，下面一行“出自”，点了打开那一页 */
.kb-cite { font-size: 11px; font-weight: 700; line-height: 0; margin-left: 1px; color: var(--accent-ink); vertical-align: super; }
.kb-src { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 4px 0 0; color: var(--fg2); min-width: 0; }
.kb-src > span { flex: none; }
.kb-src-link { display: inline-flex; align-items: baseline; gap: 5px; min-height: 40px; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.kb-src-link b { flex: none; font-size: 11px; color: var(--accent-ink); }
.kb-src-link small { color: var(--fg2); }
/* 第二块 2B：讲解窗口“我觉得你是…”、检查题卡片、知识点下面的证据和建议 */
.tutor-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 2px 0 0; color: var(--fg2); }
.tutor-stage .chip, .tutor-stage .link { min-height: 36px; }
.tutor-check { max-width: 100%; white-space: normal; background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--ring); }
.tutor-check .eyebrow { margin: 0; }
.check-options { border: 0; margin: 10px 0; padding: 0; min-width: 0; }
.check-options legend { font-weight: 550; line-height: 1.7; margin-bottom: 10px; padding: 0; }
.check-options label { display: flex; gap: 10px; align-items: baseline; padding: 11px 12px; margin-bottom: 8px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ring); cursor: pointer; transition: background .2s, box-shadow .2s; }
.check-options label:has(input:checked) { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.check-options input { accent-color: var(--accent); flex-shrink: 0; }
.check-options[disabled] label { cursor: default; }
.check-actions { flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.check-hint { color: var(--fg2); }
.check-solution summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; }
.ilist li:has(> .evidence) { flex-wrap: wrap; }
.evidence { flex-basis: 100%; min-width: 0; margin: 2px 0 0; }
.evidence-list { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--fg2); }
.evidence-list li { display: flex; gap: 8px; padding: 2px 0; border: 0; overflow-wrap: anywhere; min-width: 0; justify-content: flex-start; }
.evidence-date { flex: none; font-variant-numeric: tabular-nums; }
.evidence-advice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; font-size: 13px; }
.evidence-more summary { font-size: 13px; color: var(--fg2); min-height: 36px; display: flex; align-items: center; cursor: pointer; }
/* 第三块 3A：考前清单（考试夹最上面） */
.prep-card h2 { margin-top: 4px; }
.prep-part { margin-top: 16px; min-width: 0; }
.prep-part h3 { font-size: 15px; margin: 0 0 6px; }
.prep-list { margin: 4px 0 0; padding-left: 1.2em; overflow-wrap: anywhere; }
.prep-list li { margin: 4px 0; line-height: 1.6; }
.prep-list .link { padding: 0; min-height: 32px; text-align: left; }
.prep-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--faint); min-width: 0; }
.prep-row:first-of-type { border-top: 0; }
.prep-row .chip { min-height: 36px; padding: 0 12px; font-size: 14px; }
.prep-seen { color: var(--fg2); }
/* 第三块 3B：复盘前问感觉、考前作战表回看、复盘后约时间 */
.feel { margin-bottom: 14px; min-width: 0; }
.feel .chip { min-height: 36px; padding: 0 14px; font-size: 14px; }
.feel-low { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.feel-low p { margin: 0 0 8px; line-height: 1.6; }
.prep-recall { margin-top: 12px; overflow-wrap: anywhere; }
.seg-card h2 { margin-top: 4px; }
.seg-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--faint); min-width: 0; }
.seg-row:first-of-type { border-top: 0; }
.seg-row p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.seg-row .chip { min-height: 36px; padding: 0 12px; font-size: 14px; }
/* 第三块 3C：回来模式（首页最上面只给一件事） */
.back-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.back-card h2 { margin: 0; overflow-wrap: anywhere; }
.back-card p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.back-done { display: flex; align-items: center; gap: 12px; }
.back-done b { font-size: 20px; }
.back-ring { width: 48px; height: 48px; flex: none; fill: none; stroke: var(--a2); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
#home > .back-card { margin-bottom: 16px; }
