/* ============================================================
   澄读 · AI 解读站 — 统一外壳
   美学：暖纸编辑风 · 克制品牌色 · 排版驱动
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f4f1ea;
  --bg-2: #eee9df;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #1b1a17;
  --ink-2: #4a463f;
  --muted: #857f73;
  --line: #e4ddcf;
  --line-2: #d9d1c1;
  --ember: #df5130;
  --ember-soft: #fbe8e1;
  --verify: #2f7d57;
  --stance: #a9791d;
  --stance-soft: #f7eccf;
  --err: #c0392b;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.04), 0 10px 26px -12px rgba(40, 30, 10, 0.14);
  --shadow-lg: 0 2px 4px rgba(40, 30, 10, 0.05), 0 24px 50px -18px rgba(40, 30, 10, 0.22);
  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-body: 'IBM Plex Sans', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --radius: 13px;
  --frame: 1200px;
}

html.dark {
  --bg: #131211;
  --bg-2: #1a1816;
  --surface: #1d1b18;
  --surface-2: #232019;
  --ink: #ece8e0;
  --ink-2: #c4bdb1;
  --muted: #8d8576;
  --line: #2c2925;
  --line-2: #36322b;
  --ember: #f2694b;
  --ember-soft: #2c1d17;
  --verify: #5db487;
  --stance: #d4a44e;
  --stance-soft: #2a2213;
  --err: #e06555;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.35s ease;
  line-height: 1.6;
}
/* soft paper atmosphere — very light, must not grey out the page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), var(--bg) 96%),
    var(--page-bg-img, none) center / cover no-repeat;
  opacity: 0.28;
}
html.dark body::before {
  opacity: 0.12;
  mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.frame { max-width: var(--frame); margin: 0 auto; }
.wrap-760 { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.wrap-680 { max-width: 680px; margin: 0 auto; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.rise > * { animation: slideUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.rise > *:nth-child(2) { animation-delay: 0.06s; }
.rise > *:nth-child(3) { animation-delay: 0.12s; }
.rise > *:nth-child(4) { animation-delay: 0.18s; }
.card { animation: slideUp 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--ember);
  border-style: solid;
}
.brand-mark::before {
  left: 0; top: 0;
  border-width: 1.6px 0 0 1.6px;
}
.brand-mark::after {
  right: 0; bottom: 0;
  border-width: 0 1.6px 1.6px 0;
}
.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  margin-left: -2px;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 2px;
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav-link {
  font-size: 14px;
  border-radius: 8px;
  padding: 7px 12px;
  transition: all 0.15s;
  color: var(--muted);
}
.nav-link:hover { color: var(--ink-2); }
.nav-link.active {
  color: var(--ink);
  background: var(--surface);
  font-weight: 500;
}
.nav-spacer { flex: 1; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.lang-switch .ls {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
}
.lang-switch .ls.on {
  background: var(--bg-2);
  color: var(--ink);
}
.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12.5px;
  transition: all 0.15s;
}
.btn-search:hover { border-color: var(--line-2); color: var(--ink-2); }
.icon-link {
  color: var(--muted);
  display: inline-flex;
  padding: 6px;
  transition: color 0.15s;
}
.icon-link:hover { color: var(--ember); }
.btn-theme,
.btn-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: border-color 0.15s;
}
.btn-theme:hover,
.btn-menu:hover { border-color: var(--line-2); }
.btn-acct {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-acct:hover { opacity: 0.88; }
html.dark .btn-acct {
  background: var(--ember);
  color: #fff;
}
.btn-menu { display: none; }
.btn-menu .ico-close { display: none; }
.site-header.menu-open .btn-menu .ico-menu { display: none; }
.site-header.menu-open .btn-menu .ico-close { display: inline-flex; }
.mobile-menu { display: none; }
.site-header.menu-open .mobile-menu {
  display: block;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 4px 18px 18px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.mobile-menu .nav-links { display: flex; flex-direction: column; gap: 0; margin: 0; }
.mobile-menu .nav-link {
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 15.5px;
}
.mm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 6px 4px;
}
.mm-acct { width: 100%; justify-content: center; margin: 12px 0 4px; padding: 11px; }

@media (max-width: 860px) {
  .nav-inner { gap: 10px; padding: 11px 16px; }
  .btn-search span,
  .brand-sub,
  .nav-inner > .nav-links,
  .nav-inner > .lang-switch,
  .nav-inner > .btn-search,
  .nav-inner > .icon-link,
  .nav-inner > .btn-acct { display: none; }
  .btn-menu { display: inline-flex; }
}

/* ---------- Login modal ---------- */
.lg-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.lg-modal[hidden] { display: none; }
.lgm-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.45);
  backdrop-filter: blur(4px);
}
.lgm-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lgm-x {
  position: absolute;
  right: 14px;
  top: 14px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.lgm-x:hover { background: var(--bg-2); color: var(--ink); }
.lgm-kick {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 8px;
}
.lgm-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.lgm-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}
.lgm-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
}
.lgm-tabs button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.lgm-perk {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--ember-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.lgm-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lgm-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.lgm-form input:focus { border-color: var(--ember); }
.wall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.wall-btn.primary {
  background: var(--ember);
  color: #fff;
}
.wall-btn.primary:hover { filter: brightness(1.05); }
.wall-btn.ghost {
  background: var(--ink);
  color: var(--bg);
  border: 0;
}
html.dark .wall-btn.ghost {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.wall-btn.outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.wall-btn.outline:hover { border-color: var(--ember); color: var(--ember); }
.lgm-msg {
  font-size: 13px;
  margin-top: 12px;
  min-height: 1.2em;
  color: var(--muted);
}
.lgm-msg.ok { color: var(--verify); }
.lgm-msg.err { color: var(--err); }
.lgm-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.lgm-foot a { color: var(--ember); }
.lgm-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.lgm-or::before,
.lgm-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Hero ---------- */
.home-main { padding: 0 22px; }
.hero { padding: 64px 0 40px; max-width: 820px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  animation: blink 2s infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero h1 .em { color: var(--ember); }
.hero-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 600px;
  margin-bottom: 22px;
}
.creed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.creed-chip {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 14px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 15px 18px;
  max-width: 520px;
  cursor: text;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.hero-search:hover { border-color: var(--ember); }
.hero-search .ph { color: var(--muted); font-size: 15px; flex: 1; }
.kbd {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  font-family: var(--font-mono);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-trust .ck { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .sep { opacity: 0.4; }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 8px 0 40px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 17px 15px;
  display: block;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tint) 40%, var(--line));
  box-shadow: var(--shadow);
}
.cat-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cat-card .sq {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--tint);
}
.cat-card .cnt { font-size: 11px; color: var(--muted); }
.cat-card .name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cat-card .en {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Section headers ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 0 4px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.sec-head .more {
  font-size: 13px;
  color: var(--ember);
  font-weight: 500;
}
.sec-head .more:hover { text-decoration: underline; }

/* ---------- Featured ---------- */
.featured-wrap { padding: 0 0 36px; }
.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.featured .left {
  position: relative;
  min-height: 280px;
  padding: 24px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 22%, var(--surface)), var(--surface) 80%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.featured .left .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--tint) 28%, transparent) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.45;
  pointer-events: none;
}
.featured .left > * { position: relative; z-index: 1; }
.featured .cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tint);
  margin-bottom: 12px;
}
.featured .cat .sq {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tint);
}
.featured .no { font-size: 12px; color: var(--muted); margin-bottom: auto; }
.featured .bigen {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--tint) 55%, var(--ink));
  opacity: 0.35;
  margin-top: auto;
  font-family: var(--font-mono);
}
.featured .right {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured .right h3 {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 13px;
  letter-spacing: -0.01em;
}
.featured .right p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.featured .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .featured { grid-template-columns: 1fr; }
  .featured .left {
    min-height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Article cards ---------- */
.grid-section { padding: 6px 0 56px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: 18px;
}
.art-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s, border-color 0.22s;
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 17%, var(--surface)), var(--surface) 75%);
}
/* real <img> covers — more reliable than CSS var() background urls */
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.cover::after,
.featured.has-photo .left::after,
.art-hero-cover.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(255, 252, 246, 0.45) 78%, rgba(255, 252, 246, 0.88) 100%);
}
.art-card.has-photo .cover .acc-flag,
.art-card.has-photo .cover .cat,
.art-card.has-photo .cover .no,
.art-card.has-photo .cover .bigen,
.art-card.has-photo .cover .srcbar,
.featured.has-photo .left > .acc-flag,
.featured.has-photo .left > .cat,
.featured.has-photo .left > .no,
.featured.has-photo .left > .bigen,
.art-hero-cover.has-photo .ahc-inner,
.art-hero-cover.has-photo .acc-flag {
  z-index: 2;
}
.art-card.has-photo .cover .dots,
.featured.has-photo .left .dots {
  opacity: 0.12;
  mix-blend-mode: multiply;
  z-index: 1;
}
/* light editorial covers → keep category tint colors readable */
.art-card.has-photo .cover .cat {
  color: var(--tint);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 8px;
  left: 12px;
  top: 12px;
}
.art-card.has-photo .cover .cat .sq { background: var(--tint); }
.art-card.has-photo .cover .bigen {
  color: color-mix(in srgb, var(--tint) 55%, var(--ink));
  opacity: 0.22;
  text-shadow: none;
}
.art-card.has-photo .cover .no {
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 6px;
  right: 12px;
  top: 44px;
}
.art-card.has-photo .cover .srcbar {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.art-card.has-photo .cover .stance-tag { color: var(--stance); }
.featured.has-photo .left {
  border-right-color: var(--line);
  position: relative;
  overflow: hidden;
}
.featured.has-photo .left::after {
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--surface) 70%, transparent) 100%);
}
.featured.has-photo .cat {
  color: var(--tint);
  text-shadow: none;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 11px;
  border-radius: 8px;
  align-self: flex-start;
}
.featured.has-photo .cat .sq { background: var(--tint); }
.featured.has-photo .no {
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 8px;
  align-self: flex-start;
}
.featured.has-photo .bigen {
  color: color-mix(in srgb, var(--tint) 50%, var(--ink));
  opacity: 0.28;
}
.cover .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--tint) 22%, transparent) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: 0.5;
}
.cover .cat {
  position: absolute;
  left: 15px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tint);
}
.cover .cat .sq {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tint);
}
.cover .no {
  position: absolute;
  right: 15px;
  top: 38px;
  font-size: 11px;
  color: var(--muted);
}
.cover .bigen {
  position: absolute;
  left: 15px;
  bottom: 38px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--tint) 50%, var(--ink));
  opacity: 0.28;
  font-family: var(--font-mono);
}
.cover .srcbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.cover .srcbar .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover .srcbar .spacer { flex: 1; }
.acc-flag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.acc-flag.free {
  background: color-mix(in srgb, var(--verify) 14%, var(--surface));
  color: var(--verify);
  border: 1px solid color-mix(in srgb, var(--verify) 30%, transparent);
}
.acc-flag.paid {
  background: color-mix(in srgb, var(--stance) 16%, var(--surface));
  color: var(--stance);
  border: 1px solid color-mix(in srgb, var(--stance) 30%, transparent);
}
.stance-tag {
  font-size: 10px;
  color: var(--stance);
  white-space: nowrap;
}
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body .dek {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.foot-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-chip {
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
}
.foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.when { font-size: 11px; color: var(--muted); white-space: nowrap; }
.card-play {
  font-size: 11.5px;
  color: var(--ember);
  font-weight: 500;
  cursor: pointer;
}
.card-play:hover { text-decoration: underline; }
.audio-badge { margin-right: 2px; }

/* ---------- Page common ---------- */
/* Same content width as homepage (.home-main.frame → --frame) */
.page-hero,
.page-body {
  max-width: var(--frame);
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
  box-sizing: border-box;
}
.page-hero {
  padding-top: 48px;
  padding-bottom: 28px;
}
.page-body {
  padding-top: 0;
  padding-bottom: 72px;
}
.page-hero .crumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-hero .crumb a:hover { color: var(--ember); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
  max-width: 820px;
}
.page-hero .lead {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 640px;
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.filter-chip:hover { border-color: var(--line-2); }
.filter-chip.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
html.dark .filter-chip.on {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tag-cloud a,
.tag-cloud button {
  font-size: 12.5px;
  color: var(--ember);
  background: var(--ember-soft);
  border: 0;
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
  font-weight: 500;
}
.tag-cloud a:hover,
.tag-cloud button:hover { filter: brightness(0.97); }

/* ---------- Article detail ---------- */
.art-hero-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 22%, var(--surface)), var(--surface));
  box-shadow: var(--shadow);
}
.art-hero-cover.has-photo {
  position: relative;
  overflow: hidden;
}
.art-hero-cover.has-photo::after {
  background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--surface) 55%, transparent) 100%);
}
.art-hero-cover .ahc-inner {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.art-hero-cover .acc-flag {
  position: absolute;
  top: 16px;
  right: 16px;
}
.art-hero-cover .cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tint);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 8px;
  align-self: flex-start;
}
.art-hero-cover .cat .sq {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--tint);
}
.art-hero-cover .bigen {
  font-size: 28px;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--tint) 45%, var(--ink));
  opacity: 0.35;
  font-weight: 600;
}
.art-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.art-meta-bar .verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--verify);
  font-weight: 600;
  font-size: 12.5px;
}
.btn-fav {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-fav:hover { border-color: var(--ember); color: var(--ember); }
.btn-fav.on {
  background: var(--ember-soft);
  border-color: color-mix(in srgb, var(--ember) 35%, var(--line));
  color: var(--ember);
}
.art-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.art-dek {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.tldr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.tldr h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
  font-weight: 600;
}
.tldr ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tldr li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.stance-banner {
  background: var(--stance-soft);
  border: 1px solid color-mix(in srgb, var(--stance) 30%, transparent);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.art-body { max-width: 680px; }
/* section styles refined further below (rich blocks) */
.art-body > p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 16px;
}
.art-body .callout {
  background: var(--surface);
  border-left: 3px solid var(--ember);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.art-body .callout .ct {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14.5px;
}
.art-body .callout p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.stat-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat-cell .v {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ember);
  margin-bottom: 4px;
}
.stat-cell .l { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.stat-cell .s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  background: var(--bg-2);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
}
.data-table tr:last-child td { border-bottom: 0; }
.art-body .blist {
  padding-left: 20px;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.art-body .blist li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.art-end {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.paywall {
  margin: 36px 0;
  background: linear-gradient(180deg, transparent, var(--bg) 18%);
  position: relative;
}
.paywall-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}
.paywall-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}
.paywall-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.6;
}
.paywall-card .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.rel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.rel-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.rel-card .rc {
  font-size: 11px;
  font-weight: 600;
  color: var(--tint);
  margin-bottom: 8px;
}
.rel-card h4 {
  font-size: 14.5px;
  line-height: 1.4;
  margin-bottom: 10px;
  font-weight: 600;
}
.rel-card .rw { font-size: 11.5px; color: var(--muted); }

