:root {
  --bg: #fbf6f0;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #7a6f66;
  --accent: #c8642f;
  --line: #eadfd3;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916;
    --card: #26231f;
    --text: #f2ede7;
    --muted: #a99e93;
    --accent: #f0955a;
    --line: #3a352f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
header.site .brand { font-weight: 600; color: var(--text); }
.lang-switch button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 6px;
}
.lang-switch button.active { color: var(--accent); border-color: var(--accent); }

.hero { text-align: center; padding: 48px 0 24px; }
.hero img.icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(120, 60, 20, 0.25);
}
.hero h1 { font-size: 34px; margin: 20px 0 4px; line-height: 1.3; }
.hero p.tagline { color: var(--muted); font-size: 19px; margin: 0 0 24px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button.disabled { opacity: 0.55; pointer-events: none; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 32px 0;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 28px 24px;
  margin: 16px 0 32px;
}

article h1 { font-size: 28px; line-height: 1.3; margin: 24px 0 4px; }
article .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
article h3 + p + .meta { margin-top: 32px; }
article h2 { font-size: 20px; margin: 28px 0 8px; }
article h3 { font-size: 17px; margin: 22px 0 6px; }
article ul { padding-left: 1.3em; }
article li { margin: 4px 0; }

.links { text-align: center; margin: 8px 0 32px; }
.links a { margin: 0 10px; }

.apps { margin: 24px 0 40px; }
.app-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
}
.app-row:hover { text-decoration: none; border-color: var(--accent); }
.app-row img { width: 72px; height: 72px; border-radius: 16px; }
.app-row h3 { margin: 0; font-size: 18px; }
.app-row p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px 0 32px;
}

/* 语言切换：只隐藏另一种语言；没有 JS 时两种语言都显示 */
html.lang-zh [data-lang="en"],
html.lang-en [data-lang="zh"] { display: none !important; }
