/* ducky-site — base styles for every page. Colours come from tokens.css (linked first by every template; light by
   default, dark via prefers-color-scheme or an explicit data-theme). No third-party CSS, no runtime fetches. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  /* --- finding site.css:463 — radius scale (replaces the 19-value radius soup) --- */
  --r-sm: 8px;    /* chips, badges, .copy, small controls */
  --r-md: 12px;   /* inputs, buttons, compact cards */
  --r-lg: 16px;   /* cards, modals, sheets */
  --r-xl: 24px;   /* track card, big mockups */
  --r-pill: 999px;
  --radius: var(--r-lg);   /* legacy alias (was 14px → nearest token) */

  /* --- finding site.css:84 — type scale (replaces the ~30-size continuum) --- */
  --fs-2xs: .7rem;
  --fs-xs: .75rem;
  --fs-sm: .8rem;
  --fs-base: .9rem;
  --fs-md: 1rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.35rem;
  --fs-2xl: 1.9rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip; /* not `hidden`: that would make body the scroll container and break anchor jumps */
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
.mono { font-family: var(--mono); font-feature-settings: "liga" 0; }
.mono-h2 { font-family: var(--mono); letter-spacing: 0; }
.center { text-align: center; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }
.caption, .footnote, .spec, .caveat, .tier-note, .under { color: var(--muted); font-size: var(--fs-base); }
.footnote { margin-top: 1.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand { font-weight: 800; color: var(--text); font-size: var(--fs-md); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.lang-toggle { color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 10px; font-size: var(--fs-sm); white-space:nowrap; flex-shrink:0; }
.lang-toggle:hover { border-color: var(--accent); text-decoration: none; }
@media (max-width: 760px) {

  .brand { font-size: var(--fs-base); gap: 6px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-md); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .08s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 14px 22px; font-size: var(--fs-md); }
.btn-sm { padding: 7px 12px; font-size: var(--fs-base); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 1rem; }
.cta-row.center { justify-content: center; }

/* ---------- badges ---------- */
.badge { display: inline-block; align-self: flex-start; width: max-content; max-width: 100%; font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .06em; padding: 2px 8px; border-radius: var(--r-sm); border: 1px solid; margin-bottom: 8px; vertical-align: middle; }
.badge-backtest { color: var(--yellow); border-color: var(--yellow); }
.badge-placeholder { color: var(--faint); border-color: var(--border); border-style: dashed; }
.receipt .badge + .badge { margin-top: -4px; }
.rate { font-weight: 700; }
.rate .n { font-weight: 400; color: var(--muted); font-size: .8em; }
.strip { font-size: var(--fs-sm); color: var(--muted); border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%), var(--bg); }
.eyebrow { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1rem; }
.sub { font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; }
.try { color: var(--muted); font-size: var(--fs-base); }
@media (max-width: 900px) { .hero { padding-top: 40px; } }

.phone { position: relative; width: 320px; max-width: 100%; background: var(--phone); border-radius: 44px; padding: 14px 12px 20px; box-shadow: var(--shadow), inset 0 0 0 2px var(--db-line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-lg); }
.bubble { background: var(--bubble); color: var(--bubble-ink); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.5; border-left: 3px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.phone .bubble { background: var(--db-paper); color: var(--db-ink); }

.receipt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; position: relative; }
.receipt h3 { font-size: var(--fs-md); margin-bottom: 2px; }
.copy { font: inherit; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px 8px; cursor: pointer; margin-left: auto; }
.copy:hover { color: var(--text); }
.copy.done { color: var(--green); border-color: var(--green); }
.pane { height: 78px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: flex-end; padding: 6px 8px; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--muted); position: relative; overflow: hidden; }
.spark { position: absolute; left: 8px; right: 8px; bottom: 26px; height: 32px; background: linear-gradient(90deg, transparent 0 35%, color-mix(in srgb, var(--green) 45%, transparent) 35% 36%, transparent 36%), linear-gradient(to top right, transparent 49%, var(--green) 50%, transparent 51%); opacity: .9; }
.honesty { margin-top: 22px; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--faint); border-radius: var(--r-md); padding: 16px 18px; color: var(--muted); font-size: var(--fs-base); }
.honesty p { margin-bottom: .5rem; }

