/* XSHOOW — white theme, marketing site */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --fg: #0d0d0d;
  --fg-soft: #4b5563;
  --muted: #8f8f8f;
  --border: #e8e8e8;
  --border-strong: #d9d9d9;
  --brand: #0d0d0d;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 8px 24px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 32px 64px -32px rgba(16, 24, 40, .28);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}

.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2f2f2f; }

.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); }

.btn-ghost { background: transparent; color: var(--fg-soft); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--fg); }

.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; }
.brand-name { font-size: 17px; font-weight: 650; letter-spacing: .2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  font-size: 14px;
  color: var(--fg-soft);
}

.nav-links a { display: inline-flex; align-items: center; gap: 5px; }
.nav-links a:hover { color: var(--fg); }

.caret {
  width: 6px; height: 6px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .65;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--fg-soft);
}

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--fg); }

/* ---------- hero ---------- */

.hero { padding: 96px 0 60px; text-align: center; }

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--fg-soft);
}
.hero-eyebrow:hover { border-color: var(--border-strong); color: var(--fg); }

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 17px;
  color: var(--fg-soft);
}

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.hero-note a { color: var(--fg-soft); border-bottom: 1px solid var(--border-strong); }
.hero-note a:hover { color: var(--fg); }

/* 首屏双行主按钮：图标 + 主标题 + 副标题，参照目标站版式 */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  padding: 13px 26px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  transition: background-color .18s, transform .18s;
}
.hero-cta:hover { background: #2f2f2f; transform: translateY(-1px); }
.hero-cta-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; }
.hero-cta-icon svg { width: 26px; height: 26px; display: block; }
.hero-alt { margin: 18px 0 0; font-size: 13.5px; }
.hero-alt a { color: var(--fg-soft); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.hero-alt a:hover { color: var(--fg); }
.hero-cta-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.hero-cta-lines b { font-size: 16px; font-weight: 620; }
.hero-cta-lines i { font-size: 12.5px; font-style: normal; color: rgba(255, 255, 255, .72); }

/* ---------- showcase ---------- */

.showcase { padding: 30px 0 80px; }

.window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.dot { width: 11px; height: 11px; border-radius: 50%; background: #e2e2e2; }

.window-addr {
  margin: 0 auto;
  padding: 4px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.window-body { position: relative; background: var(--bg-soft); }
.app-shot { width: 100%; height: auto; }
.app-shot-fallback { display: none; }

/* 截图还没放上来时，窗口保持完整形状，内部显示占位提示 */
.window-body:not(.has-shot) .app-shot-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 440px;
  text-align: center;
  background: var(--bg-soft);
}
.app-shot-fallback-title { font-size: 15px; font-weight: 600; color: var(--fg); }
.app-shot-fallback-note { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .02em;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.015em;
  font-weight: 680;
}

.section-sub {
  margin: 0 0 44px;
  max-width: 620px;
  color: var(--fg-soft);
  font-size: 15px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.section-head .section-sub { margin: 0; }
.section-head > .btn { flex: 0 0 auto; }

/* ---------- features ---------- */

.features { padding: 20px 0 90px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.feature-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.feature h3 { margin: 0 0 8px; padding: 0 10px; font-size: 17px; font-weight: 620; }
.feature p { margin: 0; padding: 0 10px 10px; color: var(--fg-soft); font-size: 14.5px; }

/* ---------- pricing ---------- */

.pricing { padding: 20px 0 96px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* 三档套餐卡：白底 + 边框显示出来，标签在卡片内右上角，同行卡片等高 */
.price-card {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.badge {
  position: absolute;
  top: 18px; right: 20px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .02em;
}
.badge-soft {
  background: #fff7ed;
  border: 1px solid #fde8cf;
  color: #b45309;
}

.plan-label { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.price-card h3 { margin: 0 0 6px; font-size: 24px; font-weight: 660; letter-spacing: -.01em; }
.price-desc { margin: 0 0 22px; font-size: 13.5px; color: var(--muted); }
.price { margin: 0 0 14px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 36px; letter-spacing: -.02em; }
.price span { font-size: 13px; color: var(--muted); }
.price s { margin-left: 2px; font-size: 13.5px; color: var(--muted); }
.price-quota {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

/* 三档差异维度：并发 / 支持应用 / 智能强度 / 生成速度 */
.price-spec {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.price-spec li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.price-spec li:first-child { border-top: 0; padding-top: 0; }
.price-spec li span { color: var(--muted); font-size: 13px; }
.price-spec li b { font-weight: 600; color: var(--fg); }

.price-note { margin: 28px 0 0; font-size: 12.5px; color: var(--muted); }

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-soft);
}
.price-card li { position: relative; padding-left: 22px; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 6px; height: 10px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(42deg);
}

/* ---------- download ---------- */

.download { padding: 20px 0 100px; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.dl-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 640;
}

.dl-icon { width: 18px; height: 18px; flex: 0 0 auto; display: block; }

.dl-beta {
  padding: 2px 9px;
  border: 1px solid #dbe6ff;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 500;
}

.dl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s, background-color .18s;
}
.dl-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

/* 可下载：突出 */
a.dl-row {
  border-color: var(--fg);
  box-shadow: var(--shadow-sm);
}
a.dl-row .dl-name { font-weight: 600; color: var(--fg); }
a.dl-row:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* 敬请期待：弱化 */
.dl-row.is-soon,
.dl-group.is-soon {
  cursor: default;
  background: var(--bg-soft);
  border-color: var(--border);
  opacity: .62;
}
.dl-row.is-soon:hover,
.dl-group.is-soon:hover { border-color: var(--border); box-shadow: none; transform: none; }
.dl-row.is-soon .dl-name { color: var(--muted); font-weight: 400; }
.dl-row.is-soon .dl-ext { color: var(--muted); border-color: var(--border); background: transparent; }
.dl-group.is-soon .dl-group-head { color: var(--muted); }

.dl-soon {
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.dl-name { flex: 1 1 auto; font-size: 14px; }

.dl-ext {
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 11.5px;
  color: var(--fg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dl-ver { font-size: 12.5px; color: var(--muted); }

.dl-group {
  padding: 13px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.dl-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.dl-group.is-soon .dl-group-head { margin-bottom: 0; }

.dl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.dl-tile {
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  text-align: center;
  font-size: 12px;
  color: var(--fg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: border-color .18s, color .18s;
}
.dl-tile:hover { border-color: var(--fg); color: var(--fg); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 30px 0; background: #fff; }
.footer-inner {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--fg-soft); }
.footer-links a:hover { color: var(--fg); }

/* ---------- auth pages ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--bg-soft);
}

.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h1 { margin: 0 0 6px; font-size: 24px; text-align: center; letter-spacing: -.01em; }
.auth-card .auth-sub { margin: 0 0 26px; text-align: center; font-size: 14px; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--fg-soft); }

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(13, 13, 13, .06); }
.field input::placeholder { color: #b5b5b5; }

.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1 1 auto; }
.field-row .btn { flex: 0 0 auto; height: 46px; border-radius: 10px; }

.auth-submit { width: 100%; height: 48px; margin-top: 4px; border-radius: 10px; font-size: 15px; }

.auth-alt { margin: 20px 0 0; text-align: center; font-size: 13.5px; color: var(--fg-soft); }
.auth-alt a { color: var(--accent); }
.auth-alt a:hover { text-decoration: underline; }

.auth-msg {
  display: none;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.auth-msg.is-error { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.auth-msg.is-ok { display: block; background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--fg); }

.auth-legal { margin: 22px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.auth-legal a { color: var(--fg-soft); }

.auth-foot { margin-top: 26px; font-size: 12.5px; color: var(--muted); }

/* ---------- plain pages (docs / legal / changelog) ---------- */

.page { padding: 56px 0 96px; }
.page-inner { max-width: 760px; margin: 0 auto; }
.page h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.015em; }
.page .page-sub { margin: 0 0 40px; color: var(--muted); font-size: 14px; }
.page h2 { margin: 38px 0 12px; font-size: 19px; }
.page p, .page li { color: var(--fg-soft); font-size: 15px; }
.page pre {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
}
.page code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page th, .page td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.page th { color: var(--muted); font-weight: 500; font-size: 13px; }
.page .back { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--fg-soft); }
.page .back:hover { color: var(--fg); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .feature-grid, .dl-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }

  .nav.is-open .nav-actions {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    top: 64px;
  }
}

@media (max-width: 620px) {
  .hero { padding: 64px 0 40px; }
  .hero-cta { padding: 12px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-inner { justify-content: flex-start; }
}

/* ---------- auth gate（图2 风格：居中、圆形胶囊、黑底主按钮） ---------- */

.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--fg);
}

.gate-top { padding: 22px 24px; }

.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.gate-logo { width: 24px; height: 24px; border-radius: 6px; }

.gate-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 72px;
}

.gate-col { width: 100%; max-width: 402px; }

.gate-title {
  margin: 0 0 30px;
  font-size: 32px;
  font-weight: 640;
  text-align: center;
  letter-spacing: -.02em;
}

.gate-oauth { display: grid; gap: 12px; }
.gate-oauth[hidden] { display: none; }

.gate-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.gate-pill:hover { background: #f7f7f7; border-color: #c2c2c2; }
.gate-pill:disabled { opacity: .55; cursor: not-allowed; }
.gate-pill svg { width: 18px; height: 18px; flex: 0 0 auto; }

.gate-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-size: 13px;
  color: var(--muted);
}
.gate-or[hidden] { display: none; }
.gate-or::before,
.gate-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e6e6e6;
}

.gate-form { display: grid; gap: 12px; }
.gate-form[hidden] { display: none; }

.gate-input {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.gate-input::placeholder { color: #a8a8a8; }
.gate-input:focus { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(13, 13, 13, .07); }
.gate-input[hidden] { display: none; }

/* 浏览器自动填充不要染黄输入框背景 */
.gate-input:-webkit-autofill,
.gate-input:-webkit-autofill:hover,
.gate-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--fg);
  transition: background-color 5000s ease-in-out 0s;
}
.gate-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(13, 13, 13, .07);
  box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(13, 13, 13, .07);
}

/* 密码框：右侧眼睛按钮 */
.gate-field { position: relative; }
.gate-field[hidden] { display: none; }
.gate-field .gate-input { padding-right: 58px; }

.gate-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.gate-eye:hover { color: var(--fg); background: #f2f2f2; }
.gate-eye:focus-visible { outline: 2px solid rgba(13, 13, 13, .3); outline-offset: 1px; }
.gate-eye svg { width: 20px; height: 20px; }
.gate-eye .eye-off { display: none; }
.gate-eye.is-on .eye-on { display: none; }
.gate-eye.is-on .eye-off { display: block; }

.gate-code { display: flex; gap: 10px; align-items: center; }
.gate-code[hidden] { display: none; }
.gate-code .gate-input { flex: 1 1 auto; }
.gate-code .gate-pill { flex: 0 0 auto; width: auto; padding: 0 18px; font-size: 14px; white-space: nowrap; }

.gate-submit {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: #0d0d0d;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.gate-submit:hover { background: #2b2b2b; }
.gate-submit:disabled { opacity: .55; cursor: not-allowed; }

.gate-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.gate-agree[hidden] { display: none; }
.gate-agree input { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; }
.gate-agree a { color: var(--fg); text-decoration: underline; }

.gate-note {
  display: none;
  margin: 16px 0 0;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.gate-note.is-error { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.gate-note.is-ok { display: block; background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--fg); }
.gate-note.is-info { display: block; background: var(--bg-soft); border: 1px solid var(--border); color: var(--fg-soft); }

.gate-alt { margin: 20px 0 0; text-align: center; font-size: 13.5px; color: var(--fg-soft); }
.gate-alt a { color: var(--fg); text-decoration: underline; }

.gate-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 24px 34px;
}
.gate-foot-logo { width: 26px; height: 26px; border-radius: 7px; opacity: .8; }
.gate-foot p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; color: var(--muted); }
.gate-foot a { color: var(--muted); }
.gate-foot a:hover { color: var(--fg); text-decoration: underline; }
.gate-foot span { color: #dcdcdc; }

/* 协议确认弹层 */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 13, .42);
}
.gate-overlay[hidden] { display: none; }

.gate-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 620px;
  max-height: 84vh;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  overflow: hidden;
}
.gate-sheet-head { padding: 22px 24px 14px; border-bottom: 1px solid var(--border); }
.gate-sheet-head h2 { margin: 0 0 6px; font-size: 18px; }
.gate-sheet-head p { margin: 0; font-size: 13px; color: var(--fg-soft); }
.gate-sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 24px; font-size: 14px; line-height: 1.75; color: #262626; }
.gate-sheet-body h2 { margin: 22px 0 10px; font-size: 16px; }
.gate-sheet-body h3 { margin: 18px 0 8px; font-size: 14.5px; }
.gate-sheet-body p { margin: 0 0 12px; }
.gate-sheet-body ul, .gate-sheet-body ol { margin: 0 0 12px; padding-left: 22px; }
.gate-sheet-body li { margin: 5px 0; }
.gate-sheet-foot { display: flex; gap: 12px; padding: 16px 24px 22px; border-top: 1px solid var(--border); }
.gate-sheet-foot .gate-pill { flex: 0 0 auto; width: auto; padding: 0 24px; }
.gate-sheet-foot .gate-submit { flex: 1 1 auto; width: auto; margin: 0; }

/* ---------- 协议文档页（同图2 排版） ---------- */

.doc-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 24px 72px;
}
.doc-title { margin: 0 0 8px; font-size: 30px; font-weight: 640; letter-spacing: -.02em; }
.doc-meta { margin: 0 0 30px; font-size: 13px; color: var(--muted); }
.doc-body { font-size: 15px; line-height: 1.78; color: #1f1f1f; }
.doc-body h1 { margin: 34px 0 12px; font-size: 24px; font-weight: 640; }
.doc-body h2 { margin: 30px 0 12px; font-size: 19px; font-weight: 640; }
.doc-body h3 { margin: 24px 0 10px; font-size: 16px; font-weight: 620; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 24px; }
.doc-body li { margin: 6px 0; }
.doc-body a { color: var(--accent); text-decoration: underline; }
.doc-body code { padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); font-size: .9em; }
.doc-body blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid var(--border-strong); color: var(--fg-soft); }
.doc-body hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 14px; }
.doc-body th, .doc-body td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.doc-loading { margin: 40px 0; font-size: 14px; color: var(--muted); }

@media (max-width: 620px) {
  .gate-title { font-size: 27px; margin-bottom: 24px; }
  .gate-main { padding: 12px 20px 56px; }
  .doc-title { font-size: 25px; }
  .gate-sheet-foot { flex-direction: column-reverse; }
  .gate-sheet-foot .gate-pill,
  .gate-sheet-foot .gate-submit { width: 100%; }
}
