/* ============================================================
   回响 / Echo —— 样式表（v2：一对一回应）
   ------------------------------------------------------------
   主题：近白底 + 橙红强调色。

   配色不是凭眼睛调的：所有组合都按 WCAG 算过，
   node tools/check-contrast.mjs 可以随时复算。
   深色版（深夜蓝 + 暖黄）做过一版，代码留在
   git 的 night-theme 分支上 —— 想换回来不用重写。

   其余设计参数来自 6 个真实站点的实测（见 设计规范.md）：
     ① 高饱和色全页最多 3 处（品牌点、tab 选中线、主按钮）
     ② 大圆角（18/24/32），柔和的关键
     ③ 字重细腻过渡（400/500/600），不要 400 跳 700
     ④ 正文 16px，靠间距拉层次而不是放大字
     ⑤ 底色近白（#fbfbfa），不用纯白
   移动优先：先写手机，再用 min-width 往上加。
   ============================================================ */

:root {
  --bg:        #fbfbfa;
  --surface:   #ffffff;
  --surface-2: #f6f6f4;
  --surface-3: #efefec;
  --line:      rgba(17, 17, 17, 0.07);
  --line-2:    rgba(17, 17, 17, 0.13);

  --text:   #1a1a18;
  --text-2: #6e6e69;
  /* 原来是 #9a9a93 —— 在背景上只有 2.83:1，placeholder 是 2.62:1，
     都不到 WCAG AA 要求的 4.5:1。
     这不是"有点淡"的问题：这一档正好用在两个**唯一的引导**上 ——
       · placeholder「我卡在______」—— 用户第一眼看到的提示
       · 「还没人回」「已有 N 句回应」—— 告诉他这儿有没有人理的
     而这个产品是**在手机上、被卡住的时候**打开的，
     室外强光下 2.6:1 基本读不出来。

     压深到刚好达标（背景 4.55:1 / 卡片 4.71:1）。
     代价要说清：它和 --text-2 的对比度只剩 1.09:1，
     也就是说**两档灰在观感上分不开了** —— 那是数学上躲不掉的
     （4.5:1 的 12px 灰，必然接近 14px 的灰）。
     所以层次改由**字号**承担（12/13.5/15.5px 三档），
     颜色只负责"这是正文"还是"这是次要信息"。 */
  --text-3: #707069;

  --hot:       #e4572e;
  --hot-soft:  #fdefe9;
  --hot-ink:   #ffffff;   /* 主按钮上的字（暖色底配白字） */
  --mint:      #1f7a5c;
  --mint-soft: #edf6f2;
  --warn:      #a8501f;
  --warn-soft: #fbf0e8;

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-2: 0 2px 8px -2px rgba(17, 17, 17, 0.06), 0 1px 2px rgba(17, 17, 17, 0.03);
  --shadow-3: 0 12px 32px -16px rgba(17, 17, 17, 0.14), 0 1px 3px rgba(17, 17, 17, 0.04);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
          "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-quote: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* ============================================================
   [hidden] 必须真的能藏住东西
   ------------------------------------------------------------
   这条看起来多余，其实是**修一个真实存在的 bug**（用户实测发现的）：

     搜索框里打「英语」，提示说「找到 1 条」——
     说明过滤逻辑跑对了 —— 但下面 12 张卡片**全都还在**。

   原因是 CSS 优先级：
     · `[hidden]` 在浏览器默认样式表里只是 `display: none`，**优先级最低**
     · 而 `.point { display: block }` 是类选择器，**压过它**
   于是 JS 设了 `el.hidden = true` 也照样显示。

   这不是搜索一个人的问题 —— 凡是「给带显式 display 的元素设 hidden」
   都会静默失效。而它**不报错**，只是"该藏的东西没藏"，
   所以从代码上、从单元测试里都看不出来
   （测试查的是 `.hidden` 属性，那个确实是 true）。

   一条兜底规则解决全部：`[hidden]` 强制 `display: none`。
   用 !important 是有意的 —— 它就是要在任何情况下都赢。
   ============================================================ */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.night {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 40% at 50% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 100%), var(--bg);
}

/* ============================================================
   顶栏 + 导航
   ============================================================ */
.topbar {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 20px 4px;
}

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }

.brand__mark {
  flex: none;
  width: 7px; height: 7px;
  background: var(--hot);
  border-radius: 50%;
}