.band { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); border-left-width: 5px; font-family: var(--mono); font-size: var(--fs-base); }
.checks, .crosses { padding-left: 0; list-style: none; }
.checks li, .crosses li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.caveat { border-left: 3px solid var(--yellow); padding-left: 12px; }

/* ---------- boards ---------- */
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.tile h3 { font-size: var(--fs-md); }
.tile p { color: var(--muted); font-size: var(--fs-base); margin: 0; }

/* ---------- DM analyst ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.chip { font-family: var(--mono); font-size: var(--fs-sm); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 5px 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 1.2rem; font-size: var(--fs-base); }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

/* ---------- local ---------- */
.promises ol { padding-left: 1.2rem; }
.promises li { margin-bottom: 8px; font-weight: 600; }
.thin { border-left: 3px solid var(--faint); padding-left: 14px; color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } .tier-signal { order: -1; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tier-signal { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier h3 { font-size: var(--fs-lg); margin-bottom: 0; }
.price { font-size: var(--fs-2xl); font-weight: 800; margin: 0; line-height: 1.2; }
.price small { font-size: var(--fs-base); font-weight: 500; color: var(--muted); }
.price .save { font-style: normal; font-size: var(--fs-2xs); color: var(--green); font-weight: 600; margin-left: 4px; }
.tier-pos { color: var(--text); font-weight: 600; margin: 4px 0 8px; }
.tier-rows { margin: 0 0 14px; font-size: var(--fs-base); }
.tier-rows dt { color: var(--faint); font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }
.tier-rows dd { margin: 2px 0 0; color: var(--muted); }
.tier .btn { margin-top: auto; }
.tier-alt { font-size: var(--fs-xs); text-align: center; margin-top: 8px; }
.picker { margin-top: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; }
.picker ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.picker li { margin-bottom: 4px; }
.under { margin-top: 1.2rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 96px; }
.footer-disclaimer { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 13px; line-height: 1.55; color: var(--muted); }
@media (max-width: 800px) { .footer-disclaimer { grid-template-columns: 1fr; } }
.footer-disclaimer p { margin-bottom: .6em; }
.footer-lines { color: var(--text); opacity: .85; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: var(--fs-sm); color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); }

/* ---------- disclaimer / 404 pages ---------- */
.page-disclaimer h2 { font-size: var(--fs-xl); margin-top: 2rem; }
/* /credits/ (templates/credits.html): one line per picture — what it shows, then author · licence · source. */
.credits-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 0 24px;
  margin: 0; padding: 0; list-style: none; }
.credits-list li { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 8px 0;
  border-bottom: 1px solid var(--db-line); overflow-wrap: anywhere; }
.credits-list strong { font-size: 15px; line-height: 21px; font-weight: 650; }
.credits-meta { font-size: 13px; line-height: 19px; color: var(--db-muted); }
.credits-meta a { color: var(--db-link); }
.credits-trademarks { margin-top: 2rem; }
.page-404 { padding: 96px 0; }

/* Shared transparent duck head, including its tuft. */
.avatar-mark { display: inline-block; width: 28px; height: 28px; border-radius: 0; object-fit: contain; vertical-align: middle; background: transparent; box-shadow: none; }
.brand .avatar-mark { margin-right: 4px; }
.mascot { display: block; margin: 0 auto; }
.mascot-lg { width: 160px; height: 160px; margin-bottom: 8px; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--neon) 40%, transparent)); }

