/* =========================================================
   众议 · 全民话题场 — Demo
   设计语言：纸墨 editorial + 三色立场光谱
   红(反对) — 灰(中立) — 青(支持)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; border: 0; background: none; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
p, h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --paper:      #F4F1E9;
  --paper-2:    #FBF9F4;
  --card:       #FFFFFF;
  --ink:        #17140F;
  --ink-2:      #33302A;
  --muted:      #8B857A;
  --muted-2:    #A8A196;
  --line:       rgba(23, 20, 15, .09);
  --line-2:     rgba(23, 20, 15, .06);

  /* 三色立场 */
  --con:        #B23A2B;   /* 反对 = 朱砂 */
  --con-soft:   rgba(178, 58, 43, .09);
  --pro:        #1E6B6F;   /* 支持 = 深青 */
  --pro-soft:   rgba(30, 107, 111, .09);
  --mid:        #9A9284;   /* 中立 = 灰褐 */
  --mid-soft:   rgba(154, 146, 132, .12);

  --gold:       #C9A227;
  --night:      #14120F;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;

  --sh-sm: 0 1px 2px rgba(23,20,15,.05), 0 4px 12px -6px rgba(23,20,15,.10);
  --sh-md: 0 2px 4px rgba(23,20,15,.04), 0 14px 32px -14px rgba(23,20,15,.22);

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% 0%, #2A2620 0%, transparent 60%),
    radial-gradient(900px 600px at 88% 100%, #241F1A 0%, transparent 55%),
    #17140F;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   舞台 & 侧栏
   ========================================================= */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 44px 40px;
}

