/*
  gaotou-ai-vps 图文站样式（零外部 CDN 依赖，国内直连秒开，自适应深浅色）
*/
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --surface: #111827;
    --surface-alt: #1e293b;
    --border: #1f2937;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #10b981;
    --accent-hover: #34d399;
    --accent-soft: rgba(16, 185, 129, 0.16);
    --warn-bg: rgba(245, 158, 11, 0.1);
    --warn-border: #d97706;
    --code-bg: #030712;
    --code-text: #e2e8f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 920px; margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); display: inline-flex; align-items: center; gap: 0.5rem; }
.brand:hover { text-decoration: none; }
.brand__dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); display: inline-block; }
.nav { display: flex; align-items: center; gap: 0.9rem; font-size: 0.92rem; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.pill {
  padding: 0.25rem 0.65rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-alt); color: var(--text) !important; font-size: 0.84rem;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.hero { padding: 1rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.tag {
  font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
h1 { font-size: clamp(1.65rem, 3.5vw, 2.3rem); line-height: 1.28; margin: 0 0 0.9rem; letter-spacing: -0.02em; }
.lead { font-size: 1.06rem; color: var(--muted); margin: 0 0 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.62rem 1.15rem; border-radius: 9px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; background: var(--surface-alt); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-hover); color: #ffffff; }

section { margin: 2.5rem 0; }
h2 { font-size: 1.4rem; margin: 0 0 0.85rem; display: flex; align-items: center; gap: 0.55rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 0.9rem; font-weight: 700; flex-shrink: 0;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.card--provider { border-left: 4px solid var(--accent); }
.card h3 { margin: 0 0 0.45rem; font-size: 1.08rem; }
.card p { margin: 0.4rem 0; color: var(--muted); font-size: 0.95rem; }
.provider-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }

.callout {
  padding: 0.95rem 1.15rem; border-radius: 10px; background: var(--warn-bg);
  border-left: 4px solid var(--warn-border); margin: 1rem 0; font-size: 0.94rem;
}

.codebox {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius);
  overflow: hidden; margin: 1rem 0; border: 1px solid var(--border);
}
.codebox__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.9rem; background: rgba(255, 255, 255, 0.05); font-size: 0.82rem; color: #94a3b8;
}
.copy-btn {
  background: rgba(255, 255, 255, 0.1); color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px; padding: 0.25rem 0.65rem; font-size: 0.8rem; cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.2); }
pre { margin: 0; padding: 1rem; overflow-x: auto; font-size: 0.88rem; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-alt); padding: 0.12rem 0.35rem; border-radius: 5px; }
pre code { background: transparent; padding: 0; }

.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0.75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.45rem;
}
.checklist input[type="checkbox"] { margin-top: 0.3rem; accent-color: var(--accent); width: 16px; height: 16px; }

details.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.85rem 1.1rem; margin-bottom: 0.65rem;
}
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.95rem; }

.footer {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.92rem;
}
