/* ==========================================================================
   GTO100.com — 极简黑金暗黑护眼风 & OBS 直播适配样式表
   ========================================================================== */

:root {
  --bg-main: #0b0d11;
  --bg-surface: #141820;
  --bg-elevated: #1b212c;
  --bg-hover: #232b38;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.28);
  --gold: #e5be53;
  --gold-bright: #f5d67b;
  --gold-dim: #b59234;
  --gold-glow: rgba(229, 190, 83, 0.16);
  --text-primary: #f3f5f8;
  --text-secondary: #9aa3b2;
  --text-muted: #646e7d;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.14);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.14);
  --amber: #f59e0b;
  --blue: #38bdf8;
  --blue-bg: rgba(56, 189, 248, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.48);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, rgba(229, 190, 83, 0.06), transparent 46%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--gold-bright);
}

button, input {
  font-family: inherit;
}

/* ---------- 顶部极简导航（仅 4 入口） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 18px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-logo .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  color: #111318;
  font-size: 1rem;
  font-weight: 900;
}

.brand-logo .brand-gold {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.active {
  color: var(--gold-bright);
  background: var(--gold-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.icon-btn.muted {
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

/* ---------- 主容器 ---------- */
.main-wrap {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 18px 56px;
}

body.obs-focus .site-footer,
body.obs-focus .non-obs-block {
  display: none !important;
}

body.obs-focus .main-wrap {
  padding-top: 16px;
  padding-bottom: 20px;
}

/* ---------- 通用卡片与防裁切域名水印 ---------- */
.panel-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-card.gold-edge {
  border-color: var(--border-gold);
}

.watermark-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(229, 190, 83, 0.56);
  user-select: none;
  pointer-events: none;
}

.watermark-corner {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(229, 190, 83, 0.42);
  user-select: none;
  pointer-events: none;
}

/* ---------- CSS 扑克牌面渲染 ---------- */
.poker-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 2.15em;
  padding: 0.08em 0.34em;
  margin: 0 0.12em;
  border-radius: 6px;
  background: #fbfcfd;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.38);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.94em;
  line-height: 1.3;
  vertical-align: baseline;
  letter-spacing: -0.02em;
}

.poker-card.suit-red {
  color: #d92638;
}

.poker-card.suit-black {
  color: #12161f;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #111318;
  box-shadow: 0 6px 20px rgba(229, 190, 83, 0.24);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(229, 190, 83, 0.32);
  color: #111318;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--border-gold);
  background: var(--bg-hover);
  color: var(--gold-bright);
}

.btn-danger-ghost {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.32);
  color: #f87171;
}