.stage-aside { width: 330px; flex: 0 0 330px; color: #C9C2B5; }

.aside-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 32px; }
.aside-logo {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--con);
  color: #F7F3EA;
  font-family: var(--serif);
  font-size: 28px;
  border-radius: 14px;
  box-shadow: 0 10px 24px -10px rgba(178,58,43,.9);
}
.aside-brand h1 {
  font-family: var(--serif);
  font-size: 22px;
  color: #F2EDE3;
  letter-spacing: .5px;
  font-weight: 600;
}
.aside-brand h1 span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  vertical-align: 3px;
  padding: 2px 6px;
  margin-left: 4px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  color: #A9A093;
  font-weight: 500;
}
.aside-brand p { font-size: 12px; color: #7E776B; margin-top: 4px; letter-spacing: .3px; }

.aside-block { margin-bottom: 24px; }
.aside-block h2 {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6F6859;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.aside-block p { font-size: 13px; line-height: 1.75; color: #9C9487; }
.aside-block p b { color: #D8D1C4; font-weight: 600; }

.aside-list { display: grid; gap: 9px; }
.aside-list li { display: flex; flex-direction: column; gap: 2px; }
.aside-list li b { font-size: 12.5px; color: #E4DDD0; font-weight: 600; }
.aside-list li span { font-size: 11.5px; color: #8D8577; line-height: 1.55; }

.aside-steps { counter-reset: s; display: grid; gap: 8px; }
.aside-steps li {
  counter-increment: s;
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.6;
  color: #9C9487;
}
.aside-steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px;
  display: grid; place-items: center;
  font-size: 10px;
  font-family: var(--mono);
  color: #B9AE97;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.aside-steps li b { color: #E4DDD0; font-weight: 600; }

.aside-map { display: grid; gap: 2px; }
.aside-map button {
  width: 100%;
  text-align: left;
  font-size: 12.5px;
  color: #8D8577;
  padding: 6px 8px;
  border-radius: 7px;
  transition: .18s;
}
.aside-map button:hover { background: rgba(255,255,255,.06); color: #EDE6D9; }

.aside-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; margin-top: 6px; }
.kbd-row { font-size: 11px; color: #6F6859; margin-bottom: 8px; }
kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #B7AE9E;
  margin: 0 2px;
}
.aside-foot .muted { font-size: 11px; color: #635C51; line-height: 1.6; }

/* =========================================================
   设备
   ========================================================= */
.device-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.device {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 56px;
  background: #0B0A09;
  padding: 11px;
  box-shadow:
    0 0 0 1.5px #34302A,
    0 0 0 7px #0B0A09,
    0 0 0 8.5px #2A2620,
    0 60px 110px -40px rgba(0,0,0,.9),
    0 0 120px -40px rgba(178,58,43,.22);
  flex: 0 0 auto;
}

.device-notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 112px; height: 30px;
  background: #0B0A09;
  border-radius: 18px;
  z-index: 60;
}

.screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.device-hint {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #5B5449;
  font-family: var(--mono);
}

/* ---------- 状态栏 ---------- */
.statusbar {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--ink);
  position: relative;
  z-index: 50;
  transition: color .3s, background .3s;
}
.screen.is-dark .statusbar { color: #F2EDE3; background: #1C1915; }
.screen.no-tab .tabbar { display: none; }
.sb-time { font-variant-numeric: tabular-nums; }
.sb-right { display: flex; align-items: center; gap: 5px; }
.sb-ico { width: 15px; height: 11px; fill: currentColor; }
.sb-ico.sb-bat { width: 22px; height: 11px; fill: currentColor; }
.sb-batt { font-size: 11px; font-weight: 500; opacity: .8; margin-right: -1px; }

/* ---------- 页面容器 ---------- */
.viewport { position: relative; flex: 1; min-height: 0; }

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.994);
  transition: opacity .3s ease, transform .34s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.page.is-active { opacity: 1; pointer-events: auto; transform: none; }

[data-scroll] {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
[data-scroll]::-webkit-scrollbar { width: 0; height: 0; display: none; }

.pad-bottom { height: 26px; }

/* ---------- 通用元件 ---------- */
.eyebrow {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}
.muted { color: var(--muted); font-size: 11.5px; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--con);
  color: #FBF7EF;
  font-family: var(--serif);
  font-size: 17px;
  flex: 0 0 auto;
}
.avatar--lg { width: 68px; height: 68px; font-size: 28px; border: 2px solid rgba(255,255,255,.2); }
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .16s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn--primary {
  background: var(--ink);
  color: #FAF7EF;
  box-shadow: 0 10px 22px -12px rgba(23,20,15,.9);
}
.btn--primary:hover { background: #2A251E; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .18s;
  flex: 0 0 auto;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: rgba(23,20,15,.06); }
.icon-btn--onDark { color: #EFE9DC; }
.icon-btn--onDark:hover { background: rgba(255,255,255,.1); }

.link-btn {
  display: inline-flex; align-items: center; gap: 1px;
  font-size: 11.5px; color: var(--muted);
  padding: 4px 0;
}
.link-btn:hover { color: var(--ink); }
.ico-sm { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--sh-sm);
  border: 1px solid rgba(23,20,15,.04);
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.card-head h3 { font-family: var(--serif); font-size: 15.5px; font-weight: 600; letter-spacing: .4px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 20px 12px;
}
.section-head h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .4px; }

.tag {
  font-size: 10.5px;
  letter-spacing: .6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.tag--live {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(178,58,43,.18);
  color: #F0A99C;
  border: 1px solid rgba(178,58,43,.32);
}
.tag--live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #E4654F;
  box-shadow: 0 0 0 0 rgba(228,101,79,.7);
  animation: livePulse 1.9s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(228,101,79,.65); }
  70% { box-shadow: 0 0 0 7px rgba(228,101,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,101,79,0); }
}
.tag--ghost { color: rgba(244,239,228,.42); border: 1px solid rgba(255,255,255,.1); }

/* =========================================================
   01 话题现场
   ========================================================= */
.page--topic { background: var(--paper); }

.topic-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px 6px;
  flex: 0 0 auto;
}
.topic-top-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.live-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px;
  color: var(--con);
  background: var(--con-soft);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.live-tag i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--con);
  animation: softBlink 1.8s infinite;
}
@keyframes softBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.topic-day { font-size: 10px; color: var(--muted); font-family: var(--mono); }

.topic-scroll { padding-bottom: 8px; }

.topic-head { padding: 10px 20px 16px; }
.topic-head .eyebrow { display: block; margin-bottom: 10px; }
.topic-q {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: .5px;
  text-wrap: balance;
}
.topic-nums {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.topic-nums b { color: var(--ink-2); font-weight: 600; font-family: var(--mono); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

/* ---------- 立场光谱 ---------- */
.spectrum-card {
  margin: 0 20px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--sh-md);
  border: 1px solid rgba(23,20,15,.04);
}
.spec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.spec-head h3 { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .4px; }
.spec-hint { font-size: 10.5px; color: var(--muted); }

.spectrum {
  position: relative;
  height: 34px;
  margin: 0 2px 4px;
  cursor: grab;
  touch-action: none;
}
.spectrum:active { cursor: grabbing; }
.spec-track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(178,58,43,.55) 0%,
    rgba(178,58,43,.18) 26%,
    rgba(154,146,132,.22) 50%,
    rgba(30,107,111,.18) 74%,
    rgba(30,107,111,.55) 100%);
  overflow: hidden;
}
.spec-fill {
  position: absolute;
  left: 0; top: 50%;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--con), #C4644F);
  width: 0;
  opacity: .9;
  pointer-events: none;
  transition: width .12s linear, background .25s;
}
.spec-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--mid);
  box-shadow: 0 3px 10px rgba(23,20,15,.22);
  transition: border-color .25s, transform .12s;
  pointer-events: none;
  z-index: 2;
}
.spec-marker span {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--mid);
  transition: background .25s;
}
.spectrum.is-dragging .spec-marker { transform: scale(1.12); }

.spec-ticks { position: absolute; inset: 0; pointer-events: none; }
.spec-ticks .tick {
  position: absolute;
  top: 50%;
  width: 1px; height: 16px;
  margin-top: -8px;
  background: rgba(23,20,15,.14);
}
.tick--l { left: 25%; }
.tick--c { left: 50%; }
.tick--r { left: 75%; }

