/* ============================================================
   彩票洞察 · Matrix 终端风格
   设计取向：磷光绿 CRT + 等宽排版 + 数据面板；动效克制，优先可读性
   ============================================================ */

:root {
  --bg: #04070a;
  --bg-2: #060b0e;
  --panel: #071013;
  --panel-2: #0a161a;
  --line: rgba(0, 255, 65, 0.18);
  --line-soft: rgba(0, 255, 65, 0.08);
  --g: #00ff41;
  --g-dim: #22b455;
  --text: #d6ffe2;
  --text-2: #9ad4ac;
  --dim: #5c8a6e;
  --warn: #ffd166;
  --danger: #ff5c7a;
  --radius: 4px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", Menlo,
    "PingFang SC", "Microsoft YaHei", monospace;
  --label: 11px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(0, 255, 65, 0.07), transparent 70%), var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.85;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(0, 255, 65, 0.28); color: #eafff0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050a0c; }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 65, 0.22); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 65, 0.4); }

/* ---------- 全局视觉层：数字雨 / 扫描线 / 暗角 ---------- */

#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.17;
  pointer-events: none;
}

.grain,
.scanlines,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 65, 0.055) 0px,
    rgba(0, 255, 65, 0.055) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
  mix-blend-mode: screen;
}

.vignette {
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.72) 100%);
}

/* 内容层要压在上面 */
.topbar, main, footer, .modal-mask, .toast-stack { position: relative; z-index: 2; }

/* ---------- 布局 ---------- */

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.hide { display: none !important; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(4, 7, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 255, 65, 0.12), 0 18px 40px -30px rgba(0, 255, 65, 0.6);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--g);
  color: var(--g);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.35), inset 0 0 14px rgba(0, 255, 65, 0.16);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 255, 65, 0.25), inset 0 0 12px rgba(0, 255, 65, 0.12); }
  50% { box-shadow: 0 0 26px rgba(0, 255, 65, 0.5), inset 0 0 18px rgba(0, 255, 65, 0.25); }
}
.brand-text { min-width: 0; }
.brand-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #e9fff0;
  text-shadow: 0 0 16px rgba(0, 255, 65, 0.45);
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: -4px;
}

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: 0.15s;
}
.nav a::before { content: "/ "; color: var(--dim); }
.nav a:hover { color: var(--g); border-color: var(--line); }
.nav a.active { color: var(--g); border-color: var(--line); background: rgba(0, 255, 65, 0.07); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 65, 0.04);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
}
.btn:hover { color: var(--g); border-color: rgba(0, 255, 65, 0.45); background: rgba(0, 255, 65, 0.09); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: rgba(0, 255, 65, 0.12);
  border-color: rgba(0, 255, 65, 0.5);
  color: #b7ffcb;
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}
.btn-primary:hover { background: rgba(0, 255, 65, 0.2); color: #eafff0; }

.btn-gold { border-color: rgba(255, 209, 102, 0.45); color: var(--warn); background: rgba(255, 209, 102, 0.08); }
.btn-gold:hover { color: #ffe6a8; border-color: rgba(255, 209, 102, 0.7); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(0, 255, 65, 0.06); border-color: var(--line); }

/* ---------- 标签 / 徽章 ---------- */

.tag {
  display: inline-block;
  padding: 1px 7px;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.8px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(0, 255, 65, 0.04);
  white-space: nowrap;
}
.tag-free { border-color: rgba(0, 255, 65, 0.45); color: var(--g); background: rgba(0, 255, 65, 0.1); }
.tag-paid { border-color: rgba(255, 209, 102, 0.35); color: var(--warn); background: rgba(255, 209, 102, 0.07); }
.tag-own { border-color: rgba(120, 200, 255, 0.35); color: #8fd0ff; background: rgba(120, 200, 255, 0.07); }
.tag-hot { border-color: rgba(255, 92, 122, 0.4); color: var(--danger); background: rgba(255, 92, 122, 0.08); }

.badge-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 8px currentColor; }

/* ---------- 状态条（终端信息栏） ---------- */

.ticker {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 255, 65, 0.025);
  font-size: 11.5px;
  color: var(--dim);
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 30px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker-inner::-webkit-scrollbar { display: none; }
.ticker b { color: var(--g-dim); font-weight: 400; }
.ticker .rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g); box-shadow: 0 0 8px var(--g); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

/* ---------- 首屏 ---------- */

.hero { padding: 64px 0 34px; position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2.6px;
  color: var(--g-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--g); box-shadow: 0 0 10px var(--g); }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.28;
  letter-spacing: 1px;
  font-weight: 700;
  color: #f0fff4;
  text-shadow: 0 0 26px rgba(0, 255, 65, 0.35), 0 0 60px rgba(0, 255, 65, 0.12);
}
.hero h1 .hl { color: var(--g); text-shadow: 0 0 22px rgba(0, 255, 65, 0.7); }
.caret {
  display: inline-block;
  width: 0.62em;
  height: 1em;
  background: var(--g);
  vertical-align: -0.12em;
  margin-left: 4px;
  box-shadow: 0 0 14px var(--g);
  animation: blink 1.05s steps(1) infinite;
}
.hero p { margin: 0; max-width: 720px; color: var(--text-2); font-size: 14px; }

