/* 共享样式：ChatGPT 广告屏蔽官网 & 隐私政策 */
:root {
  --primary: #1a7f37;
  --primary-dark: #166b2f;
  --primary-soft: #dafbe1;
  --text: #1f2328;
  --text-soft: #6b7280;
  --border: #d0d7de;
  --bg-soft: #f6f8fa;
  --bg-page: #ffffff;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 28px; height: 28px; border-radius: 6px; }
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.nav a { color: var(--text-soft); }
.nav a:hover { color: var(--primary); text-decoration: none; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 12px;
}
.lang-switch button.active { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 48px;
}
.hero-icon { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 8px 24px rgba(26, 127, 55, 0.18); }
.hero-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 24px 0 12px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 28px;
}
.cta-group { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- Install ---------- */
.install-main { text-align: center; padding: 8px 0 4px; }
.install-hint { color: var(--text-soft); font-size: 14px; margin-top: 14px; }
.install-hint code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--primary-dark); }
.dev-install {
  margin-top: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
}
.dev-install summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-soft);
  list-style: none;
  user-select: none;
}
.dev-install summary::-webkit-details-marker { display: none; }
.dev-install summary::before { content: "▸ "; color: var(--primary); }
.dev-install[open] summary::before { content: "▾ "; }
.dev-install .steps { padding-bottom: 6px; }

/* ---------- Features ---------- */
.section { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-title { font-size: 28px; font-weight: 700; }
.section-sub { color: var(--text-soft); margin-top: 6px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: 0.15s;
}
.card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(26, 127, 55, 0.08); }
.card-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 14px;
}
.card-icon svg { width: 20px; height: 20px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 14px; color: var(--text-soft); }

/* ---------- Screenshot ---------- */
.shot-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}
.shot-wrap img { display: block; width: 100%; height: auto; }
.shot-caption { text-align: center; color: var(--text-soft); font-size: 13px; margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-soft);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.step-num::before { content: counter(step); }
.step-body b { display: block; margin-bottom: 2px; }
.step-body span { color: var(--text-soft); font-size: 14px; }
.step-body code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
}
.footer-links { display: flex; gap: 16px; }

/* ---------- Privacy 文档 ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.doc h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.doc .meta { color: var(--text-soft); font-size: 13px; margin-bottom: 32px; }
.doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.doc p { margin-bottom: 12px; font-size: 15px; }
.doc ul { margin: 0 0 12px 22px; font-size: 15px; }
.doc li { margin-bottom: 6px; }
.doc code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13.5px;
}
.doc .lang-block[hidden] { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .hero { padding: 48px 0 32px; }
}
