/* ==========================================================================
   到场（Arrive）前台唯一样式表
   V2.0「深夜天文台」：移动端优先 · 深色安静调性 · 无外部字体与 CDN 依赖
   改版口径：只动这一层的令牌与装饰，不动任何选择器结构——
   26 个页面全靠变量继承新视觉，模板与断点（23 处 @media）一行不改。
   ========================================================================== */

:root {
  --bg: #0B0F18;              /* V3.4 玻璃拟态：底再深一档，给玻璃高光让出对比 */
  --panel: rgba(22, 29, 46, .55);   /* V3.4 玻璃拟态：半透明玻璃底，靠 backdrop 模糊出质感 */
  --panel-2: rgba(255, 255, 255, .06);
  --panel-solid: #141B2B;     /* 不支持 backdrop-filter 时的实底回退 */
  --field: rgba(255, 255, 255, .05);   /* 输入控件：玻璃底 */
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(245, 201, 122, .22);  /* 暖金描边 */
  --text: #eef0f6;
  --muted: #9aa3b8;
  --accent: #F5C97A;
  --accent-deep: #C08A2E;
  --accent-ink: #1A1208;
  --warn: #d8b56a;
  --danger: #E8B07A;
  --radius: 18px;             /* V3.4 玻璃拟态：大圆角 */
  --tap: 44px;

  /* V2.0 展示字体：标题用衬线，正文维持无衬线——
     一屏里只有问句与回响那几行是衬线，反差就是记忆点。
     全部系统字体栈，不引入外部字体文件，离线与慢网不降级。 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;

  /* V1.2 观感修订：层次靠「光 + 边 + 影」三件件套出来，不引入外部字体与图片 */
  --accent-2: #F0D9A8;
  --gold: #C08A2E;
  --grad-accent: linear-gradient(135deg, #FFE8B8 0%, #E5B45C 52%, #C08A2E 100%);
  /* V3.4 玻璃拟态：内发光渐变（顶部亮、往下透明），模拟光在玻璃里流动 */
  --grad-panel: linear-gradient(165deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, 0) 100%);
  --grad-line: linear-gradient(90deg, rgba(245, 201, 122, .55), rgba(245, 201, 122, .06));
  --ring: 0 0 0 1px rgba(245, 201, 122, .22);
  /* V3.4 玻璃拟态：多层阴影——外层深度 + 顶部高光 + 边缘光晕 */
  --shadow-1: 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  --shadow-2: 0 16px 40px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  --shadow-glow: 0 8px 26px -10px rgba(245, 201, 122, .48), inset 0 1px 0 rgba(255, 255, 255, .2);
  /* V2.0：首页主输入区的「呼吸光」——全站唯一的动画光晕，别的卡片不给 */
  --grad-hero: radial-gradient(120% 130% at 18% 0%, rgba(245, 201, 122, .16), transparent 46%),
               radial-gradient(90% 110% at 92% 8%, rgba(227, 197, 132, .07), transparent 52%);
  --wrap: 760px;

  /* V1.2.2 第四部分：动效令牌。时长只有三档、缓动只有两条曲线，
     组件不再各写各的 .16s/.2s/.25s；「关掉动效」由 html[data-motion="off"] 统一退成瞬时。 */
  --t-1: .14s;  /* 微交互：按下去、hover 上色这类立刻要有反应的 */
  --t-2: .24s;  /* 状态切换：展开、选中、焦点环 */
  --t-3: .44s;  /* 进场：页面与卡片滑进来 */
  --ease: cubic-bezier(.22, .82, .3, 1);     /* 收尾柔和的减速 */
  --ease-soft: cubic-bezier(.32, .72, 0, 1); /* 长距离位移用的更慢的减速 */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* V3.4 玻璃拟态：底层铺多层彩色光斑，玻璃卡片才有东西可折射、可模糊 */
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(245, 201, 122, .18), transparent 62%),
    radial-gradient(760px 460px at 96% 8%, rgba(227, 197, 132, .10), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(120, 140, 200, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .008em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 25px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: .4em 0; }
ul, ol { margin: .4em 0; padding-left: 1.2em; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 布局 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(11, 13, 18, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}
/* 品牌与导航之间的一条渐变分隔线：滚动时顶栏不至于「一块黑」 */
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--grad-line);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: .01em;
}
/* 站长的新 logo 是位图（自带配色），不再走 currentColor —— 原来那行 color: var(--accent)
   只对旧的 logo.svg 有意义，留着会让人以为改主题色能改 logo 颜色。
   源图 256px，导航用 22px：三倍图，Retina 上不糊。 */
.brand img { width: 22px; height: 22px; display: block; }
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid transparent;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav a:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); text-decoration: none; }
/* 退出走 POST 表单（V1.2 评审小项 18），按钮与普通导航项同一观感 */
.nav form { display: inline-flex; margin: 0; }
.nav button {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 15px;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav button:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.foot {
  padding: 26px 16px 46px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.back {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 6px 8px 6px 0;
  min-height: var(--tap);
}

/* ---------------------------------------------------------------- 卡片与通用块 */
.card {
  position: relative;
  background: var(--panel-solid);
  background-color: var(--panel-solid);
  background-image: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1), var(--shadow-2);
}
/* V2.0 玻璃质感：支持模糊的浏览器把卡片底换成半透明玻璃，
   不支持的（旧 Android WebView）保持上面那行实底，观感只退半步不出错。
   V3.4 玻璃拟态：模糊提到 40px、饱和度 180%，模拟真实玻璃的光学折射。 */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .card {
    background-color: var(--panel);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
  }
}
/* 顶部一道 1px 高光，让卡片从背景里「浮」起来；V2.0 再给描边一点薄荷色，
   卡片边界从「灰线」变成「夜色里的一道细光」。V3.4 高光加宽、加内发光渐变。 */
.card::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
}
.card { box-shadow: var(--shadow-1), var(--shadow-2), inset 0 0 0 1px rgba(245, 201, 122, .06); }

.card-title {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before {
  content: "";
  width: 4px; height: 15px;
  border-radius: 3px;
  background: var(--grad-accent);
  flex: none;
}
.card-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-top: 2px;
}
.card-label { color: var(--muted); font-size: 14px; }

.notice {
  border-radius: 11px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.notice.ok { border-left-color: var(--accent); background: rgba(245, 201, 122, .08); color: var(--accent-2); }
.notice.err { border-left-color: var(--danger); background: rgba(232, 176, 122, .07); color: var(--danger); }
/* 「你还占着另一块」这种既不算错也不算成的提示：用 warn 的琥珀边，正文色不变，柔光下不糊 */
.notice.warn { border-left-color: var(--warn); background: rgba(216, 181, 106, .08); }
.notice-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* 柔光下 --accent（#B98A3C）在浅底上实测 4.1:1，够不上小字 AA；链接这档用深一级的 --accent-deep（实测 5.5:1） */
html[data-theme="light"] .notice .notice-link { color: var(--accent-deep); }

.empty { color: var(--muted); font-size: 14px; padding: 14px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
/* .grid3 已随旧首页形态一起删除：模板里没有输出过这个类 */

.entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  min-height: 96px;
  border-radius: 14px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.entry b { font-size: 16px; }
.entry span { color: var(--muted); font-size: 13px; }
.entry:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
a.entry:hover { text-decoration: none; border-color: var(--accent-deep); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 10px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  background-image: var(--grad-panel);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .14s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { border-color: var(--accent-deep); text-decoration: none; box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.primary {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.btn.primary:hover { background: linear-gradient(135deg, #FFE8B8 0%, #E5B45C 52%, #C08A2E 100%); }

.btn.ghost { background: transparent; background-image: none; }

/* V2.0 统一行动流程：「顺路的出口」（回到这一步 / 看看规律 / 开一段计时 / 记一笔状态）
   原来只有 .btn 和 .btn.ghost 两档，结果次要出口看起来和主操作一样重。
   这一档没有边框也没有底色，靠 underline 说明「这是一条路，不是一颗键」；
   点击区域仍然按 --tap 给足，手指能点到的面积不因视觉变轻而缩水。 */
.btn.text {
  background: none;
  background-image: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 2px;
  justify-content: flex-start;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn.text:hover {
  color: var(--accent-2);
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
  text-decoration: underline;
}
.btn.text:active { transform: none; box-shadow: none; }

/* 一条回去的路：贴在它说的那件事旁边，不另起一屏 */
.flow-back { margin: 12px 0 0; }

.btn.danger { color: var(--danger); border-color: #513a36; background: transparent; }
.btn.danger:hover { border-color: var(--danger); background: rgba(232, 176, 122, .08); }

.btn.big { width: 100%; font-size: 17px; min-height: 52px; border-radius: 14px; letter-spacing: .01em; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 13px; border-radius: 9px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------------------------------------------------------------- 表单 */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* V1.2.12：密码框右边的「显示 / 隐藏」按键。
   做法上只做两件事，不做别的：
   · 按钮是 <button type="button">，不参与表单提交（不会把「显示」两个字当成字段发上去）；
   · 切换时只改 input 的 type，不动 value，也不重建这个 input——
     重建会让输入框失焦、已经输到一半的密码消失。 */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 68px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  min-height: 30px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.pw-toggle:hover { color: var(--text); border-color: var(--accent-deep); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.pw-toggle[aria-pressed="true"] { color: var(--accent-deep); border-color: var(--accent-deep); }
/* 两次密码不一致时的提示：说清是「哪两处」不一样，而不是只说「密码错误」 */
.pw-mismatch { font-size: 12px; color: var(--danger); margin-top: 6px; }
.pw-mismatch[hidden] { display: none; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-deep); outline: none; box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #5c626f; }
textarea { resize: vertical; min-height: 96px; }

/* ---------------------------------------------------------------- Tabs（登录页） */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  flex: 1;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-family: inherit;
  padding: 10px 0;
  cursor: pointer;
}
.tab.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel[hidden] { display: none; }

/* 主页旧形态（.hero / .divider / .grid3）在 V1.2.2 已由到场圆环与 .me-grid 取代，
   模板里不再输出这些类，样式一并删掉，避免「看着像还活着」的死代码。 */
.tips { margin-bottom: 6px; }
.tip {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.tip:last-child { border-bottom: none; }
.tip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
  transform: translateY(-1px);
}
.tip-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* V2.0：这里原来是 .stats-line（「现在在场 N 人 · 今日完成 N 次」那一行，
   配上 app.js 每 10 秒一次的 stats.php?action=home 轮询）。
   方案把「在线人数（空场时）」和「今日完成了几个块」两条都列进首页「不再展示」，
   前端轮询、接口那一档、这段样式和这里的数据一起撤掉了——
   少一次匿名可读的聚合查询，也少一个能在开始之前先劝退人的数字。 */

/* ---------------------------------------------------------------- 房间页 */
.room-hero { text-align: center; padding: 26px 16px 22px; }
.room-label { color: var(--muted); font-size: 14px; }
.countdown {
  font-size: clamp(64px, 22vw, 96px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 10px 0 2px;
}
.countdown-sub { color: var(--muted); font-size: 14px; min-height: 22px; }

.reminder-line {
  margin: 10px auto 0;
  max-width: 320px;
  color: var(--warn);
  font-size: 14px;
  background: rgba(216, 181, 106, .08);
  border: 1px solid rgba(216, 181, 106, .35);
  border-radius: 999px;
  padding: 6px 14px;
}

.predict-card {
  text-align: left;
  margin: 18px auto 0;
  max-width: 460px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.predict-head { font-size: 14px; color: var(--muted); }
.predict-prob {
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.predict-line { font-size: 14px; margin-top: 6px; }
.predict-line b { color: var(--muted); font-weight: 500; }
.predict-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

.roster { text-align: left; margin-top: 22px; }
.roster h2 { font-size: 15px; color: var(--muted); font-weight: 500; }
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}
@media (min-width: 640px) { .member-list { grid-template-columns: repeat(3, 1fr); } }
.member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  min-height: 36px;
}
.member-label { font-size: 14px; color: var(--text); }
.dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #565b66;
}
.dot.active { background: var(--accent); }
.dot.idle { background: var(--warn); }
.dot.gone { background: #565b66; opacity: .5; }
.avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: hsl(200, 32%, 42%);
  border: 1px solid var(--line);
}

.room-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.room-actions .btn { flex: 1; }

.interrupt-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.done-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--accent-deep);
  border-radius: 12px;
  background: rgba(245, 201, 122, .07);
}
.done-card .done-title { font-size: 18px; font-weight: 650; color: var(--accent); }

/* ---------------------------------------------------------------- 点阵日历 */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.month-nav b { font-variant-numeric: tabular-nums; }

.dot-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.dow-head {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 2px;
}
.dot-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dot-cell.blank { border: none; background: transparent; }
.dot-cell.l1 { background: rgba(245, 201, 122, .22); color: var(--text); }
.dot-cell.l2 { background: rgba(245, 201, 122, .5); color: var(--text); }
.dot-cell.l3 { background: rgba(245, 201, 122, .88); color: var(--accent-ink); font-weight: 600; }
.dot-cell.future { opacity: .35; }

.legend { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 5px;
  vertical-align: -1px;
  background: var(--field);
  border: 1px solid var(--line);
}
.legend i.l1 { background: rgba(245, 201, 122, .22); border-color: transparent; }
.legend i.l2 { background: rgba(245, 201, 122, .5); border-color: transparent; }
.legend i.l3 { background: rgba(245, 201, 122, .88); border-color: transparent; }

/* ---------------------------------------------------------------- 图表 */
.chart-box { margin-top: 6px; }
.chart-box canvas { width: 100%; display: block; }

/* ---------------------------------------------------------------- 进度条 */
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 8px 0;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* ---------------------------------------------------------------- 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------------------------------------------------------------- 内核面板 */
.kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.kv-row + .kv-row { border-top: 1px dashed var(--line); }

.pred-list { list-style: none; margin: 0; padding: 0; }
.pred-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.pred-row:last-child { border-bottom: none; }
.pred-time { color: var(--muted); flex: 1; min-width: 110px; }
.pred-prob { color: var(--accent); }
.pred-arrow { color: var(--muted); }
.pred-result.ok { color: var(--accent); }
.pred-result.no { color: var(--danger); }

.thought-list { list-style: none; margin: 12px 0 0; padding: 0; }
.thought {
  padding: 12px 14px;
  background: var(--panel-2);
  border-radius: var(--r-1);
  margin-bottom: 8px;
}
.thought-time { display: block; }
.thought-body { margin: 2px 0 0; font-size: 15px; white-space: pre-wrap; word-break: break-word; }

.wipe-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #513a36;
  border-radius: 12px;
  background: rgba(232, 176, 122, .05);
}

/* ---------------------------------------------------------------- 小队 */
.squad-card h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.members-inline { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 6px 0; padding: 0; }
.members-inline li { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.members-inline .avatar { width: 20px; height: 20px; }
.invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
  letter-spacing: 1px;
  font-size: 14px;
}
.invite-link { word-break: break-all; font-size: 13px; }

/* 小队分区：我发起的 / 我加入的 */
.squad-group { margin: 22px 0 4px; }
.group-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
}
.role-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.7;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--grad-accent);
}
.squad-card .members-inline .avatar.on { box-shadow: 0 0 0 2px rgba(245, 201, 122, .55); }
.squad-start {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 12px;
}
.squad-start .field { flex: 0 0 132px; margin-bottom: 0; }
.squad-leave { margin-top: 10px; }

/* ---------------------------------------------------------------- 登录 */
.auth-card { max-width: 420px; margin: 8vh auto 0; }

/* ---------------------------------------------------------------- 隐私区块 */
.privacy { font-size: 14px; color: var(--muted); }
.privacy h2 { color: var(--text); }
.privacy ul { padding-left: 1.3em; }
.privacy li { margin: 4px 0; }

/* ---------------------------------------------------------------- Toast */
.toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 60;
  padding: 0 16px;
}
.toast {
  max-width: 92vw;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  animation: toast-in .22s ease-out;
}
.toast.ok { border-color: var(--accent-deep); }
.toast.err { border-color: #5a4038; color: var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- 桌面微调 */
@media (min-width: 640px) {
  .countdown { font-size: 88px; }
  .wrap { padding-top: 28px; }
}

/* ---------------------------------------------------------------- 降级与可访问性 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root { --muted: #c2c7d1; --line: #3a404c; }
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 主页（V1.2 3.1） */
/* L03 返回通道：工作台顶部一行小字链接回落地页（落地页关闭时整行不输出） */
.about-return {
  margin: 0 0 8px;
  text-align: right;
  font-size: 12.5px;
}
.about-return a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.about-return a:hover { color: var(--accent); }

/* V1.2.12：我的约定卡片（置顶）。
   它是首页第一块，不是横幅也不是提示条——所以给它一个实心卡片的底，
   但字号压得比在场圆环低一档：它回答「我约的是几点」，不回答「现在怎么样」。 */
.commit-card {
  /* V2.0 修复：这里原来写的是 var(--surface, #fff)——--surface 这个变量根本不存在，
     回退值是纯白，于是深色站的首页约定卡一直是一张突兀的白卡。
     现在回到玻璃卡片体系：深色底、薄荷描边，与全站同一套光。 */
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-solid);
  background-image: var(--grad-panel);
  box-shadow: var(--shadow-1);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .commit-card { background-color: var(--panel); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.commit-card-title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.commit-card-line {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}
.commit-card-ics {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 没有约定时：V2.0 把「一行小字」升级成一张显眼的引导卡——
   用户找了几轮都找不到「选地点」，就是因为它被压成了 13px 的一行灰字。
   这张卡给足份量，但仍然排在开始与回响之后，不抢主位。 */
.commit-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.commit-invite {
  display: block;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px dashed rgba(245, 201, 122, .38);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 150% at 14% 0%, rgba(245, 201, 122, .1), transparent 55%),
    var(--panel-solid);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.commit-invite:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.commit-invite-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--accent-2);
}
.commit-invite-title .commit-invite-ic {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: rgba(245, 201, 122, .12);
  color: var(--accent);
}
.commit-invite-sub { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.commit-invite-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
/* 有约定时的卡：把「几点 · 在哪儿 · 做多久」里的地点一行放大——
   「在哪儿」这一栏用户点开卡就是要看的，不再藏在管理链接里。 */
.commit-card-when {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--accent-2);
}
.commit-hint a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.commit-hint a:hover { color: var(--accent); }

.state-entry {
  display: block;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 14px;
  text-align: center;
}
.state-entry:hover { border-color: var(--accent-deep); text-decoration: none; }

.resume { background: rgba(185, 138, 60, .07); }
.resume p { margin: 0 0 10px; }
.resume .btn { min-height: 40px; }

/* V2.0 首页主输入区：全站唯一的视觉焦点。
   底色比普通卡片多一层暖光渐变，边框随呼吸明暗——
   用户打开站点的第一眼应当落在「今天，想从什么开始？」和这个框上。 */
.card.capture {
  background-image: var(--grad-hero), var(--grad-panel);
  border-color: var(--line-soft);
  animation: capture-breathe 5.2s var(--ease-soft) infinite;
}
@keyframes capture-breathe {
  0%, 100% { box-shadow: var(--shadow-1), var(--shadow-2), 0 0 0 0 rgba(245, 201, 122, .10); }
  50%      { box-shadow: var(--shadow-1), var(--shadow-2), 0 0 34px -6px rgba(245, 201, 122, .22); }
}

.capture .field { margin-bottom: 14px; display: block; }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.clarify-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-deep); }
#js-home-clarify { padding: 4px 0 2px; }
#js-home-clarify .q { margin: 10px 0 4px; font-size: 14px; color: var(--text); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.btns .btn { flex: 1 1 160px; }

/* ------------------------------------------------- 面板：全部入口与曲线（V1.2 3.4） */
.entry-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-link {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 14px;
  color: var(--text);
  min-height: 36px;
}
.entry-link:hover { border-color: var(--accent-deep); text-decoration: none; }
#js-manual-chart, #js-obs-chart { width: 100%; }

/* ==========================================================================
   V1.2 观感修订二：说明层（首屏用途说明 / 每页用途块 / 功能地图 / 版本区块）
   新增类集中放在文件末尾，不改上面任何既有选择器的语义
   ========================================================================== */

/* ------------------------------------------------------------ 首屏用途说明 */
.lead {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(420px 200px at 88% -30%, rgba(245, 201, 122, .18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%),
    var(--panel);
  box-shadow: var(--shadow-2);
}
.lead::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -46px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(240, 217, 168, .28), rgba(245, 201, 122, .05) 62%, transparent 70%);
  pointer-events: none;
}
/* 装饰光斑是绝对定位的 ::after，会盖在文字上；把直接子元素抬到它上面 */
.lead > * {
  position: relative;
  z-index: 1;
}
/* V2.0：.lead-kicker（标题上方那行大写字母的小标签）整条删掉，不留注释性的空规则。
   抬头那一行自己就该有份量：这里改成 .lead-title 直接开口，
   「这个网站是干什么的」由标题说，不需要再有一行小字替它报幕。 */
.lead-title {
  font-size: 26px;
  line-height: 1.28;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.lead-title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(245, 201, 122, .26) 62%);
}
.lead-sub { color: var(--muted); font-size: 15px; margin: 0 0 14px; max-width: 46ch; }
.lead-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lead-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.lead-steps b {
  grid-column: 2;
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.lead-steps span {
  grid-column: 2;
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.lead-steps i {
  grid-row: 1 / span 2;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--grad-accent);
}
@media (min-width: 640px) {
  .lead { padding: 26px 24px 24px; }
  .lead-title { font-size: 30px; }
  .lead-steps { grid-template-columns: 1fr 1fr 1fr; }
  .lead-steps li { grid-template-columns: 1fr; }
  .lead-steps i { grid-row: auto; margin-bottom: 6px; }
  .lead-steps b, .lead-steps span { grid-column: 1; }
}

/* ------------------------------------------------------------ 每页用途说明块 */
.intro {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 201, 122, .07), rgba(245, 201, 122, 0) 60%), var(--panel);
  overflow: hidden;
}
.intro > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.intro > summary::-webkit-details-marker { display: none; }
.intro > summary:hover { background: rgba(255, 255, 255, .03); }
.intro-caret {
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
  flex: none;
}
.intro[open] .intro-caret { transform: rotate(-135deg) translate(-2px, -2px); }
.intro-what {
  margin: 0;
  padding: 0 15px 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.intro-how {
  margin: 8px 0 0;
  padding: 0 15px 14px 15px;
  list-style: none;
  counter-reset: intro;
  display: grid;
  gap: 6px;
}
.intro-how li {
  counter-increment: intro;
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: var(--text);
}
.intro-how li::before {
  content: counter(intro);
  position: absolute;
  left: 0; top: 2px;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* ------------------------------------------------------------ 区块小标题 */
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 12px;
  font-size: 17px;
  font-weight: 650;
}
.sec-title small { color: var(--muted); font-size: 13px; font-weight: 400; }
.sec-title::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  flex: none;
  align-self: center;
}

