/* =====================================================
   万字世界 — Shared Blog Article Styles
   ===================================================== */

/* ── Hero ─────────────────────────────────────────── */
.article-hero {
  padding: 64px 0 48px;
}
.article-hero .crumbs {
  color: rgba(255,255,255,.5);
  font-size: 16px;
  margin-bottom: 18px;
}
.article-hero .crumbs a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.article-hero .crumbs a:hover { color: #FFC727; }
.article-hero .crumbs .sep { margin: 0 8px; opacity: .4; }

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,199,39,.15);
  border: 1px solid rgba(255,199,39,.35);
  color: #FFC727;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.article-hero h1 {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.28;
  margin-bottom: 22px;
  max-width: 780px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 16px;
  color: rgba(255,255,255,.55);
}
.hero-meta .dot-sep { opacity: .35; }
.hero-meta b { color: rgba(255,255,255,.85); font-weight: 600; }

/* ── Layout ───────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
  padding: 60px 0 90px;
}

/* ── Article Body ─────────────────────────────────── */
.article-body {
  min-width: 0;
  max-width: 780px;
}

.article-lead {
  font-size: 20px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.article-body h2:first-of-type { margin-top: 0; }

.article-body h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body li {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.article-body strong { color: var(--ink); }

/* Inline anchor text link style */
.article-body a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(181,127,8,.3);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.article-body a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ── Callout ──────────────────────────────────────── */
.callout {
  display: flex;
  gap: 16px;
  background: var(--parchment);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.callout-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.6;
}
.callout-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.callout-body strong { color: var(--ink); }

/* ── Info Box ─────────────────────────────────────── */
.info-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
}
.info-box h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.info-box p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Warning Box ──────────────────────────────────── */
.warn-box {
  background: #FFF6F5;
  border: 1px solid #F4C5BF;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
}
.warn-box h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: #C0392B;
  margin-bottom: 10px;
}
.warn-box ul { padding-left: 20px; margin: 0; }
.warn-box li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* ── Data Table ───────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.data-table th {
  background: var(--ink);
  color: var(--gold-bright);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--cream); }
.chip-hot { display: inline-block; background: #E54444; color: #fff; border-radius: 999px; padding: 2px 11px; font-size: 13px; font-weight: 700; }
.chip-cold { display: inline-block; background: #3D8FEF; color: #fff; border-radius: 999px; padding: 2px 11px; font-size: 13px; font-weight: 700; }
.chip-up { color: #27A86A; font-weight: 700; }
.chip-down { color: #D8392C; font-weight: 700; }

/* ── Two-column comparison ────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.compare-card {
  border-radius: 12px;
  padding: 22px;
  border: 1px solid var(--line);
}
.compare-card.yes { background: #F2FBF6; border-color: #B2DFCC; }
.compare-card.no  { background: #FFF5F5; border-color: #F4C5BF; }
.compare-card h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}
.compare-card.yes h4 { color: #27A86A; }
.compare-card.no h4  { color: #D8392C; }
.compare-card ul { padding-left: 18px; margin: 0; }
.compare-card li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 6px; }

/* ── Rules grid ───────────────────────────────────── */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.rule-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.rule-card .ri { font-size: 24px; margin-bottom: 8px; }
.rule-card h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.rule-card p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ── Stats strip ──────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.stat-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.stat-item .sv {
  font-family: var(--display-en);
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .sl { font-size: 14px; color: var(--ink-mute); line-height: 1.4; }

/* ── Chart demo ───────────────────────────────────── */
.chart-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin: 28px 0;
}
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-caption {
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ── Article nav ──────────────────────────────────── */
.article-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  flex: 1;
  min-width: 160px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-soft) !important;
  text-decoration: none !important;
  transition: border-color .2s, box-shadow .2s;
}
.article-nav a:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(229,168,0,.15);
  color: var(--ink) !important;
}
.article-nav a .nav-label {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: block;
  margin-bottom: 4px;
}

/* ── Sidebar ──────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 24px; }

.sb-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.sb-box h5 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.sb-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sb-box ul li {
  border-bottom: 1px solid var(--line);
}
.sb-box ul li:last-child { border-bottom: none; }
.sb-box ul li a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.sb-box ul li a:hover { color: var(--gold-deep); }

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc-list li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.toc-list li a::before {
  content: counter(toc);
  min-width: 20px;
  height: 20px;
  background: var(--parchment);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.toc-list li a:hover { color: var(--gold-deep); }

.sb-box.warn {
  background: #FFF6F5;
  border-color: #F4C5BF;
}
.sb-box.warn h5 { color: #C0392B; border-color: #F4C5BF; }
.sb-hotline {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 8px;
}

/* ── FAQ Accordion ────────────────────────────────── */
.faq-list { margin: 0; padding: 0; list-style: none; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  background: var(--paper);
  overflow: hidden;
  transition: box-shadow .2s;
}
.acc-item:hover { box-shadow: var(--shadow-sm); }
.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  line-height: 1.45;
}
.acc-head:hover { color: var(--gold); }
.acc-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-mute);
  transition: transform .3s, background .2s, border-color .2s;
}
.acc-item.open .acc-icon {
  transform: rotate(45deg);
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.acc-item.open .acc-body { max-height: 600px; }
.acc-body-inner {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}
.acc-body-inner p { margin: 0; }
.acc-body-inner a { color: var(--gold); text-decoration: underline; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; gap: 44px; }
  .blog-sidebar { position: static; }
  .compare-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats-strip { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
}