/* ---------- "每天复盘 / Reviewed daily" strip under the receipts ---------- */
.reviewed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--green) 45%, var(--border)); border-radius: var(--r-md); background: color-mix(in srgb, var(--green) 7%, var(--surface)); font-size: var(--fs-base); }
.reviewed b { color: var(--text); }
.reviewed span { color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.mono, .price { font-variant-numeric: tabular-nums; }

/* examples library */
.examples .ex { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); margin: 12px 0; overflow: hidden; }
.examples summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; padding: 14px 18px; }
.examples summary::-webkit-details-marker { display: none; }
.examples summary::after { content: "+"; color: var(--muted); font-size: var(--fs-lg); justify-self: end; }
.examples details[open] summary::after { content: "−"; }
.examples .ex-after { display: flex; flex-direction: column; gap: 6px; }
.examples .ex-after-txt { margin: 0; line-height: 1.55; }
.examples .muted { color: var(--muted); font-size: var(--fs-base); }
@media (max-width: 760px) { .examples summary { grid-template-columns: auto 1fr; }    }

/* --- glossary (§13) --- */
abbr.term { text-decoration: underline dotted color-mix(in srgb, var(--neon) 70%, transparent); text-underline-offset: 3px; cursor: help; border: 0; }
abbr.term:hover, abbr.term:focus { background: color-mix(in srgb, var(--neon) 14%, transparent); border-radius: 3px; outline: none; }
.gl-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 60; }
.gl-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow: auto; background: var(--surface); color: var(--text); border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .22s ease; z-index: 61; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
@media (min-width: 760px) { .gl-sheet { left: auto; right: 24px; bottom: 24px; width: 420px; border-radius: var(--r-lg); border: 1px solid var(--border); } }
body.gl-open .gl-backdrop { opacity: 1; pointer-events: auto; } body.gl-open .gl-sheet { transform: translateY(0); }
.gl-head { display: flex; align-items: center; gap: 8px; } .gl-name { margin: 0; font-size: var(--fs-lg); flex: 1; }
.gl-lang, .gl-close { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 8px; cursor: pointer; font: inherit; }
.gl-short { margin: 10px 0 6px; font-size: var(--fs-md); } .gl-formula { color: var(--muted); font-size: var(--fs-sm); margin: 4px 0; } .gl-example { color: var(--muted); font-size: var(--fs-base); margin: 6px 0; } .gl-label { color: var(--green); }
.gl-long summary { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); } .gl-long p { font-size: var(--fs-base); line-height: 1.55; }
.gl-see { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .gl-foot { color: var(--faint); font-size: var(--fs-xs); margin: 12px 0 0; }
.warn { color: var(--yellow); }
#basket-chart, .chart-box { min-height: 220px; }

/* ── login v2: QR + password (§5.4) ─────────────────────────────────────────── */
.qr-block .qr-host { display: flex; justify-content: center; margin: 10px 0 4px; }
.qr-svg { width: 184px; height: 184px; background: #fff; padding: 8px; border-radius: var(--r-lg); display: block; }
.qr-meta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.login-h2 { font-size: 15px; margin: 0 0 2px; }
.pw-form { display: flex; flex-direction: column; gap: 8px; }
details.login-other { margin-top: 14px; }
details.login-other summary { cursor: pointer; color: var(--muted, #8b949e); font-size: 13px; }

/* ── polish v2: rounder type, softer edges (owner feedback 2026-08-30) ─────── */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, .btn, .login-h2 { font-family: ui-rounded, var(--font); }

/* zh pricing: ¥ annual card sits in slot 2 and carries the highlight; the USD Signal card hands it over */
.lang-zh .tiers .tier-free { order: 1; }
.lang-zh .tiers .tier-cn { order: 2; }
.lang-zh .tiers .tier-signal { order: 3; }
.lang-zh .tiers .tier-pro { order: 4; }
.lang-zh .tier-signal { border-color: var(--border); box-shadow: none; }
.lang-zh .tier-cn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ── 信息差 edge line under the examples lead ─────────────────────────────── */
.examples .edge { margin: 4px 0 18px; padding: 12px 14px; border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 12px 12px 0;
  font-size: var(--fs-base); line-height: 1.6; color: var(--ink); }

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   a11y + interaction polish (2026-08-30, CSS/UX cluster)
   ══════════════════════════════════════════════════════════════════════════════════════════════ */

/* finding app.css:87 — keyboard focus was styled on only .input and .hero-carousel. One consistent
   focus-visible ring on every interactive element (buttons, tabs, dots, links, summary), shared site + app. */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
summary:focus-visible { outline-offset: 0; }

.strip{ font-family: var(--font); }

/* finding site.css:413 — sub-44px tap targets. Grow hit areas; keep the visuals identical.
   Hero carousel dots stay a 9px dot but gain a ~45×29 transparent hit area (content-box padding). */
@media (pointer: coarse) {
  .copy, .btn-sm { min-height: 44px; }
}

/* entrance: scroll-driven fade-up, progressive (only where supported) and reduced-motion-safe.
   Browsers without animation-timeline (older Telegram WebView) simply render the block visible. */
@keyframes refuse-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* polish: footer links were the one link cluster with no hover feedback (nav-links, stat-tile, etc.
   all have one) — add the same muted→text lift for consistency. */
.footer-links a:hover { color: var(--text); }

/* ── redesign (owner brief, 2026-08-30): source chips, obvious tap-to-explain, live-demo motion, visual proof ──
   Palette rule (§5.3.3) held throughout: orange = actions & brand (chips, tap-to-explain, accent bars),
   green/red = market data (LIVE dot, gains). All motion is gated by prefers-reduced-motion. */

/* 1) source chips — the scannable row that replaced the dense acronym proof-strip (hero) */
.chip-src-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.1rem; }
.chip-src-lead { width: 100%; margin: 0 0 4px; font-size: var(--fs-sm); color: var(--faint); letter-spacing: .01em; }
.chip-src { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-family: var(--font); font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; color: var(--text); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border)); border-radius: var(--r-pill); padding: 7px 11px; cursor: pointer; transition: background .12s ease, border-color .12s ease, transform .08s ease; }
.chip-src:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.chip-src:active { transform: translateY(0); }
.chip-src:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.chip-src .chip-ico { font-size: 1.02em; line-height: 1; }
.chip-src .chip-q { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; font-size: .66em; font-weight: 800; color: var(--accent-ink); background: var(--accent); }
.chip-src.chip-plain { cursor: default; }
.chip-src.chip-plain:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 34%, var(--border)); transform: none; }
@media (pointer: coarse) { .chip-src { min-height: 44px; padding: 9px 14px; } }

