/* ============================================================
   THE JURY — iOS 工具类 UI  (v3.1 · 三色和谐 + 多分类矩阵 + 弥散背景)
   调性四维：温度 冷 / 密度 中密 / 个性 中(克制偏张扬) / 质感 哑光+轻弥散
   三色和谐「静谧深海」：主视觉 #2A6F97 · 支撑 #E0F4FC · 锚点 #013A63
   ============================================================ */

:root {
  /* ---- 三色和谐：静谧深海 ---- */
  --blue: #2A6F97;            /* 主视觉：主 CTA / 选中态 */
  --blue-deep: #013A63;       /* 锚点：标题墨 / 深态 */
  --blue-soft: #E0F4FC;       /* 支撑：浅蓝底 */
  --blue-soft-line: #C9E6F5;
  --blue-ink: #014E77;        /* 蓝底上的深蓝文字 */
  --blue-press: #1B5B80;      /* 交互按下态（加深 15%） */

  /* ---- 中性色系统（冷调 · 5+1 级） ---- */
  --bg: #F2F6F8;              /* 页面底 */
  --surface: #FFFFFF;         /* 卡片 / 列表分组 */
  --surface-2: #ECF1F4;       /* 内嵌面：字段 / 芯片 / 摘要 */
  --text: #1B2733;            /* 主文字 */
  --text-strong: #0F2A3D;     /* 标题深锚点墨 */
  --text-2: #4A5862;          /* 次文字（AA：白 7.3 / 弥散底 5.2 / 信息条 6.4） */
  --text-3: #5F6E7A;          /* 弱文字 / 元数据（AA：白 5.3 / 内嵌面 4.6） */
  --border: #E1E8EC;          /* 发丝边框 */
  --border-strong: #CDD7DE;   /* 控件描边 */

  /* ---- 语义色（低饱和 · 去荧光 · 小面积） ---- */
  --green: #2E7D5B;  --green-soft: #E4F0EA;  --green-line: #B9D6C6;  --green-ink: #1E6547;
  --red: #B23A3A;    --red-soft: #F5E8E8;    --red-line: #E3C3C3;    --red-ink: #8E2C2C;
  --amber: #B7791F;  --amber-soft: #F6EDDC;  --amber-line: #E6D3AE;  --amber-ink: #8A5A16;
  --slate: #5B6470;  --slate-soft: #ECEFF2;  --slate-line: #CDD3DA;  --slate-ink: #454C56;

  /* ---- 多分类动态色彩矩阵（§3.4 同饱和度 · 不同色相） ---- */
  --cat-roommate: #4F7A5C;     --cat-roommate-soft: #E9F0EB;     --cat-roommate-line: #CFE0D4;     --cat-roommate-ink: #3C6349;
  --cat-relationship: #A34A66; --cat-relationship-soft: #F9E9EF; --cat-relationship-line: #EDCFDA; --cat-relationship-ink: #853B52;
  --cat-shopping: #9C6A28;     --cat-shopping-soft: #F7EEDF;     --cat-shopping-line: #EBD9BC;     --cat-shopping-ink: #7D5520;
  --cat-work: #4E5190;         --cat-work-soft: #EAEBF6;         --cat-work-line: #D2D4EA;         --cat-work-ink: #3F4276;

  /* ---- elevation / radius ---- */
  --shadow: 0 1px 2px rgba(15,42,61,0.05), 0 10px 28px rgba(15,42,61,0.07);
  --shadow-sm: 0 1px 2px rgba(15,42,61,0.06);
  --shadow-pop: 0 10px 34px rgba(15,42,61,0.14);
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 11px;

  --maxw: 520px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* ---- 有机弥散渐变背景（§4.4）：3 团主题色低透明光晕，仅在底层大画布，
         不进入卡片、不降低文字对比度 ---- */
  background-color: var(--bg);
  background-image:
    radial-gradient(38rem 24rem at 4% -6%, rgba(42,111,151,0.20), rgba(42,111,151,0) 62%),
    radial-gradient(34rem 22rem at 104% -2%, rgba(1,58,99,0.17), rgba(1,58,99,0) 60%),
    radial-gradient(46rem 28rem at 46% 104%, rgba(42,111,151,0.14), rgba(42,111,151,0) 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(42,111,151,0.45); outline-offset: 2px; border-radius: 10px; }

/* ---------- Header（导航层 —— 规范允许此处使用材质） ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242,246,248,0.74);
  -webkit-backdrop-filter: saturate(165%) blur(16px);
  backdrop-filter: saturate(165%) blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 10px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--blue); }
.brand-mark svg { display: block; }
.wordmark {
  font-weight: 800; letter-spacing: 0.14em; font-size: 20px;
  color: var(--text-strong);
}
.beta-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--blue-ink); background: var(--blue-soft);
  border: 1px solid var(--blue-soft-line);
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.lang-toggle {
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text); font-weight: 700; font-size: 13px;
  padding: 7px 14px; border-radius: 999px; transition: background .15s ease, border-color .15s ease;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue-ink); }
.lang-toggle:active { background: var(--blue-soft); }

.stats-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 12px auto 0;
}
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700;
}
.stat-icon { color: var(--blue); font-size: 11px; }
.stat-label { color: var(--text-2); font-weight: 600; }
#freePill .stat-icon { color: var(--green); }
.submit-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #3A82AC 0%, var(--blue-press) 100%);
  color: #fff; border: none;
  font-weight: 800; font-size: 14px; padding: 10px 16px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 6px 16px rgba(1,58,99,0.26);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.submit-btn:hover { filter: brightness(1.05); }
.submit-btn:active {
  transform: translateY(1px); filter: brightness(0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 3px 8px rgba(1,58,99,0.22);
}

.info-bar {
  max-width: var(--maxw); margin: 12px auto 0;
  font-size: 12.5px; color: var(--text-2); line-height: 1.5;
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 13px;
}
.info-bar b { color: var(--text-strong); font-weight: 800; }

/* ---------- 信息流小节头（打破 100% 卡片化） ---------- */
.feed {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px 16px 96px;
  display: flex; flex-direction: column; gap: 18px;
}
.feed-head {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 4px 0;
}
.fh-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--text-2);
}
.fh-count {
  font-size: 11px; font-weight: 800; color: var(--blue-ink);
  background: var(--blue-soft); border: 1px solid var(--blue-soft-line);
  padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.fh-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), rgba(225,232,236,0)); }