/* V1.2.13：这里原来有一整块「功能地图」样式（.map-group / .map-grid / .map-item），
   供首页底部那块「全部功能 · 点进去先看它能解决什么」目录用。
   那块目录按站长的减法要求删掉了，所以这些样式也一起删——留着就是没人引用的死代码。
   全站入口没少：它们在「我的记录」页底部那张「全部入口」里，用的是 .entry-link。 */
.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 11px;
  color: var(--muted);
  vertical-align: 2px;
}
.pill.accent { color: var(--accent); border-color: rgba(245, 201, 122, .38); background: rgba(245, 201, 122, .1); }

/* ------------------------------------------------------------ 额度与版本区块 */
.quota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 14px;
  margin-bottom: 14px;
}
.quota b { color: var(--accent); font-variant-numeric: tabular-nums; }
.edition { margin-bottom: 14px; }
.edition-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.edition-head h2 { margin: 0; font-size: 17px; }
.plans { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 4px; }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr 1fr; } }
.plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.plan.on { border-color: var(--accent-deep); background: rgba(245, 201, 122, .08); box-shadow: var(--ring); }
.plan b { font-size: 14px; }
.plan .plan-price {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--accent);
}
.plan .plan-price s { text-decoration: none; font-size: 12px; color: var(--muted); margin-left: 2px; }
.plan ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 12.5px; color: var(--muted); }
.team-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.team-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  font-size: 14px;
}
.team-list em { font-style: normal; color: var(--muted); font-size: 13px; }
.note-line { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

/* ====================================================== 工作台（V1.2.2 第二部分 H01–H04） */

/* H03 在场圆环：常驻顶部的一等入口。
   进度由 --p（0~1）驱动，服务端先给静态那一帧，presence.js 每秒改一次；
   三态 data-mode：me（我自己在一个块里）/ join（有公共块但我没在场）/ idle（什么都没有）。 */
.presence-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(300px 120px at 10% -40%, rgba(245, 201, 122, .16), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 62%),
    var(--panel);
  box-shadow: var(--shadow-2);
}
.presence-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  text-decoration: none;
  flex: 0 0 auto;
}
.presence-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 360deg), rgba(245, 201, 122, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  transition: background .6s linear;
}
.presence-num {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.presence-text { min-width: 0; }
.presence-label {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.presence-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.presence-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.presence-act .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
/* 「我的状态」原来是一条通栏药丸，现在收进圆环右侧，宽度跟着内容走 */
.presence-act .state-entry { display: inline-block; margin: 0; padding: 6px 13px; font-size: 13px; text-align: center; }
[data-mode="me"] .presence-ring {
  background: conic-gradient(var(--accent-2) calc(var(--p, 0) * 360deg), rgba(245, 201, 122, .12) 0);
  filter: drop-shadow(0 0 6px rgba(245, 201, 122, .35));
}
[data-mode="me"] .presence-core { animation: presence-breathe 3.6s ease-in-out infinite; }
[data-mode="idle"] .presence-ring { opacity: .32; }
[data-mode="idle"] .presence-num { color: var(--muted); }
@keyframes presence-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 201, 122, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(245, 201, 122, 0); }
}

/* H01 抬头：首屏只留一句问话，完整用途说明搬进「更多」。
   V2.0：问句是全站唯一用衬线展示字体的地方——和满屏无衬线拉开反差，
   这一行就是「2.0 换了样子」的第一眼。 */
.home-head {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.3;
  margin: 2px 0 6px;
  font-weight: 600;
  letter-spacing: .01em;
}
.home-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; max-width: 52ch; }

/* H04 空白态：一句引导 + 一个可点的示例路线 */
/* V2.0：.home-guide（H04 那块虚线框的「第一次来，先做一步就够」）连模板一起撤了。
   方案场景 A 要的是 30 秒内点得到「今天，想从什么开始？ / 帮我迈出第一步 / 五分钟开始 / 找人一起 / 不必先注册」，
   这五样现在都在第一屏，而且各自就是按钮和一个框——再框一段说明文字，
   等于在「不用学习」这句话上面加一段课。
   首次到访的那句话没有消失：它压成了页眉下面那一行 home-sub（游客看 intro.site.line，来过的人看「欢迎回来」），
   而「不必先注册」仍然明写在主按钮下面。 */

/* H01 单输入框 + 麦克风 */
.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row input { flex: 1 1 auto; min-width: 0; }
.btn.mic {
  flex: 0 0 auto;
  width: 46px;
  min-height: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--panel-2);
  background-image: none;
}
.btn.mic:hover { color: var(--accent-2); background: rgba(245, 201, 122, .1); }
.btn.mic:disabled { opacity: .5; }
/* V1.2.5 任务卡 6：这里不再只是「在听」，而是一整句「这次为什么不能说」，12.5px 太挤 */
.mic-state { margin: -6px 0 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* H02 单一主按钮 */
.btns.single { margin: 4px 0 6px; }
.btns.single .btn { flex: 1 1 100%; }

/* H01/H02 「高级」折叠：第二个输入框、澄清意图、整条路线都在这里，是折叠不是删除 */
.adv { margin-top: 4px; border-top: 1px dashed var(--line); }
.adv > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0 3px;
  cursor: pointer;
  list-style: none;
}
.adv > summary::-webkit-details-marker { display: none; }
.adv-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  background: var(--panel-2);
}
.adv > summary:hover .adv-name { color: var(--accent); border-color: var(--accent-deep); }
.adv-hint { font-size: 12.5px; color: var(--muted); flex: 1 1 200px; }
.adv[open] .adv-name { color: var(--accent-ink); background: var(--grad-accent); border-color: transparent; }
.adv-body { padding-top: 10px; animation: adv-in .24s ease-out both; }
.adv-row { margin: 8px 0 0; }
.adv .btn.ghost { min-height: 40px; font-size: 14px; }
@keyframes adv-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* H02 副入口卡：两个卡片都带示例标签，可一键启动 */
.sub-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0 4px; }
@media (min-width: 560px) { .sub-cards { grid-template-columns: 1fr 1fr; } }
.sub-card {
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: left;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sub-card:hover { transform: translateY(-2px); border-color: var(--accent-deep); box-shadow: var(--shadow-glow); text-decoration: none; }
.sub-card:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.sub-card b { font-size: 15.5px; font-weight: 650; }
.sub-hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
.sub-eg { font-size: 12.5px; color: var(--accent); opacity: .82; }
.demo-tag {
  justify-self: start;
  font-size: 11px;
  letter-spacing: .02em;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--grad-accent);
  padding: 2px 9px;
  border-radius: 999px;
}

/* H03 其余入口收进「更多」 */
.more-entries { margin-top: 18px; border-top: 1px dashed var(--line); }
.more-entries > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0 4px;
  cursor: pointer;
  list-style: none;
}
.more-entries > summary::-webkit-details-marker { display: none; }
.more-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  background: var(--panel-2);
}
.more-entries > summary:hover .more-name { color: var(--accent); border-color: var(--accent-deep); }
.more-hint { font-size: 12.5px; color: var(--muted); flex: 1 1 200px; }
.more-body { padding-top: 12px; animation: adv-in .24s ease-out both; }
.more-body .lead { padding: 16px; margin-bottom: 14px; }
.more-body .lead-title { font-size: 19px; }
.more-body .entry-grid .entry-link {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
}
.entry-link small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .btn, .entry, .intro-caret { transition: none; }
  .btn:active, .entry:hover { transform: none; }
  .presence-ring { transition: none; }
  [data-mode="me"] .presence-core { animation: none; }
  .sub-card { transition: none; }
  .sub-card:hover { transform: none; }
  .adv-body, .more-body { animation: none; }
}


/* ====================================================== 动态与自动头像（V1.2.2 第 24 号需求） */

/* 自动头像：色相来自 arr_avatar() 写在 style 上的 --h / --h2，不依赖任何图片与上传。
   同一份色相公式在小队/房间那些纯色圆点上已经在用，所以这个人换个页面颜色也不会变。 */
.avatar.auto {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--h, 200), 46%, 12%);
  background: linear-gradient(148deg,
    hsl(var(--h, 200), 52%, 66%) 0%,
    hsl(var(--h2, 232), 40%, 46%) 100%);
  box-shadow: inset 0 0 0 1px hsla(var(--h, 200), 60%, 78%, .32), 0 2px 8px -4px rgba(0, 0, 0, .6);
  -webkit-user-select: none;
  user-select: none;
}
.avatar.auto.lg {
  width: 52px;
  height: 52px;
  font-size: 21px;
  box-shadow: inset 0 0 0 1px hsla(var(--h, 200), 60%, 78%, .34), 0 6px 18px -10px rgba(0, 0, 0, .7);
}