.btn-danger-ghost:hover {
  background: var(--red-bg);
  color: #fca5a5;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* ---------- 首页：一站到底答题界面 ---------- */
.quiz-hero {
  text-align: center;
  padding: 12px 0 6px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.quiz-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.quiz-hero p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.setup-box {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  text-align: left;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.text-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.text-input:focus {
  border-color: var(--gold);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  flex: 1;
  min-width: 82px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pill-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.pill-btn.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* 答题状态栏 */
.quiz-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.quiz-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-chip.tier-1 { color: #4ade80; border-color: rgba(74, 222, 128, 0.25); }
.meta-chip.tier-2 { color: var(--gold-bright); border-color: var(--border-gold); }
.meta-chip.tier-3 { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }

.streak-chip {
  color: var(--gold-bright);
  background: var(--gold-glow);
  border-color: var(--border-gold);
}

/* 倒计时条 */
.timer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.timer-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-main);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 0.1s linear, background-color 0.2s ease;
}

.timer-fill.warn {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.timer-fill.danger {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.timer-num {
  min-width: 54px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.timer-num.danger {
  color: var(--red);
  animation: pulseFast 0.6s infinite alternate;
}

@keyframes pulseFast {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* 题干与选项（大字清晰，适配 OBS） */
.question-stem {
  margin: 0 0 24px;
  font-size: clamp(1.22rem, 2.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.6;
  color: var(--text-primary);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.06rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.45;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.option-btn:disabled {
  cursor: default;
}

.opt-key {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold);
}

.option-btn.correct {
  border-color: var(--green);
  background: var(--green-bg);
}

.option-btn.correct .opt-key {
  background: var(--green);
  border-color: var(--green);
  color: #09130c;
}

.option-btn.wrong {
  border-color: var(--red);
  background: var(--red-bg);
}

.option-btn.wrong .opt-key {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* 解析区 */
.feedback-box {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  display: none;
}

.feedback-box.show {
  display: block;
  animation: fadeSlide 0.2s ease;
}

.feedback-box.is-correct {
  border-color: rgba(34, 197, 94, 0.35);
}

.feedback-box.is-wrong {
  border-color: rgba(239, 68, 68, 0.38);
}

.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 1.05rem;
}

.feedback-box.is-correct .feedback-status { color: #4ade80; }
.feedback-box.is-wrong .feedback-status { color: #f87171; }

.feedback-text {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.65;
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.kbd-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 战绩卡 ---------- */
.result-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #171c26 0%, #101319 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6);
}

.result-top-wm {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  color: rgba(229, 190, 83, 0.65);
  margin-bottom: 14px;
}

.result-player {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.result-score {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 9vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--gold-bright);
  margin: 6px 0;
}

.result-score span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: 4px;
}

.result-rank-badge {
  display: inline-block;
  margin: 12px 0 18px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 1.08rem;
  font-weight: 800;
}

.result-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 24px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(11, 13, 17, 0.7);
  border: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.result-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- 今日直播间速览 / 榜单 ---------- */
.mini-board {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.mini-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-board-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

.rank-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.84rem;
}

.rank-table tr:last-child td {
  border-bottom: none;
}

.rank-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.88rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.rank-pos.top-1 { background: rgba(234, 179, 8, 0.22); color: #facc15; }
.rank-pos.top-2 { background: rgba(148, 163, 184, 0.22); color: #e2e8f0; }
.rank-pos.top-3 { background: rgba(217, 119, 6, 0.22); color: #fb923c; }

/* ---------- 工具与文章集合卡片 ---------- */
.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 900;
}

.page-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
  color: var(--text-primary);
}

.hub-card.is-live:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  background: var(--bg-elevated);
}

.hub-card.is-soon {
  opacity: 0.66;
  cursor: default;
}

.hub-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hub-tag.live {
  background: var(--gold-glow);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
}

.hub-tag.soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.hub-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.4;
}

.hub-card p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hub-foot {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- GTO 随机数生成器（RNG） ---------- */
.rng-stage {
  text-align: center;
  padding: 36px 24px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 2px solid var(--border-gold);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rng-stage.state-hit {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.11), var(--bg-surface) 65%);
  box-shadow: 0 0 36px rgba(34, 197, 94, 0.14);
}

.rng-stage.state-miss {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.09), var(--bg-surface) 65%);
}

.rng-number {
  font-family: var(--font-mono);
  font-size: clamp(5.2rem, 18vw, 8.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold-bright);
  margin: 12px 0 14px;
  user-select: none;
  transition: transform 0.1s ease, color 0.18s ease;
}

.rng-stage.state-hit .rng-number { color: #4ade80; }
.rng-stage.state-miss .rng-number { color: #7dd3fc; }

.rng-number.pop {
  transform: scale(1.07);
}

.rng-verdict {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  background: var(--bg-main);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.rng-stage.state-hit .rng-verdict {
  background: var(--green-bg);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.rng-stage.state-miss .rng-verdict {
  background: var(--blue-bg);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.rng-auto-bar-wrap {
  max-width: 340px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--bg-main);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rng-auto-bar-wrap.active {
  opacity: 1;
}

.rng-auto-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
}

.rng-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.control-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.control-card h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.rng-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hist-chip {
  min-width: 38px;
  padding: 5px 9px;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.hist-chip.hit { border-color: rgba(34, 197, 94, 0.4); color: #4ade80; }
.hist-chip.miss { border-color: rgba(56, 189, 248, 0.35); color: #7dd3fc; }

body.rng-compact .site-header,
body.rng-compact .site-footer,
body.rng-compact .rng-extra {
  display: none !important;
}

body.rng-compact .main-wrap {
  max-width: 420px;
  padding: 12px;
}

/* ---------- 策略百科文章页 ---------- */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-card);
}

.article-body h1 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.8vw, 2.1rem);
  line-height: 1.35;
  font-weight: 900;
}

.article-body h2 {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1.28rem;
  color: var(--gold-bright);
}

.article-body h3 {
  margin: 22px 0 8px;
  font-size: 1.06rem;
  color: var(--text-primary);
}

.article-body p {
  margin: 0 0 15px;
  color: #d6dce6;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #d6dce6;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-body code {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--gold-bright);
}

.callout-box {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border-left: 4px solid var(--gold);
}

.callout-box strong {
  color: var(--gold-bright);
}

.cta-banner {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(229, 190, 83, 0.14), rgba(20, 24, 32, 0.96));
  border: 1px solid var(--border-gold);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-banner h3 {
  margin: 0 0 4px;
  color: var(--gold-bright);
}

.cta-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 24px;
}

.compare-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.91rem;
  line-height: 1.55;
}

.compare-table th {
  background: var(--bg-elevated);
  color: var(--gold-bright);
  font-weight: 700;
}

/* 合规学习软件推荐预留位 */
.study-partner-box {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px dashed var(--border-gold);
}

.study-partner-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.study-partner-box h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.study-partner-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 22px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 4px 0;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 720px) {
  .header-inner {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
  }

  .site-nav a {
    flex: 1;
    text-align: center;
    padding: 7px 6px;
    font-size: 0.88rem;
  }

  .panel-card {
    padding: 20px 16px;
  }

  .options-grid,
  .rng-controls-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 24px 18px;
  }

  .result-stats-row {
    grid-template-columns: 1fr;
  }
}