.spec-labels {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 16px;
  gap: 6px;
}
.spec-lab { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.spec-lab--c { align-items: center; text-align: center; }
.spec-lab--r { align-items: flex-end; text-align: right; }
.spec-lab b { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.spec-lab--l b { color: var(--con); }
.spec-lab--r b { color: var(--pro); }
.spec-lab small { font-size: 9.5px; color: var(--muted-2); }

.spec-result {
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
}
.spec-bars { display: grid; gap: 8px; }
.spec-bar-row { display: flex; align-items: center; gap: 8px; }
.sb-lab { font-size: 10px; color: var(--muted); width: 26px; flex: 0 0 auto; }
.sb-num { font-family: var(--mono); font-size: 10px; color: var(--muted); width: 28px; text-align: right; }
.spec-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(23,20,15,.055);
  overflow: hidden;
}
.spec-bar i {
  display: block; height: 100%;
  border-radius: 999px;
  transform-origin: left;
  animation: barGrow .8s cubic-bezier(.22,.61,.36,1) both;
  transition: width .4s cubic-bezier(.22,.61,.36,1);
}
.bar-l { background: linear-gradient(90deg, #8E2A1E, #C4644F); }
.bar-c { background: linear-gradient(90deg, #7E7669, #B0A898); }
.bar-r { background: linear-gradient(90deg, #17565A, #3E8F94); }
@keyframes barGrow { from { transform: scaleX(0); } }
.spec-note {
  font-size: 10px;
  color: var(--muted-2);
  margin-top: 10px;
  text-align: center;
}

/* ---------- 论点预览卡 ---------- */
.claim-preview { padding: 0 20px; display: flex; flex-direction: column; gap: 9px; }

.claim-card {
  position: relative;
  display: block;
  width: 100%;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 15px 14px 18px;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
  text-align: left;
  transition: transform .16s, box-shadow .2s, border-color .2s;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  /* 用 inset 阴影替代 overflow:hidden + ::before，避免合成层裁剪 */
  background-image: linear-gradient(var(--side-color, var(--con)), var(--side-color, var(--con)));
  background-repeat: no-repeat;
  background-size: 3px 100%;
  background-position: left top;
}
.claim-card[data-side="pro"] { --side-color: var(--pro); }
.claim-card[data-side="con"] { --side-color: var(--con); }
.claim-card:hover { box-shadow: var(--sh-md); border-color: rgba(23,20,15,.12); }
.claim-card:active { transform: scale(.988); }

.claim-card::before {
  content: none;
}

.cc-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.cc-side {
  font-size: 9px;
  letter-spacing: .5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.claim-card[data-side="con"] .cc-side { background: var(--con-soft); color: var(--con); }
.claim-card[data-side="pro"] .cc-side { background: var(--pro-soft); color: var(--pro); }
.cc-idx {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.cc-contested {
  margin-left: auto;
  font-size: 9px;
  color: #8A6A1C;
  background: rgba(201,162,39,.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.cc-text {
  font-size: 13.5px;
  line-height: 1.62;
  font-weight: 500;
  letter-spacing: .1px;
  color: var(--ink);
  margin-bottom: 10px;
}
.cc-text .hl { border-bottom: 2px solid rgba(201,162,39,.45); }

.cc-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  color: var(--muted);
}
.cc-stat { display: inline-flex; align-items: center; gap: 3px; }
.cc-stat svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-stat--up { color: var(--pro); }
.cc-stat--down { color: var(--con); }
.cc-arrow { margin-left: auto; color: var(--muted-2); font-size: 12px; }

/* 争议度条 */
.cc-split {
  display: flex;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 11px;
  background: rgba(23,20,15,.05);
}
.cc-split i:first-child { background: var(--pro); }
.cc-split i:last-child { background: var(--con); }

/* ---------- 实时动态 ---------- */
.live-feed { padding: 0 20px; display: grid; gap: 7px; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(255,255,255,.62);
  border-radius: 11px;
  border: 1px solid var(--line-2);
  animation: feedIn .4s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }
.feed-ava {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 11px;
  color: #FBF7EF;
  flex: 0 0 auto;
}
.feed-main { flex: 1; min-width: 0; }
.feed-line { font-size: 11.5px; line-height: 1.55; color: var(--ink-2); }
.feed-line b { font-weight: 600; }
.feed-line .kw { color: var(--con); }
.feed-time { font-size: 9.5px; color: var(--muted-2); margin-top: 2px; font-family: var(--mono); }

/* ---------- 折叠簇 ---------- */
.feed-item--cluster {
  background: #fff;
  border-color: rgba(30,107,111,.16);
  box-shadow: var(--sh-sm);
}
.feed-more {
  display: inline-block;
  margin-left: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--pro);
  background: var(--pro-soft);
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: 1px;
}
.feed-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.feed-expand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--pro);
  padding: 2px 0;
  transition: opacity .2s;
}
.feed-expand:hover { opacity: .7; }
.feed-expand:disabled { opacity: .5; }
.feed-expand svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s;
}
.feed-expand.is-open svg { transform: rotate(180deg); }

/* 展开后的原始表述列表 */
.feed-members {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 7px;
  animation: fadeUp .25s ease both;
}
.feed-members[hidden] { display: none; }
.member-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding-left: 2px;
}
.member-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  margin-top: 7px;
  flex: 0 0 auto;
}
.member-row.is-canonical .member-dot {
  background: var(--pro);
  box-shadow: 0 0 0 2px var(--pro-soft);
}
.member-body { flex: 1; min-width: 0; }
.member-body p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}
.member-row.is-canonical .member-body p { color: var(--ink); font-weight: 500; }
.member-body small {
  display: block;
  font-size: 9px;
  color: var(--muted-2);
  margin-top: 2px;
  font-family: var(--mono);
}

/* 论点详情里的展开按钮 */
.ai-expand { color: var(--pro); }
.ai-chev {
  width: 10px !important;
  height: 10px !important;
  transition: transform .22s;
}
.ai-expand.is-open .ai-chev { transform: rotate(180deg); }

/* ---------- CTA ---------- */
.topic-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 20px 0;
  padding: 14px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--line-2);
}
.cta-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cta-info b { font-size: 12.5px; font-weight: 600; }
.cta-info small { font-size: 10.5px; color: var(--muted); }

/* =========================================================
   02 论点聚合
   ========================================================= */
.page--claims { background: var(--paper); }
.page-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 6px 20px 12px;
  flex: 0 0 auto;
}
.page-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 4px;
}

