:root {
  color-scheme: dark;
  --bg: #0a0b0f;
  --bg-soft: #0e1015;
  --card: #111319;
  --card-hi: #15181f;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --text-strong: #ffffff;
  --text-body: #dfe4ec;
  --text-body-soft: #cbd3df;
  --text-sub: #c9d1dd;
  --muted: #9aa3b2;
  --dim: #6b7484;
  --green: #4ade80;
  --green-ink: #d9ffe7;
  --green-soft: #a7f3d0;
  --green-soft2: #86efac;
  --green-dim: rgba(74, 222, 128, 0.12);
  --green-line: rgba(74, 222, 128, 0.45);
  --green-fill: rgba(74, 222, 128, 0.14);
  --green-fill-hi: rgba(74, 222, 128, 0.24);
  --amber: #fbbf24;
  --amber-soft: #fde68a;
  --blue: #7dd3fc;
  --purple: #c4b5fd;
  --red: #f87171;
  --code-ink: #d7ffe4;
  --on-accent: #0a0b0f;
  --lane-green-ink: #bbf7d0;
  --lane-amber-ink: #fde68a;
  --lane-blue-ink: #bfe3fb;
  --lane-purple-ink: #ddd6fe;
  --topbar-bg: rgba(10, 11, 15, 0.72);
  --inset: rgba(0, 0, 0, 0.45);
  --inset-soft: rgba(0, 0, 0, 0.35);
  --inset-strong: rgba(0, 0, 0, 0.6);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.45);
  --glow-green: rgba(74, 222, 128, 0.16);
  --glow-blue: rgba(125, 211, 252, 0.12);
  --glow-purple: rgba(196, 181, 253, 0.08);
  --wash-a: rgba(255, 255, 255, 0.01);
  --wash-b: rgba(255, 255, 255, 0.015);
  --wash-c: rgba(255, 255, 255, 0.02);
  --wash-d: rgba(255, 255, 255, 0.022);
  --wash-e: rgba(255, 255, 255, 0.025);
  --wash-f: rgba(255, 255, 255, 0.03);
  --wash-g: rgba(255, 255, 255, 0.035);
  --wash-h: rgba(255, 255, 255, 0.045);
  --wash-i: rgba(255, 255, 255, 0.06);
  --wash-j: rgba(255, 255, 255, 0.07);
  --wash-k: rgba(255, 255, 255, 0.12);
  --wash-l: rgba(255, 255, 255, 0.16);
  --wash-m: rgba(255, 255, 255, 0.3);
  --radius: 16px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* ---- 浅色主题：显式选择时生效（data-theme="light"）---- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-hi: #fcfdff;
  --line: rgba(15, 23, 42, 0.1);
  --line-hi: rgba(15, 23, 42, 0.22);
  --text: #10151d;
  --text-strong: #050a12;
  --text-body: #26303c;
  --text-body-soft: #46525f;
  --text-sub: #3a4553;
  --muted: #5a6572;
  --dim: #78838f;
  --green: #15803d;
  --green-ink: #0f6b34;
  --green-soft: #4ade80;
  --green-soft2: #34d399;
  --green-dim: rgba(21, 128, 61, 0.1);
  --green-line: rgba(21, 128, 61, 0.42);
  --green-fill: rgba(21, 128, 61, 0.1);
  --green-fill-hi: rgba(21, 128, 61, 0.17);
  --amber: #b45309;
  --amber-soft: #fbbf24;
  --blue: #0284c7;
  --purple: #7c3aed;
  --red: #dc2626;
  --code-ink: #0f6b34;
  --on-accent: #06210f;
  --lane-green-ink: #116534;
  --lane-amber-ink: #92400e;
  --lane-blue-ink: #075985;
  --lane-purple-ink: #5b21b6;
  --topbar-bg: rgba(255, 255, 255, 0.82);
  --inset: rgba(15, 23, 42, 0.05);
  --inset-soft: rgba(15, 23, 42, 0.04);
  --inset-strong: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.22);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.1);
  --glow-green: rgba(21, 128, 61, 0.1);
  --glow-blue: rgba(2, 132, 199, 0.07);
  --glow-purple: rgba(124, 58, 237, 0.05);
  --wash-a: rgba(15, 23, 42, 0.012);
  --wash-b: rgba(15, 23, 42, 0.016);
  --wash-c: rgba(15, 23, 42, 0.022);
  --wash-d: rgba(15, 23, 42, 0.026);
  --wash-e: rgba(15, 23, 42, 0.03);
  --wash-f: rgba(15, 23, 42, 0.035);
  --wash-g: rgba(15, 23, 42, 0.042);
  --wash-h: rgba(15, 23, 42, 0.05);
  --wash-i: rgba(15, 23, 42, 0.06);
  --wash-j: rgba(15, 23, 42, 0.07);
  --wash-k: rgba(15, 23, 42, 0.1);
  --wash-l: rgba(15, 23, 42, 0.16);
  --wash-m: rgba(15, 23, 42, 0.28);
}

