/* ============================================================
   ODDSLEDGER (xbocom.com) — 预测市场站皮肤
   风格：概率事务所 · 暖纸白 + 深靛蓝 + 琥珀 · YES/NO 概率药丸
   差异化锚点：赔率速查条 / 概率药丸 / 已核实日期徽章 / 事件合约表
   注意：全站系统字体栈（无外部字体请求），数字用等宽变体
   ============================================================ */

:root {
  --bg: #faf9f5;
  --paper: #ffffff;
  --ink: #1c1f33;
  --ink-soft: #5d6178;
  --indigo: #2a2560;
  --indigo-deep: #1c1845;
  --indigo-tint: #eeecf8;
  --amber: #b45309;
  --amber-tint: #fdf1e3;
  --yes: #0e7a4e;
  --yes-tint: #e7f4ee;
  --no: #b3372b;
  --no-tint: #fbeceb;
  --line: #e5e2d9;
  --line-dark: #c9c5b8;
  --mono: ui-monospace, 'Cascadia Mono', 'Consolas', 'Menlo', monospace;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.24; margin: 0 0 .5em; letter-spacing: -.01em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.shell { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 赔率 ticker 条 ---------- */
.ticker { background: var(--indigo-deep); color: #e6e3f5; font-size: .8rem; border-bottom: 3px solid var(--amber); }
.ticker-inner { display: flex; gap: 24px; align-items: center; padding: 8px 20px; overflow-x: auto; white-space: nowrap; }
.tk { display: inline-flex; gap: 8px; align-items: baseline; font-family: var(--mono); }
.tk-sym { color: #a49ede; font-style: normal; font-weight: 600; }
.tk b { font-weight: 600; color: #fff; }
.tk-note { margin-left: auto; color: #8c86c0; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 站头 ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--indigo); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 14px; padding: 13px 20px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark { font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; color: var(--indigo); }
.brand-mark b { color: var(--amber); font-weight: 800; }
.brand-sub { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.main-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { padding: 7px 9px; font-size: .83rem; font-weight: 600; color: var(--ink); border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--amber); }
.reg-flag { font-size: .7rem; font-weight: 800; letter-spacing: .07em; color: var(--indigo); border: 1.5px solid var(--indigo); padding: 5px 9px; border-radius: 3px; white-space: nowrap; background: var(--indigo-tint); }
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-dark); border-radius: 3px; font-size: 1.15rem; padding: 5px 10px; cursor: pointer; }

/* ---------- 广告位 ---------- */
.ad-slot-wrap { max-width: 1160px; margin: 14px auto; padding: 0 20px; }
.ad-slot { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--paper); border: 1px dashed var(--line-dark); border-radius: 4px; }
.ad-slot img { display: block; max-width: 100%; height: auto; }
.ad-home-header-banner { min-height: 60px; }

/* ---------- 首屏：头条 + 平台速览 ---------- */
.lead-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; padding: 30px 20px 8px; align-items: start; }
.story-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.lead-story h1 { font-size: 2.15rem; margin: 0 0 12px; }
.lead-story h1 a { color: var(--ink); }
.standfirst { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 14px; }
.story-meta { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.verified-chip { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--yes); background: var(--yes-tint); border: 1px solid #cbe7da; border-radius: 3px; padding: 2px 8px; margin-left: 8px; letter-spacing: .04em; }
.lead-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }

.rank-list { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--indigo); border-radius: 4px; padding: 16px 16px 12px; }
.rank-title { font-size: .8rem; letter-spacing: .12em; color: var(--indigo); margin: 0 0 10px; display: flex; justify-content: space-between; }
.rank-title span { color: var(--ink-soft); font-weight: 600; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.rank-row:hover { background: var(--indigo-tint); }
.rk { font-family: var(--mono); font-weight: 700; color: var(--amber); width: 18px; }
.rk-body { flex: 1; line-height: 1.35; }
.rk-body b { display: block; font-size: .92rem; }
.rk-body i { font-style: normal; font-size: .76rem; color: var(--ink-soft); }
.rk-score { font-family: var(--mono); font-weight: 700; color: var(--indigo); }
.rank-foot { font-size: .72rem; color: var(--ink-soft); margin: 10px 0 0; }
.rank-foot a { text-decoration: underline; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; font-weight: 700; font-size: .88rem; padding: 10px 18px; border-radius: 4px; border: 2px solid var(--amber); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #92400e; border-color: #92400e; }
.btn-line { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-line:hover { background: var(--indigo-tint); }
.btn-sm { padding: 6px 12px; font-size: .78rem; }
.link-arrow { font-weight: 600; font-size: .88rem; color: var(--indigo); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 赔率速查条 ---------- */
.odds-strip { background: var(--indigo); color: #fff; margin: 26px 0 0; }
.odds-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 18px 20px; }
.odds-formula { font-family: var(--mono); font-size: 1.06rem; font-weight: 700; white-space: nowrap; }
.odds-formula i { font-style: normal; color: #f5c98a; }
.odds-ex { display: flex; gap: 10px; flex-wrap: wrap; }
.odds-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .82rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; }
.odds-pill .py { color: #7fe0b4; font-weight: 700; }
.odds-pill .pn { color: #f2a49c; font-weight: 700; }
.odds-link { color: #f5c98a; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.odds-link:hover { text-decoration: underline; }

/* ---------- 区块通用 ---------- */
.section { padding: 34px 20px 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 1.35rem; margin: 0; color: var(--indigo-deep); }
.see-all { font-size: .82rem; font-weight: 700; color: var(--amber); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

/* ---------- 平台对比表 ---------- */
.table-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.fin-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 760px; }
.fin-table th, .fin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fin-table thead th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--indigo-tint); border-bottom: 2px solid var(--indigo); }
.fin-table tbody tr:last-child td { border-bottom: none; }
.fin-table .num { white-space: nowrap; }
.pill { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; vertical-align: middle; }
.pill-reg { background: var(--yes-tint); color: var(--yes); }
.pill-crypto { background: var(--indigo-tint); color: var(--indigo); }
.pill-limit { background: var(--amber-tint); color: var(--amber); }
.pill-promo { background: var(--amber); color: #fff; }
.table-foot { font-size: .74rem; color: var(--ink-soft); margin: 8px 0 0; }

/* ---------- 入口卡 ---------- */
.tri-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tri-card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--indigo); border-radius: 4px; padding: 16px 16px 13px; }
.tri-card:hover { border-top-color: var(--amber); box-shadow: 0 2px 10px rgba(42,37,96,.08); }
.tri-card strong { font-size: 1rem; color: var(--indigo-deep); }
.tri-card span { font-size: .84rem; color: var(--ink-soft); flex: 1; }
.tri-card em { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }

/* ---------- 文章流 ---------- */
.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-row { display: flex; gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.story-no { font-family: var(--mono); font-weight: 700; color: var(--line-dark); font-size: 1.05rem; min-width: 26px; }
.story-cat { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.story-row h3 { font-size: 1.04rem; margin: 3px 0 4px; }
.story-row h3 a:hover { color: var(--indigo); text-decoration: underline; }
.story-row p { margin: 0 0 5px; font-size: .88rem; color: var(--ink-soft); }

.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-bottom: 16px; }
.side-title { font-size: .78rem; letter-spacing: .12em; color: var(--indigo); margin: 0 0 10px; }
.side-item { display: block; padding: 8px 0; border-top: 1px solid var(--line); font-size: .88rem; line-height: 1.45; }
.side-item:first-of-type { border-top: none; }
.side-item:hover { color: var(--indigo); }
.side-item b { color: var(--ink); }
.side-quote { background: var(--indigo-deep); color: #d9d5f0; border: none; }
.side-quote p { font-size: .94rem; margin: 0 0 8px; }
.side-quote span { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: #8c86c0; }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 20px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; padding: 13px 0; color: var(--indigo-deep); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { font-size: .92rem; color: var(--ink-soft); }
.faq a { text-decoration: underline; }

/* ---------- 文章页 ---------- */
.crumbs { font-size: .78rem; color: var(--ink-soft); padding-top: 18px; }
.crumbs a:hover { color: var(--indigo); text-decoration: underline; }
.article-layout { display: block; padding-bottom: 30px; }
.article-layout article { max-width: 780px; margin: 0 auto; }
.art-head { margin: 14px 0 22px; }
.art-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; }
.art-head h1 { font-size: 1.9rem; color: var(--ink); }
.art-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--ink-soft); }
.art-body { font-size: 1.01rem; }
.art-body h2 { font-size: 1.3rem; color: var(--indigo-deep); margin: 1.5em 0 .5em; }
.art-body h3 { font-size: 1.08rem; margin: 1.2em 0 .4em; }
.art-body p { margin: 0 0 1em; }
.art-body ul, .art-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.art-body li { margin-bottom: .4em; }
.art-body a { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--line-dark); }
.art-body a:hover { text-decoration-color: var(--indigo); }
.art-body table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1.2em 0; background: var(--paper); }
.art-body th, .art-body td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.art-body th { background: var(--indigo-tint); font-size: .78rem; letter-spacing: .04em; }
.art-body details { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 14px; margin: 0 0 10px; }
.art-body summary { font-weight: 700; cursor: pointer; padding: 11px 0; }
.art-body blockquote { margin: 1.2em 0; padding: 10px 16px; border-left: 4px solid var(--amber); background: var(--amber-tint); color: var(--ink); }
.risk-note { font-size: .78rem; color: var(--ink-soft); border-top: 1px dashed var(--line-dark); padding-top: 10px; margin-top: 1.6em; }
.source-line { font-size: .78rem; color: var(--ink-soft); }

.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--indigo-deep); color: #fff; border-radius: 4px; padding: 16px 20px; margin: 26px 0; }
.cta-strip strong { font-size: 1.02rem; }
.cta-strip p { margin: 2px 0 0; font-size: .84rem; color: #c9c4e6; }

.art-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.art-related h2 { font-size: .82rem; letter-spacing: .12em; color: var(--indigo); }
.mini-rank { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; margin-top: 14px; }
.mini-rank h3 { font-size: .72rem; letter-spacing: .11em; color: var(--indigo); margin: 0 0 8px; }
.rk-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.rk-row:first-of-type { border-top: none; }
.rk-row a { font-weight: 600; color: var(--indigo); }
.rk-row a:hover { text-decoration: underline; }

/* ---------- 栏目页 ---------- */
.cat-head { max-width: 1160px; margin: 0 auto; padding: 22px 20px 4px; }
.cat-desc { color: var(--ink-soft); max-width: 720px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--indigo-deep); color: #c9c4e6; margin-top: 40px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; padding: 30px 20px 18px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { font-size: .82rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav strong { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.site-footer nav a:hover { color: #f5c98a; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding: 14px 20px 22px; font-size: .76rem; color: #8c86c0; }
.footer-legal em { color: #b7b1dd; font-style: normal; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .lead-grid, .two-col, .art-footer-grid { grid-template-columns: 1fr; }
  .tri-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .odds-inner { grid-template-columns: 1fr; gap: 12px; }
  .odds-link { white-space: normal; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; border-bottom: 2px solid var(--indigo); padding: 8px 14px; }
  .site-header { position: relative; }
  .nav-burger { display: block; }
  .reg-flag { display: none; }
  .lead-story h1 { font-size: 1.6rem; }
  .tri-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
