/* =========================================================
   极速桌游馆 · 共享站点样式（light theme, mobile-first）
   品牌色取自《极速101》卡通风：极速绿 / 爆胎红 / 赛车黄
   ========================================================= */
:root {
  --green: #0a9c7c;
  --green-d: #067a63;
  --red: #ff6b6b;
  --red-d: #ee5a24;
  --yellow: #ffd93d;
  --yellow-d: #ffb800;
  --ink: #1f2a28;
  --muted: #5c6b68;
  --line: #e6ecea;
  --bg: #f4f8f6;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(10, 60, 50, 0.08);
  --shadow-hi: 0 12px 30px rgba(10, 60, 50, 0.16);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.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;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: var(--maxw); margin: 0 auto; padding: 0 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand .logo { font-size: 1.5rem; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--green-d); text-decoration: none; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; width: 42px; height: 38px; font-size: 1.2rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0a9c7c 0%, #067a63 60%, #055e4c 100%);
  color: #fff; padding: 56px 0 64px;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 14px; line-height: 1.2; text-shadow: 2px 2px 0 rgba(0,0,0,0.12); }
.hero p { font-size: 1.06rem; max-width: 640px; color: #e3f5f1; margin: 0 0 22px; }
.hero .pill { display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; margin: 0 8px 8px 0; }
.hero .cta-row { margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 800; cursor: pointer; transition: transform .05s, box-shadow .1s;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: linear-gradient(135deg, #ffd93d, #ffb800); color: #5a3d00; box-shadow: 0 6px 0 #d99a00; }
.btn-primary:active { box-shadow: 0 2px 0 #d99a00; }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); text-decoration: none; }

/* ---------- 区块通用 ---------- */
section.block { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- 游戏卡片网格 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.game-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .12s, box-shadow .12s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); text-decoration: none; }
.game-card .thumb {
  height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem;
  background: linear-gradient(135deg, #0a9c7c, #2cb5ac); color: #fff; position: relative;
}
.game-card.soon .thumb { background: linear-gradient(135deg, #9aa6a3, #c3ccc9); }
.game-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.game-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.game-card .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e6f7f2; color: var(--green-d); margin-bottom: 8px; }
.game-card .tag.soon { background: #eef1f0; color: #8a958f; }
.game-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; flex: 1; }
.game-card .more { font-weight: 700; color: var(--green-d); font-size: 0.9rem; }

/* ---------- 文章 / 内容排版 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 1.5rem; margin: 38px 0 14px; padding-left: 12px; border-left: 5px solid var(--yellow-d); }
.article h3 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--green-d); }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 6px 0; }
.article strong { color: var(--ink); }
.article .lead { font-size: 1.08rem; color: #33403d; background: #eef7f4; border: 1px solid #d4ece6; border-radius: 12px; padding: 14px 16px; }

/* 定义列表：规则术语 */
.termlist { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px 18px; margin: 0 0 16px; }
.termlist dt { font-weight: 800; color: var(--green-d); }
.termlist dd { margin: 0; }

/* 卡牌一览表 */
.rules-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 0.92rem; overflow: hidden; border-radius: 12px; }
.rules-table th, .rules-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.rules-table th { background: #eef7f4; color: var(--green-d); }
.rules-table tbody tr:nth-child(even) { background: #fafcfb; }
.rules-table .rk-icon { font-size: 1.25rem; white-space: nowrap; width: 1%; }

/* 提示框 */
.tip {
  background: #fff8e1; border: 1px solid #ffe082; border-radius: 12px;
  padding: 12px 16px; margin: 14px 0; font-size: 0.95rem; color: #5a3d00;
}
.tip b { color: #8a6200; }
.note {
  background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 12px;
  padding: 12px 16px; margin: 14px 0; font-size: 0.92rem; color: #2b4a7a;
}

/* ---------- 内嵌游戏 ---------- */
.play-section { padding: 28px 0 8px; text-align: center; }
.play-frame {
  max-width: 540px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-hi); border: 1px solid var(--line); background: #067a63;
}
.play-frame iframe { display: block; width: 100%; height: 92vh; min-height: 640px; border: 0; }
.play-links { margin: 14px 0 0; font-size: 0.92rem; }
.play-links a { font-weight: 700; }

/* ---------- FAQ 手风琴 ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 16px 18px; font-size: 1.02rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .chev { transition: transform .2s; color: var(--green-d); font-size: 1.2rem; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a .inner { padding: 0 18px 16px; color: #33403d; }
.faq-a .inner p:first-child { margin-top: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #063b30; color: #cfe9e2; padding: 40px 0 28px; margin-top: 40px; }
.site-footer a { color: #9fe7d6; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.site-footer .col h4 { color: #fff; margin: 0 0 10px; font-size: 0.98rem; }
.site-footer .col a { display: block; margin: 6px 0; font-size: 0.9rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 26px; padding-top: 16px; font-size: 0.82rem; color: #8fbdb1; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .termlist { grid-template-columns: 1fr; gap: 2px 0; }
  .termlist dt { margin-top: 8px; }
  .play-frame iframe { height: 86vh; min-height: 560px; }
}

/* ---------- 语言切换 ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: .9rem; }
.lang-switch a { color: var(--ink); text-decoration: none; padding: 4px 8px; border-radius: 8px; font-weight: 600; }
.lang-switch a:hover { text-decoration: none; background: rgba(10,156,124,.12); }
.lang-switch a.active { background: var(--green); color: #fff; }
.lang-switch .sep { color: #b9c4c1; margin: 0 1px; }

@media (max-width: 720px) {
  .nav-links .lang-switch { padding: 12px 18px; border-bottom: 1px solid var(--line); }
}
