/* 睡觉了，手机 (PhoneBed) — 官网样式
   纯静态、无外部资源，字体使用系统栈。移动端优先。 */

:root {
  --bg: #0a0d1a;
  --bg-raised: #10142a;
  --bg-card: #131832;
  --ink: #e3e7f5;
  --ink-muted: #9aa1bf;
  --ink-faint: #6a7194;
  --moon: #b9c2ec;
  --moon-deep: #8e9ade;
  --line: rgba(185, 194, 236, 0.14);
  --line-strong: rgba(185, 194, 236, 0.28);
  --radius: 16px;
  --maxw: 960px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Source Han Sans SC",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

::selection {
  background: rgba(142, 154, 222, 0.35);
}

a {
  color: var(--moon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand .en {
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 0.85em;
}

.site-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  overflow-x: auto;
}

.site-nav a {
  color: var(--ink-muted);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--moon);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
  text-align: center;
  background:
    radial-gradient(600px 320px at 50% -80px, rgba(142, 154, 222, 0.16), transparent 70%),
    var(--bg);
}

.hero .moon-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 0 48px rgba(142, 154, 222, 0.35);
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.hero .tagline {
  margin-top: 14px;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--ink-muted);
}

.hero .sub {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--moon), var(--moon-deep));
  color: #0a0d1a;
  box-shadow: 0 6px 24px rgba(142, 154, 222, 0.35);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- 通用 section ---------- */

section {
  padding: 64px 0;
}

section.alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.03em;
}

.section-lede {
  margin: 12px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- 玩法与规则 ---------- */

.rules {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.rule-card .glyph {
  font-size: 1.6rem;
}

.rule-card h3 {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.rule-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ---------- 下载 ---------- */

.download-box {
  margin-top: 36px;
  text-align: center;
}

.version-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.update-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ---------- 安装帮助 ---------- */

.faq-list {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

details summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details .body {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

details .body ol,
details .body ul {
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}

details .body p + ol,
details .body p + ul,
details .body ol + p,
details .body ul + p {
  margin-top: 10px;
}

details .body .path {
  color: var(--ink);
}

.callout {
  margin-top: 24px;
  background: rgba(142, 154, 222, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

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

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.site-footer .links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

/* ---------- 隐私政策页 ---------- */

.doc {
  padding: 56px 0 72px;
}

.doc article {
  max-width: 720px;
  margin: 0 auto;
}

.doc h1 {
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

.doc .meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.doc p {
  margin-top: 14px;
  color: var(--ink-muted);
}

.doc ul,
.doc ol {
  margin-top: 12px;
  padding-left: 1.4em;
  color: var(--ink-muted);
  display: grid;
  gap: 8px;
}

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

@media (max-width: 560px) {
  .brand .en {
    display: none;
  }

  .site-nav {
    gap: 10px;
    font-size: 0.82rem;
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding: 56px 0 32px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}