/* 身份卡 */
.feed-id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.feed-id-text { display: grid; gap: 2px; margin-right: auto; }
.feed-id-name { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.feed-id-meta { font-size: 12.5px; color: var(--muted); }
.feed-name { display: flex; align-items: center; gap: 8px; }
.feed-name label { font-size: 12.5px; color: var(--muted); }
.feed-name input { width: 120px; padding: 8px 10px; font-size: 14px; border-radius: 9px; }

/* 发布框 */
.feed-composer textarea { min-height: 74px; }
.feed-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.feed-count { font-size: 12.5px; color: var(--muted); }
.feed-count.near { color: var(--warn); }

/* 时间线 */
.feed-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.feed-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
  transition: border-color .16s ease, background-color .16s ease;
}
.feed-item:hover { border-color: #333a45; }
/* 自己发的那条只在左边压一道色，不做「我的」标签那种强调 */
.feed-item.mine {
  background: linear-gradient(90deg, rgba(245, 201, 122, .07), rgba(245, 201, 122, 0) 42%);
  border-left-color: rgba(245, 201, 122, .42);
}
.feed-body { min-width: 0; }
.feed-meta { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.feed-meta b { font-weight: 650; letter-spacing: .01em; }
.feed-ago { color: var(--muted); font-size: 12px; }
.feed-text { margin: 3px 0 0; font-size: 15px; line-height: 1.6; word-break: break-word; }
.feed-del { margin: 0; }
.feed-del-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 4px 2px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: color .14s ease;
}
.feed-del-btn:hover { color: var(--danger); }
.feed-del-btn:disabled { opacity: .5; cursor: progress; }
#js-feed-more { width: 100%; margin-top: 12px; min-height: 40px; font-size: 14px; }

/* 新插入的那一条：从上方 6px 落进来，只做一次，不抢注意力 */
.feed-item.enter { animation: feed-in .26s ease both; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .feed-id { gap: 10px; }
  .feed-name { width: 100%; }
  .feed-name input { flex: 1; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .feed-item, .feed-del-btn { transition: none; }
  .feed-item.enter { animation: none; }
}

/* ====================================================== V1.2.2 第三部分：洞察问题卡 / 示例路线 / 个人中心 / 空状态 */

/* 顶栏身份项：小头像 + 「个人中心」。和其余导航项同一高度，不额外撑高顶栏 */
.nav-id { display: inline-flex; align-items: center; gap: 7px; }
.nav-id:hover { text-decoration: none; }
.nav-id-text { font-size: 15px; }
.avatar.auto.sm { width: 22px; height: 22px; font-size: 11px; }

/* 通用小徽标（示例路线的「示例」、计数）：只用来打标，不当按钮用 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--accent-2);
  background: rgba(245, 201, 122, .13);
  border: 1px solid rgba(245, 201, 122, .24);
  vertical-align: middle;
}

/* ---- 洞察问题卡（3.1）：卡面只有问题，数字收在 details 里 ---- */
.q-card { padding: 0; overflow: hidden; }
.q-card > summary { list-style: none; cursor: pointer; }
.q-card > summary::-webkit-details-marker { display: none; }
.q-card > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.q-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 16px;
  transition: background .18s ease;
}
.q-head:hover { background: var(--panel-2); }
.q-text {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -.005em;
  margin-right: auto;
}
.q-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }
.q-card[open] .q-hint { display: none; }
.q-card[open] .q-head { border-bottom: 1px solid var(--line); background: var(--grad-panel); }
.q-body { padding: 12px 16px 16px; display: grid; gap: 9px; }
.q-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.q-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.q-row:last-child { border-bottom: none; }
.q-label { color: var(--muted); font-size: 13px; min-width: 78px; }
.q-val { font-size: 14px; font-variant-numeric: tabular-nums; }
.q-val.muted { color: var(--muted); }
.q-meter {
  flex: 1 1 110px;
  min-width: 84px;
  height: 6px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.q-meter > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-accent); }
.q-note { font-size: 13.5px; margin: 2px 0 0; }
.q-caliber { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; line-height: 1.7; }
.chip {
  display: inline-block;
  padding: 2px 9px;
  margin: 1px 0;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--accent-2);
  background: rgba(245, 201, 122, .12);
  border: 1px solid rgba(245, 201, 122, .2);
}

/* ---- 示例路线库（3.2）：内置、可播、可复制，原条目改不了 ---- */
.rt-head { display: flex; align-items: center; gap: 10px; }
.rt-head .card-title { margin-right: auto; }
.rt-preset-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.rt-preset-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--grad-panel);
  transition: border-color .16s ease, transform .16s ease;
}
.rt-preset-item:hover { border-color: rgba(245, 201, 122, .34); }
.rt-preset-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.rt-preset-steps { margin-top: 8px; }
.rt-preset-steps > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  padding: 2px 0;
}
.rt-preset-steps > summary:hover { color: var(--text); }
.rt-preset-steps ol { margin: 8px 0 2px; padding-left: 1.3em; display: grid; gap: 4px; font-size: 13.5px; }
.rt-preset-ops { display: grid; gap: 8px; justify-items: stretch; }
.rt-preset-ops form { margin: 0; }

/* ---- 站点级空状态（3.4）：一句引导语 + 一个主操作 ---- */
.empty-state {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 30px 20px 26px;
}
.empty-state-line { margin: 0; font-size: 17px; font-weight: 640; }
.empty-state-lead { margin: 0; font-size: 14px; color: var(--muted); }
.empty-state .btn { margin-top: 10px; }
.empty-state .note-line { text-align: center; }

/* ---- 个人中心（3.3）：四宫格 + 常驻数据卡 ---- */
.me-id { display: flex; align-items: center; gap: 14px; }
.me-id-text { display: grid; gap: 2px; margin-right: auto; }
.me-id-name { font-size: 17px; font-weight: 700; }
.me-id-meta { font-size: 12.5px; color: var(--muted); }

.me-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.me-cell { display: grid; gap: 8px; align-content: start; }
/* 个人中心的图标方块：圆角跟着控件档走，不留手写的 10px */
.me-ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-1);
  color: var(--accent-2);
  background: rgba(245, 201, 122, .12);
  border: 1px solid rgba(245, 201, 122, .22);
}
.me-cell-title { margin: 0; font-size: 15px; }
.me-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.me-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.me-row:last-child { border-bottom: none; }
.me-row-label { font-size: 14px; color: var(--text); }
.me-row-link { font-size: 14px; font-weight: 600; }
.me-row-val { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; justify-self: end; text-align: right; }
/* 控件一律占第二行整宽：手机上「文字在左、按钮在下」比挤在一行更好点 */
.me-row-label, .me-row-link { grid-column: 1; grid-row: 1; }
.me-row-val { grid-column: 2; grid-row: 1; }
.me-row-act { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; justify-content: flex-start; }
.me-row-note { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--muted); line-height: 1.6; }
.me-cell-note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.me-row select { padding: 6px 8px; font-size: 13px; border-radius: 9px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.me-row-act [aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--grad-accent);
  border-color: transparent;
}

.me-data { margin-top: 12px; }
.me-datalist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.me-datalist li { display: flex; align-items: center; gap: 9px; }
.dot.ok { background: var(--accent); }
.dot.bad { background: var(--danger); }

@media (max-width: 620px) {
  .me-grid { grid-template-columns: 1fr; }
  .rt-preset-item { grid-template-columns: 1fr; }
  /* 三个动作挤进一行会把「存成我的」这类标签折成两行、且断在词中间。
     窄屏改成按内容取宽的可换行横排：放不下就整体掉到下一行，标签永不折断。 */
  .rt-preset-ops { display: flex; flex-wrap: wrap; gap: 8px; }
  .rt-preset-ops form { flex: 0 0 auto; }
  .rt-preset-ops .btn { white-space: nowrap; }
}

/* ---- 主题与动效（偏好格落到 <html> 上的两个属性） ---- */
/* 柔光：同一批令牌换值，组件不各写一套颜色，所以切主题不会出现「半页深色半页浅」 */
html[data-theme="light"] {
  /* V3.5 浅色主题观感升级：从「暖纸米色」改为「冷调浅灰玻璃」——
     大厂 APP 浅色模式（iOS/微信）的冷灰底 + 克制强调色，去掉泛黄陈旧感。
     暖金仍作为唯一强调色保留品牌识别，但底色不再「发黄」。 */
  --bg: #F5F6F8;
  --panel: rgba(255, 255, 255, .78);
  --panel-2: #ECEEF2;
  --panel-solid: #ffffff;               /* V2.0：玻璃卡的实底回退，浅色主题同步换值 */
  --line-soft: rgba(185, 138, 60, .22);  /* V2.0：薄荷描边的浅色档 */
  --field: #ffffff;
  --line: #E3E5EA;
  --text: #1B1F27;
  --muted: #6B7280;
  --accent: #B98A3C;
  --accent-deep: #96702B;
  --accent-ink: #ffffff;
  --warn: #9a7420;
  --danger: #A9783A;
  --accent-2: #96702B;
  --gold: #a3822f;
  --grad-accent: linear-gradient(135deg, #C79A4B 0%, #B98A3C 52%, #96702B 100%);
  --grad-panel: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 46%);
  --grad-line: linear-gradient(90deg, rgba(185, 138, 60, .4), rgba(185, 138, 60, .05));
  --ring: 0 0 0 1px rgba(185, 138, 60, .2);
  --shadow-1: 0 1px 2px rgba(27, 31, 39, .06);
  --shadow-2: 0 12px 28px -16px rgba(27, 31, 39, .18);
  --shadow-glow: 0 8px 22px -12px rgba(185, 138, 60, .32);
}
html[data-theme="light"] body {
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(185, 138, 60, .08), transparent 62%),
    radial-gradient(760px 460px at 96% 8%, rgba(163, 130, 47, .06), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: auto;
}
/* 深色底上的那层白色高光在浅底上会「脏」，这里收掉 */
html[data-theme="light"] .avatar.auto {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), 0 2px 8px -5px rgba(34, 37, 42, .3);
}
html[data-theme="light"] .badge,
html[data-theme="light"] .chip { color: var(--accent-deep); background: rgba(185, 138, 60, .1); border-color: rgba(185, 138, 60, .22); }

/* 动效关掉：过渡与进场动画全部退成瞬时；系统级 reduce 由各自的 @media 负责，两条口径互不覆盖 */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  transition-duration: .001s !important;
  animation-duration: .001s !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

/* ====================================================== V1.2.2 第四部分：视觉精修与动效层 */
/* 这一层只改「怎么动、按下去什么手感、当前在哪儿」，不重新发明颜色：
   所有取值都回到令牌（--t-1/2/3、--ease、--ease-soft、--shadow-*、--grad-*），
   所以切到柔光主题时不需要再补一套动效变量。覆盖上面的同名选择器是刻意的：
   写在这一层里的都是「精修后的口径」，读 diff 时一眼能看出这次改了什么。 */

/* ---- 统一过渡：把散在各处的 .16s/.2s 收成三档 ---- */
.nav a,
.nav button,
.btn,
.entry,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], textarea, select,
.chip, .badge, .q-head, .rt-preset-item, .table tbody tr {
  transition:
    color var(--t-1) var(--ease),
    background-color var(--t-2) var(--ease),
    border-color var(--t-2) var(--ease),
    box-shadow var(--t-2) var(--ease),
    transform var(--t-1) var(--ease);
}

/* ---- 顶栏：当前页有实底，其余是灰字；hover 只提亮度，不再整块变色 ---- */
.nav a { font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on,
.nav .nav-id.on {
  color: var(--accent-2);
  background: rgba(245, 201, 122, .12);
  border-color: rgba(245, 201, 122, .3);
}
.nav .nav-id.on .avatar.auto { box-shadow: 0 0 0 2px rgba(245, 201, 122, .34); }

/* 390 实测：导航项一多就换行，品牌名被挤成两行、「退出」单独掉到第三行。
   窄屏改成横向可滑的一行——不换行、不裁字，滚到最右还能点到退出。 */
@media (max-width: 560px) {
  .topbar { padding: 10px 12px; }
  .brand { flex: none; white-space: nowrap; }
  .nav {
    flex-wrap: nowrap;
    min-width: 0;               /* flex 子项默认 min-width:auto，不加这行 overflow 不生效 */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav form, .nav button { flex: none; white-space: nowrap; }
}
/* 退出那一项观感沿用 .nav button，只把 hover 换成危险色（不再把控件样式再声明一遍） */
.nav button:hover { color: var(--danger); background: rgba(232, 176, 122, .07); border-color: rgba(232, 176, 122, .34); }

/* ---- 按钮：按下去有回弹，主按钮划过一道光；禁用态自带转圈，不用 JS 各写一套 ---- */
.btn { font-weight: 550; letter-spacing: .005em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .07s; }
.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .5) 46%, transparent 64%);
  transform: translateX(-130%);
  transition: transform var(--t-3) var(--ease-soft);
}
.btn.primary:hover::after { transform: translateX(130%); }
.btn:disabled { transform: none; box-shadow: none; }
.btn:disabled::before {
  content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: arr-spin .7s linear infinite;
}
@keyframes arr-spin { to { transform: rotate(360deg); } }

/* ---- 卡片：可点的抬一下，纯展示的不动 ---- */
.entry:hover { transform: translateY(-2px); }
.card { transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }

/* ---- 四宫格（3.3）在 1280 上实测的错位：左右两格行数不同，等高后右格底部露出一大块空。
   改成纵向堆叠并把最后一项贴底：空白落在「列表与脚注之间」，读起来像卡片页脚，
   而不是卡片没写完。列表本身保持自然高度，不会被拉成两行之间的巨大间隙。 ---- */
.me-cell { display: flex; flex-direction: column; }
.me-cell > :last-child { margin-top: auto; }

/* ---- 展开：details 里的内容统一「滑进来 + 淡入」，不再瞬间蹦出 ---- */.q-card[open] > .q-body,
.adv-body,
.more-body,
.rt-preset-steps[open] > ol {
  animation: arr-rise var(--t-2) var(--ease) both;
}
.q-card > .q-head { cursor: pointer; list-style: none; }
.q-card > .q-head:hover .q-text { color: var(--accent-2); }
/* 390 实测：问题折成两行时「点开才给你数字」挤在第一行末尾，窄屏让提示自己占一行 */
@media (max-width: 520px) {
  .q-head { flex-wrap: wrap; align-items: flex-start; }
  .q-text { flex: 1 1 100%; }
  .q-hint { margin-top: 2px; white-space: normal; }
}
@keyframes arr-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 进场与滚动揭示：隐藏态只在 <html.motion-ready> 下生效 ----
   脚本没跑（被拦、老内核、SEO 抓取）时这条前缀不成立，内容原样可见——
   这是「宁可少一段动画，也不能让页面看起来是空的」的实现口径。
   观察器另有 1.4s 兜底，会把没触发的节点全部显出来。 */
html.motion-ready [data-rv] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--t-3) var(--ease-soft),
    transform var(--t-3) var(--ease-soft);
  transition-delay: var(--rv-d, 0ms);
}
html.motion-ready [data-rv].rv-on { opacity: 1; transform: none; }

/* ---- 表格与输入：行 hover 有一层极浅的底色，聚焦环带上一点外扩 ---- */
.table tbody tr:hover { background: rgba(245, 201, 122, .05); }
input:focus, textarea:focus, select:focus { box-shadow: var(--ring), 0 0 0 4px rgba(245, 201, 122, .09); }

/* ---- 选中态与滚动条：细节位，出现频率高，统一成同一种绿 ---- */
::selection { background: rgba(245, 201, 122, .3); color: var(--text); }
@media (min-width: 640px) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #2c313b; border: 3px solid transparent; background-clip: padding-box; border-radius: 99px; }
  ::-webkit-scrollbar-thumb:hover { background: #3a414d; background-clip: padding-box; }
}

/* ---- 柔光主题下这几处的对照修正：白色高光与浅灰底在亮背景上会「糊」 ---- */
/* 1280 实测：顶栏还留着深色的半透底，品牌字换成深色后落在深底上几乎看不见。
   顶栏跟着主题换底，不留「半页深半页浅」。 */
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, .82); border-bottom-color: var(--line); }
html[data-theme="light"] .nav a:hover { background: var(--panel-2); }
html[data-theme="light"] .nav a.on,
html[data-theme="light"] .nav .nav-id.on { color: var(--accent-deep); background: rgba(185, 138, 60, .1); border-color: rgba(185, 138, 60, .26); }
html[data-theme="light"] .btn.primary::after { background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .7) 46%, transparent 64%); }
html[data-theme="light"] .table tbody tr:hover { background: rgba(185, 138, 60, .06); }
html[data-theme="light"] ::selection { background: rgba(185, 138, 60, .22); }
@media (min-width: 640px) {
  html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cfcabf; background-clip: padding-box; }
}