.hero-metrics { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; border: 1px solid var(--line); }
.metric {
  flex: 1 1 150px;
  padding: 14px 18px;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.05), transparent);
}
.metric:last-child { border-right: 0; }
.metric b { display: block; font-size: 22px; font-weight: 600; color: var(--g); text-shadow: 0 0 16px rgba(0, 255, 65, 0.5); line-height: 1.3; }
.metric span { font-size: 10.5px; letter-spacing: 1.4px; color: var(--dim); text-transform: uppercase; }

/* ---------- 公告 ---------- */

.notice {
  margin: 28px 0 0;
  padding: 13px 16px;
  border-left: 2px solid var(--warn);
  background: rgba(255, 209, 102, 0.05);
  color: #e8dcb8;
  font-size: 12.5px;
  line-height: 1.8;
}
.notice b { color: var(--warn); font-weight: 600; letter-spacing: 1px; }

/* ---------- 区块标题 ---------- */

.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 14px; }
.sec-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--g);
  text-transform: uppercase;
}
.sec-head h2::before { content: "> "; color: var(--dim); }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.sec-head .count { font-size: 11px; color: var(--dim); letter-spacing: 1px; }

/* ---------- 筛选 / 搜索 ---------- */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px; }
.chip {
  padding: 4px 11px;
  font-size: 12px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: 0.15s;
  letter-spacing: 0.4px;
}
.chip:hover { border-color: var(--line); color: var(--g); }
.chip.active { border-color: rgba(0, 255, 65, 0.55); color: var(--g); background: rgba(0, 255, 65, 0.1); }
.chip .n { color: var(--dim); margin-left: 4px; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  padding: 4px 10px;
  background: rgba(0, 255, 65, 0.03);
  min-width: 220px;
}
.search span { color: var(--g); font-size: 12px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  padding: 4px 0;
}
.search input::placeholder { color: #3f6350; }

/* ---------- 文章列表 ---------- */

.list { border-top: 1px solid var(--line-soft); }

.rec {
  display: grid;
  grid-template-columns: 58px 1fr 168px;
  gap: 18px;
  align-items: center;
  padding: 17px 14px 17px 16px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background 0.15s;
}
.rec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: 0.15s;
}
.rec:hover { background: rgba(0, 255, 65, 0.035); }
.rec:hover::before { background: var(--g); box-shadow: 0 0 16px var(--g); }

.rec-id { font-size: 11px; color: var(--dim); letter-spacing: 1.2px; }
.rec-id i { display: block; font-style: normal; font-size: 9.5px; opacity: 0.7; }

