/* 大象说 · shadcn / zinc
   黑白灰，跟系统明暗走。没有动效。 */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --fg: #09090b;
  --card: #ffffff;
  --muted: #f4f4f5;
  --muted-fg: #71717a;
  --border: #e4e4e7;
  --primary: #18181b;
  --primary-fg: #fafafa;
  --radius: 8px;
  --sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --wrap: 1080px;
  --pad: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --fg: #fafafa;
    --card: #09090b;
    --muted: #27272a;
    --muted-fg: #a1a1aa;
    --border: #27272a;
    --primary: #fafafa;
    --primary-fg: #18181b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---------- 按钮：shadcn default / outline ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 12px;
  background: var(--primary); color: var(--primary-fg);
  border: 1px solid transparent; border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: .9; }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.btn-lg { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); opacity: 1; }

/* ---------- 导航 ---------- */
.nav { border-bottom: 1px solid var(--border); }
.nav-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; line-height: 1; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 首屏 ---------- */
.hero { padding: 56px 0 28px; max-width: 640px; }
.hero h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.lede { margin-top: 16px; max-width: 36em; font-size: 16px; line-height: 1.7; color: var(--muted-fg); }
.hero-actions { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.meta { font-size: 13px; color: var(--muted-fg); }

/* ---------- 数字 ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.metrics > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.metrics > div + div { border-left: 1px solid var(--border); }
.metrics span { font-size: 12px; color: var(--muted-fg); }
.metrics b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.usage { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.usage-note { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted-fg); }

/* ---------- 页脚 ---------- */
.nowrap { white-space: nowrap; }
.footer { margin-top: 28px; border-top: 1px solid var(--border); }
.footer-inner { padding-top: 16px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer p { flex: 1 1 0; font-size: 12px; line-height: 1.6; color: var(--muted-fg); }
.footer p:last-child { text-align: right; }

/* ---------- 窄屏 ---------- */
@media (max-width: 800px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 36px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics > div:nth-child(odd) { border-left: 0; }
  .metrics > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .footer-inner { flex-direction: column; gap: 8px; }
  .footer p:last-child { text-align: left; }
}