/* ---- 关掉动效：进场层整个退成瞬时，隐藏态直接不成立，避免「按了没反应还以为坏了」 ---- */
html[data-motion="off"] .btn.primary::after { display: none; }
html[data-motion="off"] .btn:disabled::before { animation: none; border-top-color: currentColor; }
html[data-motion="off"] :not(.no-motion) {
  scroll-behavior: auto !important;
}


/* ====================================================== V1.2.3 材质层与使用逻辑重构
   这一层换的是「材质」和「骨架」，不是配色方案：产品自己的青绿身份保留，
   把上一版那种「边框 + 渐变 + 顶部高光 + 两层影」四件叠加的卡片，改成一次只声明一次的
   白卡 + 柔影；把十个平铺的文字导航收成四个目的地 + 一个常驻主操作。
   口径与 V1.2.2 第四部分相同：只覆盖上面的同名选择器，读 diff 一眼能看出这次改了什么。 */

/* ---- 令牌：圆角分三档（控件 / 卡片 / 特块），阴影分三层，间距走 4 的倍数 ---- */
:root {
  --r-1: 12px;   /* 按钮、输入、chip：控件档 */
  --r-2: 16px;   /* 卡片、列表行、notice：容器档 */
  --r-3: 22px;   /* 在场条、庆祝屏：特块档 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --sp-6: 30px;
  --tab-h: 60px;         /* 窄屏底部目的地条的高度（不含安全区） */
  --text-2: #5a606b;     /* 比 --muted 深一档的次要正文：13px 小字在浅底上够 AA */
  --shadow-3: 0 20px 44px -20px rgba(0, 0, 0, .7);
}

html[data-theme="light"] {
  /* 浅底上的三档影：都带 y 位移与柔化模糊，不用 0 位移的彩色光晕 */
  --shadow-1: 0 1px 2px rgba(28, 34, 40, .06);
  --shadow-2: 0 10px 24px -14px rgba(28, 34, 40, .18);
  --shadow-3: 0 18px 40px -18px rgba(28, 34, 40, .3);
  --shadow-glow: 0 12px 26px -14px rgba(47, 106, 88, .4);
  --line: #e2ded6;
  --text: #1c2025;
  /* 13px 小字在浅底上是全站出现频率最高的一档，必须自己过 AA：
     #6a7180 量到 4.38:1（差一点），#626976 在同一条 --panel-2 上量到 4.81:1、页面底 4.94:1。 */
  --muted: #626976;
  --text-2: #545b66;
  --panel-2: #f2efe9;
}

/* 「我的状态」那颗药丸：--accent 在浅底上只有 4.10:1，13px 读不清。
   统一换成 --accent-deep（浅底实测 5.50:1），深色主题里 --accent-deep 本来就比 --accent 亮，不受影响。 */
.state-entry { color: var(--accent-deep); }

/* 个人中心的下拉框原来是就地手写的 9px 圆角 + 米底 + 6/8px 内边距，
   和这一版统一的 --field / --r-1 / 12px 14px 差一套尺寸，看起来像另一个系统的控件。 */
.me-row select {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: var(--r-1);
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  min-height: 42px;
}

/* ---- 地面：顶部一道青绿天光，420px 内褪尽，其余是平的 --bg
   上一版是两颗对角的径向光斑，滚动时整页都在「泛光」；这里改成只有页头那一段有光。
   V1.2.5 任务卡 6：浅色这一档原先顶到 #e7efe9，与 --bg #F4F1EA 的相对亮度比只有 1.05
   （按 WCAG 那个 (L亮+0.05)/(L暗+0.05)：一整片底色要 1.1 以上才看得出「有一片光」），
   站长报的「背景光看不见」就是这么来的。现在峰值 #d7e8de，比值 1.14，深色那档 1.29。
   褪光再从 340px 加到 420px：顶栏那 56px 是平色不透明的，最亮的一段本来被它盖住，
   褪得慢一点正文才吃得到。两档长度必须一致，不然切主题时那一段光会跳一下。 */
html[data-theme="light"] body {
  background:
    linear-gradient(180deg, #d7e8de 0%, #e4eee8 46%, rgba(228, 238, 232, 0) 100%) no-repeat,
    var(--bg);
  background-size: 100% 420px;
  background-attachment: scroll;
}
body {
  background:
    linear-gradient(180deg, rgba(245, 201, 122, .14) 0%, rgba(245, 201, 122, 0) 100%) no-repeat,
    var(--bg);
  background-size: 100% 420px;
}

/* ---- 图标：统一 1.7 描边、圆头，尺寸只有三档 ---- */
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-sm { width: 14px; height: 14px; stroke-width: 1.9; }
.ic-lg { width: 22px; height: 22px; }
/* 图标 + 文字的一行：列表行首、元信息条、chip 都用它，gap 不再各写各的 */
.ic-text { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ic-text .ic { opacity: .72; }

/* ---- 顶栏：不透明地面 + 一条分隔线；滚动内容从下面过去而不是穿过一层玻璃 ---- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 10px 16px;
  min-height: 56px;
}
.topbar::after { display: none; }
html[data-theme="light"] .topbar { background: var(--bg); border-bottom-color: var(--line); }
.brand { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 20px; height: 20px; }
.topbar-end { display: flex; align-items: center; gap: 10px; }

/* 目的地项：图标在左、文字在右；当前项是一枚实心胶囊，不靠下划线 */
.nav { gap: 2px; }
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  transition: color var(--t-1) var(--ease), background-color var(--t-2) var(--ease);
}
.nav-item:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-item .ic { width: 17px; height: 17px; }
.nav-item.on { color: var(--accent-deep); background: rgba(185, 138, 60, .12); font-weight: 650; }
.nav-item.on .ic { stroke-width: 2.05; }
/* 深色那套令牌里的 --accent-deep 偏暗，当前项在深底上要用亮一档的 --accent-2 才读得出「在这儿」 */
html[data-theme="dark"] .nav-item.on { color: var(--accent-2); background: rgba(245, 201, 122, .14); }
.nav a.on { color: var(--accent-deep); }
.nav-id { padding: 6px; border-radius: 999px; }
.nav-id .avatar.auto { width: 28px; height: 28px; font-size: 13px; }

/* ---- V3.3 顶栏站内通知铃铛 ---- */
.nav-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  color: var(--muted);
  transition: color var(--t-1) var(--ease), background-color var(--t-2) var(--ease);
}
.nav-bell:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-bell .ic { width: 19px; height: 19px; }
.nav-bell.has-unread { color: var(--accent-2); }
.nav-bell .bell-dot {
  position: absolute; top: -2px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
/* 通知列表页 */
.notif-page { max-width: 640px; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.notif-head .page-head { margin: 0; }
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.notif-item.is-read { opacity: .62; }
.notif-dot {
  flex: none; width: 8px; height: 8px; margin-top: 7px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 201, 122, .6);
}
.notif-item.is-read .notif-dot { background: var(--muted); box-shadow: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { margin: 0 0 4px; color: var(--text); font-size: 15px; line-height: 1.55; }
.notif-time { color: var(--muted); font-size: 12.5px; }
.notif-item form { flex: none; }
.notif-empty { text-align: center; padding: 28px 18px; }

/* ---- 底部目的地条：窄屏唯一的主导航，宽屏交给顶栏 ---- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: stretch;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 13, 18, .55);
  border-top: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 -8px 24px -20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  /* --tab-h 是整条栏的高度，栏身自己还有上下各 4px 内边距：
     瓦片若按 60px 撑满，选中那一格的圆角底边就会顶出白条下沿，量到的是「底部一道暗边」。 */
  min-height: calc(var(--tab-h) - 8px);
  padding: 6px 2px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .01em;
  transition: color var(--t-1) var(--ease), background-color var(--t-2) var(--ease);
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab .ic { width: 21px; height: 21px; }
.tab-ic { display: grid; place-items: center; }
.tab-av { display: grid; place-items: center; height: 21px; }
.tab-label { line-height: 1.2; }
.tab.on { color: var(--accent-deep); background: rgba(185, 138, 60, .1); }
.tab.on .ic { stroke-width: 2.05; }
html[data-theme="dark"] .tab.on { color: var(--accent-2); background: rgba(245, 201, 122, .13); }

/* ---- 常驻主操作：窄屏是圆形的加号（拇指区），宽屏是带文字的胶囊 ---- */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  min-width: 54px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 650;
  box-shadow: var(--shadow-glow), var(--shadow-1);
  transition: transform var(--t-1) var(--ease), background-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.fab:hover { text-decoration: none; background: var(--accent-deep); transform: translateY(-1px); }
.fab:active { transform: translateY(1px) scale(.985); }
.fab .fab-ic { display: grid; place-items: center; }
.fab-label { display: none; }
@media (min-width: 900px) {
  .fab { right: 26px; bottom: 26px; }
  .fab-label { display: inline; }
}
/* 窄屏：目的地条常驻，正文底部要留出它的高度，最后一张卡片不能被压在条下面 */
@media (max-width: 899px) {
  .wrap { padding: 18px 16px calc(var(--tab-h) + 74px + env(safe-area-inset-bottom, 0px)); }
  .foot { padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) {
  .tabbar { display: none; }
}

/* ---- 目的地内部的分组条：收成四个目的地之后，同类页面靠这条横滑 chips 互相走 ---- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: -4px 0 18px;
  padding: 2px 2px 4px;
}
.chips::-webkit-scrollbar { display: none; }
.chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
}
.chips .chip:hover { text-decoration: none; border-color: var(--accent-deep); color: var(--text); }
.chips .chip.on { color: var(--accent-deep); border-color: rgba(185, 138, 60, .34); background: rgba(185, 138, 60, .1); font-weight: 650; }
html[data-theme="dark"] .chips .chip.on { color: var(--accent-2); background: rgba(245, 201, 122, .14); border-color: rgba(245, 201, 122, .3); }

/* ---- 卡片：一次只声明一层高度。白卡 + 柔影，去掉边框、渐变与顶部那道高光 ---- */
.card {
  background: var(--panel);
  background-image: none;
  border: 0;
  border-radius: var(--r-2);
  padding: 18px 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-2);
}
.card::before { display: none; }
html[data-theme="dark"] .card { box-shadow: var(--shadow-1), var(--shadow-2); }

/* 「接着来」那张卡：底色比别的卡暖一点，提示这是可以点的入口；
   原来那根 3px 左侧色条已经去掉 —— 底色 + 按钮就够指路了。 */
.resume { background: rgba(185, 138, 60, .08); }
html[data-theme="dark"] .resume { background: rgba(245, 201, 122, .1); }

/* 卡片标题：去掉左侧那根 4px 色条（它和「彩色左边框」是同一个花招），只留字号与字重 */
.card-title { font-size: 16px; margin: 0 0 12px; letter-spacing: -.01em; }
.card-title::before { display: none; }
.sec-title::before { display: none; }
.sec-title { margin: 30px 0 12px; font-size: 18px; letter-spacing: -.015em; }

/* ---- 标题字号阶梯：拉开一档，首屏那句问话要能站住 ---- */
h1 { font-size: 27px; letter-spacing: -.022em; font-weight: 700; }
h2 { font-size: 18px; }
.wrap > h1 { margin: 6px 0 6px; }
.wrap > h1 + p { margin-top: 0; }

/* ---- 按钮：控件档圆角、实心主按钮（渐变只留给 FAB 之外不用的场合） ---- */
.btn {
  border-radius: var(--r-1);
  border-color: var(--line);
  background: var(--panel);
  background-image: none;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.btn:hover { border-color: var(--accent-deep); box-shadow: var(--shadow-2); }
.btn.primary {
  background: var(--accent);
  background-image: none;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.big { min-height: 54px; border-radius: 14px; font-size: 16.5px; font-weight: 650; }
.btn.small { min-height: 34px; border-radius: 10px; }

/* ---- 输入：白底 + 细边 + 焦点环，正文与占位符都过 AA ---- */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 12px 14px;
  font-size: 15.5px;
}
::placeholder { color: var(--muted); opacity: 1; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px rgba(185, 138, 60, .18); border-color: var(--accent-deep); }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus { box-shadow: 0 0 0 3px rgba(245, 201, 122, .22); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* ---- 提示条：去掉 3px 彩色左边框，改成整块着色 + 行首图标 ---- */
.notice {
  border: 0;
  border-radius: var(--r-2);
  padding: 13px 15px;
  gap: 9px;
  background: var(--panel-2);
  box-shadow: var(--shadow-1);
  font-size: 14.5px;
  line-height: 1.6;
}
.notice.ok { background: rgba(185, 138, 60, .12); color: var(--accent-deep); }
.notice.err { background: rgba(185, 138, 60, .12); color: var(--danger); }
.notice.warn { background: rgba(154, 116, 32, .13); color: var(--text); }
html[data-theme="dark"] .notice.ok { background: rgba(245, 201, 122, .14); color: var(--accent-2); }
.notice-link { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* 柔光下 --accent（#B98A3C）在浅底上实测 4.1:1，够不上小字 AA；链接这档用深一级的 --accent-deep（实测 5.5:1） */
html[data-theme="light"] .notice .notice-link { color: var(--accent-deep); }

/* ---- 空状态：虚线框换成一块居中的浅色区域，图标给个「这里本来有东西」的落点 ---- */
.empty {
  border: 0;
  border-radius: var(--r-2);
  padding: 22px 16px;
  background: var(--panel-2);
  color: var(--text-2);
  line-height: 1.6;
}
.empty-state { padding: 34px 20px 30px; gap: 9px; }
.empty-state-line { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }

/* ---- 列表行：分隔线换成更淡的一条实线，行高给到 44 以上好点 ---- */
.me-row { padding: 11px 0; border-bottom: 1px solid var(--line); }
.q-row { border-bottom: 1px solid var(--line); padding: 9px 0; }
.kv-row + .kv-row { border-top: 1px solid var(--line); }
.q-card[open] .q-head { border-bottom-color: var(--line); background: none; }
.q-head:hover { background: var(--panel-2); }

/* ---- 徽章与 chip：去掉描边，只留着色底 ---- */
.badge, .chip { border: 0; background: rgba(185, 138, 60, .12); color: var(--accent-deep); font-weight: 600; }
html[data-theme="light"] .badge,
html[data-theme="light"] .chip { border: 0; }
html[data-theme="dark"] .badge,
html[data-theme="dark"] .chip { background: rgba(245, 201, 122, .16); color: var(--accent-2); }
.pill { border: 0; background: var(--panel-2); color: var(--text-2); font-weight: 600; }
.pill.accent { background: rgba(185, 138, 60, .12); color: var(--accent-deep); }

/* ---- 额度条：同样去掉 3px 左边框，用底色和数字说话 ---- */
.quota {
  border: 0;
  border-radius: var(--r-2);
  background: rgba(185, 138, 60, .1);
  padding: 13px 15px;
  box-shadow: none;
}
html[data-theme="dark"] .quota { background: rgba(245, 201, 122, .12); }

/* ---- 在场条：这是首屏唯一的「特块」，圆角比卡片大一档，影也更软 ---- */
.presence-row {
  border: 0;
  border-radius: var(--r-3);
  background: var(--panel);
  box-shadow: var(--shadow-2);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.presence-label { font-size: 16px; font-weight: 650; }
.home-head { font-size: 25px; font-weight: 700; letter-spacing: -.022em; }

/* ---- 副入口卡 / 路线条目 / 动态条目：统一成「白卡 + 柔影」，描边一律退场 ---- */
.sub-card, .rt-preset-item, .feed-item, .team-list li, .plan {
  border: 0;
  border-radius: var(--r-2);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}
.sub-card { padding: 16px; }
.sub-card:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.sub-card b { font-size: 16px; }
.demo-tag { background: rgba(185, 138, 60, .14); color: var(--accent-deep); font-weight: 650; letter-spacing: .02em; }
html[data-theme="dark"] .demo-tag { background: rgba(245, 201, 122, .18); color: var(--accent-2); }
.rt-preset-item:hover { border-color: transparent; box-shadow: var(--shadow-2); }
/* 自己发的那条用整块着色标出来：3px 的左边条（无论写成 border 还是 inset shadow）都是同一类花招 */
.feed-item.mine { border-left: 0; background: rgba(185, 138, 60, .07); box-shadow: var(--shadow-1); }
html[data-theme="dark"] .feed-item.mine { background: rgba(245, 201, 122, .09); }

/* ---- 「高级」「更多」这类折叠：去掉虚线分隔，改成一行可点的浅底 ---- */
.adv, .more-entries { border-top: 0; }
.adv-name, .more-name { border: 0; background: var(--panel-2); color: var(--text-2); }
.adv[open] .adv-name, .more-entries[open] .more-name { background: rgba(185, 138, 60, .14); color: var(--accent-deep); }
html[data-theme="dark"] .adv[open] .adv-name { background: rgba(245, 201, 122, .18); color: var(--accent-2); }
.intro { border-radius: var(--r-2); }

/* ---- 页面用途说明（details）：它是「说明」不是「操作」，压到最安静的字号与颜色 ---- */
.intro > summary { font-size: 13.5px; color: var(--text-2); }

/* ---- 完成庆祝屏：单步走完那一屏是全站唯一允许「大字 + 着色」的地方 ---- */
.done-card {
  border: 0;
  border-radius: var(--r-3);
  background: rgba(185, 138, 60, .1);
  box-shadow: none;
  padding: 26px 20px 24px;
  text-align: center;
}
html[data-theme="dark"] .done-card { background: rgba(245, 201, 122, .12); }
.done-card .done-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--accent-deep); }

/* ---- 选中态与滚动条跟着新地面走 ---- */
::selection { background: rgba(185, 138, 60, .24); }
html[data-theme="dark"] ::selection { background: rgba(245, 201, 122, .3); }
@media (min-width: 640px) {
  ::-webkit-scrollbar-thumb { background: #cfcabf; background-clip: padding-box; }
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2c313b; background-clip: padding-box; }

/* ---- 进场：只留一个有编排的动作——首屏那几张卡片依次落位，而不是每个区块各动各的 ---- */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .wrap > .card,
  html.motion-ready .wrap > .presence-row,
  html.motion-ready .wrap > .sub-cards,
  html.motion-ready .wrap > .chips {
    animation: arr-enter var(--t-3) var(--ease-soft) both;
  }
  html.motion-ready .wrap > .card:nth-child(3) { animation-delay: 40ms; }
  html.motion-ready .wrap > .card:nth-child(4) { animation-delay: 80ms; }
  html.motion-ready .wrap > .card:nth-child(5) { animation-delay: 120ms; }
}
@keyframes arr-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 窄屏顶栏：目的地已经交给底部条，顶栏只留品牌与头像，不再换行也不横向滚 ---- */
@media (max-width: 899px) {
  .topbar { padding: 9px 14px; }
  .nav { display: none; }
}
@media (min-width: 900px) {
  .wrap { padding-top: 30px; }
}

/* ---- 关掉动效：这一层新增的进场与位移一起退成瞬时 ---- */
html[data-motion="off"] .fab,
html[data-motion="off"] .nav-item,
html[data-motion="off"] .tab { transition: none; }
html[data-motion="off"] .fab:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.motion-ready .wrap > .card,
  html.motion-ready .wrap > .presence-row,
  html.motion-ready .wrap > .sub-cards,
  html.motion-ready .wrap > .chips { animation: none; }
  .fab:hover, .btn:hover { transform: none; }
}


/* ==========================================================================
   V1.2.3 隐私合规三页：隐私政策 / 同意闸门 / 我的数据与隐私
   这三页是三种不同的阅读动作，所以版式不共用一张卡：
     政策页 = 连续阅读（章节自己成段，不塞进卡里）；
     同意页 = 一屏决定（主文案最大、按钮成对、勾选项独立成块）；
     数据页 = 清单与操作（行 + 按钮，危险操作单独一块）。
   卡片只当容器用，不在里面再套卡片。
   ========================================================================== */

/* ---- 表单内联：按钮跟着文字走，不占一整行 ---- */
.inline-form { display: inline-block; margin: 0; }

/* ---- 页面级反馈条：成功 / 失败各一条，不是嵌在卡里的 notice ---- */
.flash-ok,
.flash-err {
  margin: 0 0 14px;
  padding: 12px 15px;
  border-radius: var(--r-2);
  font-size: 14.5px;
  line-height: 1.6;
  box-shadow: var(--shadow-1);
}
.flash-ok { background: rgba(185, 138, 60, .12); color: var(--accent-deep); }
.flash-err { background: rgba(185, 138, 60, .12); color: var(--danger); }
html[data-theme="dark"] .flash-ok { background: rgba(245, 201, 122, .14); color: var(--accent-2); }

/* ---- 隐私政策：连续阅读，章节靠标题与留白分节 ---- */
.policy { padding: 26px 22px 30px; }
.policy-head { margin-bottom: 20px; }
.policy-head .card-title { font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.policy-sec { margin: 0 0 22px; }
.policy-sec:last-of-type { margin-bottom: 0; }
.policy-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 16.5px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.sec-no {
  flex: none;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent-deep);
  letter-spacing: .02em;
}
html[data-theme="dark"] .sec-no { color: var(--accent-2); }
.policy-sec p { margin: 0 0 8px; line-height: 1.75; }
.policy-list {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 6px;
  line-height: 1.72;
}
.policy-list li::marker { color: var(--muted); }
.policy-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.policy-foot p { margin: 0 0 10px; }

/* ---- 同意闸门：一屏之内做完决定 ---- */
.consent { padding: 24px 22px 26px; }
/* 页面级标题不能比下面那段正文还小，否则「开始之前」这四个字就是一句附注 */
.consent .card-title { font-size: 21px; letter-spacing: -.018em; margin-bottom: 10px; }
/* 任务书要求这段话「比正文大一档并加粗」：正文 15.5px，这里 19.5px（约 1.26 倍） */
.consent-lead {
  margin: 0 0 16px;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.012em;
}
.consent-error {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: var(--r-1);
  background: rgba(185, 138, 60, .12);
  color: var(--danger);
  font-size: 14.5px;
}
.consent-facts { margin: 0 0 18px; padding-left: 1.15em; display: grid; gap: 5px; }
.consent-form { display: grid; gap: 14px; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-1);
  background: var(--panel-2);
  cursor: pointer;
}
.consent-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-deep);
}
.consent-check > span { display: grid; gap: 3px; }
.consent-check strong { font-size: 15px; }
.consent-refuse { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.consent-refuse > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.guest-demo { display: grid; gap: 9px; margin-top: 12px; }
.guest-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 5px; font-size: 14.5px; }

