/* envdiff docs — 本地样式表，无外部字体与依赖 */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-code: #f2f4f7;
  --text: #1f2933;
  --text-muted: #5f6b7a;
  --border: #e2e6ec;
  --accent: #0f766e;
  --accent-soft: #e6f4f1;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d;
    --bg-soft: #1a1f26;
    --bg-code: #1e242c;
    --text: #dfe4ea;
    --text-muted: #98a3b1;
    --border: #2a323b;
    --accent: #5eead4;
    --accent-soft: #16302d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  width: min(64rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.85; text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.25rem; font-size: 0.92rem; }
.site-nav a { color: var(--text-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.hero { padding-block: 3rem 1.5rem; }
.hero h1 { font-size: 2.3rem; margin: 0 0 0.8rem; color: var(--text); }
.hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 46rem; margin-bottom: 1.2rem; }
.actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #0d1117; }
}

figure { margin: 2rem 0; text-align: center; }
figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.6rem; }

.section-title { font-size: 1.45rem; margin-block: 2.5rem 1.2rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin-bottom: 3.5rem;
}
.card {
  display: block;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  height: 100%;
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--text); }
.card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.doc-content { padding-block: 2.5rem 4rem; max-width: 52rem; }
.doc-content h1 { font-size: 2rem; margin-bottom: 0.8rem; }
.doc-content h2 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.doc-content h3 { font-size: 1.1rem; margin-top: 1.4rem; margin-bottom: 0.5rem; }
.doc-content ul, .doc-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.doc-content li { margin-bottom: 0.4rem; }

pre, code { font-family: var(--mono); }
pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  margin-block: 1rem 1.4rem;
}
code {
  background: var(--bg-code);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88rem;
}
pre code { background: none; padding: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.2rem 1.8rem;
  font-size: 0.9rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}
th { background: var(--bg-soft); color: var(--text); font-weight: 600; }

.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin-block: 1.2rem;
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
