
:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --paper: #ffffff;
  --paper-soft: #eef0f4;
  --ink: #101318;
  --muted: #5c6572;
  --line: #e3e6ec;
  --line-strong: #c8ceda;
  --blue: #4f46e5;
  --blue-deep: #3730a3;
  --blue-soft: #eef0ff;
  --green: #15803d;
  --red: #dc2626;
  --gold: #f0b90b;
  --orange: #f7931a;
  --gold-soft: #fff8d8;
  --green-soft: #e8f7ee;
  --red-soft: #fdecec;
  --tag: #eef0f4;
  --tg: #168dcc;
  --yt: #e4473f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .07);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 36px rgba(16, 24, 40, .12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1017;
  --paper: #171a24;
  --paper-soft: #20242f;
  --ink: #f2f4f8;
  --muted: #a3a9b8;
  --line: #262b38;
  --line-strong: #3a4052;
  --blue: #8b85ff;
  --blue-deep: #a5a0ff;
  --blue-soft: #262243;
  --green: #55cf7a;
  --red: #ff7373;
  --gold: #f6c928;
  --orange: #ff9f32;
  --gold-soft: #2e2a16;
  --green-soft: #173424;
  --red-soft: #3c2025;
  --tag: #262b38;
  --tg: #62bff0;
  --yt: #ff7b75;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 56px;
}

/* ---------- sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1140px, 100%);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font: 700 13px "IBM Plex Mono", monospace;
  letter-spacing: -.02em;
}
.brand-name { font-size: 19px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.brand-name::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--gold); vertical-align: .2em; }
.brand-tag { color: var(--muted); font-size: 11px; line-height: 1.4; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-mcn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: #171717; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .16s ease, filter .16s ease; }
.header-mcn-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.header-mcn-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.updated { color: var(--muted); font-size: 11px; text-align: right; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 700 12px "Noto Sans TC", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .moon-icon { display: block; }
.theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

/* ---------- hero ---------- */
.lead {
  padding: 40px 4px 28px;
  text-align: left;
}
.lead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue);
  font: 700 11px "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}