.brand__text { display: flex; align-items: baseline; gap: 6px; }
.brand__text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand__text em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* 三视图切换 */
.tabs {
  display: flex;
  gap: 4px;
  max-width: 640px;
  margin: 14px auto 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 13px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
  white-space: nowrap;
}

.tab:hover { color: var(--text-2); }
.tab.is-active { color: var(--text); font-weight: 600; }

/* 选中态：全页仅有的三条高饱和色线之一 */
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  background: var(--hot);
  border-radius: 2px;
}

.tab__num {
  min-width: 17px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 999px;
}

.tab.is-active .tab__num { color: #fff; background: var(--text); }

/* ============================================================
   版面
   ============================================================ */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero { padding: 36px 0 22px; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.hero__kicker .dot {
  width: 5px; height: 5px;
  background: var(--hot);
  border-radius: 50%;
  animation: glow 3.6s var(--ease) infinite;
}

@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(27px, 7.4vw, 38px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.03em;
}

.hero__sub { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--text-2); }
.hero__sub strong { color: var(--text); font-weight: 600; }

/* ============================================================
   「这不是论坛」——把定位说出来
   ------------------------------------------------------------
   为什么要有：
   这个作品外壳像论坛（列表、回复、筛选），不说清差别，
   用户和评委都会按论坛去理解它，于是它就成了
   "一个做得不太好的贴吧"。（这是用户自己提出来的问题。）

   样式上刻意**轻**：一行小字 + 左侧一条细线，
   不占视觉重心、不抢输入框。它是"一句说明"，
   不是"一个卖点"—— 做成大色块反而像广告。
   ============================================================ */
.hero__notforum {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.hero__notforum strong { color: var(--text); font-weight: 600; }

.br-mobile { display: none; }

.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 34px 0 20px;
}

.view-title { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.026em; }
.view-sub { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

.section-title {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
}

.hint { margin: 0; padding: 14px 0; font-size: 14px; line-height: 1.65; color: var(--text-3); }

/* ============================================================
   卡片 / 输入
   ============================================================ */
.card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}

.field {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 18px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.field:focus-within {
  background: var(--surface);
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

/* 早先这里有个静态的「我卡在」前缀，但输入框的 placeholder 里也有
   「我卡在______」，两个一起显示就成了"我卡在我卡在______"。
   现在前缀去掉，只留 placeholder —— 用户开始打字时它自然消失，
   上面的副标题也已经交代了语境。 */
.field__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 0;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
}

.field__input::placeholder { color: var(--text-3); font-weight: 400; }

.field__hint { margin: 10px 4px 16px; font-size: 13px; color: var(--text-3); }
.field__hint[data-state="ok"] { color: var(--text-2); }
.field__hint[data-state="long"] { color: var(--warn); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 22px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.008em;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.16s, transform 0.14s var(--ease), color 0.16s, opacity 0.16s;
}

.btn .icon { width: 17px; height: 17px; flex: none; }

/* 主按钮：墨色底 + 白字。
   近白底上按钮是页面最重的一块，靠"重"当焦点，不靠"亮"。 */
.btn--primary { color: #fff; background: var(--text); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: #2c2c29; }
.btn--primary:active { transform: scale(0.994); }
.btn--primary:disabled { opacity: 0.4; cursor: default; transform: none; }

.btn--ghost { color: var(--text-2); background: var(--surface-2); }
.btn--ghost:hover { color: var(--text); background: var(--surface-3); }

.btn--small { width: auto; padding: 10px 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn:disabled { opacity: 0.4; cursor: default; }

.link-btn {
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}

.link-btn:hover { color: var(--text); }

/* 快速入口 */
.quick { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.quick__label { display: block; margin: 0 4px 10px; font-size: 13px; color: var(--text-3); }
.quick__row { display: flex; flex-wrap: wrap; gap: 6px; }

.quick__chip {
  padding: 9px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
  background: var(--surface-2);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}

.quick__chip:hover { color: var(--text); background: var(--surface-3); }

/* ============================================================
   挂出去之后的回执
   ============================================================ */
.posted {
  margin-top: 18px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  animation: rise 0.32s var(--ease);
}

.posted__label { margin: 0 0 10px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }

.posted__text {
  margin: 0 0 12px;
  font-family: var(--font-quote);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.posted__note { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.posted__replies { margin-bottom: 14px; }

/* ============================================================
   等待回响
   ------------------------------------------------------------
   声波从中心往外扩散：三个同心圆 + 中心一个不动的小点。
   纯 CSS，没有 JS、没有 SVG、没有图片。

   做法：三个环大小一样，用 transform: scale() 从 0.5 扩到 2.2，
   同时透明度从 0.55 淡到 0，各自错开 0.9s 启动 —— 于是看起来
   像一圈一圈不停往外推的水波。

   参数说明：
     · 周期 2.7s：比心跳慢一点，是"等"的节奏，不是"急"的节奏
     · 错开 0.9s（正好 1/3 周期）：三个环均匀分布，不会同时冒出
     · 只用 transform / opacity：这两个属性走合成层，手机上不掉帧
   ============================================================ */
.waiting {
  margin: 4px 0 18px;
  padding: 26px 20px 24px;
  text-align: center;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  animation: rise 0.32s var(--ease);
}

.waiting__waves {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
}

/* 环和中心点都绝对定位在正中间 */
.waiting__ring,
.waiting__core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.waiting__ring {
  width: 76px;
  height: 76px;
  border: 1.5px solid var(--hot);
  opacity: 0;
  animation: echo-wave 2.7s var(--ease) infinite;
}

/* 三个环错开启动，看起来是连续往外推 */
.waiting__ring:nth-child(1) { animation-delay: 0s; }
.waiting__ring:nth-child(2) { animation-delay: 0.9s; }
.waiting__ring:nth-child(3) { animation-delay: 1.8s; }

/* 中心那颗不动的小点：声音的源头 */
.waiting__core {
  width: 9px;
  height: 9px;
  background: var(--hot);
  box-shadow: 0 0 12px rgba(228, 87, 46, 0.7);
}

@keyframes echo-wave {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.55; }
  70%  { opacity: 0.12; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.waiting__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.waiting__note {
  margin: 0 auto;
  max-width: 30em;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* 系统开了"减少动效"就只留中心那颗点，不做扩散。
   等待本身还在，只是不用动画表达。 */
@media (prefers-reduced-motion: reduce) {
  .waiting { animation: none; }
  .waiting__ring {
    animation: none;
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.85);
  }
  .waiting__ring:nth-child(2),
  .waiting__ring:nth-child(3) { display: none; }
}

/* ============================================================
   此刻有人（首页那几个真实数字）
   ------------------------------------------------------------
   一对一产品最怕"我喊出去没人理"。这条横条是唯一能让人敢喊的东西：
   它证明这里真的有人在。
   数字全部来自数据库（echo_stats），不足时如实说"刚开始"，
   绝不做假热闹 —— 评委问一句"这数字哪来的"就穿帮。
   ============================================================ */
.live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: var(--r);
}

/* 一颗会呼吸的小点，呼应"此刻" */
.live::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--hot);
  border-radius: 50%;
  animation: glow 2.6s var(--ease) infinite;
}

.live strong { color: var(--text); font-weight: 600; }

/* ============================================================
   后来呢（回头问一句）
   ------------------------------------------------------------
   补上这条链的最后一环：
     你说出来 → 陌生人回你一句 → 你真的去做了，而且回来说了结果

   三条设计约束：
     · 一次只问一条。一次抛一堆问题就变成负担了。
     · 「还没做」和「做了」在视觉上同等份量 —— 不能把"还没做"
       做成次要选项。这产品的前提是"没有评判、没有压力"，
       如果"还没做"看起来像失败，这条前提当场就破了。
     · 答完就走，不追问、不弹第二个问题追债。
   ============================================================ */
.followup {
  margin: 0 0 20px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--hot);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  animation: rise 0.32s var(--ease);
}

.followup__label {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--hot);
}

/* 先复述那条回应 —— 让人想起"当时那句话是什么" */
.followup__echo {
  margin: 0 0 16px;
  font-family: var(--font-quote);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.followup__q { margin: 0 0 14px; font-size: 14.5px; color: var(--text-2); }

.followup__btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* 两个按钮一样重 —— 「还没做」不是次要选项 */
.followup__btns .btn { flex: 1 1 auto; min-width: 118px; }

.followup__hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ============================================================
   回应区的引导
   ------------------------------------------------------------
   要解决的问题（真实发生过）：
     有人对"晚上睡不着"回的是「你可以看一会手机」—— 那反而加重了问题。
     还有人回「你心里出问题了，你去看医生吧」—— 那是评判。
   而限制只有"30 字以内"，字数约束不了质量。

   设计上守两条：
     · 只提示，不拦截。写的人愿意写才是最要紧的；
       硬拦会让人不敢写，那是拿命根子换质量。
     · 用正面说法。"不要讲道理"这种否定句本身就是在评判写的人。
   ============================================================ */
.reply-shape {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

/* 针对性提示：打字时出现，说清"这句可以怎么更好" */
.reply-tip {
  margin: 8px 0 0;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: var(--r);
  animation: rise 0.22s var(--ease);
}

/* 这句已经是好形状 —— 给个安静的肯定，不要打断 */
.reply-tip.is-good {
  color: var(--mint);
  background: var(--mint-soft);
}

/* 这句像在评价对方 —— 最该说清的一类，所以给它一点重量 */
.reply-tip.is-judge {
  color: var(--warn);
  background: var(--warn-soft);
}

/* ============================================================
   回响集：同一个困境下的多条回应
   ------------------------------------------------------------
   为什么要有这一条小字：
   "回响"这个名字本该是"一声喊出去，回来好几声"，
   但界面原来一次只显示一条，名字比功能大。
   而且人多的时候，先告诉他有几个人回了，他才知道值不值得往下看。
   ============================================================ */
.echo-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.echo-count strong { color: var(--text); font-weight: 600; }

/* 一条细竖线，像声波叠在一起 */
.echo-count::before {
  content: '';
  flex: none;
  width: 3px;
  height: 14px;
  background: var(--hot);
  border-radius: 2px;
}

/* ============================================================
   回响者：我回给别人的那些，攒下了什么
   ------------------------------------------------------------
   为什么值得做：
   这个产品里"被看见"不能只属于提问的人。愿意回一句的人也需要知道
   自己那几句有没有落地 —— 否则回几次没反馈，就不回了。
   而"有人愿意回"是这条链的命根子。

   写法上刻意不用排行榜、不用等级、不用积分 ——
   那会把善意变成任务，和"没有评判、没有压力"直接冲突。
   只陈述事实：你回过几个，其中几个说有用。
   ============================================================ */
.helper {
  margin: 20px 0 16px;
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  animation: rise 0.3s var(--ease);
}

.helper__line {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.helper__line strong {
  font-weight: 600;
  color: var(--hot);
}

.helper__sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================================================
   有人回你了（安静的数字）
   ------------------------------------------------------------
   设计上刻意避开"通知"那套语言：
     · 不用红点 —— 红点的意思是"你必须处理"，这里没有必须
     · 不用感叹号 —— 那是催促
     · 不弹窗、不震动、不推通知 —— 用户定过"没有压力"
   只做一件小事：在"我的困境"旁边放一个小数字，说清有几条新的；
   进去看过了就自己消失。
   ============================================================ */
.tab__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  margin-left: 5px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--hot);
  background: var(--hot-soft);
  border-radius: 9px;
  vertical-align: 1px;
}

/* ============================================================
   我经历过这个（按分类筛困境）
   ------------------------------------------------------------
   为什么值得做：
   回一句自己真的走过的困境，比随机回一条更有说服力 ——
   你能说出"当时我是怎么出来的"，而不是"我觉得你应该"。
   （兔乐靠"同城+同时段"提高匹配质量，这里靠"同类经历"。）

   设计上守住一条：默认是"全部"，不强制人选。
   强制筛选会挡住那些愿意回、但还没想清楚自己算不算"经历过"的人，
   而"有人愿意回"是这条链的命根子。
   ============================================================ */
.filter {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
}

.filter__label {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.filter__row { display: flex; flex-wrap: wrap; gap: 7px; }

/* 分类小按钮：默认很轻，"选中"才亮起来 —— 不选也是一种正常状态 */
.filter-chip {
  padding: 6px 13px;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease);
}

.filter-chip:hover { border-color: var(--text-3); }

.filter-chip.is-on {
  color: var(--hot-ink);
  background: var(--hot);
  border-color: var(--hot);
}

.filter-chip:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

.filter__note {
  margin: 11px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

/* 「这个我做不到」—— 和「这条帮到我了」并排、同样份量。
   刻意不用红色、不用警告样式：它是"换一条"的意思，
   不是"你错了"。详见 app.js 里那段设计说明。 */
.reply__unfit {
  padding: 5px 11px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.reply__unfit:hover { color: var(--text-2); border-color: var(--text-3); }

.reply__unfit.is-on {
  color: var(--text-3);
  border-color: transparent;
  cursor: default;
}

.reply__unfit:focus-visible { outline: 2px solid var(--text-3); outline-offset: 2px; }

/* ============================================================
   「我做到了」单独一行
   ------------------------------------------------------------
   为什么不分在 .reply__acts 那一组里：
   那一组的两个按钮回答的是"**这个动作适不适合我**"，
   而这一行回答的是"**我真的去做了吗**" —— 两个不同的问题。

   并排会被读成"三个同类选项"，那正是用户指出的那个冲突
   （"帮到我了"和"我做到了"听起来是一回事）。
   分开一行，语义就分开了。

   也没有被"这个我能做"解锁：一个动作可能完全适合你，
   但你今天就是没做 —— 那是正常的，不该有暗示说这算失败。
   ============================================================ */
.reply__donerow {
  flex-basis: 100%;        /* 强制换行，占满一整行 */
  margin-top: 2px;
}

.reply__done {
  font-size: 12.5px;
  color: var(--hot);
}

.reply__done:hover { text-decoration: underline; }
.reply__done:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

/* ============================================================
   「有人去做了」—— 帮忙的人收到的唯一一种消息
   ------------------------------------------------------------
   这一块存在的唯一理由是让帮忙的人知道**他那句话落地了**。
   所以样式上的要求和一个普通的提示块不一样：

     · 它得有点温度 —— 不能长得像系统公告或数据统计
     · 但不能像庆祝动画 —— 那会把"帮人"变成"得分"
     · 而且不能有催促感（不许写"还有 2 条未读"这种）

   做法：一块很轻的卡，一条一句，语气像有人在跟你说话。
   ============================================================ */
.notices {
  margin: 0 0 20px;
  padding: 18px 18px 16px;
  background: var(--mint-soft);
  border: 1px solid rgba(31, 122, 92, 0.18);
  border-radius: var(--r);
}

.notices__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mint);
}

/* 一条消息。第一行是"你那句话"，第二行是"有人真的去做了"。
   把他的话放在前面 —— 先看见自己写的那句，才有"这是我做的事"的感觉。 */
.notice {
  padding: 12px 0;
  border-top: 1px solid rgba(31, 122, 92, 0.14);
}

.notice:first-child { border-top: 0; padding-top: 0; }

.notice__mine {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.notice__mine::before { content: '你回过：'; color: var(--text-3); }

.notice__did {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.notice__did b { font-weight: 500; }

.notice__when {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.notices__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 122, 92, 0.14);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ============================================================
   一排 / 刷困境
   ------------------------------------------------------------
   刷困境是"一副牌"，不是 feed。所以样式上也刻意不像抖音：
     · 不做全屏沉浸（那是让你忘记时间）
     · 卡片周围留着页面的底，你知道自己还在这个网站上
     · 一次只有一条，一屏能看完，不用滑半天
   ============================================================ */
.mode {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 999px;
  width: fit-content;
}

.mode__btn {
  padding: 7px 16px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.mode__btn.is-on {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-weight: 500;
}

.mode__btn:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

/* ---------- 一副牌 ---------- */
.deck { margin: 0 0 20px; }

.deck__card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  /* 滑动时用 transform 跟手；不滑就回到原位 */
  transition: transform 0.26s var(--ease), opacity 0.26s var(--ease);
  touch-action: pan-y;   /* 允许上下滚页面，横向手势归我们 */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.deck__card:active { cursor: grabbing; }

.deck__count {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   「看更多」+「随便给我一条」
   ------------------------------------------------------------
   用户问："如果将来我有了 100 条怎么办，那都长的不得了了。"

   这两个按钮是配对的，回答的是两个不同的问题：
     · 看更多 —— "我还想看"（列表长了怎么办）
     · 随便给我一条 —— "我不知道从哪看起"（这才是真正的尴尬）

   样式上「看更多」是个正经按钮（它是内容的一部分），
   「随便给我一条」是安静的一行字（它是**出口**，
   不该和内容抢注意力 —— 想滚的人继续滚，不想滚的人才用它）。
   ============================================================ */
.wall-more {
  display: block;
  width: 100%;
  margin: 4px 0 0;
}

/* 到底了 —— 说一句实话，不催他继续看 */
.wall-end {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}

.wall-pick {
  display: block;
  margin: 18px auto 0;
  font-size: 13px;
  color: var(--text-2);
}

.wall-pick:hover { color: var(--text); }

/* 搜索结果里没有"看更多"这回事（结果是"全部符合的"）——
   所以搜索时它得藏着。这一条由 JS 控制 hidden，不用管。 */

/* ============================================================
   撤回这条
   ------------------------------------------------------------
   删掉自己说过的话是用户的权利，所以它必须存在，
   但**不能显眼** —— 摆在每张卡片最显眼的地方，
   会让人以为这个产品在劝他删东西。

   做法：安安静静一行小字，放在卡片最下面（回应之后）。
   确认的时候才升级成按钮 —— 那时候它才是主角。

   颜色不报警（不用红色）：撤回不是"危险操作"，
   是"我在收回自己的话"，那是一件正当的事。
   ============================================================ */
.mine-card__danger {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
}

.link-btn--quiet {
  font-size: 12.5px;
  color: var(--text-3);
}

.link-btn--quiet:hover { color: var(--text-2); }

.mine-card__danger-q {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

/* 困境是这张卡的主角 —— 比其他地方的字都大一点，
   因为一次只给你看一条，你得看清它 */
.deck__text {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--text);
}

.deck__meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.deck__hint {
  margin: 10px 2px 0;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

.deck__acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.deck__acts .btn { flex: 1 1 auto; min-width: 108px; }

/* 滑出去的那一下 */
.deck__card.is-out { transform: translateX(-110%) rotate(-6deg); opacity: 0; }
.deck__card.is-in { transform: translateX(0) rotate(0); opacity: 1; }

/* 翻完了 */
.deck__card.is-end { cursor: default; }
.deck__card.is-end .deck__text { font-size: 17px; color: var(--text-2); }

/* 尊重"减少动画"偏好：不做位移，直接淡一下 */
@media (prefers-reduced-motion: reduce) {
  .deck__card { transition: opacity 0.16s linear; }
  .deck__card.is-out { transform: none; opacity: 0; }
}
/* ============================================================
   搜索：在墙上找一条 / 在我的困境里找
   ------------------------------------------------------------
   和「我经历过这个」的分工（所以它单独一行，不放进筛选器里）：
     · 分类筛选回答"**我经历过哪一类**" —— 为了筛出你有资格回的那条
     · 搜索回答"**我现在想找某一件事**" —— 那是在当抽屉翻

   样式上刻意和输入框区分：它是工具，不是主要内容。
   所以更小、更安静，但要有清楚的边界让人知道能打字。
   ============================================================ */
.find { margin: 0 0 12px; }

.find__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}

.find__input::placeholder { color: var(--text-3); }
.find__input:focus { outline: 2px solid var(--hot); outline-offset: 1px; }

/* 去掉 Safari 给 type=search 加的那个叉（和整体风格不搭） */
.find__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.find__note {
  margin: 8px 4px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================================================
   「分量」：这句是从经历里说出来的
   ------------------------------------------------------------
   产品定位里那一层 —— 同一句话，从"一个成功人士"嘴里说出来你会听，
   从陌生人嘴里说出来你会滑过去。我们永远不能有人设（匿名是命根子），
   所以分量只能来自经历："我也卡在这儿过"。

   样式上刻意很轻，而且**故意不做成徽章**：
   一做成徽章就变成等级，而等级和"没有评判、没有压力"直接冲突。
   它只是回应上面一行小字，像说话的人顺口带出来的一句。
   ============================================================ */
.reply__from {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--hot);
}

.reply__from::before {
  content: '— ';
  opacity: 0.5;
}

/* ============================================================
   让打断更近：回应到了就把回执顶到最上面
   ------------------------------------------------------------
   产品定位第 3 项。要解决的是这个场景：
   用户喊完之后会往下滚，看"这里是怎么运作的"、看墙。
   这时候回应如果只是悄悄出现在输入框下面，他根本看不到 ——
   这条链就断在他眼皮底下。

   做法不是"弹窗提醒他"（那会打断他正在看的东西，而且这个产品
   不做推、不弹窗）。而是：**把回应挪到他已经看过的位置上方**，
   他会自然滚回去。区别是"我主动来找你"和"你回头就在那儿"。

   用 order 翻转而不是移动 DOM 节点 —— 不打断现有的渲染逻辑，
   也不会让反复切换产生副作用。
   ============================================================ */
.order { display: flex; flex-direction: column; gap: 14px; }
.order .card,
.order .posted { margin: 0; }        /* 间距交给 .order 的 gap */

/* 有回应了：回执排到前面 */
.order.is-echo .posted { order: -1; }

/* 翻上来时轻轻浮一下，让人注意到位置变了（不做弹窗） */
.order.is-echo .posted {
  animation: rise 0.34s var(--ease);
}

/* ============================================================
   墙：一串困境
   ============================================================ */
.wall { display: flex; flex-direction: column; gap: 8px; }

.point {
  display: block;
  width: 100%;
  padding: 18px 20px;
  font: inherit;
  text-align: left;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease), background 0.18s;
}

.point:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.point__text {
  display: block;
  margin-bottom: 12px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--text);
}

.point__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.point__cat {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 999px;
}

.point__count { font-size: 12px; color: var(--text-3); }

.wall-empty { padding: 32px 0; font-size: 14.5px; line-height: 1.7; color: var(--text-3); }

/* ============================================================
   回应框
   ============================================================ */
.reply-box {
  margin-bottom: 14px;
  padding: 22px 20px;
  background: var(--hot-soft);
  border: 1px solid rgba(228, 87, 46, 0.18);
  border-radius: var(--r-lg);
  animation: rise 0.28s var(--ease);
}

.reply-box__label { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; color: var(--hot); }

.reply-box__point {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--hot);
  font-family: var(--font-quote);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}

.reply-box__input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  resize: vertical;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.reply-box__input:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06); }
.reply-box__input::placeholder { color: var(--text-3); }

.reply-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.reply-box__btns { display: flex; align-items: center; gap: 14px; }

.counter { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.counter[data-state="ok"] { color: var(--text-2); }
.counter[data-state="long"] { color: var(--warn); }

.reply-box__msg { margin: 12px 0 0; font-size: 13.5px; min-height: 1.3em; }
.reply-box__msg[data-state="good"] { color: var(--mint); }
.reply-box__msg[data-state="bad"] { color: var(--hot); }
.reply-box__msg[data-state="warn"] { color: var(--warn); }

/* ============================================================
   我的困境
   ============================================================ */
.mine-card {
  margin-bottom: 12px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}

.mine-card__head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.mine-card__text {
  margin: 0 0 12px;
  font-family: var(--font-quote);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.mine-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.mine-card__badge {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 999px;
}

.mine-card__badge--private { color: var(--warn); background: var(--warn-soft); }

.mine-card__replies { padding-top: 6px; }

/* 一条收到的回应 */
.reply {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.reply:last-child { border-bottom: none; padding-bottom: 4px; }

.reply__text {
  margin: 0 0 12px;
  font-family: var(--font-quote);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.reply__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 反馈按钮组。
   为什么要包一层：父容器是 space-between，如果三个按钮各自是直接子元素，
   空间会在它们之间平摊，两个按钮中间被撑开一大块空白。
   包起来就变成"左边标签 / 右边按钮组"，符合直觉。 */
.reply__acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;   /* 靠右 */
}

.tag {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 999px;
}

.reply__helped {
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}

.reply__helped:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }

.reply__helped.is-on {
  color: var(--mint);
  background: var(--mint-soft);
  cursor: default;
}

/* 「我做到了」—— 只在点过「帮到我了」之后出现。
   它是个次要动作（打开分享卡片），所以用文字链的样式，
   不跟主按钮抢注意力。 */
.reply__done {
  margin-left: auto;
  font-weight: 500;
  color: var(--accent);
}

.reply__done:hover { text-decoration: underline; }

/* ============================================================
   分享卡片弹层
   ------------------------------------------------------------
   卡片本身是 1080×1350 的 canvas（画在 js/share-card.js 里），
   这里只负责把它装进一个能看、能长按保存的框。
   ============================================================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 26, 24, 0.55);
  overflow-y: auto;
  animation: sheet-in 0.18s ease-out;
}

@keyframes sheet-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet__inner {
  width: 100%;
  max-width: 380px;
  padding: 16px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.sheet__canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.sheet__note {
  margin: 12px 2px 0;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.sheet__row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sheet__row .btn { flex: 1; }

/* 尊重"减少动效"的系统设置 */
@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
}

.mine-empty { padding: 32px 0; font-size: 14.5px; color: var(--text-3); }

/* 我写给别人的 */
.given-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1px; border-radius: var(--r); overflow: hidden; }

.given {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface-2);
}

.given__point { font-size: 12.5px; color: var(--text-3); }
.given__text { font-size: 15px; font-weight: 500; color: var(--text); }

/* ============================================================
   说明区
   ============================================================ */
.about {
  margin: 30px 0 10px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}

.steps {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  position: relative;
  padding-left: 34px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-2);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 50%;
}

.steps b { color: var(--text); font-weight: 600; }
.steps strong { color: var(--hot); font-weight: 600; }

.rules {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.rules li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 16px;
  font-size: 14px;
  color: var(--text-2);
  background: var(--surface-2);
}

.rules b { color: var(--text); font-weight: 600; }

.rules__i {
  flex: none;
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}

.about__warn {
  margin: 0;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: var(--r-lg);
}

.about__warn b { font-weight: 600; }
.nowrap { white-space: nowrap; }

/* ============================================================
   温柔模式
   ============================================================ */
.gentle {
  margin-top: 18px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  animation: rise 0.36s var(--ease);
}

.gentle__title {
  margin: 0 0 16px;
  font-size: clamp(19px, 5.2vw, 22px);
  font-weight: 600;
  line-height: 1.44;
  letter-spacing: -0.022em;
}

.gentle__body { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.gentle__body p { margin: 0; font-size: 15.5px; line-height: 1.74; color: var(--text-2); }

.gentle__light {
  margin: 0 0 20px;
  padding: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15.5px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
}

.gentle__light:empty { display: none; }
.gentle__light li { display: flex; gap: 10px; }

.gentle__light li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  margin-top: 0.7em;
  background: var(--text-3);
  border-radius: 50%;
}

.gentle__resources {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.gentle__resources li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: var(--surface-2);
}

.gentle__res-label { font-size: 13px; color: var(--text-2); }
.gentle__res-value { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.gentle__note { margin: 0 0 20px; font-size: 14px; color: var(--text-3); }

/* ============================================================
   页脚 / Toast
   ============================================================ */
.footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px calc(44px + env(safe-area-inset-bottom));
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer__dot { opacity: 0.4; }
.footnote { flex-basis: 100%; margin: 10px 0 0; font-size: 12px; line-height: 1.6; }

/* 这里原来有 .sound-toggle 的样式（页脚那个音效开关）。
   开关和整个音效功能一起删掉了。 */

/* 状态行有两种要紧的状态，得让它显眼一点 —— 尤其"数据库结构是旧版"
   这种，用户看到纯灰字很容易以为"网站坏了"而不知道去跑 SQL。 */
.footnote.is-warn {
  margin-top: 14px;
  padding: 12px 16px;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: var(--r);
  text-align: left;
}

.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(26, 26, 24, 0.94);
  border-radius: 999px;
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(12px);
  animation: toast-in 0.28s var(--ease);
}

.toast.is-out { animation: toast-out 0.26s var(--ease) forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   无障碍
   ============================================================ */
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.field__input:focus-visible, .reply-box__input:focus-visible { outline: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 359px) {
  .brand__text em { display: none; }
  .tab { padding: 10px 8px 13px; font-size: 13.5px; }
}

@media (min-width: 640px) {
  .topbar { padding: calc(26px + env(safe-area-inset-top)) 24px 4px; }
  .tabs   { padding: 0 24px; }
  .page   { padding: 0 24px 48px; }

  .hero { padding: 52px 0 28px; }
  .br-mobile { display: inline; }

  .card { padding: 22px; }
  .field { padding: 0 20px; }
  .field__input { font-size: 17px; }
  .field__input { padding: 17px 0; }
  #askForm .btn--primary { width: auto; min-width: 210px; }

  .view-head { padding: 46px 0 24px; }
  .view-title { font-size: 28px; }

  .point { padding: 20px 24px; }
  .mine-card { padding: 30px 28px; }
  .about { padding: 32px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
