/* zhdata.cloud — 暗色深海版（landing-page-design skill 结构）
   深色主题：bg #0E1B2A 系（墨蓝加深），琥珀点缀
   硬规则保持：Manrope · Tailwind 字号阶梯 · 命名文本样式 ·
   间距 token · 16/8 圆角公式 · 纯平背景 · 渐变只上主标题文字 ·
   动效统一 cubic-bezier(0.22,1,0.36,1) */

:root {
  /* 色彩：暗色主题（skill 允许的深色底 + 墨蓝），纯平 */
  --bg: #0E1B2A;
  --bg-2: #12233A;
  --surface: #16293F;
  --surface-2: #1C334D;
  --ink: #F2F6FA;
  --ink-2: #FFFFFF;
  --muted: #8FA3B8;
  --line: #24405E;
  --accent: #E8A33D;
  --accent-soft: rgba(232, 163, 61, 0.14);
  --on-accent: #16293F;                                  /* CTA 上的文字色（深底主题取深墨） */
  --head-grad: linear-gradient(90deg, #FFFFFF, #9B9B9B);  /* 主标题渐变 */

  --font-main: "Manrope", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 命名文本样式（B1） ---------- */
.heading-1 { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.01em; }
.heading-2 { font-size: 48px; line-height: 1; font-weight: 600; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.title-2   { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3   { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-2    { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3    { font-size: 16px; line-height: 24px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }

p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- 跳转链接 / 可访问性 ---------- */
.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 12px; border-radius: 8px;
  z-index: 99; text-decoration: none; font-size: 14px;
}
.skip:focus { left: 12px; }

/* ---------- 两侧帆船画布 ---------- */
.sea {
  position: fixed;
  top: 0;
  width: 200px;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}
#seaL { left: 0; }
#seaR { right: 0; }

/* ---------- 浮动导航：已由 /assets/topbar.css 统一提供 ---------- */
.nav, .nav-brand, .nav-link, .nav-auth, .btn-login, .nav-user, .nav-dot { display: none !important; }

/* 首页内容需为固定头部让位 */
body { padding-top: 0; }
.hero { padding-top: 96px; }

/* ---------- 布局（加宽：720 → 1040） ---------- */
main, .foot { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.section { padding: 56px 0; }
.sec-head { margin-bottom: 24px; }

/* ---------- Hero（B5：渐变只上主标题文字） ---------- */
.hero { padding: 112px 0 56px; text-align: left; }
.hero-title, .final-title {
  background: var(--head-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 840px;
}
.hero-title { animation: rise 0.9s var(--ease) both; }
.hero-sub {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  animation: rise 0.9s var(--ease) 0.15s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: rise 0.9s var(--ease) 0.3s both;
}
.hero-cta .btn { margin-top: 0; }
.hero-proof {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px; line-height: 16px;
  animation: rise 0.9s var(--ease) 0.45s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 按钮（B2：8/12 padding） ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.5s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 24px;
  margin-top: 32px;
  font-weight: 700;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 163, 61, 0.25);
}
.btn-primary:active { transform: scale(0.98); }
/* 次级按钮：与主按钮同尺寸，只描边不填色，视觉上退一档 */
.btn-ghost {
  padding: 12px 24px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 26%, transparent);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: scale(0.98); }
.btn:focus-visible, .nav-link:focus-visible, .card:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Tagline reveal（B11） ---------- */
.tagline { padding: 72px 0; }
.tagline-text { max-width: 840px; }
.tagline-text .w {
  transition: color 0.6s var(--ease);
  color: rgba(242, 246, 250, 0.28); /* 25~35% 静音态 */
}
.tagline-text .w.on { color: var(--ink); }

/* ---------- 模块卡片（B3 圆角公式：外16 内8） ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before {
  /* 顶部琥珀流光 */
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.8s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.card:hover::before { left: 100%; }
.card:active { transform: scale(0.98); }
.card-no {
  font-family: var(--font-mono);
  font-size: 12px; line-height: 16px; font-weight: 500;
  color: var(--accent);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 163, 61, 0.3);
  border-radius: 8px;
}
.card-lock {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px; line-height: 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.card-name { color: var(--ink-2); }
.card-desc { color: var(--muted); flex: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.card-path {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px; line-height: 16px;
}
.card-go {
  font-size: 14px; line-height: 20px; font-weight: 600;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
  display: inline-block;
}
.card:hover .card-go { transform: translateX(4px); }
.pending { margin-top: 16px; color: var(--muted); }

/* ---------- 三步 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s var(--ease), transform 0.5s var(--ease);
}
.step:hover { border-color: var(--accent); transform: translateX(4px); }
.step-no {
  font-family: var(--font-mono);
  font-size: 14px; line-height: 20px; font-weight: 600;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border-radius: 8px;
  flex-shrink: 0;
}
.step-desc { color: var(--muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 32px;
  transition: border-color 0.3s var(--ease);
}
.qa:hover { border-color: var(--surface-2); }
.qa summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
  transition: color 0.3s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  font-size: 18px; line-height: 24px;
  transform: translateY(-50%);
  transition: transform 0.5s var(--ease);
  font-weight: 600;
  color: var(--accent);
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { margin-top: 8px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final {
  padding: 96px 0;
  text-align: center;
}
.final-title { margin-bottom: 8px; }
.final .btn-primary { margin-top: 24px; }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- 滚动显现（B7 Scroll reveals） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  /* 窄屏隐藏帆船画布，给正文让位 */
  .sea { display: none; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  main, .foot { padding: 0 24px; }
}
@media (max-width: 680px) {
  .heading-1 { font-size: 48px; line-height: 1; }
  .hero { padding-top: 88px; }
  .nav {
    gap: 6px;
    padding: 8px 10px;
    max-width: calc(100vw - 24px);
  }
  .nav-link { padding: 4px 5px; white-space: nowrap; }
  .nav-brand { padding: 0 2px; }
  .nav-auth { gap: 4px; padding-left: 8px; }
}

/* 390px 检查：无横向溢出 */
@media (max-width: 420px) {
  main, .foot { padding-left: 16px; padding-right: 16px; }
  .heading-1 { font-size: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .card { padding: 20px; }
  .qa { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tagline-text .w { color: var(--ink); }
  html { scroll-behavior: auto; }
}