/* ---- 未手动选择时跟随系统 ---- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f6f7f9;
    --bg-soft: #ffffff;
    --card: #ffffff;
    --card-hi: #fcfdff;
    --line: rgba(15, 23, 42, 0.1);
    --line-hi: rgba(15, 23, 42, 0.22);
    --text: #10151d;
    --text-strong: #050a12;
    --text-body: #26303c;
    --text-body-soft: #46525f;
    --text-sub: #3a4553;
    --muted: #5a6572;
    --dim: #78838f;
    --green: #15803d;
    --green-ink: #0f6b34;
    --green-soft: #4ade80;
    --green-soft2: #34d399;
    --green-dim: rgba(21, 128, 61, 0.1);
    --green-line: rgba(21, 128, 61, 0.42);
    --green-fill: rgba(21, 128, 61, 0.1);
    --green-fill-hi: rgba(21, 128, 61, 0.17);
    --amber: #b45309;
    --amber-soft: #fbbf24;
    --blue: #0284c7;
    --purple: #7c3aed;
    --red: #dc2626;
    --code-ink: #0f6b34;
    --on-accent: #06210f;
    --lane-green-ink: #116534;
    --lane-amber-ink: #92400e;
    --lane-blue-ink: #075985;
    --lane-purple-ink: #5b21b6;
    --topbar-bg: rgba(255, 255, 255, 0.82);
    --inset: rgba(15, 23, 42, 0.05);
    --inset-soft: rgba(15, 23, 42, 0.04);
    --inset-strong: rgba(15, 23, 42, 0.08);
    --shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.22);
    --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.1);
    --glow-green: rgba(21, 128, 61, 0.1);
    --glow-blue: rgba(2, 132, 199, 0.07);
    --glow-purple: rgba(124, 58, 237, 0.05);
    --wash-a: rgba(15, 23, 42, 0.012);
    --wash-b: rgba(15, 23, 42, 0.016);
    --wash-c: rgba(15, 23, 42, 0.022);
    --wash-d: rgba(15, 23, 42, 0.026);
    --wash-e: rgba(15, 23, 42, 0.03);
    --wash-f: rgba(15, 23, 42, 0.035);
    --wash-g: rgba(15, 23, 42, 0.042);
    --wash-h: rgba(15, 23, 42, 0.05);
    --wash-i: rgba(15, 23, 42, 0.06);
    --wash-j: rgba(15, 23, 42, 0.07);
    --wash-k: rgba(15, 23, 42, 0.1);
    --wash-l: rgba(15, 23, 42, 0.16);
    --wash-m: rgba(15, 23, 42, 0.28);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.glow {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 22% 0%, var(--glow-green), transparent 70%),
    radial-gradient(50% 45% at 78% 6%, var(--glow-blue), transparent 72%),
    radial-gradient(40% 40% at 50% 0%, var(--glow-purple), transparent 70%);
  filter: blur(6px);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(14px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand__mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, var(--green) 0 2.5px, transparent 3px),
    radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(74, 222, 128, 0.5) 7.5px, transparent 8.5px),
    radial-gradient(circle at 50% 50%, transparent 0 11px, rgba(74, 222, 128, 0.22) 11.5px, transparent 12.5px);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.brand__text em {
  font-style: normal;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.topbar__actions { display: flex; align-items: center; gap: 12px; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--wash-f);
  transition: border-color 0.18s, background 0.18s;
}
.search:focus-within {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.06);
}
.search svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round;
}
.search input {
  border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 14px;
  width: 200px;
}
.search input::placeholder { color: var(--dim); }

.ghost-btn {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.ghost-btn:hover { color: var(--text); border-color: var(--line-hi); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; padding: 72px 24px 40px; }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hl {
  background: linear-gradient(100deg, var(--green), var(--green-soft) 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16.5px;
}
.lede strong { color: var(--text); font-weight: 600; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.stat {
  flex: 1 1 150px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--wash-h), var(--wash-a));
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat span { font-size: 12.5px; color: var(--dim); }

/* ---------- controls ---------- */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 34px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

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