/* ---------- 卡片（同级容器完全一致） ---------- */
.card {
  --cat: var(--blue);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 3px 0 var(--cat), var(--shadow-sm);
  padding: 20px;
  animation: rise .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 多分类动态色彩矩阵：同饱和度 · 不同色相（§3.4） */
.card.c-roommate, .cat-chip.c-roommate      { --cat: var(--cat-roommate);     --cat-soft: var(--cat-roommate-soft);     --cat-line: var(--cat-roommate-line);     --cat-ink: var(--cat-roommate-ink); }
.card.c-relationship, .cat-chip.c-relationship { --cat: var(--cat-relationship); --cat-soft: var(--cat-relationship-soft); --cat-line: var(--cat-relationship-line); --cat-ink: var(--cat-relationship-ink); }
.card.c-shopping, .cat-chip.c-shopping      { --cat: var(--cat-shopping);     --cat-soft: var(--cat-shopping-soft);     --cat-line: var(--cat-shopping-line);     --cat-ink: var(--cat-shopping-ink); }
.card.c-work, .cat-chip.c-work              { --cat: var(--cat-work);         --cat-soft: var(--cat-work-soft);         --cat-line: var(--cat-work-line);         --cat-ink: var(--cat-work-ink); }

.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; padding: 4px 11px 4px 9px; border-radius: 999px;
  background: var(--cat-soft, var(--surface-2)); color: var(--cat-ink, var(--text-2));
  border: 1px solid var(--cat-line, var(--border));
}
.cat-chip::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cat, var(--text-3)); flex: 0 0 auto;
}
.case-id {
  font-size: 12px; color: var(--text-3); font-weight: 700; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.priority-badge {
  margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
  color: #fff; background: var(--amber);
  padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
}
.demo-badge {
  font-size: 10px; font-weight: 700; color: var(--text-3);
  border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2);
}

/* ---------- 排版层级 ---------- */
.dilemma {
  font-size: 22px; font-weight: 800; line-height: 1.3; margin: 2px 0 16px;
  letter-spacing: -0.02em; color: var(--text-strong);
  text-wrap: pretty;
}
.facts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.fact { display: flex; gap: 12px; font-size: 14.5px; color: var(--text); }
.fact .fkey {
  flex: 0 0 auto; width: 84px; font-size: 10.5px; font-weight: 800;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.09em;
  padding-top: 3px; line-height: 1.4;
}
.fact .fval { flex: 1; color: var(--text); }