/* ---- 我的数据与隐私：清单 + 操作 ---- */
.card-danger { background: rgba(185, 138, 60, .07); }
html[data-theme="dark"] .card-danger { background: rgba(232, 176, 122, .08); }
.card-danger .card-title { color: var(--danger); }
.data-info { margin-top: 14px; }
.data-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.data-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.data-list li:last-child { border-bottom: 0; }
.data-key { color: var(--muted); font-variant-numeric: tabular-nums; }
.data-val { text-align: right; }
.data-choices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.data-choice {
  padding: 13px 15px;
  border-radius: var(--r-1);
  background: var(--panel-2);
}
.data-choice strong { display: block; margin-bottom: 3px; font-size: 15px; }
.data-choice p { margin: 0 0 10px; }
.data-delete { display: grid; gap: 12px; margin-top: 4px; max-width: 380px; }
/* 注销表单里的 label 自己就是 .field，所以这里给直接子元素一份标签样式 */
.field > span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.data-foot { margin-top: 4px; }

/* ---- 注册页的年龄确认：必填的勾选项要一眼看得见 ---- */
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  cursor: pointer;
}
.check-line input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-deep);
}

/* ==========================================================================
   V2.0 首页五区域 + V1.2.4 留存层（完成页三出口 / 明日档位 / 共同到场 / 徽章与挑战 / 提醒）
   原则：这一层全是「行」和「档位」，不再往卡里塞卡；圆角只取 --r-1/--r-2/--r-3。
   ========================================================================== */

/* ---- 区域 0（V2.0 场景 F 第一优先级）：接着做上次那件事。
   V1.2.4 到 V1.2.13 这里是一张 .card.resume：四行竖排、带影、20px 内边距，
   结果是「已经开始了的事」把「今天想从什么开始」那个输入框顶到第二屏。
   V2.0 压成一条：左边说哪件事 + 下一步，右边两个出口；窄屏折成上下两段。
   这里刻意不用 .card——卡自带的高光、两层影和容器内边距会让它重新长成一块，
   而它要的是贴在页眉下面的一行状态，不是第五个目的地。
   判据同一条：$resume 为空时整块连 CSS 都不需要（模板不输出这个节点）。 */
.resume-strip {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--panel-2);
  box-shadow: var(--shadow-1);
}
.resume-strip-main { display: grid; gap: 3px; min-width: 0; }
.resume-strip-tag { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.resume-strip-task {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.resume-strip-next { font-size: 13.5px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.resume-strip-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (min-width: 620px) {
  .resume-strip { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-5); }
  .resume-strip-act { flex: none; flex-direction: column; align-items: stretch; gap: 6px; }
  .resume-strip-act .btn { width: auto; }
}

/* ---- 首页：今天的固定场次（方案 一第 6 条）---- */
.fixed-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.fixed-row + .fixed-row { border-top: 1px dashed var(--line); }
.fixed-time { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 15px; }

/* ---- 完成页三出口（方案 三）：主出口一个，其余降级成文字行 ---- */
.finish-exits { display: grid; gap: 10px; margin-top: 4px; }
.slot-pick { display: grid; gap: 9px; margin-top: 4px; }
.slot-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-opt { position: relative; }
.slot-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* V2.0：提到 --tap 档，「在哪儿」这一栏的手指触控不再偏小 */
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color var(--t-1) var(--ease), background-color var(--t-2) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-2) var(--ease);
}
.slot-opt:hover span { border-color: var(--accent-deep); }
.slot-opt input:checked + span {
  color: var(--accent-ink);
  background: var(--grad-accent);
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}
.slot-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-form { display: grid; gap: 10px; }

/* ---- 共同到场：此刻在场 / 档位表 / 本周记录 ---- */
.gather-live { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.gather-live-count { display: flex; align-items: baseline; gap: 9px; }
.big-num { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.gather-live-act { display: grid; gap: 6px; min-width: 210px; flex: 1 1 210px; }
.gslots { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.gslot {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 0;
  font-size: 14.5px;
}
.gslot + .gslot { border-top: 1px dashed var(--line); }
.gslot.future { color: var(--muted); }
.gslot-time { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--text); min-width: 46px; }
.gslot-name { flex: 1 1 auto; }
.gslot-num { font-size: 12.5px; }
.gslot-act { margin-left: auto; }
.gweek { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.gweek li { display: flex; align-items: baseline; gap: 9px; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.gweek li + li { border-top: 1px dashed var(--line); }
.gweek-day { font-weight: 600; }
.invite-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.invite-url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 11px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--muted);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* 段落里嵌一个「看起来像链接的按钮」：取消预约这种轻操作不该占一行大按钮 */
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 6px;
  color: var(--accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--accent-2); }

/* ---- 个人中心：今日记录 / 连续与徽章 / 每周挑战 / 固定到场时间 ---- */
.rhythm-sub { margin: 16px 0 6px; font-size: 14px; font-weight: 640; color: var(--muted); letter-spacing: .01em; }
.today-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.today-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.today-list li + li { border-top: 1px dashed var(--line); }
.today-time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.streak-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.streak-num { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.badge-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
}
.badge-cell .ic { width: 15px; height: 15px; color: var(--muted); }
.badge-cell.got { border-color: rgba(245, 201, 122, .32); background: rgba(245, 201, 122, .1); color: var(--accent-2); }
.badge-cell.got .ic { color: var(--gold); }
.chal-bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: 9px; }
.chal-fill { height: 100%; border-radius: 999px; background: var(--grad-accent); transition: width var(--t-3) var(--ease); }
.pref-form { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; margin-top: 6px; }

/* ---- 提醒（方案 六）：授权按钮 + 状态一句话 ---- */
.notify-state { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
/* 点只分「已允许」和「还没」两态：没开启不是错误，不该涂成红色让人以为坏了 */
.notify-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex: none; }
.notify-dot.on { background: var(--accent); }
.notify-dot.off { background: var(--muted); }

/* 温和召回：一行字 + 两个出口，收在正文流里，不做成卡片（它只出现一次，不该抢版面） */
.recall-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--panel-2);
}
.recall-text { font-size: 14.5px; }
.recall-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }

/* ====================================================== V1.2.6 内测建议板 / 邮箱验证
   两块新界面共用一条口径：
   · 容器走 --r-2（16px），控件走 --r-1（12px），间距只取 --sp-1..6；
   · 层次靠「边 + 影」，不靠彩色左边条，也不套卡片；
   · 动效只落在 transform / opacity 上，颜色变化交给边框与文字本身。 */