.chip {
  font-size: 13.5px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-hi); }
.chip[aria-selected="true"] {
  background: var(--green-dim);
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--green-ink);
}

.sortwrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.sortwrap select {
  appearance: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),
    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 51%, calc(100% - 11px) 51%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---------- grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  padding-bottom: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wash-l), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
  box-shadow: var(--shadow);
}
.card:hover::after { opacity: 1; }

.card--source { border-color: rgba(74, 222, 128, 0.3); }
.card--source::after { background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent); opacity: 1; }

.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.who { display: flex; align-items: center; gap: 11px; min-width: 0; }

.avatar {
  position: relative;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-accent);
  background: linear-gradient(140deg, var(--green), var(--green-soft2));
  box-shadow: 0 0 0 1px var(--wash-k);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar:hover {
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.6);
  transform: translateY(-1px);
}
.avatar__fallback { line-height: 1; }
.card--source .avatar { background: linear-gradient(140deg, var(--amber), var(--amber-soft)); }
.card--source .avatar:hover { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.6); }

.who__text { min-width: 0; }
.who__name {
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.who__name:hover {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--wash-m);
  text-underline-offset: 3px;
}
.who__name .ext {
  width: 13px; height: 13px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.card:hover .who__name .ext { opacity: 0.85; }
.who__meta { display: block; font-size: 12px; color: var(--dim); font-family: var(--mono); }

.lane {
  flex: 0 0 auto;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.lane[data-lane="AI 接单"] { color: var(--lane-green-ink); border-color: rgba(74, 222, 128, 0.32); background: rgba(74, 222, 128, 0.08); }
.lane[data-lane="拆钱复盘"] { color: var(--lane-amber-ink); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.07); }
.lane[data-lane="内容平台"] { color: var(--lane-blue-ink); border-color: rgba(125, 211, 252, 0.3); background: rgba(125, 211, 252, 0.07); }
.lane[data-lane="清单型"] { color: var(--lane-purple-ink); border-color: rgba(196, 181, 253, 0.28); background: rgba(196, 181, 253, 0.07); }

.card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-weight: 650;
}
.card__title a { background-image: linear-gradient(var(--green), var(--green)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.25s ease; }
.card__title a:hover { background-size: 100% 1px; }

.card__summary { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.72; }

.card__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--wash-g);
  border-left: 2px solid rgba(74, 222, 128, 0.45);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: 11.5px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
  font-family: var(--mono);
}
.card__foot .views { color: var(--text); }
.card__foot .views b { color: var(--green); font-weight: 600; }
.card__foot .views-na { color: var(--dim); font-style: normal; font-size: 11.5px; }
.card__foot a { color: var(--muted); transition: color 0.16s; }
.card__foot a:hover { color: var(--green); }

.badge-source {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
}

.empty { text-align: center; color: var(--dim); padding: 60px 0; }

/* ---------- bands ---------- */
.band { padding: 72px 24px 8px; }
.band__head { max-width: 640px; margin-bottom: 30px; }
.band__head h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.band__head p { margin: 0; color: var(--muted); font-size: 15px; }

.skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.skeleton li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 58px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--wash-c);
}
.skeleton li::before {
  content: "0" counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  opacity: 0.85;
}
.skeleton b { display: block; font-size: 15px; margin-bottom: 6px; }
.skeleton span { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.queries { display: flex; flex-wrap: wrap; gap: 10px; }
.query {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: all 0.16s;
}
.query:hover { border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.07); }
.query svg { width: 14px; height: 14px; fill: none; stroke: var(--dim); stroke-width: 1.7; }

