/* AI 订阅管家官网 — 纯 CSS，暗色主题与应用一致 */
:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.55);
  --blue: #2563eb;
  --cyan: #0891b2;
  --grad: linear-gradient(135deg, #60a5fa, #22d3ee);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.github-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.github-btn:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 90px 20px 60px;
}
.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow-1 { background: #1d4ed8; top: -180px; left: -120px; }
.hero-glow-2 { background: #0e7490; top: -120px; right: -140px; }

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  margin: 18px auto 30px;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; margin-bottom: 50px; }
.btn {
  padding: 11px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-shot {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.7);
}
.hero-shot img { display: block; width: 100%; }

/* ---------- sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 20px;
}
.section-alt {
  max-width: none;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.4); }
.card .icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card pre {
  margin: 12px 0;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
}
.card code { font-size: 13px; color: #7dd3fc; font-family: "SF Mono", Menlo, Consolas, monospace; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.shot img {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s;
}
.shot:hover img { transform: scale(1.02); }
.shot figcaption {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}
.shot strong { color: var(--text); margin-right: 6px; }

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 44px 20px 56px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.footer a { color: #60a5fa; text-decoration: none; }

/* ---------- reveal 动画 ---------- */
/* 渐进增强：JS 生效（html.js）时才隐藏，无 JS 也能看到全部内容 */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .nav-links a:not(.github-btn) { display: none; }
}
@media (max-width: 560px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
}
