/* ============================================================
   deepsleep 控制台 · 落地页
   深色高级风 · 零外部依赖（不用 CDN 字体/库，国内打开快）
   ============================================================ */

:root {
  --bg: #07080c;
  --fg: #e9ecf3;
  --fg-dim: #9aa1b4;
  --fg-dimmer: #666e82;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --card: rgba(255, 255, 255, .028);
  --card-hover: rgba(255, 255, 255, .05);
  --brand-1: #4f7cff;
  --brand-2: #8b5cff;
  --ok: #35d07f;
  --warn: #f5b544;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* hidden 属性必须能压过 .btn 的 display:inline-flex，否则藏不住 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.7 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: .92em;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  color: #cfd6e6;
}
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }
img { max-width: 100%; display: block; }

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

/* ---------------- 背景 ---------------- */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow-1 {
  width: 720px; height: 720px; left: 50%; top: -340px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79, 124, 255, .5), transparent 62%);
}
.bg-glow-2 {
  width: 620px; height: 620px; right: -220px; top: 460px;
  background: radial-gradient(circle, rgba(139, 92, 255, .38), transparent 62%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 78%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------------- 图标 ---------------- */

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------- 顶栏 ---------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 12, .72); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 62px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.brand img { border-radius: 7px; }
.brand-name { letter-spacing: -.01em; }
.brand-tag {
  font-size: 11px; color: var(--fg-dimmer); font-weight: 500;
  border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--fg-dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--fg); }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--card); color: var(--fg); font-size: 14px; font-weight: 550;
  cursor: pointer; font-family: inherit;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  position: relative; border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 6px 22px -8px rgba(79, 124, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover {
  box-shadow: 0 10px 30px -8px rgba(79, 124, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 55%);
  pointer-events: none;
}
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-ghost { background: transparent; }

/* ---------------- Hero ---------------- */

.hero { padding: 76px 24px 0; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--fg-dim);
  border: 1px solid var(--line); background: var(--card);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 26px;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(53, 208, 127, .18);
}

.hero h1 { font-size: clamp(34px, 6.2vw, 62px); font-weight: 700; }
.grad {
  background: linear-gradient(100deg, #8fb0ff 0%, #c9b6ff 48%, #7ee0d0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  margin: 20px auto 0; max-width: 620px;
  color: var(--fg-dim); font-size: clamp(15px, 1.7vw, 17px);
}

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-note { margin-top: 16px; font-size: 12.5px; color: var(--fg-dimmer); max-width: 560px; margin-inline: auto; }
/* SHA-256 是 64 位十六进制，窄屏必须能断行 */
.cta-note code { word-break: break-all; }

/* 窗口框 */
.shot-hero { margin: 56px auto 0; max-width: 1000px; }
.window {
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: #0d0f15;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.wd { width: 11px; height: 11px; border-radius: 50%; }
.wd.r { background: #ff5f57; } .wd.y { background: #febc2e; } .wd.g { background: #28c840; }
.window-title { margin-left: 10px; font-size: 12px; color: var(--fg-dimmer); }
.window img { width: 100%; }

/* 信任点 */
.trust {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  color: var(--fg-dim); font-size: 13.5px;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ico { width: 16px; height: 16px; color: var(--ok); }

/* ---------------- 区块 ---------------- */

.section { padding: 104px 24px 0; scroll-margin-top: 78px; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 680; }
.section-head p { margin-top: 12px; color: var(--fg-dim); }

/* 「新增」小标签：只给新功能区块用，别到处贴 */
.tag-new {
  display: inline-block; margin-bottom: 12px;
  font-size: 11.5px; font-weight: 620; letter-spacing: .04em;
  color: #a9c0ff; background: rgba(79, 124, 255, .13);
  border: 1px solid rgba(79, 124, 255, .38);
  padding: 2px 10px; border-radius: 999px;
}

/* ---------------- 卡片 ---------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }

.card {
  position: relative; padding: 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 124, 255, .14), transparent 62%);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--card-hover); }
.card:hover::before { opacity: 1; }
.card-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .045);
  color: #a9c0ff; margin-bottom: 16px;
}
.card-ico .ico { width: 19px; height: 19px; }
.card h3 { font-size: 16px; font-weight: 620; margin-bottom: 8px; }
.card p { color: var(--fg-dim); font-size: 13.6px; }

/* ---------------- 截图 ---------------- */

.shots { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.shots figure { margin: 0; }
/* 第一张占满整行，其余两张并排，页面更紧凑也更有节奏 */
.shots figure:first-child { grid-column: 1 / -1; }
.shots figcaption { margin-top: 12px; font-size: 13px; color: var(--fg-dimmer); text-align: center; }

/* 卡片区后面紧跟截图时留一点间距（区块之间靠 .section 的 padding，这里没有） */
.grid + .shots { margin-top: 24px; }

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

/* ---------------- 步骤 ---------------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps li {
  position: relative; padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.step-no {
  font: 700 34px/1 ui-monospace, monospace; letter-spacing: -.03em;
  background: linear-gradient(135deg, rgba(143, 176, 255, .95), rgba(201, 182, 255, .55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.steps h3 { font-size: 16px; margin-bottom: 9px; }
.steps p { color: var(--fg-dim); font-size: 13.6px; }
.steps a { color: #9db8ff; border-bottom: 1px solid rgba(157, 184, 255, .35); }
.steps a:hover { border-bottom-color: #9db8ff; }

.callout {
  margin-top: 22px; display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid rgba(245, 181, 68, .28);
  background: linear-gradient(180deg, rgba(245, 181, 68, .085), rgba(245, 181, 68, .03));
}
.callout-ico { color: var(--warn); }
.callout-ico .ico { width: 20px; height: 20px; }
.callout strong { display: block; margin-bottom: 5px; }
.callout p { color: #d9c9a4; font-size: 13.6px; }

/* ---------------- FAQ ---------------- */

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--card-hover); }
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 560; font-size: 14.5px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.6px solid var(--fg-dimmer); border-bottom: 1.6px solid var(--fg-dimmer);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq p { padding: 0 18px 17px; color: var(--fg-dim); font-size: 13.8px; }

/* ---------------- 底部 ---------------- */

.final { padding: 104px 24px 96px; text-align: center; }
.final h2 { font-size: clamp(23px, 3.2vw, 32px); font-weight: 680; }
.final .cta { margin-top: 28px; }

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px 34px; border-top: 1px solid var(--line);
  color: var(--fg-dimmer); font-size: 13px;
}
.footer-left { display: flex; align-items: center; gap: 9px; }
.footer-left img { border-radius: 6px; }

/* ---------------- 提示 ---------------- */

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px);
  background: #171922; border: 1px solid var(--line-strong); color: var(--fg);
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .9);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 入场动画 ---------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 780px) {
  .nav-links { display: none; }
  .hero { padding-top: 52px; }
  .section { padding-top: 76px; }
  .final { padding: 76px 24px 68px; }
  .trust { gap: 14px; flex-direction: column; align-items: center; }
  .footer { flex-direction: column; }
}
