/* ========================================
   德州扑克·从菜鸟到高手完全指南
   深色赌场绿+金色配色，扑克牌元素装饰
   ======================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --green-primary: #0B3D2E;
  --green-deep: #062318;
  --green-felt: #14553F;
  --green-light: #1E6B4F;
  --gold-primary: #D4AF37;
  --gold-light: #F0D858;
  --gold-deep: #A08822;
  --bg-dark: #0A1A14;
  --bg-card: #122B22;
  --bg-card-light: #1A382C;
  --bg-cream: #F5F0E0;
  --text-white: #F0F5F0;
  --text-light: #B8C8B8;
  --text-gray: #7A9080;
  --text-dim: #5A6B5A;
  --red-card: #C4202B;
  --black-card: #1A1A1A;
  --border-gold: #D4AF37;
  --border-soft: #2A4A3A;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-deep: 0 12px 50px rgba(0, 0, 0, 0.7);
  --radius-card: 22px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --container-width: 1100px;
  --font-cn: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "SimSun", serif;
  --font-mono: "SF Mono", "Consolas", "Courier New", monospace;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-cn);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--gold-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }

/* 桌面绒面纹理 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(20, 85, 63, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(6, 35, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border-gold);
}
.navbar-inner {
  width: 100%; max-width: var(--container-width);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.navbar-logo {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 700;
  color: var(--gold-light); letter-spacing: 2px; white-space: nowrap;
}
.navbar-logo span { color: rgba(240,245,240,0.5); font-size: 13px; margin-left: 6px; }
.navbar-links { display: flex; gap: 4px; align-items: center; }
.navbar-links a {
  color: rgba(240,245,240,0.7); font-size: 14px;
  padding: 6px 12px; border-radius: var(--radius-xs); transition: all 0.3s; white-space: nowrap;
}
.navbar-links a:hover { color: var(--gold-light); background: rgba(212,175,55,0.1); }
.navbar-links a.active { color: var(--gold-light); background: rgba(212,175,55,0.15); }
.navbar-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
.navbar-toggle span { width: 22px; height: 2px; background: var(--gold-light); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 60px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse at center, var(--green-felt) 0%, var(--green-deep) 50%, var(--bg-dark) 100%);
  z-index: -2;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(212,175,55,0.08) 0%, transparent 50%);
}
.hero-content { max-width: 800px; z-index: 1; }
.hero-eyebrow {
  font-size: 14px; letter-spacing: 8px; color: var(--gold-primary);
  margin-bottom: 20px; opacity: 0; animation: fadeInUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 60px); font-weight: 800;
  color: var(--gold-light); line-height: 1.3; margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6); opacity: 0; animation: fadeInUp 0.8s 0.4s forwards;
}
.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 18px); color: rgba(240,245,240,0.6);
  line-height: 1.8; margin-bottom: 40px; opacity: 0; animation: fadeInUp 0.8s 0.6s forwards;
}
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0; animation: fadeInUp 0.8s 0.8s forwards; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-serif); font-size: 36px; font-weight: 700; color: var(--gold-light); }
.hero-stat-label { font-size: 13px; color: rgba(240,245,240,0.4); margin-top: 4px; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(240,245,240,0.3); font-size: 24px; animation: bounce 2s infinite; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }

/* ---------- 通用 Section ---------- */
.section { position: relative; padding: 80px 24px; z-index: 1; }
.section-inner { max-width: var(--container-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 13px; letter-spacing: 4px;
  color: var(--gold-deep); padding: 4px 16px;
  border: 1px solid var(--border-soft); border-radius: 100px; margin-bottom: 16px;
}
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--gold-light); margin-bottom: 12px; }
.section-desc { font-size: 15px; color: var(--text-gray); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* ---------- 章节目录 ---------- */
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.chapter-card {
  background: var(--bg-card); border-radius: var(--radius-card);
  padding: 32px 28px; box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft); transition: all 0.4s; cursor: pointer;
  display: flex; flex-direction: column; min-height: 240px;
}
.chapter-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); border-color: var(--gold-primary); }
.chapter-card-num { font-family: var(--font-serif); font-size: 14px; color: var(--gold-deep); letter-spacing: 2px; margin-bottom: 8px; }
.chapter-card-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--gold-light); margin-bottom: 10px; }
.chapter-card-desc { font-size: 14px; color: var(--text-gray); line-height: 1.8; flex: 1; }
.chapter-card-arrow { margin-top: 16px; font-size: 13px; color: var(--gold-primary); font-weight: 600; }

/* ---------- 篇章横幅 ---------- */
.chapter { margin-bottom: 60px; }
.chapter-banner {
  background: linear-gradient(135deg, var(--green-deep), var(--green-felt));
  border-radius: var(--radius-card); padding: 40px 36px; margin-bottom: 32px;
  position: relative; overflow: hidden; border: 1px solid var(--border-gold);
}
.chapter-banner::after { content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%); }
.chapter-banner-num { font-family: var(--font-serif); font-size: 14px; color: var(--gold-light); letter-spacing: 3px; margin-bottom: 8px; }
.chapter-banner-title { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.chapter-banner-desc { font-size: 15px; color: rgba(240,245,240,0.6); line-height: 1.8; }

/* ---------- 内容卡片 ---------- */
.content-card {
  background: var(--bg-card); border-radius: var(--radius-card);
  padding: 36px; margin-bottom: 24px; box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.content-card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--gold-light); margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--gold-primary); }