/* 2) obvious tap-to-explain — glossary jargon reads as tappable: orange dotted underline + superscript "?" */
abbr.term { text-decoration: underline dotted var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; border: 0; }
abbr.term::after { content: "?"; font-size: .62em; font-weight: 800; color: var(--accent-text); vertical-align: super; line-height: 0; margin-left: 1px; }
abbr.term:hover, abbr.term:focus { background: color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 3px; outline: none; }
abbr.term:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

@keyframes heroBubbleIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── example caveats collapsed to one tap (novice sees the result first) ────── */
.ex-honest { margin-top: 6px; }
.ex-honest > summary { cursor: pointer; list-style: none; color: var(--faint); font-size: .82rem;
  padding: 4px 0; min-height: 32px; display: inline-flex; align-items: center; }
.ex-honest > summary::-webkit-details-marker { display: none; }
.ex-honest > summary:hover { color: var(--accent); }
.ex-honest[open] > summary { color: var(--muted); }
.ex-honest .ex-after-txt { margin-top: 6px; }

/* Scroll-driven entrance shared by the cards below (reduced-motion safe). */
@keyframes whydiff-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── "我们是谁 / Who we are" (owner brief 2026-08-30): warm from-one-investor-to-another intro + the
   "one meal a month" price + goal, a FAIR competitor comparison ("为什么我们这样决定" — never names a
   competitor), and a clearly-marked KOL / 财经博主 roadmap teaser. Sits between honesty and pricing.
   §5.1 palette rule held: orange = brand/actions; green/red stay reserved for market data, so this
   positioning block uses the accent only. Shares the .section rhythm (72px) + .wrap.narrow. ── */
