/* 题源 — 与 design/*.png 同一套 token、字阶、间距、圆角 */
:root {
  --ground: #0b1512;
  --surface: #121f1b;
  --surface-2: #172a23;
  --ink: #eaf0ec;
  --ink-2: #b3c2b8;
  --ink-3: #9fb1a7;
  --line: #2a3d35;
  --line-2: #1a2823;
  --accent: #57c9a4;
  --accent-2: #6fd9b6;
  --soft: #16302a;
  --brick: #e2795c;
  --on-accent: #06231b;
  /* stageshow kit 的尺度：radius 6/8/10/12/999、行内边距 12、iOS 屏边 20、
     hairline 0.5px、iOS 状态区 62、home bar 5 —— 别处不再新造数值 */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-window: 12px;
  --r-ground: 20px;
  --r-pill: 999px;
  --r-card: var(--r-window);
  --r-field: var(--r-md);
  --row-pad: 12px;
  --hair: 0.5px;
  --pad: 20px;
  --tabbar: 62px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'PingFang SC', 'MiSans', 'HarmonyOS Sans SC', 'Noto Sans CJK SC',
    'Noto Sans SC', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

b, h1, h2, h3 { font-weight: 600; }
em, i { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 骨架 ---------- */
.shell { display: flex; min-height: 100dvh; }
.side,
.rail { display: none; }
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 4px var(--pad) 0;
  background: var(--ground);
}
.topbar-title { flex: 1; font-size: 16px; font-weight: 600; }
.icon-btn {
  width: 32px;
  height: 32px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border-radius: 8px;
}
.icon-btn[hidden] { display: none; }

.me-btn {
  width: 30px;
  height: 30px;
  margin-left: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-2);
}

/* 我的：账号行不画分隔线，直接当页头 */
.acct {
  border-bottom: none;
  margin-bottom: 2px;
}

.pill {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.view {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 4px var(--pad) 24px;
  display: flex;
  flex-direction: column;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(11, 21, 18, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: var(--hair) solid var(--line);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-3);
  font-size: 10.5px;
}
.tabbar a b { font-weight: 500; }
.tabbar a[data-on] { color: var(--accent); }
.tabbar a[data-on] b { font-weight: 600; }

/* ---------- 通用件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--surface);
  border: var(--hair) solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.62; cursor: default; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-light {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  height: 48px;
  font-size: 15px;
}
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 13px; border-radius: 8px; font-size: 12.5px; }
.btn-sm.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 12px;
  padding: 0;
}

.foot {
  margin: auto 0 0;
  padding-top: 18px;
  text-align: center;
  font-size: 10.5px;
  color: #949c94;
  letter-spacing: 0.02em;
}

.empty {
  padding: 30px 18px;
  border-radius: var(--r-card);
  border: 1px dashed #c8cfc6;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.empty b { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 14px; }

.err {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--brick);
}
.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  margin-bottom: 5px;
}

/* 首页标题复刻样张的「题源.」品牌点 */
body[data-route='home'] #topTitle::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 3px 3px;
  border-radius: 1px;
  background: var(--accent);
}

/* ---------- 首页 ---------- */
.hello { margin: 6px 0 6px; font-size: 13px; color: var(--ink-3); }
.home-h1 {
  margin: 0 0 16px;
  font-size: 27px;
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.band {
  margin: 0 calc(-1 * var(--pad));
  padding: 18px var(--pad) 16px;
  background: var(--surface-2);
  color: var(--ink);
  border-top: var(--hair) solid var(--line);
  border-bottom: var(--hair) solid var(--line);
}
.band-k {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.band-t {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.band form { display: flex; flex-direction: column; gap: 10px; }
.band-field {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
}
.band-field::placeholder { color: var(--ink-3); }
.band-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.band-chips button {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--ink-2);
}

.panel {
  margin-top: 12px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: var(--hair) solid var(--line);
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  border-bottom: var(--hair) solid var(--line-2);
  text-align: left;
}
.row:last-child { border-bottom: 0; }
.row-ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.row-body { flex: 1; min-width: 0; }
.row-body b { display: block; font-size: 14.5px; font-weight: 600; }
.row-body i {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta {
  flex: none;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ground);
}
.row-go { flex: none; color: #b3bbb3; width: 16px; height: 16px; }

/* ---------- 表单 ---------- */
.field { display: block; margin: 6px 0 12px; }
.field-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ink-3); }
.field-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--r-field);
  background: var(--surface);
  border: var(--hair) solid var(--line);
}
.field-box:focus-within { border-color: #b9c8c1; box-shadow: 0 0 0 3px rgba(17, 86, 74, 0.07); }
.field-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  outline: none;
}
.field-box input::placeholder { color: #97a098; }
.field-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.clear {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border-radius: 999px;
}
.clear svg { width: 14px; height: 14px; stroke-width: 2; }

.seg {
  display: flex;
  padding: 3px;
  margin: 0 0 14px;
  border-radius: 10px;
  background: #e6e9e1;
}
.seg button {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  color: var(--ink-2);
}
.seg button[data-on] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(19, 26, 24, 0.08);
}