/* ---------- footer ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--wash-b); }
.footer__inner { padding: 34px 24px 56px; display: grid; gap: 10px; }
.footer p { margin: 0; font-size: 13px; color: var(--dim); max-width: 760px; line-height: 1.8; }
.footer strong { color: var(--muted); font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--green-ink);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 40;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { padding-top: 52px; }
  .stat { flex: 1 1 calc(50% - 6px); padding: 14px 15px; }
  .stat b { font-size: 20px; }
  .search input { width: 110px; }
  .ghost-btn { display: none; }
  .brand__text { white-space: nowrap; }
  .brand__text em { display: none; }
  .theme-toggle { width: 34px; height: 34px; }
  .grid { grid-template-columns: 1fr; }
  .band { padding-top: 56px; }
  .topbar__inner { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ 站内阅读页 ============ */
.reader { position: relative; z-index: 1; max-width: 800px; padding-top: 44px; padding-bottom: 40px; }

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--dim);
  margin-bottom: 22px;
}
.crumbs a { color: var(--muted); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--green); }

.reader__title {
  margin: 0 0 26px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

.avatar--lg { width: 46px; height: 46px; font-size: 17px; }

.reader__byline { display: flex; flex-direction: column; gap: 3px; }
.reader__author { font-weight: 650; font-size: 15.5px; }
.reader__author:hover { color: var(--green); }
.reader__sub { font-size: 12.5px; color: var(--dim); font-family: var(--mono); }

.reader__tags { margin: 20px 0 0; }

/* 正文排版 */
.prose {
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--text-body);
  letter-spacing: 0.005em;
}
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  margin: 2.4em 0 0.9em;
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  padding-left: 14px;
  border-left: 3px solid rgba(74, 222, 128, 0.55);
}
.prose h3 {
  margin: 2em 0 0.7em;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-strong);
}
.prose h4 { margin: 1.6em 0 0.6em; font-size: 17px; color: var(--text-sub); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.45em; }
.prose li { margin: 0.42em 0; }
.prose li::marker { color: rgba(74, 222, 128, 0.75); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 2px solid rgba(251, 191, 36, 0.5);
  background: var(--wash-g);
  color: var(--text-body-soft);
  font-size: 16px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-strong); font-weight: 650; }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--wash-j);
  color: var(--code-ink);
}
.prose pre {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.7; }
.prose figure { margin: 1.8em 0; }
.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--wash-c);
}

/* 正文内链 */
.prose a {
  color: var(--green);
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.prose a:hover { color: var(--green-soft2); border-bottom-color: rgba(134, 239, 172, 0.8); }

/* 原位配图 */
.prose .fig {
  margin: 2em 0;
}
.prose .fig a {
  display: block;
  border: 0;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prose .fig a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.prose .fig img { cursor: zoom-in; }
.prose .fig--cover { margin-top: 0; margin-bottom: 2.4em; }
.prose .fig--cover img { border-radius: 14px; }

/* 表格（原文 MARKDOWN 块） */
.prose .tbl-wrap {
  margin: 1.9em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash-d);
  -webkit-overflow-scrolling: touch;
}
.prose .tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
  min-width: 420px;
}
.prose .tbl th,
.prose .tbl td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--wash-i);
}
.prose .tbl th {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 13px;
  letter-spacing: 0.02em;
  background: rgba(74, 222, 128, 0.055);
  white-space: nowrap;
}
.prose .tbl tbody tr:last-child td { border-bottom: 0; }
.prose .tbl tbody tr:hover { background: var(--wash-c); }

.prose-hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 嵌入推文卡片 */
.prose .tw-embed {
  display: block;
  margin: 1.6em 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--wash-f);
}
.prose .tw-embed:hover {
  border-color: var(--line-hi);
  background: rgba(74, 222, 128, 0.05);
}
.tw-embed__k {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.tw-embed__t { font-size: 14px; color: var(--muted); }

/* 采集说明 */
.collect-note {
  margin-top: 46px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--wash-e);
  font-size: 13px;
  line-height: 1.8;
  color: var(--dim);
}
.collect-note p { margin: 0; }
.collect-note strong { color: var(--muted); font-weight: 600; }
.collect-note a { color: var(--muted); border-bottom: 1px solid var(--line-hi); }
.collect-note a:hover { color: var(--green); }
.collect-note__editor { margin-top: 10px !important; }