.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; }

/* fair comparison table */
.cmp { margin: 0 0 1.8rem; }

/* 财经博主 (finance creators) section */
.creators-view .cr-sub { color: var(--muted); margin: 22px 0 10px; font-size: var(--fs-base); }
.cr-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--accent) 5%, transparent); color: var(--text); font-size: 0.9em; text-decoration: none; }
a.cr-chip:hover { border-color: var(--accent); text-decoration: none; }
.cr-chip.cr-skel { opacity: .5; }
.cr-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.cr-post { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--accent) 4%, transparent); }
.cr-post-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.cr-who { color: var(--text); }
.cr-take { font-size: .8em; padding: 1px 8px; border-radius: 999px; }
.cr-take.cr-bull { color: var(--green, #3fb950); border: 1px solid color-mix(in srgb, var(--green,#3fb950) 45%, transparent); }
.cr-take.cr-bear { color: var(--red, #f85149); border: 1px solid color-mix(in srgb, var(--red,#f85149) 45%, transparent); }
.cr-take.cr-neutral { color: var(--muted); border: 1px solid var(--border); }
.cr-tks { color: var(--muted); font-size: .85em; }
.cr-sum { margin: 8px 0 6px; line-height: 1.55; color: var(--text); }
.cr-orig { font-size: .85em; color: var(--accent); }
.cr-disclaimer { margin: 14px 0 12px; font-size: .86em; line-height: 1.5; }

/* creators follow toggle — clear flip: followed = accent-filled, unfollowed = neutral outline */
button.cr-chip { cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
button.cr-chip:not(.on) { background: transparent; }
button.cr-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.cr-chip.on:hover { background: var(--accent-2, var(--accent)); border-color: var(--accent-2, var(--accent)); }
button.cr-chip:not(.on):hover { border-color: var(--accent); color: var(--text); }
button.cr-chip[disabled] { opacity: .55; cursor: default; }

/* creators view — Pro upsell banner */
.cr-pro-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cr-pro-badge { font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 2px 9px; border-radius: 999px; font-size: .85em; }

/* 投资日历 (calendar view) */
.cal-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.cal-fchip { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .9em; transition: border-color .15s, color .15s, background .15s; }
.cal-fchip:hover { border-color: var(--accent); color: var(--text); }
.cal-fchip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cal-mine.on { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); border-color: var(--accent); }
.cal-day-h { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); padding: 8px 2px 6px; color: var(--muted); font-size: .9em; z-index: 1; border-bottom: 1px solid var(--border); }
.cal-ev { display: flex; gap: 10px; padding: 10px 4px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.cal-ico { font-size: 1.1em; line-height: 1.4; }
.cal-main { flex: 1; min-width: 0; }
.cal-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--text); font-weight: 600; }
.cal-tk { font-size: .82em; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); font-weight: 400; }
.cal-tk.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.cal-mine-badge { font-size: .72em; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal-note { margin-top: 3px; font-size: .88em; line-height: 1.45; }
.cal-mine-ev { background: color-mix(in srgb, var(--accent) 5%, transparent); border-radius: 8px; }
.cal-t-earnings .cal-title { color: var(--green, #3fb950); }
.cal-t-witching .cal-title, .cal-t-opex .cal-title { color: var(--accent); }

/* KOL per-ticker call chips — the stance/target gist dug out of each video (creators.js callChips) */
.cr-calls { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cr-call { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .82em; border: 1px solid var(--border); background: color-mix(in srgb, var(--card, #fff) 92%, transparent); }
.cr-call-sym { font-weight: 700; }
.cr-call-arrow { font-size: .9em; line-height: 1; }
.cr-call-tgt { color: var(--muted); }
.cr-call-note { color: var(--muted); max-width: 15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-call-bull { border-color: color-mix(in srgb, var(--green,#3fb950) 45%, transparent); }
.cr-call-bull .cr-call-arrow, .cr-call-bull .cr-call-sym { color: var(--green, #3fb950); }
.cr-call-bear { border-color: color-mix(in srgb, var(--red,#f85149) 45%, transparent); }
.cr-call-bear .cr-call-arrow, .cr-call-bear .cr-call-sym { color: var(--red, #f85149); }
.cr-call-neutral .cr-call-arrow { color: var(--muted); }
 .tier { min-width: 0; }
.tier dl { min-width: 0; }
.tier dt, .tier dd { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 600px) {
 .tiers{ grid-template-columns: minmax(0,1fr); }
 .tier .btn { white-space: normal; }
}

/* Frozen-rule research: theme tokens, dated evidence and readable touch controls. */
.os-risk { padding: 16px 18px; border-left: 3px solid var(--orange); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; line-height: 1.8; }

/* Long translated archive labels must remain tappable on small phones. */
 .records-method summary { cursor:pointer; padding:16px 0; color:var(--orange); }
.records-back { display:inline-block; margin-bottom:28px; color:var(--muted); }
.research-records h1 { font-size:clamp(30px,4vw,48px); margin:14px 0; }
.records-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:28px 0; }
.records-summary span { display:block; color:var(--muted); font-size:14px; }
.records-summary strong { display:block; font-size:clamp(24px,4vw,40px); }
.research-records .pos { color:var(--green); }.research-records .neg { color:var(--red); }
.records-positions { margin:40px 0; scroll-margin-top:100px; }
.records-period { border:1px solid var(--border); border-radius:16px; background:var(--surface); overflow:hidden; }
.records-period > summary { cursor:pointer; padding:20px; font-weight:600; }
.records-period > summary span.mono, .records-period > summary small { display:block; color:var(--muted); font-size:13px; font-weight:400; margin:8px 0 0; }
.records-filter { display:flex; align-items:end; gap:16px; flex-wrap:wrap; padding:0 20px 20px; }
.records-filter[hidden] { display:none; }
.records-filter label { display:grid; gap:8px; font-size:13px; }
.records-filter select { min-height:44px; padding:8px 12px; color:var(--text); background:var(--bg); border:1px solid var(--border); border-radius:var(--db-radius-sm); font:inherit; }
.records-table-wrap { max-width:100%; overflow-x:auto; border:1px solid var(--border); border-radius:8px; }
.records-table { width:100%; border-collapse:collapse; font-size:14px; }
.records-table caption { text-align:left; padding:16px; color:var(--muted); }
.records-table th, .records-table td { padding:14px 16px; text-align:right; white-space:nowrap; border-bottom:1px solid var(--border); }
.records-table th { background:var(--surface-2); }
.records-table th:first-child { text-align:left; }
.records-table tbody th { position:sticky; left:0; }
.records-table tr[hidden] { display:none; }
.records-period .data-notice { margin:20px; }
.records-method { margin-top:20px; border-top:1px solid var(--border); }
.records-method p { line-height:1.8; }
.records-method a { color:var(--orange); }
.records-table-wrap:focus-visible, .records-filter select:focus-visible { outline:2px solid var(--orange); outline-offset:3px; }
@media(max-width:640px) {
 .records-summary { grid-template-columns:minmax(0,1fr); gap:12px; }
 .records-summary > div { display:flex; align-items:baseline; justify-content:space-between; }
 .records-filter { padding:0 12px 16px; gap:12px; }
}

#product-demo-video::cue { font-size:clamp(16px, 2vw, 28px); }

@media(max-width:700px){.records-filter select{font-size:16px}}