/* ---------- 选题 ---------- */
.sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 4px;
}
.sec-t { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }

.topics { list-style: none; margin: 0; padding: 0; }
.topic {
  display: grid;
  grid-template-columns: 26px 1fr 16px;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  border-bottom: var(--hair) solid var(--line);
  text-align: left;
}
.topic-n {
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 3px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.topic-body b {
  display: block;
  font-size: 15.5px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.topic-body span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.topic-check {
  color: transparent;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  padding: 3px;
  border: 1.5px solid #ccd4cb;
  border-radius: 50%;
  stroke-width: 2.6;
}
.topic[data-on] .topic-check { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.topic[data-on] .topic-body span { -webkit-line-clamp: 8; }
.topic[data-on] .topic-n { color: var(--accent); font-weight: 600; }
.topic[data-on] .topic-body b { color: var(--accent-2); }

/* ---------- 文献 ---------- */
.hits {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 8px;
  border-bottom: var(--hair) solid var(--line);
}
.hits-n { font-size: 13px; color: var(--ink-2); }
.hits-n b { font-size: 20px; color: var(--ink); margin-right: 2px; font-variant-numeric: tabular-nums; }
.hits-m { font-size: 11.5px; color: var(--ink-3); text-align: right; }

.lits { list-style: none; margin: 0; padding: 0; }
.lit { padding: 13px 0 12px; border-bottom: var(--hair) solid var(--line); }
.lit-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.lit-meta { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.lit-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.tag {
  padding: 2px 6px;
  border-radius: 6px;
  border: var(--hair) solid var(--line);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.tag.pool { border-color: transparent; background: var(--soft); color: var(--accent); font-weight: 600; }
.lit-acts { margin-left: auto; display: flex; gap: 10px; }
.lit-acts a, .lit-acts button {
  font-size: 11.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.lit-acts svg { width: 13px; height: 13px; }

.guide { margin-top: 14px; }
.guide h3 { margin: 18px 0 8px; font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; }
.gq {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--surface);
  border: var(--hair) solid var(--line);
  text-align: left;
}
.gq b { display: block; font-size: 13.5px; font-weight: 600; word-break: break-word; }
.gq span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.gdb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: var(--hair) solid var(--line);
}
.gdb-body { flex: 1; min-width: 0; }
.gdb-body b { display: block; font-size: 13.5px; font-weight: 600; }
.gdb-body span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.gdb em { font-size: 10.5px; color: var(--ink-2); background: var(--ground); padding: 2px 6px; border-radius: 6px; flex: none; }
.notes { margin: 10px 0 0; padding: 0; list-style: none; }
.notes li { position: relative; padding-left: 12px; margin-bottom: 6px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #c3cbc2;
}

/* ---------- 排版 ---------- */
.step { margin: 10px 0; font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.file {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: var(--hair) solid var(--line);
}
.file-ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.file-body { flex: 1; min-width: 0; }
.file-body b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-body span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.file-acts { flex: none; display: flex; gap: 10px; font-size: 12px; color: var(--accent); }

.rules {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  border: var(--hair) solid var(--line);
  overflow: hidden;
}
.rules li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: var(--hair) solid var(--line-2);
  font-size: 13px;
}
.rules li:last-child { border-bottom: 0; }
.rules-k { width: 64px; flex: none; color: var(--ink-3); font-size: 12px; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 24px 16px;
  border-radius: var(--r-card);
  border: 1.5px dashed #c8cfc6;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  background: none;
  width: 100%;
}
.drop:hover { border-color: #b3c2ba; }
.drop svg { color: var(--accent); }
.drop b { font-size: 14px; color: var(--ink); }
.drop span { font-size: 11.5px; color: var(--ink-3); }
.drop input { display: none; }
.hints { list-style: none; margin: 10px 0 0; padding: 0; }
.hints li { position: relative; padding-left: 12px; margin-bottom: 6px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.hints li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #c3cbc2;
}

/* ---------- 格式体检 ---------- */
.report {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: var(--hair) solid var(--line);
}
.report[data-ok] { background: var(--soft); border-color: transparent; }
.report-h { margin: 0; font-size: 14.5px; font-weight: 600; }
.report[data-ok] .report-h { color: var(--accent-2); }
.report-m { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.issues { list-style: none; margin: 12px 0 0; padding: 0; }
.issues li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 9px 0;
  border-top: var(--hair) solid var(--line-2);
  font-size: 12.5px;
}
.iss-where { color: var(--ink); font-weight: 600; }
.iss-diff { grid-column: 1; font-size: 11.5px; color: var(--ink-3); }
.issues li em { grid-row: 1 / span 2; align-self: center; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- 问题墙 ---------- */
.wall-lead { margin: 4px 0 14px; font-size: 12.5px; color: var(--ink-3); }
.post {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: var(--hair) solid var(--line);
}
.post-body { margin: 0; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.post-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.post-time { color: #949c94; }
.like {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: var(--hair) solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.like svg { width: 14px; height: 14px; }
.like[data-on] { background: var(--soft); border-color: transparent; color: var(--accent); }
.like[data-on] svg { fill: var(--accent); }

.wall-compose {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 10px var(--pad);
  background: rgba(11, 21, 18, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: var(--hair) solid var(--line);
}
.wall-compose-in { display: flex; gap: 8px; width: 100%; max-width: 720px; }
.wall-compose input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: var(--hair) solid var(--line);
  background: var(--surface);
  font-size: 14px;
  outline: none;
}
.wall-compose input:focus { border-color: #b9c8c1; }
.wall-compose .btn { height: 44px; padding: 0 20px; }
body[data-route='wall'] .view { padding-bottom: 84px; }
body[data-route='literature'] .view { padding-bottom: 24px; }
/* 文献页的「看检索式」不是结算动作，跟着列表走，别钉住压住结果 */
body[data-route='literature'] .dock {
  position: static;
  background: none;
  margin-top: 14px;
  padding: 0;
}

/* ---------- 底部操作条 ---------- */
/* 结算条：钉在 tab 上方，和样张一致 */
.dock {
  position: sticky;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(242, 243, 239, 0) 0, var(--ground) 18px);
}
.dock-row { display: flex; gap: 10px; }
.dock-row .btn-primary { flex: 1; }
.dock-note { margin: 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 积分 ---------- */
.bal {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0 18px;
}
.bal b { font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bal span { font-size: 13px; color: var(--ink-3); }
.price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.price em { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 登录注册 ---------- */
body[data-route='auth'] .topbar,
body[data-route='auth'] .tabbar,
body[data-route='auth'] .side,
body[data-route='auth'] .rail { display: none; }
body[data-route='auth'] .main { padding-bottom: 0; }

.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px var(--pad);
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { font-size: 20px; margin-bottom: 6px; }
.auth-sub { margin: 0 0 24px; font-size: 13px; color: var(--ink-2); }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.code-row { display: flex; gap: 8px; }
.code-row .field-box { flex: 1; }
.code-row .btn { height: 50px; border-radius: var(--r-field); }
.auth-help { margin: 14px 0 0; text-align: center; }
.link {
  padding: 0;
  background: none;
  border: 0;
  font-size: 12.5px;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-foot { margin: 18px 0 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.auth-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.switch { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.switch button { color: var(--accent); font-weight: 600; }

/* ---------- 402 弹层 / toast ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 26, 24, 0.42);
}
.sheet[hidden] { display: none; }
.sheet-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: var(--surface);
}
.sheet-card h2 { margin: 0 0 6px; font-size: 18px; }
.sheet-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-2); }
.ways { list-style: none; margin: 0 0 16px; padding: 0; }
.ways li {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  border-top: var(--hair) solid var(--line-2);
  font-size: 13px;
  color: var(--ink-2);
}
.ways li i { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 11px; padding-top: 2px; }
.sheet-acts { display: flex; gap: 8px; }
.sheet-acts .btn { flex: 1; height: 42px; font-size: 13.5px; }
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border-radius: 8px;
}
.sheet-close svg { width: 16px; height: 16px; }

/* 条款弹窗：不离开页面，注册时填的信息不会丢 */
.sheet-doc { height: 82vh; display: flex; flex-direction: column; padding-bottom: 16px; }
.sheet-doc h2 { flex: none; }
#docFrame { flex: 1; width: 100%; border: 0; border-radius: 10px; background: var(--ground); }

.sheet-fine { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.ch-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ch-hint .link { font-size: 12px; }


/* ---------- 游客首页：深色 hero + 列表动效 ---------- */
body.guest .tabbar, body.guest #rail, body.guest .side, body.guest .topbar { display: none; }
body.guest #view {
  padding: calc(12px + env(safe-area-inset-top)) 14px 40px;
  max-width: 1120px; margin: 0 auto;
}

.lp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0b1512; color: #f2f5f0;
  border-radius: 18px; padding: 20px 20px 34px;
}
.lp-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%);
}
.lp-glow {
  position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: 45%; top: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(87,201,164,.28), rgba(87,201,164,0) 62%);
  filter: blur(10px); animation: lp-drift 22s ease-in-out infinite alternate;
}
@keyframes lp-drift {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.12); }
}

.lp-top { display: flex; align-items: center; justify-content: space-between; }
.lp-mark { font-weight: 650; font-size: 15px; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 5px; }
.lp-mark i { width: 5px; height: 5px; border-radius: 1px; background: #57c9a4; }
.lp-login {
  background: transparent; color: #dfe7e0; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lp-login:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }

.lp-hero-body { margin-top: 34px; }

.lp-h1 {
  margin: 0; font-size: clamp(42px, 8.2vw, 88px); line-height: .99; letter-spacing: -.035em;
  font-weight: 700;
}
.lp-h1 span { display: block; animation: lp-rise .85s cubic-bezier(.22,.7,.25,1) both; }
.lp-h1 span:nth-child(2) { animation-delay: .09s; }
.lp-caret {
  display: inline-block; width: .1em; height: .74em; margin-left: .06em; vertical-align: -.02em;
  background: #57c9a4; animation: lp-blink 1.15s steps(1) infinite;
}
@keyframes lp-blink { 50% { opacity: 0; } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.lp-sub {
  margin: 20px 0 28px; max-width: 24em; font-size: 15.5px; line-height: 1.72;
  color: rgba(242,245,240,.78); text-wrap: pretty;
  animation: lp-rise .85s cubic-bezier(.22,.7,.25,1) .16s both;
}
.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; animation: lp-rise .85s cubic-bezier(.22,.7,.25,1) .24s both; }
.lp-note { margin: 14px 0 0; font-size: 12.5px; color: rgba(242,245,240,.56); }

.lp-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
  background: #57c9a4; color: #06231b; border-radius: 999px; padding: 14px 24px;
  font: inherit; font-size: 15px; font-weight: 650;
  transition: transform .18s ease, background .18s ease;
}
.lp-btn:hover { background: #6fd9b6; transform: translateY(-2px); }
.lp-btn:active { transform: translateY(0); }
.lp-btn svg { width: 15px; height: 15px; transition: transform .18s ease; }
.lp-btn:hover svg { transform: translateX(3px); }
.lp-ghost {
  background: transparent; color: #eef2ee; border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lp-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

.lp-panel {
  margin-top: 28px; padding: 16px 18px 8px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  animation: lp-rise .9s cubic-bezier(.22,.7,.25,1) .32s both;
}
.lp-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.lp-panel-head span { font-size: 13px; color: rgba(242,245,240,.6); }
.lp-panel-head em {
  font-style: normal; font-size: 11.5px; color: rgba(242,245,240,.82);
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 3px 10px;
}
.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li {
  display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.09);
  font-size: 14.5px; line-height: 1.55; color: #eef3ef; opacity: .62;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.7,.25,1);
}
.lp-list li.on { opacity: 1; }
.lp-list li.on span { transform: translateX(2px); }
.lp-list li span { display: inline-block; transition: transform .55s cubic-bezier(.22,.7,.25,1); }
.lp-list b {
  flex: none; font-size: 11px; font-weight: 600; color: #57c9a4; padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.lp-secs { display: grid; gap: 4px; margin-top: 34px; }
.lp-sec { padding: 20px 2px; border-top: 1px solid var(--line); }
.lp-sec h2 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.01em; transition: color .2s; }
.lp-sec p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; text-wrap: pretty; }
.lp-sec:hover h2 { color: var(--accent); }

.lp-band {
  margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  background: #0b1512; color: #f2f5f0; border-radius: 18px; padding: 24px 20px;
}
.lp-band h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.lp-band p { margin: 0; font-size: 13.5px; color: rgba(242,245,240,.62); text-wrap: pretty; }

.ai-note {
  margin: 12px 2px 0; font-size: 11.5px; line-height: 1.6;
  color: var(--ink-3); text-wrap: pretty;
}

.seo-static { padding: 8px 0 24px; }
.seo-static h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.25; letter-spacing: -.02em; }
.seo-static h2 { margin: 22px 0 6px; font-size: 18px; }
.seo-static h3 { margin: 14px 0 4px; font-size: 15px; }
.seo-static p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }

.lp-faq { margin-top: 44px; }
.lp-faq h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.01em; }
.lp-faq dl { margin: 0; display: grid; gap: 0; }
.lp-faq dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.lp-faq dt { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.lp-faq dd { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }

.lp-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 26px; padding: 0 2px; font-size: 12px; color: var(--ink-3);
}
.lp-foot span { font-weight: 650; font-size: 13px; color: var(--ink-2); }
.lp-lead { font-size: 12.5px; color: var(--accent); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.lp-foot em { font-style: normal; }

.lp-rv { opacity: 0; transform: translateY(18px); }
.lp-rv.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.7,.25,1), transform .7s cubic-bezier(.22,.7,.25,1); }

@media (min-width: 900px) {
  body.guest #view { padding: 18px 28px 64px; }
  .lp-hero { border-radius: 22px; padding: 30px 48px 52px; }
  .lp-hero-body {
    display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: start; margin-top: 40px;
  }
  .lp-sub { font-size: 16.5px; margin-bottom: 32px; }
  .lp-panel { margin-top: 26px; padding: 20px 22px 10px; }
  .lp-list li { font-size: 15px; padding: 13px 0; }
  .lp-secs { grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 76px; }
  .lp-sec { padding-top: 26px; }
  .lp-band { margin-top: 68px; padding: 32px 44px; }
  .lp-faq { margin-top: 64px; }
  .lp-faq dl { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .lp-band h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-h1 span, .lp-sub, .lp-actions, .lp-panel, .lp-glow, .lp-caret { animation: none !important; }
  .lp-rv { opacity: 1; transform: none; }
  .lp-list li { transition: none; }
}

/* 「我的」里学校/专业：两个输入 + 保存 */
.profile-edit { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 0 var(--row-pad) 14px; }
.profile-edit input {
  height: 38px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface-2, #f7f8f4); border: var(--hair) solid var(--line); border-radius: 8px;
}
.profile-edit .btn { height: 38px; padding: 0 14px; }

/* 桌面上别用手机那条窄卡片：放宽、居中、给条款足够的阅读宽度 */
@media (min-width: 900px) {
  .sheet-card { max-width: 420px; }
  .sheet-doc { max-width: 760px; height: min(78vh, 820px); padding: 26px 28px 22px; }
  .sheet-doc h2 { font-size: 20px; margin-bottom: 12px; }
  #docFrame { border: 1px solid var(--line); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(92vw, 420px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(19, 26, 24, 0.92);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
}
.toast[hidden] { display: none; }

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .side {
    display: flex;
    flex-direction: column;
    width: 248px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 22px 16px;
    border-right: var(--hair) solid var(--line);
  }
  .side .brand { padding: 0 8px 22px; }
  .nav { display: flex; flex-direction: column; gap: 2px; }
  .nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--ink-2);
  }
  .nav a:hover { background: rgba(255, 255, 255, 0.06); }
  .nav a[data-on] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: none; }
  .nav svg { width: 18px; height: 18px; }

  .side-foot { margin-top: auto; }
  .side-card {
    padding: 14px;
    border-radius: 12px;
    background: var(--surface);
    border: var(--hair) solid var(--line);
  }
  .side-card .bal { padding: 0 0 10px; }
  .side-card .bal b { font-size: 28px; }
  .side-card p { margin: 0 0 10px; font-size: 11.5px; color: var(--ink-3); }
  .side-card .btn { width: 100%; }

  .main { padding-bottom: 0; }
  .topbar { height: 68px; padding: 8px 32px 0; }
  .topbar .pill { display: none; }
  .view { padding: 0 32px 40px; max-width: 700px; margin: 0; }
  .tabbar { display: none; }
  .wall-compose { position: static; padding: 12px 0 0; background: none; border-top: var(--hair) solid var(--line-2); backdrop-filter: none; }
  .wall-compose-in { max-width: none; }
  body[data-route='wall'] .view { padding-bottom: 24px; }
  body[data-route='literature'] .view { padding-bottom: 24px; }
  .band { margin: 0; border-radius: 20px; padding: 20px; }
  .band form { flex-direction: row; }
  .band form .btn { flex: none; }
  .band-field { flex: 1; }
  .dock { margin-top: 22px; padding-top: 14px; }
  .toast { bottom: 28px; }
}

@media (min-width: 900px) {
  /* 我的：中间已经列了价目，右栏再列一遍是重复 */
  body[data-route='me'] .rail { display: none; }
  .view { margin: 0 auto; max-width: 784px; }
  .topbar { max-width: 784px; margin: 0 auto; }
}

@media (min-width: 1200px) {
  .rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 26px 22px;
    border-left: var(--hair) solid var(--line);
  }
}