.claims-bar {
  padding: 0 20px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.seg {
  display: flex;
  background: rgba(23,20,15,.05);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 7px;
  color: var(--muted);
  transition: .18s;
  white-space: nowrap;
}
.seg button.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(23,20,15,.12);
}
.claims-side { display: flex; gap: 5px; margin-left: auto; }
.claims-side button {
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: .18s;
}
.claims-side button.is-active {
  background: var(--ink);
  color: #F7F3EA;
  border-color: var(--ink);
}

.claims-scroll {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-height: 0;
}

/* 论点列表项 */
.claim-row {
  position: relative;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 15px;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
  text-align: left;
  width: 100%;
  transition: transform .16s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.claim-row:hover { box-shadow: var(--sh-md); border-color: rgba(23,20,15,.12); }
.claim-row:active { transform: scale(.99); }
.claim-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.claim-row[data-side="con"]::before { background: var(--con); }
.claim-row[data-side="pro"]::before { background: var(--pro); }

/* 排序高亮 */
.claim-row.is-top {
  background: linear-gradient(160deg, #FFFDF8, #FBF8F0);
  border-color: rgba(201,162,39,.3);
}

.claims-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   03 论点详情
   ========================================================= */
.page--detail { background: var(--paper); }
.claim-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}

.detail-scroll { padding-bottom: 8px; }

.detail-claim { padding: 8px 20px 0; }
.dc-side {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: .5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 12px;
}
.dc-side--pro { background: var(--pro-soft); color: var(--pro); }
.dc-side--con { background: var(--con-soft); color: var(--con); }

.dc-text {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--ink);
  margin-bottom: 14px;
}
.dc-text .hl { border-bottom: 3px solid rgba(201,162,39,.42); }