/* 上/下一篇 */
.reader-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}
.reader-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.18s, transform 0.18s;
  min-height: 74px;
}
.reader-nav__item:hover { border-color: rgba(74, 222, 128, 0.4); transform: translateY(-2px); }
.reader-nav__item span { font-size: 11.5px; font-family: var(--mono); color: var(--dim); }
.reader-nav__item b { font-size: 13.5px; font-weight: 550; line-height: 1.6; color: var(--text-body); }
.reader-nav__item--next { text-align: right; align-items: flex-end; }

.reader-count { margin-top: 22px; font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.reader-count a { color: var(--muted); border-bottom: 1px solid var(--line-hi); }

/* 卡片上的小修饰 */
.dot { font-style: normal; color: var(--dim); }
.read-link { color: var(--green) !important; }
a.read-link:hover { opacity: 0.8; }
.lane--idx { color: var(--dim); border-style: dashed; }

/* ============ 采集页 ============ */
.collect-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 20px; position: relative; z-index: 1; }
.collect-wrap h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; letter-spacing: -0.02em; }
.collect-wrap > p { color: var(--muted); margin: 0 0 30px; max-width: 640px; }

.collect-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.collect-form input[type="url"], .collect-form input[type="text"] {
  flex: 1 1 320px;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--inset-soft);
  color: var(--text);
  outline: none;
}
.collect-form input:focus { border-color: rgba(74, 222, 128, 0.5); }
.collect-form button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.14);
  color: var(--green-ink);
  cursor: pointer;
  transition: background 0.16s, opacity 0.16s;
}
.collect-form button:hover { background: rgba(74, 222, 128, 0.22); }
.collect-form button[disabled] { opacity: 0.5; cursor: default; }

.collect-out { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.collect-out pre {
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--line);
  overflow: auto;
  max-height: 420px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-sub);
  white-space: pre-wrap;
}
.collect-steps { margin-top: 40px; display: grid; gap: 12px; counter-reset: cs; }
.collect-steps li {
  list-style: none;
  counter-increment: cs;
  position: relative;
  padding: 16px 18px 16px 54px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--wash-c);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}
.collect-steps li::before {
  content: counter(cs);
  position: absolute;
  left: 18px; top: 15px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--on-accent);
  background: var(--green);
}
.collect-steps code { font-family: var(--mono); font-size: 12.5px; color: var(--code-ink); background: var(--wash-i); padding: 2px 6px; border-radius: 5px; }

@media (max-width: 720px) {
  .reader { padding-top: 28px; }
  .prose { font-size: 16.5px; line-height: 1.9; }
  .reader-nav { grid-template-columns: 1fr; }
  .reader-nav__item--next { text-align: left; align-items: flex-start; }
  .collect-wrap { padding-top: 36px; }
}

/* 原文配图 */
.gallery { margin-top: 52px; }
.gallery__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.gallery__title span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
  border-radius: 999px;
  padding: 1px 9px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--wash-f);
  transition: border-color 0.18s, transform 0.18s;
}
.gallery__item:hover { border-color: rgba(74, 222, 128, 0.45); transform: translateY(-2px); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item span {
  position: absolute;
  left: 6px; bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-sub);
  background: var(--inset-strong);
  border-radius: 5px;
  padding: 1px 5px;
}
.gallery__item.is-broken { opacity: 0.35; }
.gallery__note { margin: 14px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- 主题切换 ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-hi); background: var(--wash-f); }
.theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.theme-toggle svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
.theme-toggle[data-theme-mode="light"] .icon-sun { display: block; }
.theme-toggle[data-theme-mode="dark"] .icon-moon { display: block; }
.theme-toggle[data-theme-mode="auto"] .icon-auto { display: block; }
.theme-toggle .icon-auto { display: none; }

/* 浅色下把顶部光晕收得更轻，避免脏灰 */
:root[data-theme="light"] .glow { filter: blur(10px); }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}