.rec-main { min-width: 0; }
.rec-title {
  font-size: 16px;
  font-weight: 600;
  color: #e6fff0;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  transition: 0.15s;
}
.rec:hover .rec-title { color: #fff; text-shadow: 0 0 18px rgba(0, 255, 65, 0.4); }
.rec-desc {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-side { text-align: right; font-size: 11px; color: var(--dim); letter-spacing: 0.6px; }
.rec-side .st { display: block; margin-bottom: 4px; }
.rec-side .nums { display: flex; justify-content: flex-end; gap: 12px; }
.rec-side .nums i { font-style: normal; }

/* ---------- 文章页 ---------- */

.article-wrap { max-width: 820px; margin: 0 auto; padding: 34px 0 80px; }

.win { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(0, 255, 65, 0.02), transparent 40%), var(--panel); }
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 255, 65, 0.055);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 1px;
}
.win-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 255, 65, 0.5); }
.win-dot.w { background: rgba(255, 209, 102, 0.6); }
.win-dot.r { background: rgba(255, 92, 122, 0.6); }
.win-title { margin-left: 6px; color: var(--text-2); }

.article-head { padding: 30px 32px 22px; }
.article-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.article-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.42;
  font-weight: 700;
  color: #f2fff6;
  letter-spacing: 0.4px;
  text-shadow: 0 0 30px rgba(0, 255, 65, 0.22);
}
.article-sub { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.9; }

/* 时间存证条 */
.evidence {
  margin: 22px 32px 0;
  border: 1px dashed rgba(0, 255, 65, 0.22);
  background: rgba(0, 255, 65, 0.03);
  padding: 12px 16px;
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 2;
}
.evidence .k { color: var(--dim); display: inline-block; min-width: 74px; letter-spacing: 1px; }
.evidence .v { color: var(--g); }
.evidence .note { color: var(--dim); font-size: 11px; }

/* 正文 */
.md {
  padding: 26px 32px 34px;
  font-size: 15.5px;
  line-height: 2;
  color: #d4f2de;
  letter-spacing: 0.3px;
}
.md .md-p { margin: 0 0 18px; }
.md .md-h {
  margin: 34px 0 12px;
  font-size: 17px;
  color: #eefff4;
  font-weight: 650;
  letter-spacing: 0.6px;
  padding-left: 12px;
  border-left: 2px solid var(--g);
  text-shadow: 0 0 18px rgba(0, 255, 65, 0.3);
}
.md .md-h:first-child { margin-top: 0; }
.md h2.md-h { font-size: 21px; }
.md h3.md-h { font-size: 17.5px; }
.md h4.md-h { font-size: 15.5px; border-left-color: rgba(0, 255, 65, 0.5); color: #d8ffe6; }
.md em { color: #b6ffcd; }
.md .md-quote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 2px solid rgba(0, 255, 65, 0.45);
  background: rgba(0, 255, 65, 0.05);
  color: #c2e8cf;
  font-size: 14px;
}
.md .md-ul, .md .md-ol { margin: 0 0 18px; padding-left: 22px; }
.md .md-ul li, .md .md-ol li { margin-bottom: 6px; }
.md .md-ul { list-style: none; padding-left: 4px; }
.md .md-ul li::before { content: "▸ "; color: var(--g); }
.md .md-ol { list-style: none; padding-left: 4px; counter-reset: md-ol; }
.md .md-ol li { counter-increment: md-ol; }
.md .md-ol li::before { content: counter(md-ol, decimal-leading-zero) ". "; color: var(--g-dim); }
.md .md-fig { margin: 24px 0; }
.md .md-fig img { width: 100%; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 22px 50px -30px #000; }
.md .md-fig figcaption { margin-top: 8px; font-size: 11.5px; color: var(--dim); text-align: center; letter-spacing: 0.6px; }
.md .md-img { margin: 14px 0; border: 1px solid var(--line); }
.md .md-hr { border: 0; border-top: 1px dashed var(--line); margin: 30px 0; }
.md .md-pre {
  margin: 20px 0;
  padding: 14px 16px;
  background: #050c0f;
  border: 1px solid var(--line-soft);
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.8;
  color: #9fe8b6;
}
.md code {
  padding: 1px 5px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--line-soft);
  font-size: 0.92em;
  color: #a9ffc4;
}
.md .md-pre code { background: none; border: 0; padding: 0; }
.md a { color: var(--g); border-bottom: 1px dashed rgba(0, 255, 65, 0.5); }
.md a:hover { border-bottom-style: solid; }
.md strong { color: #f2fff6; font-weight: 700; }
.md del { color: var(--dim); }

/* 付费墙 */
.paywall { margin: 0 32px 32px; }
.paywall-veil {
  position: relative;
  max-height: 120px;
  overflow: hidden;
  filter: blur(4px);
  opacity: 0.35;
  user-select: none;
  pointer-events: none;
  font-size: 15px;
  line-height: 2;
  color: #b9e6c8;
}
.paywall-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--panel) 92%);
}
.paywall-box {
  margin-top: -30px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0, 255, 65, 0.3);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.09), rgba(0, 255, 65, 0.02));
  padding: 26px 24px;
  text-align: center;
  box-shadow: 0 0 60px -20px rgba(0, 255, 65, 0.5);
}
.paywall-box .lock { font-size: 11px; letter-spacing: 3px; color: var(--g-dim); margin-bottom: 10px; }
.paywall-box h3 { margin: 0 0 8px; font-size: 18px; color: #eefff4; font-weight: 650; }
.paywall-box p { margin: 0 0 18px; font-size: 12.5px; color: var(--text-2); }
.paywall-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--g);
  text-shadow: 0 0 28px rgba(0, 255, 65, 0.6);
  line-height: 1.2;
}
.paywall-num small { font-size: 12px; color: var(--dim); margin-left: 6px; font-weight: 400; }