/* ---------- Search ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  max-width: 640px;
}
.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 17px;
  color: var(--ink);
  outline: none;
}
.search-box input::placeholder { color: var(--muted); }
.search-count {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.search-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.search-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-item:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.search-item .si-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-item h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}
.search-item p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.mark {
  background: color-mix(in srgb, var(--ember) 22%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

/* ---------- Membership ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  border-color: color-mix(in srgb, var(--ember) 45%, var(--line));
  box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 14px;
  right: -28px;
  background: var(--ember);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 36px;
  transform: rotate(35deg);
}
.price-card .plan {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-card .price span {
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 400;
}
.price-card .old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 8px;
}
.price-card .desc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.55;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table th {
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--muted);
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--verify); font-weight: 600; }
.compare-table .no { color: var(--muted); }
.faq-list { max-width: 680px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 4px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item button span.chev {
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item.open button span.chev { transform: rotate(90deg); }
.faq-item .ans {
  display: none;
  padding: 0 4px 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq-item.open .ans { display: block; }

/* ---------- About / Subscribe blocks ---------- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 28px 0 40px;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
}
.principle h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.principle p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.channel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.channel-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}
.channel-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.channel-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.email-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.email-form input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
}
.email-form input:focus { border-color: var(--ember); }
.email-form button {
  background: var(--ember);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.submit-box {
  max-width: 480px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.submit-box h1 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}
.submit-box .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.submit-box label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin: 14px 0 5px;
}
.submit-box input,
.submit-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
}
.submit-box textarea { resize: vertical; min-height: 72px; }
.submit-box button.go {
  margin-top: 18px;
  width: 100%;
  background: var(--ember);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.submit-box button.go:disabled { opacity: 0.5; cursor: not-allowed; }
.submit-msg {
  margin-top: 14px;
  font-size: 13.5px;
  padding: 11px 13px;
  border-radius: 10px;
  display: none;
}
.submit-msg.ok { display: block; background: color-mix(in srgb, var(--verify) 14%, var(--surface)); color: var(--verify); }
.submit-msg.err { display: block; background: var(--ember-soft); color: var(--ember); }

/* ---------- Account ---------- */
.account-card {
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.account-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 6px;
}
.account-card .email { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.account-row:last-of-type { border-bottom: 0; }
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge.member {
  background: var(--ember-soft);
  color: var(--ember);
}
.badge.free {
  background: var(--bg-2);
  color: var(--muted);
}
.fav-list { margin-top: 28px; }
.fav-list h2 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}
.fav-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
}
.fav-list a:hover { color: var(--ember); }