.summary-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px;
}
.summary-box .s-label {
  font-size: 10.5px; font-weight: 800; color: var(--blue-ink);
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 5px;
}
.summary-box .s-text { font-size: 14px; color: var(--text); line-height: 1.5; }

.evidence-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-2); font-size: 13px; font-weight: 700;
  padding: 9px 13px; border-radius: var(--radius-sm); margin-bottom: 16px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.evidence-btn:hover { border-color: var(--blue); color: var(--blue-ink); background: var(--blue-soft); }
.evidence-btn:active { transform: scale(0.99); }

/* ---------- 投票按钮（数据编码 · 可点击卡片形态） ---------- */
.vote-section { margin-top: 4px; }
.vote-prompt {
  font-size: 10.5px; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 11px;
}
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  position: relative; overflow: hidden;
  display: flex; align-items: center; text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--text);
  font-size: 15px; font-weight: 650;
  padding: 14px 16px 14px 20px; border-radius: var(--radius-md);
  transition: transform .12s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.choice::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--opt); border-radius: 0 3px 3px 0;
}
.choice:hover { border-color: var(--opt); background: var(--opt-soft); box-shadow: var(--shadow-sm); }
.choice:active { transform: scale(0.985); }
.choice .c-dot {
  width: 15px; height: 15px; border-radius: 50%; margin-right: 12px; flex: 0 0 auto;
  box-shadow: 0 0 0 4px var(--opt-halo);
}
.choice.c-green { --opt: var(--green); --opt-soft: var(--green-soft); --opt-halo: rgba(46,125,91,0.16); }
.choice.c-red   { --opt: var(--red);   --opt-soft: var(--red-soft);   --opt-halo: rgba(178,58,58,0.16); }
.choice.c-blue  { --opt: var(--blue);  --opt-soft: var(--blue-soft);  --opt-halo: rgba(42,111,151,0.16); }
.choice.c-amber { --opt: var(--amber); --opt-soft: var(--amber-soft); --opt-halo: rgba(183,121,31,0.16); }
.choice.c-slate { --opt: var(--slate); --opt-soft: var(--slate-soft); --opt-halo: rgba(91,100,112,0.16); }