/* ---------- 评论区 ---------- */

.comments { margin-top: 22px; }
.cmt-stat { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--dim); }

.cmt-list { padding: 4px 0 0; }
.cmt {
  padding: 16px 20px;
  border-bottom: 1px dashed var(--line-soft);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}
.cmt-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(0, 255, 65, 0.06);
  color: var(--g);
  font-size: 13px;
  font-weight: 700;
}
.cmt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmt-user { color: var(--g); font-size: 12.5px; letter-spacing: 0.6px; }
.cmt-time { color: var(--dim); font-size: 11px; }
.cmt-body { margin-top: 5px; font-size: 13.5px; color: #cdecda; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.cmt-del { margin-left: auto; }

.cmt-form { padding: 18px 20px 22px; }
.cmt-form textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--line);
  background: rgba(0, 255, 65, 0.03);
  padding: 11px 13px;
  outline: none;
  font-size: 13.5px;
  line-height: 1.8;
  transition: 0.15s;
}
.cmt-form textarea:focus { border-color: rgba(0, 255, 65, 0.5); background: rgba(0, 255, 65, 0.055); }
.cmt-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cmt-hint { font-size: 11px; color: var(--dim); }

.emoji-btn {
  border: 1px solid var(--line-soft);
  background: transparent;
  padding: 3px 9px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-2);
}
.emoji-btn:hover { border-color: var(--line); background: rgba(0, 255, 65, 0.07); }

.emoji-panel {
  position: absolute;
  z-index: 40;
  width: 268px;
  padding: 8px;
  background: #071013;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px #000, 0 0 0 1px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
}
.emoji-panel button {
  border: 0;
  background: transparent;
  font-size: 17px;
  line-height: 34px;
  height: 34px;
  cursor: pointer;
  border-radius: 3px;
}
.emoji-panel button:hover { background: rgba(0, 255, 65, 0.12); }