/* ---------- Podcast mini player ---------- */
.pod-player {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease;
}
.pod-player.show { display: flex; }
.pod-player .pp-info { flex: 1; min-width: 0; }
.pod-player .pp-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pod-player .pp-sub { font-size: 11px; color: var(--muted); }
.pod-player button {
  background: var(--ember);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
}
.pod-player .pp-x {
  background: transparent;
  color: var(--muted);
  width: 28px;
  height: 28px;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 22px 48px;
  margin-top: 20px;
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--frame);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-brand .bm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--ember); }
.footer-bottom {
  max-width: var(--frame);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
html.dark .toast {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Reading progress ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}
.read-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ember), color-mix(in srgb, var(--ember) 40%, var(--verify)));
  transition: width 0.05s linear;
}

/* ---------- Login extras ---------- */
.lgm-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.lgm-oauth:hover { border-color: var(--line-2); background: var(--bg-2); }
.lgm-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.lgm-or::before,
.lgm-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.lgm-magic {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lgm-magic:hover { color: var(--ember); }

/* ---------- Command palette ---------- */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.cmdk[hidden] { display: none !important; }
.cmdk-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.45);
  backdrop-filter: blur(4px);
}
html.dark .cmdk-mask { background: rgba(0, 0, 0, 0.55); }
.cmdk-panel {
  position: relative;
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.22s ease;
}
.cmdk-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.cmdk-input-row input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.cmdk-hint {
  padding: 8px 16px 4px;
  font-size: 12px;
  color: var(--muted);
}
.cmdk-list {
  max-height: min(50vh, 360px);
  overflow: auto;
  padding: 6px;
}
.cmdk-item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 12px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.cmdk-item .ci-cat {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 52px;
}
.cmdk-item .ci-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.cmdk-item .ci-meta {
  font-size: 11.5px;
  color: var(--muted);
}
.cmdk-item.on,
.cmdk-item:hover {
  background: var(--bg-2);
}
.cmdk-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.cmdk-foot {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.cmdk-foot a { color: var(--ember); font-weight: 600; }
.kbd-mini {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
}
.btn-search .kbd-mini { margin-left: 4px; }
@media (max-width: 720px) {
  .btn-search .kbd-mini { display: none; }
}

/* ---------- Rich article blocks ---------- */
.art-body .sec {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 36px 0 16px;
}
.art-body .sec .n {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--art-tint, var(--ember)) 14%, var(--surface));
  color: var(--art-tint, var(--ember));
  font-weight: 600;
  font-size: 13px;
}
.art-body .sec-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.art-body .sec h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.pull-quote {
  margin: 28px 0;
  padding: 20px 22px 18px;
  border-left: 3px solid var(--art-tint, var(--ember));
  background: color-mix(in srgb, var(--art-tint, var(--ember)) 6%, var(--surface));
  border-radius: 0 12px 12px 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  margin: 0 !important;
}
.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-body);
}
.step-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-list li {
  display: flex;
  gap: 14px;
  padding: 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step-list .sn {
  flex-shrink: 0;
  color: var(--art-tint, var(--ember));
  font-weight: 600;
  font-size: 13px;
  padding-top: 2px;
}
.step-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.step-list p {
  margin: 0 !important;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.def-box {
  margin: 22px 0;
  padding: 18px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
}
.def-box .def-term {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--art-tint, var(--ember));
  margin-bottom: 8px;
}
.def-box p {
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.art-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.art-rail-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 8px 0 18px;
  letter-spacing: 0.02em;
}
.art-kicker {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.featured-play {
  margin-right: 8px;
}
.access-bar { margin-top: -6px; margin-bottom: 8px; }
.filter-chip.sm {
  font-size: 12.5px;
  padding: 6px 12px;
}
.tag-cloud .tag-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
  align-self: center;
}
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}
.account-card.wide { max-width: 640px; }
.pod-private {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pod-private .pp-h {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.pod-private p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.pod-url {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  word-break: break-all;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.member-banner {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--verify) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--verify) 28%, var(--line));
  color: var(--verify);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 40px;
}
.process .step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.process .step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 10px;
}
.process .step h3 { font-size: 16px; margin-bottom: 8px; }
.process .step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 640px) {
  .process { grid-template-columns: 1fr; }
}
