:root {
  --bg: #fffaf7;
  --card: #ffffff;
  --ink: #2b211c;
  --muted: #75675f;
  --line: #f0e6df;
  --coral: #d9553a;
  --teal: #12877d;
  --gradient: linear-gradient(135deg, #ffbe58, #ff8673);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1513;
    --card: #26201d;
    --ink: #f7efe9;
    --muted: #b5a79e;
    --line: #3a312c;
    --coral: #ff9a82;
    --teal: #5fd8cc;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: var(--coral); }
img { display: block; }
h1, h2, h3 { line-height: 1.25; }

/* 语言：head 里的脚本设置 data-lang；没有脚本时两种语言都显示 */
html[data-lang="zh"] .en, html[data-lang="en"] .zh { display: none !important; }

.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }

.nav { display: flex; align-items: center; gap: 22px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; font-weight: 700; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav a:not(.brand) { color: inherit; font-size: 15px; text-decoration: none; }
.nav a:not(.brand):hover { color: var(--coral); }
.lang { padding: 5px 13px; border: 1px solid var(--line); border-radius: 99px; background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav .optional { display: none; }
}

/* 首页 */
.hero { background: var(--gradient); color: #2b1a10; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding: 72px 0 84px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 62px); letter-spacing: -.01em; }
.hero p { max-width: 30em; margin: 0 0 26px; font-size: 19px; }
.badge { display: inline-block; padding: 10px 20px; border-radius: 99px; background: #2b1a10; color: #fff; font-weight: 600; text-decoration: none; }
.note { display: block; margin-top: 14px; font-size: 14px; opacity: .8; }

.pebbles { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; }
.pebble { position: absolute; border-radius: 52% 48% 50% 50% / 58% 56% 44% 42%; box-shadow: 0 22px 44px rgba(120, 50, 20, .28); }
.pebble.big { left: 2%; top: 12%; width: 74%; height: 58%; background: #fff8f2; transform: rotate(-9deg); }
.pebble.small { right: 0; bottom: 8%; width: 48%; height: 39%; background: linear-gradient(170deg, #8ee8dc, #2ec4b6 55%); transform: rotate(4deg); }
.face { position: absolute; left: 50%; top: 50%; width: 42%; height: 34%; transform: translate(-50%, -50%); }

.section { padding: 72px 0 0; }
.section > .wrap > h2 { margin: 0 0 28px; font-size: clamp(26px, 4vw, 36px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.features h3 { margin: 0 0 8px; font-size: 20px; }
.features p { margin: 0; color: var(--muted); }
.mark { display: block; width: 34px; height: 6px; margin-bottom: 16px; border-radius: 3px; background: var(--coral); }
.features > div:nth-child(2) .mark { background: var(--teal); }
.features > div:nth-child(3) .mark { background: #e8a13a; }

.steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); color: var(--coral); font-size: 26px; font-weight: 700; line-height: 1.2; }
.steps strong { display: block; }
.steps span { color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; }
th { font-weight: 700; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.pledge { margin-top: 72px; padding: 56px 0; background: var(--card); border-block: 1px solid var(--line); }
.pledge h2 { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 32px); }
.pledge p { max-width: 42em; margin: 0 0 12px; }

/* 文档页 */
.doc { width: min(740px, 100% - 40px); margin: 28px auto 72px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 44px); }
.doc h2 { margin: 40px 0 10px; font-size: 22px; }
.doc h3 { margin: 24px 0 6px; font-size: 18px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 15px; }
.callout { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--coral); background: var(--card); border-radius: 0 10px 10px 0; }
.contact { display: inline-block; margin: 4px 0 16px; padding: 11px 22px; border-radius: 99px; background: var(--gradient); color: #2b1a10; font-weight: 700; text-decoration: none; }

footer { margin-top: 72px; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: inherit; }
footer .copy { margin-right: auto; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .pebbles { width: min(70%, 280px); }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-top: 56px; }
}
