:root {
  --brand: #165DFF;
  --brand-dark: #044AE9;
  --cyan: #00C9A7;
  --purple: #8B5CF6;
  --orange: #FF8E53;
  --green: #10B981;
  --text: #151515;
  --muted: #6C6F7D;
  --line: #E8ECFF;
  --soft: #F8FAFF;
  --soft-blue: #F0F5FF;
  --white: #FFFFFF;
  --shadow: 0 4px 16px rgba(22, 93, 255, 0.08);
  --shadow-hover: 0 12px 32px rgba(22, 93, 255, 0.15);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22, 93, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 42%, #FFFFFF 100%);
  line-height: 1.7;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(232, 236, 255, 0.9);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.28);
}
.logo-sub { color: var(--muted); font-weight: 600; font-size: 12px; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #3f4658;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav a:hover, .nav a.active {
  color: var(--brand);
  background: rgba(22, 93, 255, 0.08);
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: var(--brand);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 24px 48px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(22, 93, 255, 0.16);
  border-radius: 999px;
  background: rgba(22, 93, 255, 0.06);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.btn.primary:hover { box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3); transform: translateY(-2px); }
.btn.secondary { color: var(--brand); border-color: var(--line); background: #fff; }
.btn.secondary:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }

.panel-preview {
  border: 1px solid rgba(232, 236, 255, .95);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-hover);
  padding: 18px;
  overflow: hidden;
}
.preview-top { display: flex; gap: 7px; padding: 4px 4px 14px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: #dbe3ff; }
.preview-grid {
  min-height: 320px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(22,93,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,93,255,.07) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff, #eef4ff);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  position: relative;
}
.model-card {
  position: absolute;
  border: 1px solid rgba(22, 93, 255, .14);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  padding: 16px;
}
.model-card.one { left: 28px; top: 28px; width: 48%; }
.model-card.two { right: 28px; bottom: 28px; width: 52%; }
.model-title { font-weight: 800; margin-bottom: 8px; }
.model-line { height: 8px; border-radius: 999px; background: #e8eeff; margin: 8px 0; }
.model-line.short { width: 66%; }
.score-ring {
  position: absolute;
  right: 46px;
  top: 62px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 88%, #e8eeff 88% 100%);
  display: grid;
  place-items: center;
}
.score-ring span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 28px;
  font-weight: 800;
}

.main { max-width: 1200px; margin: 0 auto; padding: 24px; }
.section { padding: 56px 0; }
.section-head { margin-bottom: 26px; max-width: 760px; }
.section-head h2 { margin: 10px 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all .3s cubic-bezier(0.4,0,0.2,1);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(22,93,255,.08);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4d5568;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
}
.tag.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  padding: 14px;
}
.sidebar-title { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 6px 8px 10px; }
.sidebar a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #4d5568;
  font-size: 14px;
  font-weight: 650;
}
.sidebar a:hover, .sidebar a.active { color: var(--brand); background: rgba(22,93,255,.08); }
.doc-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}
.doc-content h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 46px); line-height: 1.2; letter-spacing: -.03em; }
.doc-content h2 { margin: 42px 0 14px; font-size: 26px; line-height: 1.3; }
.doc-content h3 { margin: 26px 0 10px; font-size: 19px; }
.doc-content p { color: #4e5568; }
.doc-content table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; margin: 18px 0; }
.doc-content th, .doc-content td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.doc-content th { background: var(--soft-blue); color: #263044; }
.doc-content td { color: #4e5568; background: #fff; }
.notice {
  border: 1px solid rgba(22,93,255,.16);
  border-radius: 16px;
  background: rgba(22,93,255,.06);
  padding: 18px;
  color: #33405a;
  margin: 20px 0;
}
.notice strong { color: var(--brand); }
.code-block {
  position: relative;
  margin: 18px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #101827;
  border: 1px solid rgba(22,93,255,.18);
}
.code-block pre { margin: 0; padding: 18px; overflow: auto; color: #dbe7ff; font-size: 13px; line-height: 1.65; }
.copy-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #dbe7ff;
  background: rgba(255,255,255,.08);
  padding: 5px 9px;
  cursor: pointer;
}
.flow {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.flow-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.step-no {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.footer {
  margin-top: 70px;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  margin-top: 20px;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--text);
}
.hidden-by-search { display: none !important; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
  }
  body.nav-open .nav { display: flex; }
  .menu-btn { display: inline-grid; place-items: center; }
}

@media (max-width: 560px) {
  .header-inner { padding: 0 16px; }
  .hero, .main { padding-left: 16px; padding-right: 16px; }
  .model-card.one, .model-card.two { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; margin: 16px; }
  .score-ring { position: relative; right: auto; top: auto; margin: 18px auto; }
  .preview-grid { padding: 1px; }
}

/* ─────────────────────────────────────────────────────────
   Plus 权益门禁 — 导航锁标 + 升级弹窗 + 全页蒙层
───────────────────────────────────────────────────────── */

/* 导航 Plus 锁标 */
.nav-plus-locked { opacity: 0.7; }
.nav-plus-locked:hover { opacity: 1; }
.nav-lock-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #fff;
  vertical-align: middle;
  line-height: 1.6;
}

/* 升级提示弹窗（从导航点击触发） */
#plus-gate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
}
.pgm-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 40, 0.55);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.pgm-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(22, 93, 255, 0.18);
  animation: pgm-in 0.22s ease;
}
@keyframes pgm-in {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.pgm-lock {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}
.pgm-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.pgm-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}
.pgm-brand {
  color: var(--purple);
  font-weight: 700;
}
.pgm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pgm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pgm-btn:hover { transform: translateY(-1px); }
.pgm-primary {
  background: linear-gradient(135deg, #165DFF, #8B5CF6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.28);
}
.pgm-primary:hover { box-shadow: 0 12px 32px rgba(22, 93, 255, 0.38); }
.pgm-secondary {
  background: var(--soft);
  color: var(--text);
  box-shadow: none;
}
.pgm-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.pgm-hint a { color: var(--brand); text-decoration: underline; }

/* 全页芙层（直接访问受限页面时） */
#page-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(248, 250, 255, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pgo-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(22, 93, 255, 0.14);
  border: 1px solid var(--line);
}

/* AI 小册入口卡片 */
.aibook-banner {
  margin: 0 auto 48px;
  max-width: 840px;
  background: linear-gradient(135deg, #F0F5FF 0%, #EEF0FF 100%);
  border: 1px solid #C7D7FF;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.aibook-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}
.aibook-banner-body { flex: 1; min-width: 0; }
.aibook-banner-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 4px;
}
.aibook-banner-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.aibook-banner-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.22);
}
.aibook-banner-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(22, 93, 255, 0.32); }
@media (max-width: 640px) {
  .aibook-banner { flex-direction: column; text-align: center; }
  .pgm-card, .pgo-card { padding: 32px 20px; }
}
