/* chinahop.app 静态网站的样式。页面由 scripts/build-site.js 生成，这个文件是手写的。 */
:root {
  --bg: #f8ece2;
  --surface: #fffaf5;
  --text: #1f1b18;
  --muted: #6b625b;
  --line: #e6d8cb;
  --brand: #00c3d0;
  --link: #00707a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1a18;
    --text: #f1ebe5;
    --muted: #a69c93;
    --line: #2e2a27;
    --brand: #00a3ae;
    --link: #4fd5de;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  overflow-wrap: break-word;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--link); text-underline-offset: 3px; }
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px;
  border-radius: 50%; background: var(--brand);
}
.langs { display: flex; gap: 14px; font-size: 14px; }
.langs span { color: var(--muted); }
main { padding-top: 32px; padding-bottom: 56px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 19px; line-height: 1.4; margin: 36px 0 8px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 40px; }
.tagline { font-size: 21px; line-height: 1.5; color: var(--muted); margin-bottom: 20px; }
.cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cards li { margin: 0; }
.cards a {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
}
.cards a:hover { border-color: var(--brand); }
.cta a { font-size: 19px; font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer p { margin: 0; }