/* ---------- 表单 ---------- */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 1.2px; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; }
.input, textarea.input, select.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 65, 0.03);
  outline: none;
  font-size: 13.5px;
  transition: 0.15s;
}
.input:focus { border-color: rgba(0, 255, 65, 0.55); background: rgba(0, 255, 65, 0.06); }
.input::placeholder { color: #3f6350; }
textarea.input { resize: vertical; min-height: 160px; line-height: 1.8; }
select.input { appearance: none; cursor: pointer; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 38px;
  height: 20px;
  border: 1px solid rgba(0, 255, 65, 0.32);
  background: rgba(0, 255, 65, 0.06);
  box-shadow: inset 0 0 12px rgba(0, 255, 65, 0.08);
  position: relative;
  transition: 0.18s;
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: var(--dim);
  transition: 0.18s;
}
.switch input:checked + .track { background: rgba(0, 255, 65, 0.2); border-color: rgba(0, 255, 65, 0.5); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--g); box-shadow: 0 0 10px var(--g); }

/* ---------- 卡片 / 面板（后台复用） ---------- */

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.03), transparent 60%), var(--panel);
}
.pad { padding: 22px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; }
.kv + .kv { border-top: 1px solid var(--line-soft); }
.kv span { color: var(--dim); }
.kv b { font-weight: 600; }

.empty { padding: 44px 20px; text-align: center; color: var(--dim); font-size: 13px; letter-spacing: 1px; }
.empty::before { content: "// "; color: var(--g-dim); }

.log-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 13px; }
.log-item + .log-item { border-top: 1px solid var(--line-soft); }
.log-item .amount { font-weight: 700; min-width: 52px; }
.amount.up { color: var(--g); }
.amount.down { color: var(--danger); }
.log-item .desc { color: var(--text-2); }
.log-item .time { margin-left: auto; color: var(--dim); font-size: 11px; }

.panel-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }

/* ---------- 弹层 / 提示 ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 5, 7, 0.82);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.16s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%;
  max-width: 420px;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.06), transparent 40%), #061013;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 40px 90px -30px #000, 0 0 70px -30px rgba(0, 255, 65, 0.5);
  animation: pop 0.18s ease;
}
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.modal h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: 1.2px; color: #eefff4; }
.modal h3::before { content: "> "; color: var(--g); }
.modal .sub { margin: 0 0 20px; font-size: 12px; color: var(--dim); line-height: 1.8; }
.modal-foot { margin-top: 16px; text-align: center; font-size: 12px; color: var(--dim); }
.modal-foot a { color: var(--g); cursor: pointer; border-bottom: 1px dashed rgba(0, 255, 65, 0.4); }

.toast-stack { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 9px 18px;
  font-size: 12.5px;
  background: rgba(6, 16, 19, 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 0 30px -10px rgba(0, 255, 65, 0.5);
  animation: toastIn 0.2s ease;
}
.toast.ok { border-color: rgba(0, 255, 65, 0.5); color: #b7ffcb; }
.toast.err { border-color: rgba(255, 92, 122, 0.5); color: #ffb3c1; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ---------- 阅读进度 ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--g);
  box-shadow: 0 0 12px var(--g);
  z-index: 60;
  transition: width 0.08s linear;
}

/* ---------- 骨架 ---------- */

.skeleton {
  height: 64px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.02), rgba(0, 255, 65, 0.07), rgba(0, 255, 65, 0.02));
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }

/* ---------- 页脚 ---------- */

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--line-soft);
  padding: 24px 0 46px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 2;
  letter-spacing: 0.5px;
}
.footer b { color: var(--text-2); font-weight: 500; }
.footer .ascii { color: rgba(0, 255, 65, 0.22); font-size: 10px; line-height: 1.1; margin-bottom: 14px; white-space: pre; overflow: hidden; }

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .topbar-inner { height: 58px; gap: 10px; }
  .hero { padding: 38px 0 20px; }
  .rec { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 10px 14px 12px; }
  .rec-side { grid-column: 2; text-align: left; display: flex; gap: 12px; align-items: center; margin-top: 2px; }
  .rec-side .st { margin-bottom: 0; }
  .article-head { padding: 22px 18px 18px; }
  .md { padding: 20px 18px 26px; font-size: 15px; }
  .evidence { margin: 18px 18px 0; }
  .paywall { margin: 0 18px 24px; }
  .panel-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .hero-metrics .metric { flex-basis: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  #rain { display: none; }
  .caret, .brand-mark, .ticker .rec-dot { animation: none; }
}
