:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2420;
  --muted: #5d6862;
  --border: #e3e1da;
  --accent: #2f6b4f;
  --accent-soft: #e6efe9;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --surface: #1a201d;
    --text: #e8ece9;
    --muted: #9aa69f;
    --border: #2b332f;
    --accent: #7cc4a0;
    --accent-soft: #1f2d26;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC",
    "Hiragino Sans GB", "Microsoft YaHei", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

:lang(en) body, body:lang(en) { line-height: 1.6; }

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

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.logo { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding-top: 48px; padding-bottom: 64px; }

/* 首页 */
.hero { text-align: center; padding: 32px 0 56px; }
.hero .logo-lg { width: 88px; height: 88px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px;
}

.section-title { font-size: 24px; margin: 56px 0 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px 14px 46px; position: relative; font-size: 16px;
}
.trust li::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.note { color: var(--muted); font-size: 15px; }

/* 正文页（隐私政策、支持） */
.prose h1 { font-size: 32px; line-height: 1.3; margin: 0 0 8px; }
.prose .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--accent-soft); font-weight: 600; }
.prose .summary {
  background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px;
}
.prose .summary p { margin: 0; }

.contact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin: 0 0 32px;
}
.contact p { margin: 0; }
.contact .email { font-size: 20px; font-weight: 600; }

details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin: 10px 0;
}
summary { cursor: pointer; font-weight: 600; }
details p, details ul { margin: 10px 0 0; color: var(--muted); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 6px 0; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.lang-switch a { color: var(--muted); }
.lang-switch a[aria-current="true"] { color: var(--text); font-weight: 600; }
.fine { font-size: 12px; }

/* 语言选择页 */
.chooser { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; }
.chooser .logo { width: 64px; height: 64px; }
.chooser nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chooser nav a {
  padding: 10px 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-nav { gap: 14px; font-size: 14px; }
  main { padding-top: 32px; }
  .hero { padding-top: 16px; }
}

/* logo 颜色跟随主题 */
.lg-box { fill: var(--accent); }
.lg-arc { fill: none; stroke: var(--accent); stroke-width: 3; }
.lg-hole { fill: var(--bg); }
