/* Spider Solitaire Zen — 官网 / 隐私政策共用样式
   配色取自游戏内牌桌主题（Mint） */

:root {
  --bg: #0e1116;
  --glow: #1a2029;
  --panel: #161b22;
  --panel-2: #1d242e;
  --border: #262c36;
  --text: #e6eaf0;
  --dim: #9aa4b2;
  --muted: #6b7684;
  --accent: #4fd1a5;
  --accent-dim: rgba(79, 209, 165, 0.14);
  --star: #e3b341;
  --radius: 16px;
  --max: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--max)); margin: 0 auto; }

/* ---------------------------------------------------------------- 语言切换 */

html[data-lang="zh"] [data-en],
html[data-lang="en"] [data-zh] { display: none !important; }

/* ---------------------------------------------------------------- 顶部导航 */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(14, 17, 22, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand small {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 11px;
  display: block;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 5px 13px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(79, 209, 165, 0.14), transparent 62%),
    radial-gradient(700px 480px at 12% 88%, rgba(79, 209, 165, 0.07), transparent 60%),
    linear-gradient(180deg, #10151b 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 209, 165, 0.35);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 20px 0 6px;
  font-weight: 600;
}

.hero .cn-name {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--accent);
  letter-spacing: 0.22em;
  margin-bottom: 18px;
}

.hero p.lede {
  font-size: 17px;
  color: var(--dim);
  max-width: 34em;
  margin: 0 0 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 5px 12px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #08130f; }
.btn-primary:hover { background: #63dcb3; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: min(360px, 78%);
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.55));
}

/* ---------------------------------------------------------------- 通用区块 */

.section { padding: 68px 0; }
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 600;
}

.section-intro {
  color: var(--dim);
  max-width: 44em;
  margin: 0 0 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: rgba(79, 209, 165, 0.42); transform: translateY(-2px); }
.card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.card p { margin: 0; color: var(--dim); font-size: 14.5px; }

.card .num {
  display: block;
  font-family: var(--serif);
  color: rgba(79, 209, 165, 0.45);
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

/* 牌桌事实表 */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--panel);
  padding: 22px 18px;
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 600;
}
.fact span { font-size: 13px; color: var(--muted); }

/* 纯净承诺 */
.quiet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quiet li {
  display: flex;
  gap: 12px;
  color: var(--dim);
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.quiet li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.quiet strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- 页脚 */

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: var(--dim); }
.footer .sep { opacity: 0.4; margin: 0 8px; }

/* ---------------------------------------------------------------- 文档页（隐私政策） */

.doc-hero {
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #10151b, var(--bg));
}
.doc-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 10px;
  font-weight: 600;
}
.doc-meta { color: var(--muted); font-size: 13.5px; }

.doc-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  padding: 44px 0 82px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  font-size: 13.5px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.toc p {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 7px 0; }
.toc a { color: var(--dim); }
.toc a:hover { color: var(--accent); text-decoration: none; }

.doc { max-width: 720px; }
.doc section { padding: 26px 0; border-top: 1px solid var(--border); }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 {
  font-family: var(--sans);
  font-size: 19px;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.doc h2 .no {
  color: var(--accent);
  font-family: var(--serif);
  margin-right: 10px;
}
.doc p { color: var(--dim); margin: 0 0 12px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { color: var(--dim); margin: 0 0 12px; padding-left: 20px; }
.doc li { margin: 5px 0; }
.doc strong { color: var(--text); font-weight: 600; }

.note {
  border: 1px solid rgba(79, 209, 165, 0.28);
  background: var(--accent-dim);
  border-radius: 12px;
  padding: 14px 16px;
  color: #bfe9d8;
  font-size: 14px;
}
.note p { color: #bfe9d8; }

.tbl-wrap { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--dim);
}
th { color: var(--text); font-weight: 600; background: var(--panel); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- 自适应 */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(260px, 62%); }
  .hero { padding: 44px 0 42px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--border); padding: 16px 0 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .toc li { margin: 0; }
}

/* 超窄屏（<=400px）只保留品牌与语言切换，避免导航挤爆 */
@media (max-width: 400px) {
  .nav-links a { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { height: 58px; gap: 12px; }
  .nav-links { gap: 12px; font-size: 13.5px; }
  .nav-links a.hide-sm { display: none; }
  .nav-links a.hide-xs { display: none; }
  .brand { font-size: 14.5px; }
  .lang button { padding: 4px 10px; font-size: 12.5px; }
  .grid { grid-template-columns: 1fr; }
  .quiet { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .brand small { display: none; }
  .fact b { font-size: 24px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media print {
  .nav, .toc, .footer .sep { display: none; }
  body { background: #fff; color: #111; }
  .doc p, .doc li, td { color: #333; }
  .doc h2 .no { color: #0a7; }
  a { color: #0a7; }
}