.dc-author {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.dc-author-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dc-author-info b { font-size: 11.5px; font-weight: 600; }
.dc-author-info small { font-size: 9.5px; color: var(--muted); }
.dc-badge {
  font-size: 9px;
  color: #8A6A1C;
  background: rgba(201,162,39,.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.dc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0;
}
.dc-stat {
  background: #fff;
  padding: 11px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dc-stat b { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.dc-stat small { font-size: 9.5px; color: var(--muted); }

.dc-split-label {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.dc-split {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(23,20,15,.05);
  margin-bottom: 16px;
}
.dc-split i:first-child { background: var(--pro); }
.dc-split i:last-child { background: var(--con); }

/* 双方论据 */
.argue-tabs {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
}
.argue-tabs button {
  flex: 1;
  font-size: 12px;
  padding: 9px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(23,20,15,.04);
  transition: .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.argue-tabs button span {
  font-family: var(--mono);
  font-size: 10px;
  opacity: .7;
}
.argue-tabs button.is-active[data-argue="pro"] {
  background: var(--pro-soft);
  color: var(--pro);
  font-weight: 600;
}
.argue-tabs button.is-active[data-argue="con"] {
  background: var(--con-soft);
  color: var(--con);
  font-weight: 600;
}

.argue-list { padding: 0 20px; display: grid; gap: 8px; }

.argue-item {
  background: #fff;
  border-radius: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
  animation: fadeUp .3s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

.ai-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.ai-name { font-size: 11px; font-weight: 600; }
.ai-tag {
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: .3px;
}
.ai-tag--pro { background: var(--pro-soft); color: var(--pro); }
.ai-tag--con { background: var(--con-soft); color: var(--con); }
.ai-tag--none { background: var(--mid-soft); color: var(--mid); }

/* 未表态页签：用中性色，避免看起来像第三方立场 */
.argue-tabs button.is-active[data-argue="none"] {
  background: var(--mid-soft);
  color: var(--ink-2);
  font-weight: 600;
}

/* 已结束的话题：卡片与话题页的只读态 */
.sq-item--closed { opacity: .62; }
.sq-closed {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(23,20,15,.07);
  color: var(--muted);
}
.spectrum.is-disabled { pointer-events: none; opacity: .45; }
.topic-cta.is-disabled { opacity: .5; pointer-events: none; }
.ai-meta { margin-left: auto; font-size: 9px; color: var(--muted-2); font-family: var(--mono); }

.ai-text { font-size: 12.5px; line-height: 1.68; color: var(--ink-2); }
.ai-text .kw { border-bottom: 2px solid rgba(201,162,39,.45); font-weight: 600; }

.ai-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line-2);
}
.ai-act {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px;
  color: var(--muted);
  transition: color .18s;
}
.ai-act:hover { color: var(--ink); }
.ai-act svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-act.is-on { color: var(--pro); font-weight: 600; }

.detail-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 20px 14px;
  background: linear-gradient(180deg, rgba(244,241,233,0), var(--paper) 30%);
  border-top: 1px solid var(--line-2);
}
.act-btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .16s, background .2s, color .2s;
}
.act-btn:active { transform: scale(.97); }
.act-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act-btn--no {
  flex: 0 0 38%;
  background: #fff;
  color: var(--con);
  border: 1px solid rgba(178,58,43,.24);
}
.act-btn--no.is-on { background: var(--con); color: #fff; border-color: var(--con); }
.act-btn--yes {
  background: var(--pro);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(30,107,111,.9);
}
.act-btn--yes.is-on { background: #17565A; }
.act-num { font-family: var(--mono); font-size: 11px; opacity: .85; }

/* =========================================================
   04 话题广场
   ========================================================= */
.page--square { background: var(--paper); }

.square-tabs {
  display: flex;
  gap: 6px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 0 auto;
}
.square-tabs::-webkit-scrollbar { display: none; }
.square-tabs button {
  flex: 0 0 auto;
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(23,20,15,.045);
  transition: .18s;
}
.square-tabs button.is-active {
  background: var(--ink);
  color: #F7F3EA;
}

.square-scroll { padding: 0 20px; }

.sq-hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: 20px;
  background:
    radial-gradient(110% 90% at 100% 0%, #3A2A24 0%, transparent 55%),
    linear-gradient(160deg, #1C1814 0%, #12100D 100%);
  color: #F4EFE4;
  overflow: hidden;
  box-shadow: 0 22px 44px -24px rgba(23,20,15,.8);
  cursor: pointer;
  transition: transform .18s;
}
.sq-hero:active { transform: scale(.99); }
.sq-hero-glow {
  position: absolute;
  top: -50px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(201,162,39,.22), transparent 65%);
  pointer-events: none;
}
.sq-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
}
.sq-hero h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.48;
  font-weight: 500;
  letter-spacing: .5px;
  margin-bottom: 18px;
  position: relative;
}
.sq-hero-foot { position: relative; }
.sq-mini-spec {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  margin-bottom: 9px;
}
.sq-mini-spec .ms--l { background: #C4644F; }
.sq-mini-spec .ms--c { background: #7E7669; }
.sq-mini-spec .ms--r { background: #3E8F94; }
.sq-hero-nums {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: rgba(244,239,228,.42);
  font-family: var(--mono);
}

.sq-list { display: grid; gap: 9px; }
.sq-item {
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 15px;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
  text-align: left;
  width: 100%;
  transition: transform .16s, box-shadow .2s;
}
.sq-item:active { transform: scale(.99); }
.sq-item:hover { box-shadow: var(--sh-md); }

.sq-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.sq-cat {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(23,20,15,.055);
  color: var(--muted);
  letter-spacing: .3px;
}
.sq-hot {
  margin-left: auto;
  font-size: 9px;
  color: var(--con);
  font-family: var(--mono);
}
.sq-item h4 {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 10px;
}
.sq-item-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sq-bar {
  flex: 1;
  display: flex;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(23,20,15,.05);
}
.sq-bar i:first-child { background: var(--con); }
.sq-bar i:nth-child(2) { background: var(--mid); }
.sq-bar i:last-child { background: var(--pro); }
.sq-nums {
  font-size: 9.5px;
  color: var(--muted);
  font-family: var(--mono);
  flex: 0 0 auto;
}
.sq-contested {
  font-size: 9px;
  color: #8A6A1C;
  background: rgba(201,162,39,.12);
  padding: 2px 6px;
  border-radius: 4px;
  flex: 0 0 auto;
}

/* =========================================================
   05 我的
   ========================================================= */
.page--me { background: var(--paper); }

.me-hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 80% 0%, #35281F 0%, transparent 60%),
    linear-gradient(170deg, #1C1915 0%, #12100E 100%);
  background-color: #1C1915;
  color: #F1EBDE;
  padding: 4px 20px 20px;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.me-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 40px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
  pointer-events: none;
}
.me-top { display: flex; justify-content: flex-end; position: relative; z-index: 1; }
.me-profile { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.me-id h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .6px;
  display: flex; align-items: center; gap: 8px;
}
.me-rank {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(201,162,39,.16);
  color: #D9B84A;
  border: 1px solid rgba(201,162,39,.28);
  font-weight: 500;
}
.me-handle { font-size: 11px; color: rgba(241,235,222,.42); margin-top: 4px; }
.me-quote {
  position: relative; z-index: 1;
  margin: 16px 0;
  padding-left: 11px;
  border-left: 2px solid rgba(201,162,39,.5);
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(241,235,222,.7);
  letter-spacing: .3px;
}
.me-stats {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.me-stats div { display: flex; flex-direction: column; gap: 2px; }
.me-stats b { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -.3px; }
.me-stats small { font-size: 9.5px; color: rgba(241,235,222,.4); }

.me-body { padding: 14px 20px 0; display: grid; gap: 10px; }

/* 立场分布 */
.stance-dist { display: grid; gap: 10px; }
.sd-row { display: flex; align-items: center; gap: 9px; }
.sd-lab { font-size: 10.5px; width: 42px; flex: 0 0 auto; color: var(--muted); }
.sd-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(23,20,15,.055);
  overflow: hidden;
}
.sd-bar i {
  display: block; height: 100%;
  border-radius: 999px;
  transform-origin: left;
  animation: barGrow .9s cubic-bezier(.22,.61,.36,1) both;
}
.sd-bar i.l { background: linear-gradient(90deg, #8E2A1E, #C4644F); }
.sd-bar i.c { background: linear-gradient(90deg, #7E7669, #B0A898); }
.sd-bar i.r { background: linear-gradient(90deg, #17565A, #3E8F94); }
.sd-num { font-family: var(--mono); font-size: 10px; color: var(--muted); width: 34px; text-align: right; }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px;
  border-radius: 12px;
  background: rgba(23,20,15,.025);
  border: 1px dashed var(--line);
  opacity: .45;
  filter: grayscale(1);
}
.badge--on {
  opacity: 1;
  filter: none;
  background: linear-gradient(160deg, #FFFDF7, #F7F2E6);
  border: 1px solid rgba(201,162,39,.28);
  box-shadow: 0 6px 14px -10px rgba(201,162,39,.8);
}
.badge-ico { font-size: 20px; line-height: 1; }
.badge small { font-size: 9.5px; color: var(--muted); text-align: center; }
.badge--on small { color: #6B5A2E; }

.hist-list { display: grid; gap: 1px; }
.hist-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.hist-row:last-child { border-bottom: 0; }
.hist-stance {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  flex: 0 0 auto;
  font-weight: 600;
}
.hist-stance.con { background: var(--con-soft); color: var(--con); }
.hist-stance.pro { background: var(--pro-soft); color: var(--pro); }
.hist-stance.mid { background: var(--mid-soft); color: var(--mid); }
.hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hist-main b { font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-main small { font-size: 9.5px; color: var(--muted); }
.hist-time { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }

.me-links {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin-bottom: 4px;
}
.me-links button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
}
.me-links button:last-child { border-bottom: 0; }
.me-links button:hover { background: rgba(23,20,15,.02); }
.me-links .arr { color: var(--muted-2); font-size: 12px; }

/* =========================================================
   Tabbar
   ========================================================= */
.tabbar {
  flex: 0 0 auto;
  height: 62px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 6px 8px 0;
  background: rgba(250,248,243,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-2);
  position: relative;
  z-index: 30;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  color: var(--muted-2);
  transition: color .2s;
}
.tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.tab span { font-size: 9.5px; letter-spacing: .3px; }
.tab.is-active { color: var(--ink); }
.tab--center { flex: 0 0 auto; width: 62px; }
.tab--center span { margin-top: 1px; }
.tab-fab {
  width: 44px; height: 44px;
  margin-top: -16px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #C4442F, #8E2A1E);
  box-shadow: 0 10px 20px -8px rgba(178,58,43,.85), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s;
}
.tab--center:active .tab-fab { transform: scale(.93); }
.tab-fab svg { width: 22px; height: 22px; fill: none; stroke: #FFF; stroke-width: 2.4; stroke-linecap: round; }

/* =========================================================
   发言抽屉 / Toast
   ========================================================= */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.overlay--sheet {
  align-items: flex-end;
  background: rgba(18,16,14,.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  width: 100%;
  background: var(--paper-2);
  border-radius: 24px 24px 0 0;
  padding: 10px 20px 20px;
  transform: translateY(100%);
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 -20px 50px -20px rgba(23,20,15,.5);
}
.overlay.is-open .sheet { transform: none; }

.sheet-handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: rgba(23,20,15,.16);
  margin: 0 auto 14px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.sheet-head h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.sheet-sub { font-size: 10.5px; color: var(--muted); margin-bottom: 14px; }

#composeInput {
  width: 100%;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px 14px;
  font-size: 13.5px;
  line-height: 1.65;
  resize: none;
  outline: none;
  font-family: var(--sans);
  transition: border-color .2s;
}
#composeInput:focus { border-color: rgba(30,107,111,.5); }
#composeInput::placeholder { color: var(--muted-2); }

.sheet-detect {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(30,107,111,.06);
  border: 1px dashed rgba(30,107,111,.25);
  min-height: 38px;
  transition: .25s;
}
.sheet-detect.is-empty {
  background: rgba(23,20,15,.03);
  border-color: var(--line);
}
.detect-label { font-size: 9.5px; color: var(--muted); flex: 0 0 auto; }
.detect-claim {
  font-size: 11.5px;
  color: var(--pro);
  font-weight: 600;
  line-height: 1.4;
}
.sheet-detect.is-empty .detect-claim { color: var(--muted-2); font-weight: 400; }

.sheet-quick {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
}
.sheet-quick::-webkit-scrollbar { display: none; }
.qchip {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: .16s;
}
.qchip:hover { border-color: rgba(23,20,15,.24); }

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}
.sheet-count { font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }
.sheet-foot .btn { flex: 0 0 auto; min-width: 108px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  background: rgba(20,18,15,.93);
  color: #F1EBDE;
  font-size: 11.5px;
  letter-spacing: .2px;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .26s cubic-bezier(.22,.61,.36,1);
  z-index: 200;
  max-width: 84%;
  text-align: center;
  line-height: 1.5;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   登录页
   ========================================================= */
.page--auth {
  z-index: 80;
  background:
    radial-gradient(120% 70% at 80% 0%, #3A2A22 0%, transparent 55%),
    linear-gradient(170deg, #1C1915 0%, #12100E 100%);
  background-color: #1C1915;
  color: #F1EBDE;
}
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 26px 30px;
  overflow-y: auto;
}
.auth-brand { text-align: center; margin-bottom: 30px; }
.auth-logo {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #C4442F, #8E2A1E);
  color: #F7F3EA;
  font-family: var(--serif);
  font-size: 32px;
  border-radius: 18px;
  box-shadow: 0 16px 36px -14px rgba(178,58,43,.9);
}
.auth-brand h1 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  font-weight: 600;
  margin-bottom: 10px;
}
.auth-brand p {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(241,235,222,.42);
  letter-spacing: .3px;
}

.auth-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg);
  padding: 20px;
}
.auth-label {
  display: block;
  font-size: 11px;
  color: rgba(241,235,222,.45);
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.auth-label--mt { margin-top: 16px; }

.auth-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 0 12px;
  height: 46px;
  transition: border-color .2s;
}
.auth-input-row:focus-within { border-color: rgba(201,162,39,.55); }
.auth-prefix {
  font-size: 13px;
  color: rgba(241,235,222,.5);
  font-family: var(--mono);
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.auth-input-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #F1EBDE;
  font-size: 14px;
  letter-spacing: .5px;
}
.auth-input-row input::placeholder { color: rgba(241,235,222,.28); }

.auth-send {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #D9B84A;
  padding: 6px 4px;
  white-space: nowrap;
  transition: opacity .2s;
}
.auth-send:disabled { color: rgba(241,235,222,.28); cursor: not-allowed; }

.auth-submit {
  margin-top: 20px;
  height: 46px;
  width: 100%;
  display: flex;
  background: #F4EFE4;
  color: #17140F;
}
.auth-submit:hover { background: #fff; }

.auth-tip {
  font-size: 10.5px;
  color: rgba(241,235,222,.3);
  text-align: center;
  margin-top: 12px;
}
.auth-dev {
  font-size: 10.5px;
  color: #D9B84A;
  text-align: center;
  margin-top: 8px;
  font-family: var(--mono);
  letter-spacing: .5px;
  min-height: 14px;
}

.auth-legal {
  font-size: 10px;
  color: rgba(241,235,222,.28);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}
.auth-legal a { color: rgba(241,235,222,.5); text-decoration: none; }

.auth-skip {
  margin-top: 22px;
  font-size: 11.5px;
  color: rgba(241,235,222,.38);
  align-self: center;
  padding: 8px 16px;
  transition: color .2s;
}
.auth-skip:hover { color: rgba(241,235,222,.7); }

/* =========================================================
   提案页
   ========================================================= */
.page--propose { background: var(--paper); }
.propose-scroll { padding: 0 20px; }

/* 提案页的标签是浅色背景，需要覆盖登录页的浅色文字 */
.page--propose .auth-label {
  color: var(--muted);
  font-weight: 500;
}
.page--propose .page-top {
  padding-top: 10px;
  align-items: flex-start;
}
.page--propose .page-top .eyebrow { display: block; margin-bottom: 2px; }
/* 提案页顶部留出状态栏空间，避免与时间/信号图标重叠 */
.page--propose .page-top { padding-top: 22px; }

.propose-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--line-2);
}
.propose-card textarea {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 13.5px;
  line-height: 1.6;
  resize: none;
  outline: none;
  font-family: var(--sans);
  transition: border-color .2s;
}
.propose-card textarea:focus { border-color: rgba(30,107,111,.45); }
.propose-card textarea::placeholder { color: var(--muted-2); }

.propose-hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted-2);
}
.propose-hint.is-warn #proposeQcHint { color: #B2503F; }
.propose-hint.is-ok #proposeQcHint { color: var(--pro); }
.propose-count { font-family: var(--mono); flex: 0 0 auto; }

.cat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cat-chips button {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23,20,15,.045);
  color: var(--muted);
  transition: .16s;
}
.cat-chips button.is-active {
  background: var(--ink);
  color: #F7F3EA;
}

.propose-submit { margin-top: 18px; }

.rule-card {
  margin-top: 12px;
  background: linear-gradient(160deg, #1D1A16, #131110);
  border-radius: var(--r-md);
  padding: 16px;
  color: #F1EBDE;
}
.rule-card h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.rule-flow { display: grid; gap: 12px; }
.rule-step { display: flex; gap: 11px; align-items: flex-start; }
.rule-num {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: #D9B84A;
  border: 1px solid rgba(201,162,39,.4);
  background: rgba(201,162,39,.1);
}
.rule-step b { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.rule-step small { font-size: 10.5px; color: rgba(241,235,222,.4); line-height: 1.5; }

.proposal-list { padding: 0 20px; display: grid; gap: 9px; }

.proposal-item {
  background: #fff;
  border-radius: var(--r-md);
  padding: 15px;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
}
.proposal-item.is-formed {
  background: linear-gradient(160deg, #F4FAF9, #EEF6F5);
  border-color: rgba(30,107,111,.22);
}
.pi-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}
.pi-cat {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(23,20,15,.05);
  color: var(--muted);
}
.pi-qc {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
}
.pi-qc--passed { background: var(--pro-soft); color: var(--pro); }
.pi-qc--pending { background: rgba(201,162,39,.13); color: #8A6A1C; }
.pi-qc--formed { background: rgba(30,107,111,.16); color: var(--pro); font-weight: 600; }
.pi-status { margin-left: auto; font-size: 9px; color: var(--muted-2); font-family: var(--mono); }

.pi-title {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 8px;
}
.pi-brief { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }

.pi-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.pi-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(23,20,15,.06);
  overflow: hidden;
}
.pi-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17565A, #3E8F94);
  transform-origin: left;
  animation: barGrow .8s cubic-bezier(.22,.61,.36,1) both;
}
.pi-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  flex: 0 0 auto;
}
.pi-num b { color: var(--pro); font-weight: 600; }

.pi-foot { display: flex; align-items: center; gap: 9px; }
.pi-by { font-size: 10px; color: var(--muted-2); flex: 1; }
.pi-support {
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9px;
  background: var(--pro);
  color: #fff;
  transition: transform .16s, background .2s;
}
.pi-support:active { transform: scale(.96); }
.pi-support:disabled { background: rgba(23,20,15,.1); color: var(--muted-2); cursor: default; }
.pi-support.is-done { background: rgba(30,107,111,.12); color: var(--pro); }

.pi-go {
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9px;
  background: var(--ink);
  color: #F7F3EA;
}

.pi-formed-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--pro);
  background: rgba(30,107,111,.08);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 11px;
}

/* 广场提案入口 */
.square-propose { padding: 0 20px 4px; }
.propose-entry {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(30,107,111,.07), rgba(30,107,111,.02));
  border: 1px dashed rgba(30,107,111,.28);
  border-radius: var(--r-md);
  text-align: left;
  transition: .18s;
}
.propose-entry:hover { border-color: rgba(30,107,111,.5); background: rgba(30,107,111,.08); }
.propose-entry:active { transform: scale(.99); }
.pe-ico {
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--pro);
  color: #fff;
}
.pe-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pe-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pe-txt b { font-size: 12.5px; font-weight: 600; color: var(--pro); }
.pe-txt small { font-size: 10px; color: var(--muted); }
.pe-arrow { color: rgba(30,107,111,.5); font-size: 13px; }

/* 我的页退出 */
.me-logout span:first-child { color: var(--con); }

/* 未登录提示条 */
.guest-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 20px 10px;
  background: rgba(201,162,39,.1);
  border: 1px solid rgba(201,162,39,.28);
  border-radius: 11px;
}
.guest-bar p { flex: 1; font-size: 11px; line-height: 1.5; color: #7A5F10; }
.guest-bar button {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  background: #7A5F10;
  color: #FFF8E6;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .stage { gap: 40px; }
  .stage-aside { width: 280px; flex-basis: 280px; }
}
@media (max-width: 900px) {
  .stage { flex-direction: column; gap: 28px; padding: 24px 16px; }
  .stage-aside { width: 100%; flex: 0 0 auto; max-width: 390px; order: 2; }
  .aside-brand, .aside-block { margin-bottom: 20px; }
  .aside-foot { display: none; }
}
@media (max-width: 430px) {
  .stage { padding: 0; gap: 0; }
  .stage-aside, .device-hint { display: none; }
  .device {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--paper);
  }
  .device-notch { display: none; }
  .screen { border-radius: 0; }
  .statusbar { display: none; }
}

/* 截图模式：动画立即落到终态 */
.is-shot *,
.is-shot *::before,
.is-shot *::after {
  animation-duration: .001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition: none !important;
}

/* ---------- 举报 ---------- */
.feed-report {
  font-size: 10px;
  color: var(--muted-2);
  padding: 2px 0;
  margin-left: auto;
}
.member-body .feed-report { margin-left: 6px; }
.feed-report:hover { color: var(--muted); text-decoration: underline; }
.report-sheet {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(23, 20, 15, .38);
  display: flex;
  align-items: flex-end;
}
.report-box {
  width: 100%;
  background: var(--card);
  border-radius: 18px 18px 0 0;
  padding: 18px 18px 26px;
}
.report-box h3 { font-size: 15px; margin: 0 0 12px; }
.report-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.report-reasons button, .report-cancel {
  padding: 11px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.report-reasons button:hover { background: var(--line-2); }
.report-cancel { width: 100%; margin-top: 10px; color: var(--muted); border: none; }