.lead-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lead h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.lead h1 em { color: var(--blue); font-style: normal; }
.lead-copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- market tape ---------- */
.market-tape {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tape-label {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 88px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
  font: 700 10px "IBM Plex Mono", monospace;
  letter-spacing: .1em;
  white-space: nowrap;
}
.tape-window { overflow: hidden; }
.tape-track {
  display: flex;
  width: max-content;
  min-height: 44px;
  animation: tape-scroll 64s linear infinite;
}
.tape-group { display: flex; flex: none; }
.quote {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  font: 600 12px "IBM Plex Mono", monospace;
  white-space: nowrap;
  text-decoration: none;
}
.coin-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}
.coin-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.coin-icon.eth img { width: 68%; height: 68%; }
.coin-icon.stock img { width: 82%; height: 82%; }
.coin-icon.index img { width: 88%; height: 88%; }
.quote-symbol { color: var(--blue); }
.quote.crypto-btc .quote-symbol { color: var(--orange); }
.quote.crypto-eth .quote-symbol { color: var(--blue); }
.quote.crypto-bnb .quote-symbol { color: #b88900; }
.quote.crypto-sol .quote-symbol { color: var(--green); }
.quote-change { padding: 2px 6px; border-radius: 4px; }
.quote-change.down { background: var(--red-soft); color: var(--red); }
.quote-change.up { background: var(--green-soft); color: var(--green); }
.quote-asof { color: var(--muted); font-size: 10px; font-weight: 500; }
.market-tape:hover .tape-track, .market-tape:focus-within .tape-track { animation-play-state: paused; }
@keyframes tape-scroll { to { transform: translateX(-50%); } }

/* ---------- search ---------- */
.global-search {
  margin: 16px 0 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.global-search .search-input {
  min-height: 56px;
  padding-left: 52px;
  border-color: var(--line-strong);
  background: var(--bg);
  font-size: 15px;
  border-radius: 10px;
}
.global-search .search-wrap svg { left: 18px; width: 20px; height: 20px; }
.header-search { flex: 1 1 auto; max-width: 440px; min-width: 0; }
.header-search .search-input { min-height: 44px; border-radius: 999px; background: var(--paper); font-size: 14px; }
.header-search-icon { position: absolute; left: 14px; font-size: 16px; line-height: 1; pointer-events: none; }
@media (max-width: 640px) {
  .header-search .search-input { min-height: 38px; font-size: 13px; padding-left: 36px; }
  .header-search-icon { left: 11px; font-size: 14px; }
}
.search-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.search-wrap svg {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 500 13px "Noto Sans TC", sans-serif;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-input::placeholder { color: var(--muted); opacity: .78; }
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* ---------- section scaffolding ---------- */
.tools-section, .referral-section { margin: 0 0 32px; }
.tools-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.tools-head h2 { margin: 4px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.tools-head p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.eyebrow {
  display: block;
  color: var(--blue);
  font: 700 11px "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tool-arrow { color: var(--blue); font: 600 12px "IBM Plex Mono", monospace; }

/* ---------- collab banner ---------- */
.collab-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 0 32px;
  padding: 28px 30px;
  border: 1px solid #232a3d;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #151a2e 0%, #1d2140 55%, #2a1f4d 100%);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.collab-banner::after {
  content: "";
  position: absolute;
  top: -46px;
  right: 150px;
  width: 130px;
  height: 130px;
  border: 26px solid rgba(139, 133, 255, .28);
  border-radius: 50%;
  pointer-events: none;
}
.collab-copy { position: relative; z-index: 1; }
.collab-label {
  display: block;
  margin-bottom: 8px;
  color: #a5a0ff;
  font: 700 11px "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}
.collab-banner h2 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.4; letter-spacing: -.02em; }
.collab-banner p { margin: 6px 0 0; color: #c6c9dd; font-size: 13px; line-height: 1.7; }
.collab-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #1d2140;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.collab-action::after { content: " ↗"; margin-left: 7px; }
.collab-action:hover { background: #eef0ff; color: var(--blue-deep); transform: translateY(-1px); }
.collab-action:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- MCN banner (homepage embed) ---------- */
.mcn-banner { background: linear-gradient(120deg, #101318 0%, #1a1a2e 55%, #2a2118 100%); border-color: #3a2f1a; }
.mcn-banner-label { color: #f5c518; }
.mcn-banner-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mcn-banner-point { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: #e8e6df; }
.mcn-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.mcn-banner-action-gold { background: #f5c518; color: #101318; }

/* ---------- exchange cards ---------- */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.exchange-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exchange-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.exchange-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.exchange-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.exchange-mark { display: block; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #fff; }
.exchange-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

.social-links-label { margin: 28px 0 12px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); text-align: left; }
.exchange-card strong, .exchange-card small { display: block; }
.exchange-card strong { font-size: 15px; }
.exchange-card small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* ---------- featured CEX cards (brand-logo watermark backgrounds) ---------- */
.referral-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.referral-featured .exchange-card {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  min-height: 116px;
  padding: 22px 24px;
}
.referral-featured .exchange-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 13px;
}
.referral-featured .exchange-card strong { font-size: 18px; }
.referral-featured .exchange-card small { margin-top: 7px; font-size: 12px; }
.referral-featured .exchange-card.binance { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--gold-soft); }
.referral-featured .exchange-card.okx { border-color: var(--line-strong); }
.referral-featured .exchange-card.pending { border-style: dashed; box-shadow: none; cursor: default; }
.referral-featured .exchange-card.pending:hover { background: var(--paper); border-color: var(--line-strong); transform: none; }
.referral-more {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.referral-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background .16s ease, color .16s ease;
}
.referral-more summary::-webkit-details-marker { display: none; }
.referral-more summary::after {
  content: "↓";
  color: var(--blue);
  font: 600 14px "IBM Plex Mono", monospace;
  transition: transform .16s ease;
}
.referral-more summary:hover { background: var(--paper-soft); color: var(--blue); }
.referral-more summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.referral-more[open] summary { border-bottom: 1px solid var(--line); }
.referral-more[open] summary::after { transform: rotate(180deg); }
.referral-more[open] .referral-grid { display: grid; }
.referral-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.referral-grid .exchange-card {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 70px;
  padding: 11px 12px;
  border-radius: 10px;
  box-shadow: none;
}
.referral-grid .exchange-mark { width: 34px; height: 34px; font-size: 9px; border-radius: 8px; }
.referral-grid .tool-arrow { display: none; }
.referral-grid .exchange-card strong { font-size: 12px; }
.referral-grid .exchange-card small { margin-top: 2px; font-size: 9px; }

/* ---------- AI subscription banner ---------- */
.ai-banner {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow .16s ease, transform .16s ease;
}
.ai-banner:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.ai-banner:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ai-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 22, .82) 0%, rgba(8, 10, 22, .62) 42%, rgba(8, 10, 22, .12) 72%, rgba(8, 10, 22, .05) 100%);
}
.ai-banner-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  height: 100%;
  max-width: 62%;
  padding: 32px 36px;
}
.ai-banner-eyebrow {
  color: #c7c2ff;
  font: 700 11px "IBM Plex Mono", monospace;
  letter-spacing: .16em;
}
.ai-banner-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.ai-banner-sub {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.75;
}
.ai-banner-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ai-chip {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 500;
}
.ai-banner-cta {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(56, 189, 248, .45);
}
.ai-banner-cta::after { content: "→"; font-size: 17px; }

/* ---------- content shell / rail ---------- */
.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "feed";
  gap: 24px;
  align-items: start;
}
.content-shell > div { grid-area: feed; min-width: 0; }
/* ---------- filters ---------- */
.content-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.control-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.control-group.source-group { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.control-group.media-group { grid-column: 1 / -1; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue-soft); }
.control-label { margin-right: 2px; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.filter-chip {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--muted);
  font: 600 12px "Noto Sans TC", sans-serif;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- feed ---------- */
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
  padding: 0 4px;
}
.feed-head h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.feed-head-actions { display: flex; align-items: center; gap: 12px; }
.feed-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
}
.feed-tab {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 12px "Noto Sans TC", sans-serif;
  cursor: pointer;
}
.feed-tab[aria-selected="true"] { background: var(--paper); color: var(--blue); box-shadow: 0 1px 3px rgba(15, 20, 25, .1); }
.feed-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.feed[hidden], .hot-feed[hidden] { display: none; }
.hot-feed .story { grid-template-columns: 126px minmax(0, 1fr); }
.hot-rank { display: block; margin-top: 7px; color: var(--blue); font: 600 10px "IBM Plex Mono", monospace; }

.featured {
  display: block;
  margin-bottom: 14px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.featured:hover { border-color: var(--blue); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.featured:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.featured[hidden] { display: none; }
.featured-main { display: block; padding: 0; }
.kicker { display: inline-block; margin: 0; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; }
.kicker::before { content: none; }
.featured h3 { margin: 12px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; letter-spacing: -.03em; }
.featured-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: end; margin-top: 16px; padding: 0; border: 0; }
.featured-side p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 13px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 11px; }
.featured .meta { color: var(--muted); }
.open-label { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; color: var(--blue); font-size: 12px; font-weight: 700; white-space: nowrap; }

.feed {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.story {
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  grid-template-areas: "top title" "top copy" "top media" "top meta";
  column-gap: 24px;
  min-height: 154px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  transition: background .16s ease;
}
.story:last-child { border-bottom: 0; }
.story:hover { background: var(--paper-soft); }
.story:focus-visible { z-index: 2; outline: 2px solid var(--blue); outline-offset: -2px; }
.story[hidden] { display: none; }
.story-top {
  grid-area: top;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 9px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.source { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 600; }
.source-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
}
.source-mark.tg { border-color: var(--tg); background: var(--tg); color: #fff; }
.source-mark.yt { border-color: var(--yt); background: var(--yt); color: #fff; }
.category { padding: 4px 8px; border-radius: 999px; background: var(--tag); color: var(--muted); font-size: 10px; font-weight: 700; }
.story[data-category="加密貨幣"] .category { background: var(--gold-soft); color: #a87900; }
.story[data-category="memecoin"] .category { background: var(--green-soft); color: var(--green); }
.story[data-category="宏觀"] .category { background: var(--red-soft); color: var(--red); }
.story[data-category="美股"] .category { background: var(--green-soft); color: var(--green); }
.story[data-category="隨筆"] .category { background: var(--blue-soft); color: var(--blue); }
.story h3 { grid-area: title; margin: 0 0 8px; font-size: 20px; line-height: 1.45; letter-spacing: -.02em; }
.story p {
  grid-area: copy;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story .meta { grid-area: meta; align-self: end; }

/* ---------- share ---------- */
.share-card { position: relative; min-width: 0; }
.share-card.featured-share-card { margin-bottom: 14px; }
.share-card.featured-share-card .featured { margin-bottom: 0; }
.story.share-enabled, .featured.share-enabled { padding-right: 78px; }
.share-trigger {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 20, 25, .08);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.share-trigger:hover, .share-trigger[aria-expanded="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.share-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.share-trigger svg { width: 16px; height: 16px; }
.share-enabled[hidden] + .share-trigger { display: none; }
.feed > .share-card:last-child .story { border-bottom: 0; }
.more-grid > .share-card .story { height: 100%; }
.share-popover {
  position: fixed;
  z-index: 80;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(15, 20, 25, .18);
}
.share-popover[hidden] { display: none; }
.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 12px "Noto Sans TC", sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.share-option:hover, .share-option:focus-visible { background: var(--paper-soft); color: var(--blue); outline: none; }
.share-option svg { width: 16px; height: 16px; flex: 0 0 auto; }
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 90;
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.copy-toast[hidden] { display: none; }

/* ---------- more / empty / footer ---------- */
.more-section { margin-top: 24px; }
.more-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
  padding: 0 4px;
}
.more-head h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.more-head p { margin: 0; color: var(--muted); font-size: 11px; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.more-grid .story {
  grid-template-columns: 1fr;
  grid-template-areas: "top" "title" "copy" "media" "meta";
  min-height: 238px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.more-grid .story:last-child { border-bottom: 1px solid var(--line); }
.more-grid .story-top {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
  border-right: 0;
}
.more-grid .story h3 { font-size: 18px; }
.more-grid .story p { -webkit-line-clamp: 3; }
.empty { display: none; padding: 48px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; color: var(--muted); }
.empty.show { display: block; }
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
  padding: 24px 4px 0;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--blue); }

.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--blue) 72%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 82%, transparent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(15, 20, 25, .18);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--blue); }
.back-to-top:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }
.back-to-top svg { width: 21px; height: 21px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .site-header { margin: 0 -12px; padding: 10px 12px; }
  .brand-tag { display: none; }
  .updated { display: none; }
  .lead { padding: 32px 4px 22px; }
  .content-shell { grid-template-columns: 1fr; grid-template-areas: "feed"; }
  .ai-banner-body { max-width: 78%; }
}

@media (max-width: 640px) {
  .page { width: min(100% - 24px, 1140px); }
  .site-header { margin: 0 -12px; padding: 10px 12px; }
  .brand-name { font-size: 17px; }
  .theme-toggle .theme-label { display: none; }
  .theme-toggle { min-height: 40px; padding: 0 10px; }
  .lead { padding: 26px 4px 18px; }
  .lead h1 { font-size: 28px; }
  .lead-copy { font-size: 13px; }
  .market-tape { grid-template-columns: 68px minmax(0, 1fr); }
  .tape-label { min-width: 68px; padding: 0 8px; font-size: 9px; }
  .quote { padding: 0 14px; }
  .global-search { margin: 18px 0 22px; padding: 8px; border-radius: 12px; }
  .global-search .search-input { min-height: 50px; font-size: 14px; }
  .collab-banner { grid-template-columns: 1fr; gap: 18px; padding: 22px; border-radius: 12px; }
  .collab-banner::after { top: -52px; right: -36px; }
  .collab-banner h2 { font-size: 19px; }
  .collab-action { width: 100%; min-width: 0; }
  .tools-head { align-items: flex-start; }
  .tools-head p { max-width: 150px; text-align: right; }
  .tools-head h2 { font-size: 20px; }
  .exchange-grid, .exchange-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .exchange-card { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; min-height: 80px; padding: 12px 10px; border-radius: 12px; }
  .exchange-card .tool-arrow { display: none; }
  .exchange-mark { width: 32px; height: 32px; font-size: 9px; border-radius: 8px; }
  .exchange-card strong { font-size: 12px; line-height: 1.35; }
  .exchange-card small { margin-top: 3px; font-size: 9px; line-height: 1.35; }
  .referral-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .referral-featured .exchange-card { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; min-height: 88px; padding: 12px 10px; }
  .referral-featured .exchange-card .tool-arrow { display: none; }
  .referral-featured .exchange-mark { width: 36px; height: 36px; font-size: 9px; border-radius: 8px; }
  .referral-featured .exchange-card strong { font-size: 13px; line-height: 1.35; }
  .referral-featured .exchange-card small { margin-top: 3px; font-size: 9px; line-height: 1.35; }
  .referral-more { border-radius: 12px; }
  .referral-more summary { min-height: 50px; padding: 0 14px; font-size: 12px; }
  .referral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px; }
  .referral-grid .exchange-card { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; min-height: 66px; padding: 9px 8px; }
  .referral-grid .exchange-mark { width: 30px; height: 30px; font-size: 8px; }
  .social-links-label { font-size: 20px; }
  .ai-banner { aspect-ratio: 16 / 9; min-height: 0; }
  .ai-banner-scrim { background: linear-gradient(180deg, rgba(8, 10, 22, .25) 0%, rgba(8, 10, 22, .55) 42%, rgba(8, 10, 22, .86) 100%); }
  .ai-banner-body { justify-content: flex-end; max-width: 100%; padding: 16px 20px 76px; }
  .ai-banner-title { font-size: 24px; }
  .ai-banner-sub, .ai-banner-chips { display: none; }
  .ai-banner-cta { left: 20px; right: 20px; bottom: 20px; justify-content: center; }
  .content-controls { grid-template-columns: 1fr; padding: 12px; border-radius: 12px; }
  .control-group { align-items: stretch; }
  .control-group:not(.media-group) .filter-chip { flex: 1 1 calc(25% - 6px); }
  .control-group.media-group { grid-column: auto; margin-top: 6px; padding: 10px; }
  .time-group .filter-chip { flex: 1 1 calc(25% - 6px); }
  .control-label { flex: 0 0 100%; }
  .feed-head { align-items: center; gap: 10px; }
  .feed-head h2 { font-size: 18px; }
  .feed-head-actions { gap: 7px; }
  .feed-tab { min-height: 29px; padding: 0 10px; font-size: 11px; }
  .result-count { display: none; }
  .featured { padding: 22px; border-radius: 12px; }
  .featured-side { grid-template-columns: 1fr; }
  .open-label { grid-column: auto; grid-row: auto; }
  .feed { border-radius: 12px; }
  .story, .hot-feed .story { grid-template-columns: 1fr; grid-template-areas: "top" "title" "copy" "media" "meta"; min-height: 0; padding: 21px; }
  .story.share-enabled, .featured.share-enabled { padding-right: 66px; }
  .share-trigger { top: 14px; right: 14px; width: 32px; height: 32px; }
  .story-top { flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 0; border-right: 0; }
  .story h3 { font-size: 19px; }
  .more-head { align-items: flex-start; }
  .more-head p { max-width: 150px; text-align: right; }
  .more-grid { grid-template-columns: 1fr; }
  .more-grid .story { min-height: 0; border-radius: 12px; }
  .footer { grid-template-columns: 1fr; }
  .back-to-top { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- inline story media (X images / videos) ---------- */
.story-media { grid-area: media; margin: 0 0 14px; }
.story-media img, .story-media video { display: block; width: 100%; max-height: 340px; object-fit: contain; border-radius: 10px; background: #0b0d12; }

/* ---------- Phase 1: 首頁改版 + 工具詳情頁 ---------- */
.lead-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.lead-cta { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--gold); color: #171717; font-weight: 800; }
.lead-cta-ghost { background: transparent; color: inherit; border: 1px solid var(--line-strong); }
.disclosure { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-soft); color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.explore { margin-top: 28px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.explore-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.explore-card strong { display: block; font-size: 16px; }
.explore-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.explore-card:hover { border-color: var(--line-strong); }
.reviews { margin-top: 28px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.review-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 88px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.review-card strong { display: block; font-size: 16px; }
.review-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.review-card:hover { border-color: var(--line-strong); }
.dynamics-link { text-align: center; margin: 22px 0 0; }
.dynamics-link a { font-weight: 700; }
/* 工具詳情頁 */
.tool-page { max-width: 780px; margin: 0 auto; }
.tool-breadcrumb { color: var(--muted); font-size: 13px; }
.tool-hero { display: flex; gap: 18px; align-items: center; margin: 20px 0 8px; }
.tool-mark { width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto; }
.tool-hero h1 { margin: 0; font-size: 32px; font-weight: 900; }
.tool-hero p { margin: 6px 0 0; color: var(--muted); }
.tool-cta-row { margin: 20px 0 0; }
.tool-cta { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--gold); color: #171717; font-weight: 800; }
.tool-section { margin-top: 30px; }
.tool-section h2 { font-size: 20px; font-weight: 900; margin: 0 0 10px; }
.tool-section p, .tool-section li { line-height: 1.8; }
.tool-section ul, .tool-section ol { margin: 8px 0 0; padding-left: 20px; }
.tool-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-pros-cons > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--paper); }
.tool-pros-cons h3 { margin: 0 0 6px; font-size: 15px; }
.tool-back { margin-top: 36px; }
@media (max-width: 640px) {
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .tool-pros-cons { grid-template-columns: 1fr; }
  .tool-hero h1 { font-size: 26px; }
}

/* ---------- YouTube 嵌入（點封面才載入播放器） ---------- */
.yt-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000; }
.yt-embed img { width: 100%; height: 100%; object-fit: cover; }
.yt-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(255, 0, 0, .92); display: grid; place-items: center; transition: transform .15s ease; }
.yt-embed:hover .yt-play { transform: translate(-50%, -50%) scale(1.07); }
.yt-play i { display: block; width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 3px; }

.order-empty-box { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; color: var(--muted); background: #fff; line-height: 1.8; }

/* ---------- 2026-10-22 global polish ---------- */
::selection { background: var(--blue); color: #fff; }
.site-header { box-shadow: 0 10px 30px rgba(16, 24, 40, .05); }
.lanv-featured { background: linear-gradient(180deg, var(--gold-soft), transparent 135%); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 20px; padding: 20px 20px 22px; margin: 4px 0 36px; }
.lanv-featured .tools-head { padding: 0; }
.lanv-featured .ai-banner { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: 0 8px 22px rgba(240, 185, 11, .16), var(--shadow); }
.lanv-featured .ai-banner:hover { box-shadow: 0 12px 30px rgba(240, 185, 11, .22), var(--shadow-lift); }
@media (min-width: 641px) { .tools-section, .referral-section { margin-bottom: 40px; } .lead { padding-top: 48px; } }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.exchange-card, .tool-card { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
img { max-width: 100%; }

/* ---------- 2026-10-25 全站排版优化：手机节奏 + 可读性 + 点按舒适度（只改布局视觉，不动功能） ---------- */
@media (max-width: 640px) {
  .tools-section, .referral-section { margin-bottom: 24px; }
  .tools-head { margin-bottom: 12px; }
  .exchange-card strong { font-size: 13px; }
  .exchange-card small, .referral-grid .exchange-card small { font-size: 10px; }
  .global-search .search-input { font-size: 16px; }
  .feed-tab { min-height: 36px; padding: 0 12px; }
  .story, .hot-feed .story { padding: 21px 18px; }
}

/* ---------- 2026-10-25 全站排版优化 round-2：桌面稽核反馈（只改布局视觉，不动功能） ---------- */
.tape-window { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.content-controls .control-group.media-group { margin-top: 0; padding: 0; border: 0; background: transparent; }
.story { min-height: 0; }
.story-media img, .story-media video { background: var(--line); }
.lanv-featured .tools-head { flex-direction: column; align-items: flex-start; gap: 2px; }
.lanv-featured .tools-head p { max-width: none; text-align: left; }
.collab-action { position: relative; z-index: 1; }
@media (max-width: 640px) { .share-trigger { width: 40px; height: 40px; } }