.content-card h4 { font-size: 17px; font-weight: 600; color: var(--text-white); margin: 20px 0 10px; }
.content-card p { font-size: 15px; line-height: 2; color: var(--text-light); margin-bottom: 14px; }
.content-card p strong { color: var(--gold-light); font-weight: 600; }
.content-card ul, .content-card ol { margin: 10px 0 14px 20px; }
.content-card li { font-size: 15px; line-height: 2; color: var(--text-light); margin-bottom: 6px; }

/* ---------- 引言块 ---------- */
.quote-block {
  background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(20,85,63,0.1));
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 28px; margin: 20px 0;
}
.quote-block p { font-family: var(--font-serif); font-size: 16px; color: var(--gold-light); font-style: italic; line-height: 1.9; margin: 0; }
.quote-block .quote-author { font-size: 13px; color: var(--gold-deep); margin-top: 8px; text-align: right; }

/* ---------- 示意图容器 ---------- */
.diagram-box {
  background: var(--bg-card-light); border-radius: var(--radius-card);
  padding: 32px; margin: 24px 0; box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft); text-align: center;
}
.diagram-box-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--gold-light); margin-bottom: 16px; }
.diagram-svg { width: 100%; max-width: 640px; margin: 0 auto; display: block; }
.diagram-caption { font-size: 13px; color: var(--text-dim); margin-top: 12px; }

/* ---------- 对比表格 ---------- */
.compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); }
.compare-table th { background: var(--green-deep); color: var(--gold-light); font-size: 14px; font-weight: 600; padding: 14px 18px; text-align: left; }
.compare-table td { background: var(--bg-card); font-size: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); line-height: 1.8; color: var(--text-light); }
.compare-table tr:last-child td { border-bottom: none; }

/* ---------- 选手人物墙 ---------- */
.player-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.player-card {
  background: var(--bg-card); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft); transition: all 0.4s;
}
.player-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); border-color: var(--gold-primary); }
.player-card-img {
  width: 100%; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--green-felt), var(--green-deep));
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.player-card-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.2) 100%); }
.player-card-initial { font-family: var(--font-serif); font-size: 56px; font-weight: 800; color: var(--gold-light); z-index: 1; }
.player-card-body { padding: 24px; }
.player-card-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--gold-light); margin-bottom: 4px; }
.player-card-nick { font-size: 13px; color: var(--gold-deep); margin-bottom: 12px; }
.player-card-desc { font-size: 14px; color: var(--text-gray); line-height: 1.8; }
.player-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.player-card-tag { font-size: 12px; padding: 3px 10px; border-radius: 100px; background: rgba(212,175,55,0.08); color: var(--gold-primary); }

/* ---------- 牌局回放框 ---------- */
.hand-replay {
  background: var(--bg-card-light); border-radius: var(--radius-card);
  padding: 32px; margin: 24px 0; box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.hand-replay-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--gold-light); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.hand-replay p { font-size: 14px; line-height: 2; color: var(--text-light); margin-bottom: 10px; }
.hand-replay .street-label { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 2px; margin: 16px 0 8px; }

/* ---------- 扑克牌图标 ---------- */
.card-icon { display: inline-block; width: 28px; height: 40px; border-radius: 4px; border: 1.5px solid var(--border-gold); text-align: center; line-height: 38px; font-size: 16px; font-weight: 700; margin: 0 2px; vertical-align: middle; }
.card-icon.red { color: var(--red-card); border-color: var(--red-card); }
.card-icon.black { color: var(--text-white); }

/* ---------- 启发卡片 ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.insight-card { background: linear-gradient(135deg, rgba(212,175,55,0.04), rgba(20,85,63,0.08)); border-radius: var(--radius-sm); padding: 24px; border: 1px solid var(--border-soft); }
.insight-card-icon { font-size: 28px; margin-bottom: 12px; }
.insight-card-title { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--gold-light); margin-bottom: 8px; }
.insight-card-text { font-size: 14px; color: var(--text-gray); line-height: 1.8; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); padding: 48px 24px 32px; text-align: center; position: relative; z-index: 1; border-top: 1px solid var(--border-soft); }
.footer p { color: var(--text-dim); font-size: 13px; line-height: 1.8; margin-bottom: 8px; }
.footer-divider { width: 60px; height: 2px; background: var(--gold-deep); margin: 0 auto 20px; border-radius: 2px; }

/* ---------- 滚动渐入 ---------- */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- 打印版 ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .navbar, .hero-scroll, .footer { display: none; }
  .hero { min-height: auto; padding: 20px; page-break-after: always; }
  .section { padding: 20px 0; page-break-inside: avoid; }
  .chapter { page-break-inside: avoid; }
  .content-card { page-break-inside: avoid; box-shadow: none; border: 1px solid #ccc; background: #fff; color: #000; }
  .content-card h3, .content-card p, .content-card li { color: #000; }
  .chapter-banner { background: #0B3D2E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fade-in { opacity: 1; transform: none; }
  a { color: #000; text-decoration: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .navbar-toggle { display: flex; }
  .navbar-links { position: fixed; top: 64px; left: 0; right: 0; background: rgba(6,35,24,0.97); flex-direction: column; padding: 16px; gap: 4px; transform: translateY(-100%); transition: transform 0.3s; z-index: 999; }
  .navbar-links.open { transform: translateY(0); }
  .navbar-links a { padding: 12px 16px; font-size: 15px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .player-wall { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .content-card { padding: 24px 20px; }
  .chapter-banner { padding: 28px 24px; }
  .section { padding: 60px 16px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 28px; }
  .diagram-box { padding: 20px 16px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .section-title { font-size: 24px; }
  .chapter-banner-title { font-size: 22px; }
  .content-card h3 { font-size: 18px; }
  .hero-title { font-size: 30px; }
}