/* ---------- 结果 ---------- */
.results { margin-top: 4px; }
.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}
.results-head .r-title { font-size: 14px; font-weight: 800; color: var(--text-strong); }
.results-head .r-note { font-size: 10.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.result-row { margin-bottom: 13px; }
.result-row .r-line {
  display: flex; justify-content: space-between; font-size: 13.5px;
  margin-bottom: 6px; font-weight: 650; gap: 10px;
}
.result-row .r-line .r-pct { color: var(--text-2); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track {
  height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--border);
}
.bar-fill { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar-fill.green { background: var(--green); }
.bar-fill.red { background: var(--red); }
.bar-fill.amber { background: var(--amber); }
.bar-fill.blue { background: var(--blue); }
.bar-fill.slate { background: var(--slate); }
.result-row.mine .r-line .r-name::after {
  content: " ✓"; color: var(--blue); font-weight: 800;
}
.your-vote-note {
  font-size: 13px; font-weight: 700; color: var(--blue-ink);
  background: var(--blue-soft); border: 1px solid var(--blue-soft-line);
  padding: 9px 13px; border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* ---------- 评论 + 操作 ---------- */
.comment-box {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 12px 13px; font-family: inherit; font-size: 14px; resize: vertical;
  min-height: 68px; margin-bottom: 6px; background: var(--surface-2); color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.comment-box:focus { border-color: var(--blue); background: var(--surface); }
.char-count { font-size: 11.5px; color: var(--text-3); text-align: right; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: none; border-radius: var(--radius-md); font-size: 14.5px; font-weight: 800;
  padding: 13px 18px; transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #3A82AC 0%, var(--blue-press) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 6px 16px rgba(1,58,99,0.26);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 2px 6px rgba(1,58,99,0.2); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-soft { background: var(--blue-soft); color: var(--blue-ink); border: 1px solid var(--blue-soft-line); }
.btn-soft:hover { filter: brightness(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- 优先案件状态 ---------- */
.priority-status {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 16px;
}
.ps-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(42,111,151,0.15); }
.ps-dot.green { background: var(--green); box-shadow: 0 0 0 3px rgba(46,125,91,0.15); }
.ps-dot.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(183,121,31,0.15); }
.ps-dot.red { background: var(--red); box-shadow: 0 0 0 3px rgba(178,58,58,0.15); }
.ps-text { font-size: 13.5px; font-weight: 800; }
.ps-timer { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ps-sub { font-size: 11.5px; color: var(--text-3); width: 100%; margin-top: 3px; line-height: 1.45; }

/* ---------- 模态 / 底部面板 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10,30,45,0.34);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: fade .2s ease both;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal.sheet {
  background: var(--surface);
  width: 100%; max-width: var(--maxw);
  border-radius: 26px 26px 0 0;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 -10px 44px rgba(10,30,45,0.22);
  animation: slideUp .28s cubic-bezier(.2,.8,.2,1) both;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-grabber {
  width: 40px; height: 5px; border-radius: 999px;
  background: var(--border-strong); margin: 9px auto 0; flex: 0 0 auto;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 2;
  padding: 14px 20px 13px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -0.01em; color: var(--text-strong); }
.icon-btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  width: 34px; height: 34px; border-radius: 50%; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue-ink); }
.modal-body { padding: 18px 20px 4px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 800; color: var(--text-2); margin-bottom: 7px; letter-spacing: 0.01em; }
.field .hint { font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-top: 5px; }
.input, .select, textarea.input {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 12px 13px; font-family: inherit; font-size: 15px; background: var(--surface-2);
  color: var(--text); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
textarea.input { resize: vertical; min-height: 76px; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--blue); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(42,111,151,0.14); outline: none;
}
.char-count.inline { display: block; text-align: right; margin-top: 5px; }

/* 分段控件（iOS segmented control 形态） */
.cat-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 4px;
}
.cat-tab {
  flex: 1 1 auto; border: 1px solid transparent; background: transparent;
  border-radius: var(--radius-sm); padding: 10px 8px; font-size: 13px; font-weight: 700;
  color: var(--text-2); text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cat-tab:hover { color: var(--text-strong); }
.cat-tab.active {
  border-color: var(--border); background: var(--surface); color: var(--blue-ink);
  box-shadow: var(--shadow-sm);
}

.cost-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 18px; font-size: 13.5px;
}
.cost-box .row { display: flex; justify-content: space-between; margin-bottom: 7px; gap: 10px; }
.cost-box .row:last-child { margin-bottom: 0; }
.cost-box .val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-box .val.good { color: var(--green-ink); }
.cost-box .val.warn { color: var(--amber-ink); }

.privacy-note {
  background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-ink);
  border-radius: var(--radius-md); padding: 11px 13px; font-size: 12.5px; margin-bottom: 18px;
  line-height: 1.5; font-weight: 600;
}

/* ---------- 优先结算 ---------- */
.priority-hero {
  background: linear-gradient(180deg, var(--blue-soft) 0%, #F2FAFD 100%);
  border: 1px solid var(--blue-soft-line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px;
}
.priority-hero .ph-title { font-size: 12px; font-weight: 800; color: var(--blue-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.priority-hero .ph-price { font-size: 34px; font-weight: 900; color: var(--text-strong); margin: 6px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.priority-hero .ph-target { font-size: 13px; color: var(--text-2); font-weight: 600; }
.terms { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 18px; }
.terms li { margin-bottom: 9px; }
.demo-pay-note {
  background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red-ink);
  border-radius: var(--radius-md); padding: 11px 13px; font-size: 12.5px;
  margin-bottom: 18px; font-weight: 700; line-height: 1.5;
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 13px;
}
.checkbox-row input { margin-top: 3px; width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--blue); }
.checkbox-row label { font-size: 13.5px; color: var(--text); font-weight: 650; line-height: 1.45; }

/* ---------- 裁决卡片 ---------- */
.verdict-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 16px;
}
.vc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #F3FAFD 100%);
  border-bottom: 1px solid var(--blue-soft-line);
}
.vc-mark {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--blue-deep); text-transform: uppercase;
}
.vc-id { font-size: 11.5px; font-weight: 800; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.vc-body { padding: 18px; }
.vc-cat { font-size: 10.5px; font-weight: 800; color: var(--blue-ink); text-transform: uppercase; letter-spacing: 0.09em; }
.vc-title { font-size: 18px; font-weight: 800; margin: 6px 0 16px; line-height: 1.32; letter-spacing: -0.01em; color: var(--text-strong); }
.vc-bar { margin-bottom: 11px; }
.vc-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.vc-line .vc-pct { font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc-note {
  margin-top: 16px; font-size: 11.5px; color: var(--text-3); text-align: center;
  font-weight: 700; border-top: 1px dashed var(--border-strong); padding-top: 13px;
}
.verdict-actions { display: flex; gap: 10px; }
.verdict-actions .btn { flex: 1; }

/* ---------- 证据 ---------- */
.evidence-block {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 15px; font-size: 14px; color: var(--text); line-height: 1.65;
}
.redacted {
  background: var(--text-strong); color: var(--text-strong); border-radius: 4px; padding: 0 5px;
  user-select: none;
}
.evidence-note { font-size: 12px; color: var(--text-3); margin-top: 14px; line-height: 1.55; }

/* ---------- Toasts（玻璃质感 · 小面积） ---------- */
.toast-stack {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: max(22px, env(safe-area-inset-bottom)); z-index: 100;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: calc(100% - 32px); max-width: 460px; pointer-events: none;
}
.toast {
  background: rgba(15,42,61,0.92); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 11px 17px; border-radius: 999px; box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: toastIn .25s ease both; max-width: 100%; text-align: center;
}
.toast.success { background: rgba(30,101,71,0.94); }
.toast.warn { background: rgba(138,90,22,0.94); }
.toast.error { background: rgba(142,44,44,0.94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .25s ease both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 状态 ---------- */
.state-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 22px; text-align: center; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.state-block .s-icon { font-size: 30px; margin-bottom: 12px; opacity: 0.55; }
.state-block .s-title { font-size: 16px; font-weight: 800; color: var(--text-strong); margin-bottom: 6px; }
.state-block .s-sub { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--border-strong);
  border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton */
.skeleton-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.sk-line { height: 13px; background: var(--surface-2); border-radius: 6px; margin-bottom: 11px; animation: pulse 1.2s ease-in-out infinite; }
.sk-line.w70 { width: 70%; } .sk-line.w90 { width: 90%; } .sk-line.w50 { width: 50%; } .sk-line.w40 { width: 40%; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal.sheet { border-radius: 24px; max-height: 88vh; }
  .feed { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* 不支持 backdrop-filter 时退化为不透明导航条，保证可读性 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-header { background: var(--bg); }
  .toast { background: var(--text-strong); }
}

/* ---------- 讨论区（投票后可见 · 权限由服务端强制执行） ---------- */
.discussion {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 16px;
}
.d-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 11px;
}
.d-title {
  font-size: 10.5px; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.09em;
}
.d-count { font-size: 11px; font-weight: 800; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.d-list { display: flex; flex-direction: column; gap: 10px; }
.d-locked, .d-empty { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
.d-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.d-item.mine { border-color: var(--blue-soft-line); background: var(--blue-soft); }
.d-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.d-who {
  font-size: 10.5px; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.d-vote {
  font-size: 10.5px; font-weight: 700; color: var(--blue-ink);
  background: var(--blue-soft); border: 1px solid var(--blue-soft-line);
  padding: 1px 8px; border-radius: 999px;
}
.d-item.mine .d-vote { background: var(--surface); }
.d-edited { font-size: 10px; font-weight: 700; color: var(--text-3); font-style: italic; }
.d-body { font-size: 14px; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }

.c-label {
  display: block; font-size: 12px; font-weight: 800;
  color: var(--text-2); margin-bottom: 7px;
}
.d-compose { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.d-compose .btn { padding: 9px 15px; font-size: 13.5px; }

/* 分享深链高亮：被分享打开的卡片脉冲两次后静止 */
.card.shared-focus { animation: sharedPulse 1.8s ease-in-out 2; }
@keyframes sharedPulse {
  0%, 100% { box-shadow: inset 0 3px 0 var(--cat), var(--shadow-sm); }
  50% { box-shadow: inset 0 3px 0 var(--cat), 0 0 0 4px rgba(42,111,151,0.32), var(--shadow-sm); }
}
