:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #121520;
  --muted: #586071;
  --line: #e2e5ee;
  --accent: #3352f0;
  --accent-2: #0f9f8f;
  --accent-ink: #ffffff;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f16;
    --surface: #141925;
    --text: #e8ebf2;
    --muted: #9aa3b5;
    --line: #252c3b;
    --accent: #7d93ff;
    --accent-2: #2fd3bf;
    --accent-ink: #0c0f16;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow > * { max-width: 720px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header { background: var(--bg); }
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-zh { font-weight: 650; font-size: 16px; }
.brand-en { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted);
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--line); text-decoration: none; }
.nav .lang {
  margin-left: 6px;
  border: 1px solid var(--line);
  color: var(--text);
}

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  padding-top: 128px;
  padding-bottom: 128px;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.lead {
  max-width: 640px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  margin-bottom: 32px;
}
.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 16px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: 88px 0; }
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
  margin-bottom: 28px;
}
.section h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.note {
  color: var(--muted);
  padding-left: 14px;
  border-left: 3px solid var(--accent-2);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
}
.card-no {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.card h3 { font-size: 20px; font-weight: 650; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.contact { margin: 0; display: grid; gap: 18px; }
.contact div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact dt { color: var(--muted); }
.contact dd { margin: 0; word-break: break-word; }
.contact .hint { display: block; color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { text-align: center; }
.footer-inner p { margin: 0 0 4px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
.footer-inner .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-bottom: 12px;
  font-size: 15px;
}
.footer-inner .footer-links a { color: var(--text); }

/* 隐私政策 / 用户协议 */
/* 用 .wrap.legal 提高优先级：手机宽度下的 .wrap { padding: 0 16px } 不会把上下留白清零 */
.wrap.legal {
  padding-top: 56px;
  padding-bottom: 80px;
  overflow-wrap: break-word;
}
.legal > * { max-width: 760px; }
.legal h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 650;
  margin: 44px 0 14px;
}
.legal h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 28px 0 10px;
}
.legal p,
.legal li { font-size: 16px; }
.legal ul { margin: 0 0 1em; padding-left: 1.4em; }
.legal li { margin-bottom: 6px; }
.legal-meta {
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
/* 表格在自己的框里横向滚动，页面本身不横向滚动 */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25em;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.table-scroll table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.table-scroll th,
.table-scroll td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.table-scroll th + th,
.table-scroll td + td { border-left: 1px solid var(--line); }
.table-scroll th { background: var(--surface); font-weight: 650; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.error-page h1 { margin-bottom: 8px; }
.error-code {
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 750;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar { height: 58px; }
  .brand-en { display: none; }
  .nav a { padding: 6px 7px; font-size: 14px; }
  .hero-inner { padding-top: 80px; padding-bottom: 80px; }
  .section { padding: 64px 0; }
  .contact div { grid-template-columns: 1fr; gap: 2px; }
}