/* ---- 并排字段：窄屏一列，宽屏两列（名字 / 联系方式） ---- */
.field-row {
  display: grid;
  gap: var(--sp-3) var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* ---- 建议墙：公开的只有站长的回复 ---- */
.feedback-wall {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.feedback-wall-item {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--panel-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
  box-shadow: var(--shadow-1);
}
.feedback-wall-meta {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: 13px;
}
.feedback-wall-meta b { font-weight: 650; letter-spacing: .01em; }
/* 回复本身是站长写的，给它一档更正的正文，而不是和元信息一样的灰 */
.feedback-wall-reply {
  margin: var(--sp-2) 0 0;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 匿名勾选（.check-line）沿用注册页那一处已定义好的控件档，这里不重复一份。 */

/* ---- 邮箱验证页：状态块。不用彩色左边条，改用一整块底色 ---- */
.verify-state {
  border-radius: var(--r-2);
  padding: var(--sp-4);
  background: var(--panel-2);
  border: 1px solid var(--line);
  margin: var(--sp-3) 0;
}
.verify-state-title {
  margin: 0 0 var(--sp-1);
  font-size: 15px;
  font-weight: 650;
}
.verify-state-line {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.verify-state.ok { background: rgba(245, 201, 122, .1); border-color: rgba(245, 201, 122, .28); }
.verify-state.ok .verify-state-title { color: var(--accent-2); }
.verify-state.pending { background: rgba(216, 181, 106, .1); border-color: rgba(216, 181, 106, .28); }
.verify-state.pending .verify-state-title { color: var(--warn); }
html[data-theme="light"] .verify-state.ok { background: rgba(185, 138, 60, .1); border-color: rgba(185, 138, 60, .26); }
html[data-theme="light"] .verify-state.ok .verify-state-title { color: var(--accent-deep); }
html[data-theme="light"] .verify-state.pending { background: rgba(183, 121, 31, .1); border-color: rgba(183, 121, 31, .26); }
html[data-theme="light"] .verify-state.pending .verify-state-title { color: #b7791f; }

/* ====================================================== V1.2.7 个人资料 / 建议入口
   四块新界面：个人资料页（头像·名字·邮箱·密码）、个人中心的资料入口、
   首页与个人中心的建议入口、以及侧栏待处理角标的同款前台样式。
   口径与前面一致：容器 --r-2（16px），控件 --r-1（12px），间距只取 --sp-1..6；
   层次靠「边 + 影 + 底色」，不用彩色左边条；动效只落在 transform / opacity 上。 */

/* ---- 个人资料页：头像那一行（左预览 / 右说明） ---- */
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.profile-avatar-preview {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.profile-avatar-preview .avatar.auto {
  width: 72px;
  height: 72px;
  font-size: 28px;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-text { display: grid; gap: 3px; min-width: 0; }
.profile-avatar-text b { font-size: 15px; font-weight: 650; }
.profile-avatar-form { margin-top: var(--sp-2); }
.profile-avatar-form .field { margin-bottom: 0; }
.profile-avatar-form input[type="file"] {
  padding: 7px 10px;
  font-size: 13px;
  color: var(--muted);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  width: 100%;
}

/* ---- 邮箱那一行：现地址 + 验证状态 ---- */
.profile-email-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin: 0 0 var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--panel-2);
}
.profile-email-row b { font-size: 15px; font-weight: 650; word-break: break-all; }

/* ---- 个人中心：头像换成真照片之后的身份卡 ---- */
.me-id-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.me-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.me-id-act { flex: none; }

/* ---- 建议入口卡：首页瓦片与个人中心卡片共用一套 ---- */
.feedback-entry { margin-top: var(--sp-4); }
.feedback-entry-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.feedback-entry-head .card-title { margin: 0; }
.feedback-entry-head .ic {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
}
.feedback-entry-stat { margin: var(--sp-2) 0 0; }
/* 关着的时候整块降调：不是藏起来，是明说「现在关着」 */
.feedback-entry.is-off { opacity: .72; }
.feedback-entry.is-off .feedback-entry-head .ic { color: var(--muted); }

/* 首页上那一格：关着时也留着入口，但颜色退成灰的 */
.quick-tile.is-off { opacity: .6; }
.quick-tile.is-off .ic { color: var(--muted); }

/* 浅色主题：面板底与边要跟着换，不然照片那一圈会浮在深色上 */
html[data-theme="light"] .profile-avatar-preview,
html[data-theme="light"] .me-id-avatar { background: #fff; }

/* ====================================================== V1.2.9 会员赠送（领取页 / 身份标识）
   这一页的来路是站外一条链接，点进来的人多半还没账号，所以视觉只做两件事：
   · 把「这一份是什么」的三条事实排成一列可读的行，不再套第二层卡片；
   · 把兑换码本身排成等宽大字——它是要被复制、被逐字核对的东西，不是普通正文。
   口径与前面一致：容器 --r-2（16px），控件 --r-1（12px），间距只取 --sp-1..6；
   层次靠边 + 影 + 底色，不用彩色左边条；动效只落在 transform / opacity 上。 */

/* ---- 三条事实：细线分行，一颗小圆点做落点（不是图标，是对齐用的记号） ---- */
.redeem-facts {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
}
.redeem-facts li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.redeem-facts li:first-child { border-top: 0; padding-top: 0; }
.redeem-facts li:last-child { padding-bottom: 0; }
/* 15px × 1.6 = 24px 的行盒，6px 的点要落在第一行的正中间：(24 - 6) / 2 = 9px */
.redeem-facts li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- 名额与截止：一行放得下就并排，放不下就换行，不挤成两列 ---- */
.redeem-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
}
/* .pill 基础档带 margin-left:6px（它是给「跟在文字后面」用的）；这里是行首，去掉 */
.redeem-meta .pill { margin-left: 0; font-size: 12px; padding: 2px 9px; }

/* ---- 已经是会员：有效期那一行 ---- */
.redeem-until {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.redeem-until .muted { font-size: 13px; }

/* ---- 兑换码输入：等宽、拉开字距、居中。核对一串码时这三件都有用 ---- */
.redeem-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: .14em;
  text-align: center;
  min-height: 52px;
}
.redeem-input::placeholder {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .01em;
}

/* ---- 段落里嵌的那串码：与小队邀请码同一档，字号再大一点 ---- */
.redeem-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 2px 9px;
  margin-left: var(--sp-1);
  letter-spacing: .1em;
  font-size: 14px;
  word-break: break-all;
}

/* ---- 身份标识：高级会员 / 免费版。跟着标题走，不单独占一行 ---- */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: var(--sp-2);
  padding: 2px 9px;
  font-size: 12px;
  vertical-align: middle;
  white-space: nowrap;
}
.member-badge .ic { width: 12px; height: 12px; stroke-width: 2; }

/* ---- 个人中心：身份块下面那一行（有效期 + 一个安静的领取入口）。
   不做成卡片：它只有一句话，套一层容器就成了「卡中卡」。 ---- */
.member-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin: 0 0 var(--sp-4);
}
.member-line a { font-weight: 600; }

/* ---- 领取页那张卡：宽屏上两个入口并排。
   .btn.big 是满宽的，在 760px 的正文宽里摞成两条长条会把这一页拉得很长；
   窄屏保持各占一行（拇指够得着），宽屏才并排。 ---- */
@media (min-width: 560px) {
  .redeem-card .btn-row .btn.big { width: auto; flex: 1 1 0; }
}

/* ---- 表单末尾那一行动作。
   .form-actions 在建议页与领取页都在用，此前一直没有样式，按钮是贴着上一行画的。
   这里补一档间距，并让同一行的多个按钮之间有固定的缝。 ---- */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

/* ==========================================================================
   添加到桌面（V1.2.12）
   右下角一个常驻的小按钮，点开是按平台列好的说明。
   位置与 .fab（悬浮主按钮）叠在一起时会往上抬一档：:has() 不支持的老浏览器
   就让它浮在屏幕右下角，也不挡正文。
   ========================================================================== */
.inst {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.inst > * { pointer-events: auto; }

.inst-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: transform var(--t-1) var(--ease), border-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.inst-fab:hover { border-color: var(--accent-deep); transform: translateY(-1px); }
.inst-fab:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.inst-fab.inst-ready { border-color: var(--accent-deep); color: var(--accent); }
.inst-ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 14px;
}
.inst-label { display: none; }
@media (min-width: 900px) {
  .inst { right: 26px; bottom: 26px; }
  .inst-label { display: inline; }
}
/* 页面自带悬浮主按钮时，让开它的位置 */
body:has(.fab) .inst {
  bottom: calc(var(--tab-h) + 84px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
  body:has(.fab) .inst { bottom: 92px; }
}

.inst-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-2);
}
.inst-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.inst-title { margin: 0; font-size: 15px; font-weight: 600; }
.inst-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  min-width: 32px;
  min-height: 32px;
  cursor: pointer;
}
.inst-x:hover { color: var(--text); }
.inst-intro { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.inst-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0 10px;
}
.inst-tab {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 8px 8px;
  min-height: 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease);
}
.inst-tab:hover { color: var(--text); }
.inst-tab.on { color: var(--accent); border-color: var(--accent-deep); }
.inst-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}
.inst-steps li { margin-bottom: 4px; }
.inst-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.inst-one { width: 100%; margin-top: 12px; }
.inst-later {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inst-later:hover { color: var(--text); }
html[data-motion="off"] .inst-fab { transition: none; }

/* ==========================================================================
   V1.2.13 示例模式：游客在回看页（我是什么样的人 / 我的记录）看到的那一组数字
   不是他的。站长要求「示例数据必须与真实数据在视觉上可区分」——
   所以这里给示例页一个自己的样子：卡片换成虚线边 + 一层斜纹，右上角挂一枚常驻标记。
   标记用暖色（金），跟整站的冷色（青绿）刻意分开：
   一眼扫过去就知道「这一屏是样例」，不用读完字。
   ========================================================================== */
.demo-flag-row {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 54px);
  z-index: 15;
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 10px;
  pointer-events: none;
}
.demo-flag {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 8px 6px 11px;
  border: 1px dashed rgba(227, 197, 132, .55);
  border-radius: 999px;
  background: rgba(227, 197, 132, .12);
  color: var(--gold);
  font-size: 12px;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.demo-flag-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}
