/* Elventory 官网 · 视觉规范见同目录 DESIGN.md（raycast 基底，红色 punctuation 换成品牌蓝） */
:root {
  --bg: #07080a;
  --surface: #101111;
  --surface-2: #1b1c1e;
  --border: rgba(255, 255, 255, .06);
  --border-strong: rgba(255, 255, 255, .1);
  --text: #f9f9f9;
  --text-2: #cecece;
  --text-3: #9c9c9d;
  --text-dim: #6a6b6c;
  --accent: #5b9bd5;
  --accent-bright: #7fb0dd;
  --accent-glow: rgba(91, 155, 213, .16);
  --ring: rgb(27, 28, 30) 0 0 0 1px, rgb(7, 8, 10) 0 0 0 1px inset;
  --btn-3d: rgba(255, 255, 255, .05) 0 1px 0 0 inset, rgba(255, 255, 255, .25) 0 0 0 1px, rgba(0, 0, 0, .2) 0 -1px 0 0 inset;
  --window-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px var(--accent-glow);
  --max: 1160px;
  --font: Inter, "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .2px;
  font-feature-settings: "calt", "kern", "liga", "ss03";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--text); margin: 0; letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; }

/* 语言：成对的 lang 元素只显示当前语言那份 */
html[lang="en"] [lang="zh"], html[lang="zh"] [lang="en"] { display: none !important; }
html[lang="en"] body { letter-spacing: .1px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.sub { color: var(--text-3); font-size: 18px; line-height: 1.6; max-width: 640px; }

/* ── 导航 ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 10, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--text-3); font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-btn {
  background: transparent; color: var(--text-3); border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; letter-spacing: .3px;
}
.lang-btn:hover { color: var(--text); opacity: .8; }

/* ── 按钮 ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 86px; font-size: 15px; font-weight: 600; letter-spacing: .3px;
  color: var(--text); background: transparent; border: 1px solid var(--border-strong);
  box-shadow: rgba(255, 255, 255, .1) 0 1px 0 0 inset; transition: opacity .15s, transform .15s; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { opacity: .7; }
.btn.primary { background: hsla(0, 0%, 100%, .88); color: #18191a; border-color: transparent; }
.btn.primary:hover { background: #fff; opacity: 1; }
.btn.accent { background: var(--accent); color: #fff; border-color: transparent; box-shadow: var(--btn-3d); }
.btn.accent:hover { background: var(--accent-bright); opacity: 1; }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero ─────────────────────────────── */
.hero { position: relative; padding: 96px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 60%);
}
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: 64px; font-weight: 600; line-height: 1.1; max-width: 900px; font-feature-settings: "calt", "kern", "ss02", "ss03", "liga" 0; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .sub { font-size: 20px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero .fine { color: var(--text-dim); font-size: 13px; }
.hero .fine a { color: var(--text-3); border-bottom: 1px solid var(--border-strong); }
.hero .fine a:hover { color: var(--text); }

.window {
  position: relative; margin: 44px auto 0; width: 100%; max-width: 1160px;
  border-radius: 12px; background: var(--surface); box-shadow: var(--window-shadow); overflow: hidden;
}
.window .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #0d0e10; border-bottom: 1px solid var(--border); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2b2e; }
.window .bar i:first-child { background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: auto; margin-right: auto; color: var(--text-dim); font-size: 12px; letter-spacing: .3px; }
.window img, .window video { width: 100%; height: auto; display: block; }
.window.narrow { max-width: 760px; }
/* Spine 真跑：录屏视频垫底，player 起来后盖在上面 */
.spine-stage .stage { position: relative; background: #0b0c0e; }
.spine-stage .spine-host { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .4s; }
.spine-stage.spine-live .spine-host { opacity: 1; pointer-events: auto; }
.spine-stage.spine-live video { visibility: hidden; }
.spine-stage .spine-host .spine-player { background: transparent; }

/* ── 信任条 ───────────────────────────── */
.trust { padding: 56px 0 24px; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 20px 22px; border-radius: 12px; background: var(--surface); box-shadow: var(--ring); }
.stat b { display: block; color: var(--text); font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.3px; }
.stat b small { font-size: 16px; color: var(--text-3); margin-left: 4px; font-weight: 500; }
.stat span { display: block; margin-top: 6px; color: var(--text-3); font-size: 14px; }

/* ── 功能段 ───────────────────────────── */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: 44px; font-weight: 500; line-height: 1.17; margin: 10px 0 14px; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.feature .copy h3 { font-size: 30px; font-weight: 500; line-height: 1.2; margin: 10px 0 14px; }
.feature .copy p { color: var(--text-3); font-size: 17px; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.feature li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.feature .window { margin: 0; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cell {
  padding: 26px 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ring); transition: border-color .2s, transform .2s;
}
.cell:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cell.wide { grid-column: span 2; }
.cell.full { grid-column: 1 / -1; }
.cell .glyph {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(#121212, #0d0d0d); box-shadow: var(--btn-3d); margin-bottom: 18px; color: var(--accent-bright);
}
.cell .glyph svg { width: 20px; height: 20px; }
.cell h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.cell p { color: var(--text-3); font-size: 15px; }
.tag { display: inline-block; margin: 14px 6px 0 0; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; }
.tag.local { color: #5fc992; }

/* ── 定价 ─────────────────────────────── */
.pricing { padding: 96px 0; }
.pricing .section-head { text-align: center; margin: 0 auto 48px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 20px; justify-content: center; }
.plan { position: relative; padding: 34px 32px 32px; border-radius: 20px; background: var(--surface); box-shadow: var(--ring); display: flex; flex-direction: column; }
.plan.pro { box-shadow: var(--ring), 0 0 0 1px var(--accent) inset, 0 0 80px -20px var(--accent-glow); }
.plan .ribbon { position: absolute; top: -13px; left: 32px; padding: 4px 12px; border-radius: 86px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .4px; }
.plan h3 { font-size: 22px; font-weight: 500; }
.plan .price { margin: 18px 0 4px; color: var(--text); font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; }
.plan .price small { display: block; font-size: 14px; color: var(--text-3); font-weight: 500; letter-spacing: .2px; margin-top: 6px; }
.plan .price s { color: var(--text-dim); font-size: 22px; font-weight: 500; margin-right: 10px; text-decoration-thickness: 2px; }
.plan .countdown { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.plan .countdown b { color: var(--accent-bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-bright); }
.plan .cta { display: flex; flex-direction: column; gap: 10px; }
.plan .note { margin-top: 12px; color: var(--text-dim); font-size: 13px; text-align: center; }

/* ── FAQ ──────────────────────────────── */
.faq { padding: 32px 0 96px; }
.faq .list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 12px; background: var(--surface); box-shadow: var(--ring); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; color: var(--text); font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-dim); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-3); font-size: 15px; max-width: 680px; }

/* ── 下载区 ───────────────────────────── */
.download { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; inset: auto -20% -60%; height: 120%; pointer-events: none; background: radial-gradient(ellipse at 50% 100%, var(--accent-glow), transparent 60%); }
.download .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.download h2 { font-size: 40px; font-weight: 500; }
.download .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.download .meta { color: var(--text-dim); font-size: 13px; min-height: 1.4em; }

/* ── 页脚 ─────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-dim); font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.footer a { color: var(--text-3); }
.footer a:hover { color: var(--text); }
.footer .spacer { flex: 1; }

/* ── 法务页 ───────────────────────────── */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 40px; font-weight: 500; margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-3); font-size: 15px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal .draft { padding: 14px 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--ring); color: var(--text-2); font-size: 14px; margin-bottom: 32px; }

/* ── 进场 ───────────────────────────────
   滚动驱动动画，纯 CSS：内容默认可见，支持 view() 的浏览器在元素进入视口时淡入。
   之前的 IntersectionObserver 版在快速滚动下会漏点亮，内容整段看不见，不能要。 */
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } html { scroll-behavior: auto; } }

/* ── 响应式 ───────────────────────────── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .copy { order: 0; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .btn.sm { padding: 7px 12px; font-size: 13px; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 17px; }
  .section, .pricing { padding: 64px 0; }
  .section-head h2 { font-size: 32px; }
  .feature .copy h3 { font-size: 24px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 24px; }
  .bento { grid-template-columns: 1fr; }
  .cell.wide { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .download h2 { font-size: 30px; }
  .footer .spacer { display: none; }
}
