:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #16202a;
  --muted: #687586;
  --line: #dce3ea;
  --blue: #2563eb;
  --green: #12805c;
  --yellow: #946200;
  --red: #b42318;
  --cyan: #0891b2;
  --shadow: 0 10px 28px rgba(20, 31, 44, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button, input, textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
}

button:hover {
  border-color: #a7b4c2;
}

button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.button-link:hover {
  border-color: #a7b4c2;
}

.button-link.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.app {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.formula-band,
.workspace,
.score-panel,
.detail-header,
.summary-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 86px;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kicker {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
  line-height: 1.25;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.formula-band {
  margin-top: 14px;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.formula-band p {
  color: var(--muted);
  font-size: 13px;
  max-width: 520px;
}

.formula-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.summary-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  border-radius: 8px;
  padding: 14px;
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.workspace {
  margin-top: 14px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
}

.stock-list {
  border-right: 1px solid var(--line);
  padding: 14px;
  background: #fbfcfd;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title span {
  color: var(--muted);
  font-size: 12px;
}

.stock-item {
  width: 100%;
  text-align: left;
  min-height: 74px;
  border-radius: 7px;
  margin-bottom: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.stock-item.active {
  border-color: var(--blue);
  background: #eff6ff;
}

.stock-item strong {
  display: block;
  font-size: 15px;
}

.stock-item small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  background: #eef2f7;
}

.badge.good { color: var(--green); background: #e8f6ef; }
.badge.watch { color: var(--yellow); background: #fff7df; }
.badge.risk { color: var(--red); background: #fff0ee; }

.detail {
  padding: 16px;
  min-width: 0;
}

.detail-header {
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: center;
}

.ticker-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

input {
  height: 38px;
  padding: 0 10px;
}

.ticker-input {
  font-weight: 800;
  text-transform: uppercase;
}

.theme-input {
  margin-top: 10px;
}

.score-tile {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.score-tile span,
.score-tile em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.score-tile strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin: 8px 0 6px;
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
  margin-top: 12px;
}

.score-panel {
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
}

.score-layout .score-panel {
  margin-top: 0;
}

.factor {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.factor label {
  font-size: 13px;
  color: var(--ink);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--blue);
}

.factor output {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.factor-source {
  grid-column: 2 / 4;
  height: 34px;
  font-size: 12px;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.stage {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 8px;
  min-height: 72px;
  background: #fbfcfd;
}

.stage.active {
  border-color: var(--blue);
  background: #eff6ff;
}

.stage strong {
  display: block;
  font-size: 13px;
}

.stage span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.notes {
  margin-top: 10px;
  min-height: 86px;
  resize: vertical;
  padding: 10px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.source-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfcfd;
  min-height: 104px;
}

.source-card strong {
  display: block;
  font-size: 13px;
}

.source-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin: 4px 0 8px;
}

.source-card a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  margin: 0 4px 4px 0;
}

.tool-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tool-head span {
  color: var(--cyan);
  font-size: 12px;
  white-space: nowrap;
}

.tool-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tool-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
}

.tool-links a:hover {
  border-color: var(--blue);
}

.tool-card code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid #e5e9ef;
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.rebalance-controls,
.rebalance-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portfolio-tabs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tab {
  min-height: 36px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.portfolio-tab.active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

.save-status {
  margin: 8px 2px 0;
  color: var(--green);
  font-size: 12px;
}

.rebalance-controls {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) auto auto;
  gap: 10px;
  align-items: end;
}

.rebalance-controls label {
  color: var(--muted);
  font-size: 12px;
}

.rebalance-controls input {
  display: block;
  margin-top: 6px;
}

.rebalance-panel {
  margin-top: 14px;
  padding: 14px;
}

.rebalance-table-wrap {
  overflow-x: auto;
}

.rebalance-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

.rebalance-table th,
.rebalance-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.rebalance-table th {
  color: var(--muted);
  font-weight: 700;
  background: #fbfcfd;
}

.rebalance-table input {
  min-width: 118px;
  height: 34px;
  font-size: 13px;
}

.buy {
  color: var(--green);
  font-weight: 800;
}

.sell {
  color: var(--red);
  font-weight: 800;
}

.evidence-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  background: #fbfcfd;
}

.evidence-item input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.evidence-item strong {
  display: block;
  font-size: 13px;
}

.evidence-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.35;
}

.evidence-url {
  grid-column: 1 / 3;
  height: 32px;
  font-size: 12px;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.notes-grid label {
  color: var(--muted);
  font-size: 12px;
}

.notes-grid textarea {
  display: block;
  margin-top: 6px;
  min-height: 128px;
  resize: vertical;
  padding: 10px;
  color: var(--ink);
  font-size: 14px;
}

/* ── Signals Page ── */
.price-strip {
  margin-top: 14px;
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.price-item {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.price-item:last-child {
  border-right: 0;
}

.price-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.price-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.price-change {
  display: block;
  font-size: 13px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.price-change.up { color: var(--green); }
.price-change.down { color: var(--red); }

.price-time {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  background: #fbfcfd;
}

.signal-status {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.signal-status.good { color: var(--green); }
.signal-status.watch { color: var(--yellow); }
.signal-status.risk { color: var(--red); }

.signal-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signal-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.signal-row.triggered {
  border-color: var(--red);
  background: #fff5f5;
}

.signal-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.signal-info span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.signal-gauge {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gauge-bar {
  height: 8px;
  background: #e5e9ef;
  border-radius: 4px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}

.signal-row.triggered .gauge-fill {
  background: var(--red);
}

.signal-row:not(.triggered) .gauge-fill {
  background: var(--yellow);
}

.gauge-data {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gauge-data span:first-child {
  font-weight: 800;
}

.signal-row.triggered .gauge-data span:first-child {
  color: var(--red);
}

.signal-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.action-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.action-badge.fire {
  background: #fff0ee;
  color: var(--red);
}

.action-badge.idle {
  background: #eef2f7;
  color: var(--muted);
}

.action-text {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.signal-row.triggered .action-text {
  color: var(--red);
  font-weight: 700;
}

/* VIX Ladder */
.vix-ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.vix-rung {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
  transition: border-color 0.2s, background 0.2s;
}

.vix-rung.vix-triggered {
  border-color: var(--red);
  background: #fff5f5;
}

.vix-rung.vix-active {
  border-color: var(--yellow);
  background: #fffdf5;
}

.vix-rung-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.vix-rung-head strong {
  font-size: 16px;
}

.vix-rung-head span {
  font-size: 13px;
  font-weight: 700;
}

.vix-ammo {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.vix-status {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.vix-rung.vix-triggered .vix-status {
  color: var(--red);
  font-weight: 700;
}

.vix-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Action Board */
.action-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-placeholder {
  color: var(--muted);
  font-size: 14px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.action-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.action-item.action-fire {
  border-color: var(--red);
  background: #fff5f5;
}

.action-item.action-calm {
  border-color: #dce3ea;
  background: #f9fafb;
}

.action-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.action-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.action-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.action-item.action-fire p {
  color: #8b2018;
}

/* History Table */
.history-table-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.history-table th,
.history-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.history-table th {
  color: var(--muted);
  font-weight: 700;
  background: #fbfcfd;
  font-size: 12px;
}

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

@media (max-width: 960px) {
  .app { padding: 14px; }
  .topbar,
  .formula-band,
  .detail-header,
  .score-layout,
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .topbar,
  .formula-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .stock-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .evidence-grid {
    grid-template-columns: 1fr;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .rebalance-controls {
    grid-template-columns: 1fr;
  }
  .score-tile {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 12px;
  }
  .price-strip {
    flex-wrap: wrap;
  }
  .price-item {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--line);
  }
  .price-time {
    flex: 1 1 100%;
  }
  .signal-row {
    grid-template-columns: 1fr;
  }
  .signal-action {
    align-items: flex-start;
  }
  .signal-action .action-text {
    text-align: left;
  }
  .vix-ladder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .summary-grid,
  .ticker-row {
    grid-template-columns: 1fr;
  }
  .factor {
    grid-template-columns: 1fr;
  }
  .factor output {
    text-align: left;
  }
  .stage-track {
    grid-template-columns: 1fr;
  }
}

/* ═══════ Landing Page ═══════ */

.landing { background: #f8fafb; }

/* ═══════ Global Navigation Bar (all pages) ═══════ */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Simple non-sticky nav for landing page */
.landing-nav {
  background: linear-gradient(135deg, #fff 60%, #fef9f0 100%);
  border-bottom: 1px solid #f0e6d3;
  padding: 0 24px;
  position: relative;
}
.landing-nav::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a853 20%, #d4a853 80%, transparent);
  opacity: 0.5;
}
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; margin-right: 8px; flex-shrink: 0; }
.nav-avatar-right { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: 2px solid #d4a853; }
.brand-suffix { color: #d4a853; font-weight: 700; font-size: 13px; margin-left: 4px; }
.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.global-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-brand:hover { color: var(--blue); }
.nav-brand small { color: var(--muted); font-weight: 400; font-size: 11px; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(0,0,0,0.04); color: var(--blue); }
.nav-links a.active { background: rgba(37,99,235,0.08); color: var(--blue); }
.nav-links a.primary-link { background: var(--blue); color: #fff; border-color: var(--blue); }
.nav-links a.primary-link:hover { background: #1d4ed8; color: #fff; }

/* Tools dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: " ▾";
  font-size: 9px;
  margin-left: 2px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 6px;
  z-index: 300;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(37,99,235,0.06); color: var(--blue); }
.nav-dropdown-menu .dd-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 8px;
}

/* Hamburger for mobile */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}
.nav-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 900px) {
  .global-nav { padding: 0 16px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: var(--panel);
    box-shadow: -8px 0 32px rgba(0,0,0,0.18);
    padding: 56px 16px 24px;
    gap: 2px;
    transition: right 0.3s ease;
    z-index: 400;
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links a { width: 100%; justify-content: flex-start; font-size: 14px; min-height: 42px; }
  .nav-close { display: flex; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    margin-top: 0;
    padding: 0 0 0 16px;
    min-width: auto;
    background: transparent;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212,168,83,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  color: var(--blue);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.hero h1 span { background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.35); }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue); background: #f8faff; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 900px;
  margin: 48px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-stat {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(212,168,83,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,168,83,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--blue); }
.hero-stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Sections */
.landing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.landing-section.alt { background: #fff; }
.section-label {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.5px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 8px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Insight Quotes */
.insight-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.insight-quote {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.insight-quote:hover { border-color: var(--blue); transform: translateY(-2px); }
.insight-quote .icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.insight-quote h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.insight-quote p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.insight-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
  font-style: normal;
}

/* Method Cards */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.method-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.method-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--blue); }
.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 16px;
}
.method-icon.blue { background: #eff6ff; }
.method-icon.green { background: #e8f6ef; }
.method-icon.amber { background: #fff7df; }
.method-icon.cyan { background: #ecfeff; }
.method-icon.purple { background: #f5f0ff; }
.method-icon.rose { background: #fff0ee; }
.method-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.method-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Platform Cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.platform-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.platform-card:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
}
.platform-icon.patreon { background: #fff0e6; color: #f1460b; }
.platform-icon.zhihu { background: #e6f0ff; color: #0066ff; }
.platform-icon.substack { background: #fff5e6; color: #ff6719; }
.platform-icon.wechat { background: #e6ffe6; color: #07c160; }
.platform-card strong { font-size: 16px; font-weight: 800; }
.platform-card span { font-size: 13px; color: var(--muted); display: block; }

/* Resource Section */
.resource-banner {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  background: linear-gradient(135deg, #f8faff, #fff);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
.resource-banner h3 { font-size: 22px; font-weight: 900; margin: 0 0 8px; }
.resource-banner p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; max-width: 500px; }
.resource-list { display: flex; flex-wrap: wrap; gap: 8px; }
.resource-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.resource-banner .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* Tools CTA */
.tools-cta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tools-cta-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tools-cta-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.tools-cta-card .icon { font-size: 28px; }
.tools-cta-card strong { font-size: 16px; font-weight: 800; }
.tools-cta-card span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Notes Timeline */
.notes-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.note-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.note-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note-card-header strong { font-size: 14px; font-weight: 800; }
.note-card-header span { font-size: 11px; color: var(--muted); }
.note-card-body { padding: 16px 20px; }
.note-card-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.note-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.note-link:hover { text-decoration: underline; }

/* Footer */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 32px;
  text-align: center;
}
.landing-footer .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.landing-footer .links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.landing-footer .links a:hover { color: var(--blue); }
.landing-footer p { font-size: 12px; color: var(--muted); }
.landing-footer strong { color: var(--ink); font-weight: 700; }

/* Three Steps */
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; background: var(--panel); box-shadow: 0 4px 12px rgba(0,0,0,0.04); text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.step-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); margin-bottom: 14px; }
.step-card h3 { font-size: 18px; font-weight: 900; margin: 0 0 10px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.step-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: auto; }
.step-tags span { display: inline-block; padding: 4px 10px; background: #eff6ff; color: var(--blue); border-radius: 999px; font-size: 12px; font-weight: 700; }
.step-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; background: var(--blue); color: #fff; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform 0.2s; }
.step-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.3); }

/* WeChat QR Card */
.wechat-qr-card { background: linear-gradient(135deg, #f0fff4 0%, #e8f6ef 100%); border-color: #b7dfc9; }
.wechat-qr-card:hover { border-color: #07c160; box-shadow: 0 8px 24px rgba(7,193,96,0.18); }
.qr-image { display: block; width: 140px; height: 140px; border-radius: 8px; margin: 8px auto 0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 4px solid #fff; }

/* Privacy Notice */
.privacy-notice {
  margin-top: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #e8f6ef 0%, #d4ede0 100%);
  border: 1px solid #b7dfc9;
  border-radius: 8px;
  color: #0d5c3a;
  font-size: 13px;
  line-height: 1.55;
}
.privacy-notice strong { color: #0d5c3a; font-weight: 800; }

/* Danger button */
button.danger {
  background: #fff;
  color: var(--red);
  border-color: #f5c6cb;
  font-size: 12px;
  min-height: 28px;
  padding: 0 8px;
}
button.danger:hover { background: #fff5f5; border-color: var(--red); }

/* ═══ Carousel ═══ */
.carousel-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.carousel-slide { flex: 0 0 100%; min-height: 220px; border-radius: 20px; padding: 40px; display: flex; align-items: center; gap: 40px; overflow: hidden; position: relative; }
.carousel-slide::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; border-radius: 50%; opacity: 0.08; background: #fff; pointer-events: none; }
.slide-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.slide-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-bottom: 14px; background: rgba(255,255,255,0.25); color: #fff; backdrop-filter: blur(4px); }
.carousel-slide h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; line-height: 1.2; margin: 0 0 10px; color: #fff; }
.carousel-slide h2 span { opacity: 0.85; font-weight: 700; }
.carousel-slide p { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0 0 18px; max-width: 480px; }
.slide-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.slide-stats span { color: rgba(255,255,255,0.9); font-size: 13px; }
.slide-stats strong { display: block; font-size: 20px; font-weight: 900; color: #fff; }
.slide-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.slide-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.slide-visual { font-size: 80px; flex-shrink: 0; position: relative; z-index: 1; opacity: 0.9; }
.slide-zero { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 40%, #06b6d4 100%); }
.slide-rebalance { background: linear-gradient(135deg, #047857 0%, #10b981 40%, #34d399 100%); }
.slide-community { background: linear-gradient(135deg, #7c2d12 0%, #ea580c 40%, #f59e0b 100%); }
.slide-rebalance .slide-cta { background: #fff; color: #047857; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d1d5db; cursor: pointer; padding: 0; transition: background 0.3s, transform 0.3s; }
.carousel-dots .dot.active { background: var(--blue); transform: scale(1.3); }

@media (max-width: 900px) {
  .insight-quotes { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-cta { grid-template-columns: 1fr; }
  .notes-timeline { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid var(--line); }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-bottom: 0; }
  .resource-banner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .method-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 40px; }
  .hero h1 { font-size: 28px; }
  .landing-section { padding: 40px 16px; }
  .carousel-slide { flex-direction: column; padding: 28px 20px; min-height: 200px; gap: 16px; }
  .slide-visual { font-size: 48px; order: -1; }
  .slide-stats { gap: 12px; }
  .carousel-section { padding: 0 16px 28px; }
}

/* ═══ Articles Page ═══ */
.series-list { display: flex; flex-direction: column; gap: 0; }
.series-item {
  display: flex; gap: 20px; padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s;
}
.series-item:last-child { border-bottom: 0; }
.series-item:hover { padding-left: 8px; }
.series-num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 18px; font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  flex-shrink: 0;
}
.series-body { flex: 1; }
.series-body h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.series-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.series-articles { display: flex; gap: 12px; flex-wrap: wrap; }
.article-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--blue);
  text-decoration: none;
  padding: 4px 0;
}
.article-link:hover { text-decoration: underline; }

.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.latest-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.latest-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--blue); }
.latest-badge {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
}
.patreon-badge { background: #fff0e6; color: #f1460b; }
.free-badge { background: #e8f6ef; color: var(--green); }
.latest-card h3 { font-size: 15px; font-weight: 800; margin: 0; }
.latest-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.latest-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-top: auto; }
.patreon-link { color: #f1460b; font-weight: 700; text-decoration: none; }
.patreon-link:hover { text-decoration: underline; }

.join-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.join-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
  border-color: #f5c6cb;
}
.join-card strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 8px; color: #f1460b; }
.join-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

@media (max-width: 700px) {
  .latest-grid { grid-template-columns: 1fr; }
  .join-cards { grid-template-columns: 1fr; }
  .series-item { flex-direction: column; gap: 12px; padding: 20px 0; }
}

/* Poster Grid */
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.poster-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: transform 0.2s, box-shadow 0.2s; }
.poster-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.poster-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.poster-meta { padding: 16px 20px; }
.poster-meta strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.poster-meta span { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
@media (max-width: 700px) { .poster-grid { grid-template-columns: 1fr; } }

/* Author Card */
.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-top: 24px;
  background: linear-gradient(135deg, #fff 0%, #fef9f0 100%);
  border: 1px solid #f0e6d3;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #d4a853;
  flex-shrink: 0;
  background: #f4f4f4;
  object-fit: cover;
  object-position: center;
}
.author-info { flex: 1; }
.author-info strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 2px;
}
.author-info span {
  display: block;
  font-size: 13px;
  color: #d4a853;
  font-weight: 700;
  margin-bottom: 8px;
}
.author-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.nav-avatar { display: none; }
.nav-avatar-right { display: none; }
@media (max-width: 700px) {
  .author-card { flex-direction: column; text-align: center; }
  .author-avatar { width: 80px; height: 80px; }
}

/* Card article links */
.card-links {
  margin: 12px 0 0;
  padding: 10px 14px 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-links li { margin: 0; padding: 0; line-height: 1.4; }
.card-links a {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-links a:hover { color: #1d4ed8; text-decoration: underline; }

/* QR Modal */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.qr-modal.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.qr-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.qr-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.qr-modal-close:hover { background: #f4f6f8; color: var(--ink); }
.qr-modal-content h3 { font-size: 22px; font-weight: 900; margin: 0 0 8px; }
.qr-modal-sub { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.qr-modal-image { width: 280px; height: 280px; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 0 auto 16px; }
.qr-modal-hint { font-size: 13px; color: var(--ink); font-weight: 700; margin: 0 0 16px; padding: 8px 12px; background: #f4f6f8; border-radius: 8px; }
.qr-modal-foot { font-size: 12px; color: var(--muted); margin: 0; }
.qr-modal-foot a { color: var(--blue); text-decoration: none; font-weight: 600; }
.qr-modal-foot a:hover { text-decoration: underline; }

/* Poster Image Fix - uniform size */
.poster-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #1a1a2e;
}
/* Override previous poster-card img rule */
.poster-card img { height: 300px !important; object-fit: cover !important; }

/* Risk Disclaimer */
.risk-disclaimer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px 28px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: 0 12px 12px 0;
}
.risk-disclaimer h4 { font-size: 15px; font-weight: 800; color: #c2410c; margin: 0 0 10px; }
.risk-disclaimer p { font-size: 12px; color: #78350f; line-height: 1.7; margin: 4px 0; }
.risk-disclaimer strong { color: #c2410c; }
@media (max-width: 700px) { .risk-disclaimer { margin: 32px 16px 0; padding: 20px; } }