.demo-flag-txt { min-width: 0; }
.demo-flag-cta {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a2110;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.demo-flag-cta:hover { text-decoration: none; filter: brightness(1.06); }
html[data-theme="light"] .demo-flag { background: rgba(198, 152, 58, .16); border-color: rgba(160, 120, 40, .5); color: #8a6414; }
html[data-theme="light"] .demo-flag-cta { background: #a2761c; color: #fff; }

/* 示例数据所在的那几屏：虚线边框 + 斜纹底。
   斜纹是「占位」的通用语言——真数据是实心的，示例是带纹的。 */
body.is-demo .card {
  border: 1px dashed rgba(227, 197, 132, .34);
  background-image: repeating-linear-gradient(135deg,
      rgba(227, 197, 132, .055) 0 7px, transparent 7px 15px);
}
html[data-theme="light"] body.is-demo .card {
  border-color: rgba(160, 120, 40, .34);
  background-image: repeating-linear-gradient(135deg,
      rgba(168, 126, 32, .05) 0 7px, transparent 7px 15px);
}
/* 示例里的图表与点阵也跟着淡半档：它是「长这样」的示意，不是「你」的量 */
body.is-demo .chart-box,
body.is-demo .dot-grid,
body.is-demo .q-meter { opacity: .82; }
html[data-motion="off"] .demo-flag { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---- V1.2.13 约定页：三态那一块 ----------------------------------------
   这一块的颜色口径只有一条：不用警示色。
   「已过点」不是错误，是一天走到这里了——红色会让人以为出了什么事。
   所以三态共用一套中性底，差别靠字重与那一句事实本身。 */
.commit-state {
  margin: 12px 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 14px);
  background: var(--panel-2);
}
.commit-state-line {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.commit-state-hint { margin: 4px 0 0; }

/* 到点那一档：主按钮跟着事实一起大一号，别让用户在这一屏上找按钮 */
.commit-state[data-state="now"] { border-color: var(--accent-line, var(--line)); }
.commit-state[data-state="now"] .commit-state-line { font-size: 20px; }
.commit-state[data-state="now"] .btn-row { margin-top: 12px; }

/* 「这周先停」这类低频动作：表单不占整行，按钮左对齐贴着事实那一栏 */
.commit-inline-form { margin: 10px 0 0; }
.commit-inline-form .btn { min-height: 34px; }

/* 页内锚点（#commit-form）：换时间不必跳走，滚到下面那张表就行 */
#commit-form { scroll-margin-top: 84px; }

/* 三档时长与五个地点用的是与「预约明天」同一套 chip，
   两处看起来是一家人，不用重新发明一个样式。 */

/* 首页那张约定卡：加一行「什么时候开始」，多一行不改卡片的高度基调 */
.commit-card-when {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.commit-card-foot {
  margin: 6px 0 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   V2.0 时间回响（c=echo）
   这一页的情绪是「翻到过去的一页」，不是「又一个数据面板」：
   卡片之间的留白比别处大一档，留言用一条竖线而不是引号图形——
   引号会把注意力拉到排版上，竖线只是把这句话轻轻框住，读完就走。
   ========================================================================== */
.echo-card + .echo-card { margin-top: 14px; }
/* V2.0 信纸质感：回响里的留言是「过去的你写下来的一句话」，
   用衬线体 + 竖线 + 淡淡的纸纹横线，让它看起来像一封信而不是一条系统消息。 */
.echo-letter {
  margin: 4px 0 0;
  padding: 10px 14px 10px 16px;
  border-left: 2px solid var(--accent-deep);
  border-radius: 0 12px 12px 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(245, 201, 122, .07) 27px 28px),
    linear-gradient(165deg, rgba(245, 201, 122, .05), transparent 60%);
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   V2.0 首页区域 2–5
   （区域 0「接着做上次那件事」的 .resume-strip 写在上面 V1.2.4 留存层那一节里，
     和它替换掉的那张 .resume 卡挨着——读 diff 时才看得出这是一次替换，不是两次发明。）
   这一屏的阅读方向是「一个人的开始 → 有没有人一起」，所以份量自上而下递减：
   区域 2 用按钮级的高度，区域 3 用行的密度，区域 4 用一张卡的份量，区域 5 只留一条分组线。
   全部只读令牌，不新造颜色与半径：#146 换暖纸白那一版应当只动 :root，不动下面这些选择器。
   ========================================================================== */

/* ---- 区域 2：五分钟开始 + 找人一起（场景 A 点名的两枚，必须留在第一屏）。
   .btn.big 默认满宽——那是首屏主按钮的宽度，在并排的两格里要收回来，
   与 c=redeem 那一处同一个做法。表单继续 display:contents，
   这样 <button>（它必须走 POST + CSRF）和旁边的 <a> 才落在同一条 flex 行里、同宽同高。 */
.start-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
}
.quick-form { display: contents; }
.start-row .btn.big { width: auto; flex: 1 1 220px; }
.start-aside {
  flex: 1 1 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;              /* 与 .btn.big 同高：并排时两格不能一高一低 */
  padding: 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);  /* 与 .btn.big 同一档半径，不引入第四个数字 */
  background: var(--panel-2);
  color: var(--text);
  font-size: 16.5px;
  font-weight: 650;
  transition: border-color var(--t-1) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.start-aside:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

/* ---- 次级入口瓦片：V1.2.4 起是首页「五个次级入口排成一行」的样式，
   V2.0 首页五区域撤掉那一行之后，它剩下的唯一用户是内测建议页
   （app/core/feedback.php 的那几张「提个建议 / 看已提交」瓦片）。
   规则原样留着，不跟着首页一起删：删掉它不会让那一页变好，只会让它变成没有边的一段文字。
   首页区域 2 的 .start-aside 就是照着这一组数字写的（同 min-height、同半径档、同过渡），
   所以两处看起来是一家人。 */
.quick-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 9px 12px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  transition: border-color var(--t-1) var(--ease), background-color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.quick-tile:hover { color: var(--text); text-decoration: none; border-color: var(--accent-deep); transform: translateY(-1px); }
/* 同一行里既有 <a> 也有 <button>（表单动作要 POST + CSRF）：把按钮的 UA 默认值抹平，两种才长得一样 */
button.quick-tile { width: 100%; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.quick-tile .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.quick-tile-txt { display: grid; gap: 1px; min-width: 0; }
.quick-tile-hint { font-size: 11.5px; color: var(--muted); font-weight: 450; }

/* ---- 区域 3：最近行动（有记录才出现，所以没有空状态样式）。
   时刻那一栏定宽：三行标题才对齐得出同一条左边缘，扫读时眼睛不用重新找起点。
   分隔只用虚线行，不套卡中卡——.card 已经是容器了。 */
.recent-act .card-title { margin-bottom: var(--sp-2); }
.recent-today { margin: 0 0 var(--sp-3); line-height: 1.6; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li + li { border-top: 1px dashed var(--line); }
.recent-list a {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: baseline;
  padding: 11px 0;
  color: var(--text);
}
.recent-list a:hover { text-decoration: none; }
.recent-list a:hover .recent-title { color: var(--accent); }
.recent-when { font-size: 12.5px; color: var(--muted); }
.recent-title { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.recent-foot { margin: var(--sp-2) 0 0; }
@media (max-width: 380px) {
  /* 320px 上 7.2em + 标题会被挤成两行断字：这里让时刻单独成行，标题占满宽度 */
  .recent-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---- 区域 4：时间回响的页内轻卡。
   它是「翻到过去的一页」，不是一座数据面板：抬头压到 13.5px 的说明档，
   真正的话用正文档；留言那一条沿用 echo-card 的 1px 竖线，两处是一家人。
   刻意不弹窗、不加满屏遮罩——PRD 频控第 5 条：不允许弹窗阻断开始任务。 */
.echo-peek-title {
  margin: 0 0 var(--sp-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.echo-peek-line { margin: 0; font-size: 16.5px; line-height: 1.72; overflow-wrap: anywhere; }

/* ---- 分享卡片（V2.0 回响 P1）。
   这一块是「递给别人看一眼」，所以版式跟回响卡页反过来：
   回响页是竖着读的一页一页，这里是横着摆的几行事实——
   每行左边一个固定宽度的标签，右边是正文，标签那一列用淡色压住，
   读的人一眼能扫完，不必逐行去找「哪个是哪个」。
   公开页（?card=）与详情页预览共用同一套类，两边长得一模一样，
   免得「预览里长这样、点开变了样」。 */
.echo-share-list {
  margin: var(--sp-3) 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.echo-share-list dt {
  padding: 9px 16px 9px 0;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.echo-share-list dd {
  margin: 0;
  padding: 9px 0;
  font-size: 15.5px;
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.echo-share-card { padding-top: var(--sp-4); }
.echo-share-preview {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) 0;
  border-left: 2px solid var(--accent);
  background: var(--panel-2);
}
/* 小标题：这一层原本只在页面上出现过、样式没定，这里补上（卡片里比正文小半档）。 */
.sub-title {
  margin: 0 0 var(--sp-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.echo-share-preview .sub-title {
  margin: 0 0 var(--sp-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.js-share-url {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
@media (max-width: 420px) {
  /* 窄屏上标签与正文挤在一行会互相压断：窄屏改成上下两行 */
  .echo-share-list { grid-template-columns: minmax(0, 1fr); }
  .echo-share-list dt { padding-bottom: 0; border-bottom: 0; }
  .echo-share-list dd { padding-top: 2px; }
}
.echo-peek-letter {
  margin: var(--sp-3) 0 0;
  padding: 2px 0 2px 16px;
  border-left: 1px solid var(--accent-deep);
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.echo-peek .btn-row { margin-top: var(--sp-4); }

/* ---- 区域 5：陪伴入口（始终在，但不抢主位）。
   这一格不是一张新卡：它用一条分组线和一次留白跟上面隔开，
   里面的在场条、固定场次、约定卡各自保持原来的样子（V2.0 挪的是位置，不是长相）。 */
.companion {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
}
.companion > .card-title { margin-bottom: var(--sp-3); }
.companion .presence-row { margin-bottom: var(--sp-3); }
.companion .commit-card { margin: var(--sp-3) 0 0; }
.companion .commit-hint { margin: var(--sp-2) 0 0; }

/* ==========================================================================
   V2.0 个人启动密码（#143）
   这一栏摆的是「从你自己记过的到场里算出来的结论」，不是分析面板：
   所以五条是行，不是卡片；行与行之间用虚线而不是各自的框，
   免得五个结论看起来像五件独立的商品。
   颜色与半径全部走令牌（换暖纸白那一版只动 :root，不动这里）。
   ========================================================================== */

/* 首页轻卡上那句「还是从几点开始」：它是回响那句话的下一句，
   所以跟着同一条左侧线走，但压低一档字号与颜色——先读到回响，再读到它。 */
.echo-peek-start {
  margin: var(--sp-3) 0 0;
  padding: 2px 0 2px 16px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.startup-card .card-title { margin-bottom: var(--sp-2); }
.startup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.startup-list li {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
}
.startup-list li:first-child { border-top: 0; padding-top: 2px; }
/* 规则名是路标：它要能被扫到，但不该抢那句结论的份量 */
.startup-rule {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.startup-say {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--text);
  overflow-wrap: anywhere;
}
/* 样本不够的那几条说「还需要更多记录」——它是一句实话，不是结论，
   所以整行退到弱一档的颜色上，视觉上就不会被当成答案读。 */
.startup-list li.wait .startup-say { color: var(--muted); }
.startup-list li .small { margin-top: 1px; }
.startup-card .btn-row { margin-top: var(--sp-4); }

/* 浓缩版（回响详情页里那一格）：同样五行，字号压一档，行距收一档，
   但不换排版结构——两个地方读起来是同一件事，只是详略不同。 */
.startup-card.compact .startup-list li { padding: 9px 0; }
.startup-card.compact .startup-say { font-size: 14.5px; line-height: 1.6; }

/* ==========================================================================
   V2.0.4 视觉升级层（只追加，不改上文任何规则）
   令牌：给既有变量补光效与质感，不改主色；后出现的声明覆盖同名。
   动画：全部走 --t-* / --ease 令牌，html[data-motion="off"] 与
        prefers-reduced-motion 下统一退化为静态（见文件尾的两段兜底）。
   ========================================================================== */

:root {
  /* 卡片质感：深色主题下给面板加一层顶部高光描边 + 内侧微光，
     玻璃卡不再只是一块半透明灰底。 */
  --card-edge: linear-gradient(180deg, rgba(245, 201, 122, .28), rgba(245, 201, 122, .04) 34%, transparent 60%);
  --card-sheen: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .05), transparent 60%);
  --glow-soft: 0 0 34px -6px rgba(245, 201, 122, .22);
}

/* ---- 卡片：光边 + 顶部高光 + hover 轻浮 ---- */
.card {
  position: relative;
  background-image: var(--card-sheen), var(--grad-panel);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--card-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@media (hover: hover) {
  .card {
    transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2), var(--glow-soft);
  }
}

/* ---- 主按钮：亮起时的呼吸微光（只在 primary 上，别处不给） ---- */
.btn.primary {
  box-shadow: var(--shadow-glow);
}
@media (hover: hover) {
  .btn.primary:hover { box-shadow: var(--shadow-glow), var(--glow-soft); }
}

/* ---- 成功画面（step 收尾页）---- */
.finish-hero {
  display: grid;
  gap: var(--sp-3);
  justify-items: center;
  text-align: center;
  margin-bottom: var(--sp-4);
}
.finish-art {
  position: relative;
  width: min(100%, 460px);
  border-radius: var(--r-2);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-2), var(--glow-soft);
  background: var(--panel-2);
}
.finish-art img {
  display: block;
  width: 100%;
  height: auto;
}
/* 插画上叠一层底部渐隐，让卡片文字区与图过渡自然 */
.finish-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 18, .55));
  pointer-events: none;
}
html[data-theme="light"] .finish-art::after {
  background: linear-gradient(180deg, transparent, rgba(244, 242, 238, .4));
}
/* 完成庆祝：插画弹性浮现 + 一次性的星点散开（纯 CSS，无 JS） */
@keyframes finish-pop {
  0%   { opacity: 0; transform: scale(.92) translateY(14px); }
  60%  { opacity: 1; transform: scale(1.02) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes spark-out {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1); }
}
.finish-hero.is-celebrate .finish-art { animation: finish-pop .66s var(--ease-soft) both; }
.finish-hero.is-celebrate .finish-sparks { position: absolute; inset: 0; pointer-events: none; }
.finish-hero.is-celebrate .finish-sparks i {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(227, 197, 132, .55);
  animation: spark-out 1.15s var(--ease-soft) both;
}
.finish-hero.is-celebrate .finish-sparks i:nth-child(1) { --sx: -72px; --sy: -34px; animation-delay: .25s; }
.finish-hero.is-celebrate .finish-sparks i:nth-child(2) { --sx: 64px;  --sy: -46px; animation-delay: .32s; background: var(--accent-2); box-shadow: 0 0 10px 2px rgba(245, 201, 122, .5); }
.finish-hero.is-celebrate .finish-sparks i:nth-child(3) { --sx: -34px; --sy: 42px;  animation-delay: .4s; }
.finish-hero.is-celebrate .finish-sparks i:nth-child(4) { --sx: 46px;  --sy: 30px;  animation-delay: .47s; background: var(--accent-2); box-shadow: 0 0 10px 2px rgba(245, 201, 122, .5); }
.finish-hero.is-celebrate .finish-sparks i:nth-child(5) { --sx: 0px;   --sy: -62px; animation-delay: .55s; }

/* 完成列表逐条浮现：延迟由 nth-child 依次给，最多认 8 条 */
@keyframes done-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.astep-done-list li {
  animation: done-row-in .5s var(--ease) both;
}
.astep-done-list li:nth-child(1) { animation-delay: .18s; }
.astep-done-list li:nth-child(2) { animation-delay: .28s; }
.astep-done-list li:nth-child(3) { animation-delay: .38s; }
.astep-done-list li:nth-child(4) { animation-delay: .48s; }
.astep-done-list li:nth-child(5) { animation-delay: .58s; }
.astep-done-list li:nth-child(6) { animation-delay: .68s; }
.astep-done-list li:nth-child(7) { animation-delay: .78s; }
.astep-done-list li:nth-child(8) { animation-delay: .88s; }

/* ---- 选地点：文字列表 + 3D 场景预览（V3.11 文字化） ---- */
.place-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.place-card { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.place-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.place-card .pc-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease), background var(--t-2) var(--ease);
}
.place-card .pc-label {
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.place-card:hover .pc-body { border-color: var(--accent-deep); transform: translateY(-2px); }
.place-card input:checked + .pc-body {
  border-color: var(--accent);
  background: var(--grad-accent);
  box-shadow: var(--shadow-glow), var(--glow-soft);
}
.place-card input:checked + .pc-body .pc-label {
  color: var(--accent-ink);
  font-weight: 600;
}
.place-card input:focus-visible + .pc-body { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes place-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.place-cards .place-card { animation: place-card-in .44s var(--ease) both; }
.place-cards .place-card:nth-child(2) { animation-delay: .05s; }
.place-cards .place-card:nth-child(3) { animation-delay: .1s; }
.place-cards .place-card:nth-child(4) { animation-delay: .15s; }
.place-cards .place-card:nth-child(5) { animation-delay: .2s; }
.place-cards .place-card:nth-child(6) { animation-delay: .25s; }
.place-cards .place-card:nth-child(7) { animation-delay: .3s; }
.place-cards .place-card:nth-child(8) { animation-delay: .35s; }

/* 场景预览：选中地点后展示的那块模拟场景 */
.place-scene {
  position: relative;
  margin-top: var(--sp-4);
  border-radius: var(--r-2);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-2), var(--glow-soft);
}
.place-scene img {
  display: block;
  width: 100%;
  /* 同上：旧内核回退为完整显示原图（1:1），现代内核仍裁成 16:9 预览 */
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* 模拟场景氛围：一层缓慢漂移的柔光 + 底部场景名牌 */
@keyframes scene-drift {
  0%   { transform: translate3d(-6%, -4%, 0) scale(1.06); opacity: .8; }
  50%  { transform: translate3d(5%, 3%, 0) scale(1.1);    opacity: 1; }
  100% { transform: translate3d(-6%, -4%, 0) scale(1.06); opacity: .8; }
}
.place-scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(60% 55% at 42% 30%, rgba(245, 201, 122, .22), transparent 66%);
  animation: scene-drift 9s var(--ease-soft) infinite;
  pointer-events: none;
}
.place-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 18, .72));
  pointer-events: none;
}
html[data-theme="light"] .place-scene::after {
  background: linear-gradient(180deg, transparent, rgba(28, 32, 37, .55));
}
.place-scene-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 13, 18, .62);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 13.5px;
  backdrop-filter: blur(6px);
}
html[data-theme="light"] .place-scene-cap { background: rgba(255, 255, 255, .78); }
@keyframes scene-cap-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.place-scene-cap { animation: scene-cap-in .5s var(--ease) both; }
.place-scene[hidden] { display: none; }

/* ---- 兜底一：站点级关动画开关 ---- */
html[data-motion="off"] .finish-hero.is-celebrate .finish-art,
html[data-motion="off"] .astep-done-list li,
html[data-motion="off"] .place-cards .place-card,
html[data-motion="off"] .place-scene-cap {
  animation: none;
}
html[data-motion="off"] .finish-hero.is-celebrate .finish-sparks { display: none; }
html[data-motion="off"] .place-scene::before { animation: none; }
html[data-motion="off"] .card,
html[data-motion="off"] .card:hover,
html[data-motion="off"] .place-card:hover .pc-body {
  transform: none;
}

/* ---- 兜底二：系统级减弱动效 ---- */
@media (prefers-reduced-motion: reduce) {
  .finish-hero.is-celebrate .finish-art,
  .astep-done-list li,
  .place-cards .place-card,
  .place-scene-cap { animation: none; }
  .finish-hero.is-celebrate .finish-sparks { display: none; }
  .place-scene::before { animation: none; }
  .card, .card:hover, .place-card:hover .pc-body { transform: none; }
}

/* ==========================================================================
   到场 V2.1「一起行动」同行样式层（追加在全局 style.css 之后加载）
   沿用 2.0 的暖色低饱和口径：卡片、圆角、按钮全部继承全局 token，
   这里只补同行特有的：成员色点、状态徽章、房间列表、邀请码块。
   ========================================================================== */

.page-narrow { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* 加入确认页六要素 */
.tg-facts { list-style: none; padding: 0; margin: 12px 0; }
.tg-facts li { padding: 6px 0; border-bottom: 1px dashed rgba(127, 127, 127, .18); font-size: .95rem; }
.tg-facts li:last-child { border-bottom: 0; }

/* 房间列表（公开同行） */
.tg-room-list { list-style: none; padding: 0; margin: 0; }
.tg-room-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(127, 127, 127, .18);
}
.tg-room-list li:last-child { border-bottom: 0; }
.tg-room-list .small { display: block; margin-top: 2px; }

/* 内联表单（邀请码 / 开关） */
.tg-inline { display: flex; gap: 8px; align-items: center; }
.tg-inline input[type="text"] { flex: 1; min-width: 0; letter-spacing: .12em; text-transform: uppercase; }

/* 成员名单（同行房内，room.php 复用） */
.tg-roster { list-style: none; padding: 0; margin: 8px 0; }
.tg-roster li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px;
  background: rgba(127, 127, 127, .06); margin-bottom: 6px;
}
.tg-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(127,127,127,.12); }
.tg-roster .who { flex: 1; min-width: 0; }
.tg-roster .who .intent { display: block; font-size: .82rem; opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-state {
  flex: none; font-size: .74rem; padding: 3px 9px; border-radius: 999px;
  background: rgba(127, 127, 127, .14); white-space: nowrap;
}
.tg-state.is-acting   { background: rgba(96, 165, 133, .22); }
.tg-state.is-paused   { background: rgba(227, 197, 132, .30); }
.tg-state.is-away     { background: rgba(168, 184, 224, .28); }
.tg-state.is-done     { background: rgba(245, 201, 122, .32); }
.tg-state.is-left     { opacity: .5; }
.tg-state.is-disconnected { background: rgba(216, 160, 180, .30); }
.tg-crown { flex: none; font-size: .8rem; }

/* 鼓励按钮组（预设五种，无自由文本） */
.tg-cheers { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tg-cheers .btn { font-size: .85rem; }
.tg-cheer-log { list-style: none; padding: 0; margin: 8px 0; font-size: .88rem; }
.tg-cheer-log li { padding: 5px 0; border-bottom: 1px dashed rgba(127,127,127,.15); }
.tg-cheer-log li:last-child { border-bottom: 0; }

/* 邀请码展示 */
.tg-invite {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(127, 127, 127, .08);
}
.tg-invite code {
  font-size: 1.15rem; letter-spacing: .3em; font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* 个人时长小字（房间共同计时之外自己的行） */
.tg-own { font-size: .82rem; opacity: .75; }

/* 手机端收紧 */
@media (max-width: 480px) {
  .tg-roster li { padding: 7px 8px; }
  .tg-state { font-size: .7rem; padding: 2px 7px; }
  .tg-invite code { font-size: 1rem; letter-spacing: .2em; }
}

/* V2.1.1 产品逻辑梳理：首页场景卡 / 轻量入口行 / gather 好友同行区 */
.place-entry{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.1rem;border:1.5px dashed rgba(122,92,255,.45);border-radius:14px;margin:.85rem 0;text-decoration:none;color:inherit;background:rgba(122,92,255,.05)}
.place-entry:hover{background:rgba(122,92,255,.09)}
.place-entry-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(122,92,255,.14);color:var(--accent,#7a5cff)}
.place-entry-body{display:flex;flex-direction:column;min-width:0}
.place-entry-title{font-size:.95rem}
.place-entry-sub{font-size:.8rem;color:var(--muted,#8a8478);margin-top:.15rem}
.place-entry-cta{flex:none;margin-left:auto;font-size:.85rem;color:var(--accent,#7a5cff);white-space:nowrap}
.quick-links{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.quick-links .chip{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .9rem;border:1px solid rgba(0,0,0,.08);border-radius:999px;font-size:.85rem;text-decoration:none;color:inherit}
.quick-links .chip:hover{border-color:rgba(122,92,255,.4)}
.tg-create,.tg-join{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin:.5rem 0}
.tg-create input[type=text],.tg-join input[type=text]{flex:1;min-width:10rem}
.tg-more{margin-top:.4rem}
@media (max-width:640px){.place-entry-cta{display:none}}

/* V2.1.2 场景照片：地点卡内用户上传的照片与常用插画同一节奏（1:1 裁切） */
/* V3.11 文字化：选卡已无图片，此规则移除 */
.place-sec-img{border-radius:12px;display:block;margin:.3rem 0}
.pc-img-upload{align-items:center;gap:.5rem;flex-wrap:wrap}
.pc-img-label{font-size:.8rem;color:var(--muted,#8a8478)}
.pc-img-hint{margin:.2rem 0 .6rem}

/* ==========================================================================
 V2.1.3 全产品 UI 优化：六色功能域体系 + 统一卡片修饰 + 进场编排
 颜色只落在图标底、标题条、选中态描边三处，不整卡大面积染色；
 深浅主题各一套（light 段覆盖），均为低饱和同明度区间。
 ========================================================================== */
:root {
 --c-action: #7aa8d8; /* 行动：蓝 */
 --c-goal: #8f9fd8; /* 目标：蓝紫 */
 --c-together:#F5C97A; /* 同行：绿（沿用主薄荷） */
 --c-team: #79c2c9; /* 团队：青绿 */
 --c-record: #d8a06a; /* 记录：橙 */
 --c-me: #b48fd0; /* 个人空间：紫 */
 --c-camp: #d8b06a; /* 陪伴营：暖金 */
 --c-ask: #79c2c9; /* 问一下：青 */
 --c-wish: #d0a890; /* 许愿池：暖沙 */
}
html[data-theme="light"] {
 --c-action: #3d6f9e;
 --c-goal: #4a5fa8;
 --c-together:#B98A3C;
 --c-team: #3f7f8f;
 --c-record: #b06e3a;
 --c-me: #8a5fa8;
 --c-camp: #a6791e;
 --c-ask: #3f7f8f;
 --c-wish: #a06a48;
}
/* 功能域卡片修饰：标题条与左侧色条换色，底色不动 */
.card.f-action .card-title::before { background: var(--c-action); }
.card.f-goal .card-title::before { background: var(--c-goal); }
.card.f-together.card-title::before { background: var(--c-together); }
.card.f-team .card-title::before { background: var(--c-team); }
.card.f-record .card-title::before { background: var(--c-record); }
.card.f-me .card-title::before { background: var(--c-me); }
/* 功能探索卡容器：两列栅格（V2.1.3 定义，V2.1.5 补回——合并样式时容器规则丢失导致卡片塌成单列窄条） */
.fun-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
@media (max-width: 640px) {
  .fun-cards { grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
}
.fun-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
}
.fun-card b { display: block; font-size: 15px; margin-bottom: 3px; flex: none; white-space: nowrap; }
.fun-card > span:not(.fun-ic) { display: block; font-size: 13px; color: var(--muted, #6b7280); line-height: 1.5; flex: 1; min-width: 0; }
.fun-card .fun-ic { flex: none; }
/* 功能域图标底：探索卡 / 入口卡通用 */
.fun-ic {
 width: 42px; height: 42px;
 border-radius: 12px;
 display: grid; place-items: center;
 background: color-mix(in srgb, var(--fc) 16%, transparent);
 color: var(--fc);
 flex: none;
}
@supports not (color: color-mix(in srgb, red 10%, blue)) {
 .fun-ic { background: rgba(127, 127, 127, .14); }
}
/* 功能域选中/悬停描边 */
.card.f-goal:hover, a.card.f-goal:hover { border-color: var(--c-goal); }
.card.f-action:hover { border-color: var(--c-action); }
a.fun-card:hover { border-color: var(--fc, var(--accent)); }
/* 统一进场编排：与 arr-enter 同曲线，供探索卡等新块使用 */
@keyframes fun-card-in {
 from { opacity: 0; transform: translateY(12px) scale(.98); }
 to { opacity: 1; transform: translateY(0) scale(1); }
}
.fun-cards .fun-card { animation: fun-card-in .44s var(--ease) both; }
.fun-cards .fun-card:nth-child(2) { animation-delay: .06s; }
.fun-cards .fun-card:nth-child(3) { animation-delay: .12s; }
.fun-cards .fun-card:nth-child(4) { animation-delay: .18s; }
.fun-cards .fun-card:nth-child(5) { animation-delay: .24s; }
.fun-cards .fun-card:nth-child(6) { animation-delay: .30s; }
.fun-cards .fun-card:nth-child(7) { animation-delay: .36s; }
html[data-motion="off"] .fun-cards .fun-card { animation: none; }
/* 点按反馈：移动端按下微缩，配合消除系统高亮 */
.fun-card { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform var(--t-1) var(--ease), border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.fun-card:active { transform: scale(.985); }

/* ==========================================================================
 V2.1.4 首页底部友情链接：轻量 chip 列表，不抢视觉；移动端自动换行
 ========================================================================== */
.friend-links-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.friend-links-list li a {
 display: inline-block;
 padding: 6px 14px;
 border-radius: 999px;
 border: 1px solid var(--line, rgba(127,127,127,.25));
 color: var(--muted, inherit);
 text-decoration: none;
 font-size: 13px;
 -webkit-tap-highlight-color: transparent;
 touch-action: manipulation;
 transition: border-color var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.friend-links-list li a:hover { border-color: var(--accent); color: var(--accent); }
.friend-links-list li a:active { transform: scale(.97); }

/* ── V2.1.5 快捷访问体系 ── */
/* 首页轻引导条：内嵌一条，不弹窗不挡流程 */
.quick-guide { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px; margin-bottom: 10px; border-left: 3px solid var(--accent); }
.quick-guide-body { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex: 1; }
.quick-guide-body b { font-size: 14px; }
.quick-guide-body span { font-size: 12px; color: var(--muted); }
.quick-guide-act { display: flex; gap: 8px; align-items: center; }
.btn.small.text { background: none; border: none; color: var(--muted); padding: 6px 8px; cursor: pointer; }
.btn.small.text:hover { color: var(--fg); }

/* 快捷访问中心页 */
.qa-card { margin-top: 16px; }
.qa-steps { margin: 8px 0 4px; padding-left: 22px; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.qa-url { margin: 4px 0; }
.qa-url code { display: block; padding: 10px 12px; background: var(--bg-soft, rgba(127,127,127,.08)); border-radius: 8px; font-size: 13px; word-break: break-all; user-select: all; }
.qa-note { margin-top: 8px; }
.qa-qr-box { display: flex; justify-content: center; padding: 12px 0; }
.qa-qr-box canvas { border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.10); }
.qa-tail { margin: 20px 4px 32px; line-height: 1.7; }

/* 复制/保存成功 toast */
.qa-toast { position: fixed; left: 50%; bottom: 48px; transform: translate(-50%, 16px); background: var(--fg, #1f2933); color: var(--bg, #fff); padding: 10px 18px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 999; }
.qa-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
 v4 视觉令牌层（规格 3.2）：夜空四层 + 灯色唯一强调色
 dark --bg-0 #141B2B / --bg-1 #1B2436 / --bg-2 #212C42 / --bg-3 #2A3550
 light --bg-0 #F4F1EA / --bg-1 #FBF9F4 / --bg-2 #FFFFFF / --bg-3 #EDE8DE
 灯色 --lamp #F5C97A 前台唯一强调色（红只许后台）；直接覆盖上面的变量。
 ========================================================================== */
:root {
 --bg-0: #141B2B;
 --bg-1: #1B2436;
 --bg-2: #212C42;
 --bg-3: #2A3550;
 --lamp: #F5C97A;
 --lamp-deep: #C08A2E;
 --lamp-soft: rgba(245, 201, 122, .14);
}
html[data-theme="light"] {
 --bg-0: #F4F1EA;
 --bg-1: #FBF9F4;
 --bg-2: #FFFFFF;
 --bg-3: #EDE8DE;
}
/* 浅色主题下 lamp 强调按钮的墨色：白底改为深墨保证对比 */
html[data-theme="light"] .btn.primary { color: #F4F1EA; }
/* 焦点可见性：灯色描边统一 */
:focus-visible { outline-color: var(--lamp); }

/* ═══════ V2.2.2 首页昼夜氛围 + 视觉翻新（只作用于首页新增类，不碰旧类布局）═══════ */
/* 问候条：日/月小图形 + 一句按时段变的话 */
.home-daypart {
 display: inline-flex; align-items: center; gap: 8px;
 margin: 2px 0 4px; font-size: 15px;
 color: var(--muted, #8a93a8);
}
.home-daypart .dp-ic {
 width: 16px; height: 16px; border-radius: 50%;
 display: inline-block; flex: none;
}
/* 白天：一轮小太阳 */
.home-daypart .dp-ic,
.home-daypart.dp-day .dp-ic {
 background: radial-gradient(circle at 38% 34%, #fbd87e, #f0b44e 70%);
 box-shadow: 0 0 8px rgba(240, 180, 78, .45);
 animation: dp-sun 7s ease-in-out infinite;
}
@keyframes dp-sun {
 0%, 100% { box-shadow: 0 0 6px rgba(240, 180, 78, .35); }
 50% { box-shadow: 0 0 11px rgba(240, 180, 78, .6); }
}
/* 暮色：小太阳压暗 */
.home-daypart.dp-dusk .dp-ic {
 background: radial-gradient(circle at 38% 34%, #e8a56b, #c97a4e 70%);
 box-shadow: 0 0 8px rgba(201, 122, 78, .4);
}
/* 夜里：弯月（圆挖偏移阴影）+ 灯色 */
.home-daypart.dp-night .dp-ic {
 background: transparent;
 box-shadow: inset 5px -3px 0 0 #F5C97A;
 animation: none;
}
/* 主行动卡：升为首页主角 */
.capture {
 border-radius: 14px;
 box-shadow: 0 2px 14px rgba(13, 21, 18, .06);
}
html[data-theme="dark"] .capture,
:root:not([data-theme="light"]) .capture {
 box-shadow: 0 2px 16px rgba(0, 0, 0, .35);
 border-color: #2A3550;
}
/* 宫格：轻量呼吸感，按压/悬停有反馈但克制 */
.fun-cards .fun-card {
 transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fun-cards .fun-card:hover {
 transform: translateY(-3px) scale(1.01);
 box-shadow: 0 4px 14px rgba(13, 21, 18, .08);
}
.fun-cards .fun-card:active { transform: translateY(0); }
/* 夜里宫格卡与夜屋面板同族 */
html[data-theme="dark"] .fun-cards .fun-card,
:root:not([data-theme="light"]) .fun-cards .fun-card {
 border-color: #2A3550;
 background: #1B2436;
}
html[data-theme="dark"] .fun-cards .fun-card:hover,
:root:not([data-theme="light"]) .fun-cards .fun-card:hover {
 border-color: #F5C97A66;
 box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
/* 动效关停兜底 */
html[data-motion="off"] .home-daypart .dp-ic,
html[data-motion="off"] .fun-cards .fun-card { animation: none; transition: none; transform: none; }

/* ─── V2.2.2 首页问候条换三维小灯灵形象（同房间页 assets/img/spirit.png）─── */
.home-daypart .dp-ic,
.home-daypart.dp-day .dp-ic,
.home-daypart.dp-dusk .dp-ic,
.home-daypart.dp-night .dp-ic {
 width: 48px; height: 48px;
 background: url('../img/spirit.png?v=3') center / contain no-repeat;
 box-shadow: none; animation: none;
 filter: drop-shadow(0 1px 4px rgba(214, 164, 74, .35));
}
.home-daypart.dp-dusk .dp-ic { filter: brightness(.92) drop-shadow(0 1px 4px rgba(201, 122, 78, .3)); }
.home-daypart.dp-night .dp-ic { filter: brightness(.95) drop-shadow(0 0 7px rgba(245, 201, 122, .45)); }

/* ─── V2.2.2 首页桌面端适配（≥900px）─── */
@media (min-width: 900px) {
 .home-daypart { font-size: 16px; margin-top: 8px; }
 .home-daypart .dp-ic,
 .home-daypart.dp-day .dp-ic,
 .home-daypart.dp-dusk .dp-ic,
 .home-daypart.dp-night .dp-ic { width: 60px; height: 60px; }
 .home-head { font-size: 30px; }
 .home-sub { font-size: 15px; }
 .capture { padding: 22px 24px; border-radius: 16px; }
 .fun-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
 .fun-card { padding: 16px 18px; }
}


/* ─── V2.4.2 问候条「灯前小景」：小灵前景浮层 + 文字中景，轻透视 ─── */
.home-daypart {
 perspective: 700px;
 transform-style: preserve-3d;
}
.home-daypart .dp-ic {
 animation: dp-float 5.5s ease-in-out infinite;
}
@keyframes dp-float {
 0%, 100% { transform: translateZ(26px) rotate(-2deg) translateY(0); }
 50% { transform: translateZ(26px) rotate(2deg) translateY(-8px); }
}
.home-daypart > span:last-child { transform: translateZ(10px); display: inline-block; }
@media (prefers-reduced-motion: reduce) {
 .home-daypart .dp-ic,
 .home-daypart > span:last-child { animation: none; transform: none; }
}

/* V2.5 施工单 US-009：更多页三组清单 */
.more-list { list-style: none; margin: 0; padding: 0; }
.more-list li { border-bottom: 1px dashed var(--line, rgba(128,128,128,.18)); }
.more-list li:last-child { border-bottom: 0; }
.more-list a { display: block; padding: 10px 2px; text-decoration: none; }
.more-list a:hover { opacity: .8; }

/* V2.5 US-030/031：首页站内通知一行 + 站长在场挂牌（灰底、无感叹号） */
.notify-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px;
 background: var(--panel-2, rgba(128,128,128,.10)); border: 1px dashed var(--line, rgba(128,128,128,.25));
 border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.notify-ok-form { margin: 0; flex: none; }
.host-strip { margin: 0 0 10px; opacity: .8; }

/* ---- V3.0 工单9：变小入口（首屏「现在，想试着开始点什么？」） ---- */
.tiny-entry { margin-bottom: 14px; }
.tiny-cta { cursor: pointer; font-weight: 600; font-size: 1.02em; list-style: none; }
.tiny-cta::-webkit-details-marker { display: none; }
.tiny-cta::after { content: '▾'; margin-left: 6px; color: var(--accent); }
details[open] .tiny-cta::after { content: '▴'; }
.tiny-pick { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tiny-tag { border-radius: 999px; padding: 6px 14px; font-size: .92em; }
.tiny-form { flex: 1 1 220px; min-width: 200px; }
.tiny-form input[type="text"] { width: 100%; margin-bottom: 8px; }
.tiny-confirm { font-weight: 600; margin-bottom: 8px; }
.tiny-confirm-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tiny-confirm-btns form.inline { display: inline; margin: 0; }
.tiny-next { margin-top: 10px; }
html[data-theme="light"] .tiny-entry { background: var(--panel); }

/* =========================================================
 V3.2 桌面端全局适配（≥900px）
 手机档规则不动，这里只放宽桌面观感：内容变宽、卡片呼吸、表格可读。
 ========================================================= */
@media (min-width: 900px) {
 :root { --wrap: 880px; }
 .wrap { padding: 34px 32px 64px; }
 .card { padding: 20px 24px; border-radius: 18px; }
 .card-title { font-size: 19px; }
 .btn { min-height: 46px; }
 /* 顶栏与正文同宽，避免导航飘满整屏 */
 .topbar { max-width: 100%; }
 .topbar > .wrap, .topbar .wrap, .topbar > div { max-width: 880px; margin: 0 auto; }
 /* 宽屏下两栏卡片流（首页 fun-cards 已有自己的档，这里只照顾普通 card 页） */
 main.wrap > .card + .card { margin-top: 16px; }
 .foot { font-size: 13px; }
}
@media (min-width: 1200px) {
 :root { --wrap: 960px; }
 .wrap { padding: 40px 36px 72px; }
}
/* 桌面端表格：后台与报表页更可读 */
@media (min-width: 900px) {
 .tbl th, .tbl td, .table th, .table td { padding: 10px 14px; font-size: 14px; }
 .tbl, .table { border-radius: 12px; overflow: hidden; }
}
