/* Lidworks — 全站样式。风格：OLED 纯黑 + 柔和的光。只用系统字体，不加载任何外部资源。 */

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0c0c0e;
  --surface-2: #16161a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #a1a1a8;
  --faint: #6e6e76;
  --glow: #d6e6ff;
  --accent: #8fb6ff;
  --radius: 18px;
  --max: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 顶部导航 ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: radial-gradient(circle at 50% 52%, #fff 0 22%, rgba(214, 230, 255, 0.55) 34%, rgba(143, 182, 255, 0) 70%), linear-gradient(#2a2b30, #111114); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 15px; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .nav-links { gap: 16px; font-size: 14px; } }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- 通用排版 ---------- */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 14px 0 18px; font-weight: 700; }
h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; }
h3 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 6px; }
.lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 640px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--faint); }
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
@media (max-width: 600px) { section { padding: 64px 0; } }

/* ---------- 按钮 ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--text); color: #000; font-weight: 600; font-size: 17px; }
.button:hover { text-decoration: none; background: #fff; box-shadow: 0 0 32px rgba(214, 230, 255, 0.35); }
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.secondary:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.button svg { width: 18px; height: 18px; }

/* ---------- 首屏 ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 64px 0 48px; } }
.app-icon { width: 84px; height: 84px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 16px; color: var(--glow); }
.card .icon svg { width: 20px; height: 20px; }

.product { display: flex; flex-direction: column; gap: 14px; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.product:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.product img { width: 72px; height: 72px; }
.product .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.product .tag.live { color: #9be7b0; background: rgba(80, 200, 120, 0.12); }
.product .more { margin-top: auto; color: var(--accent); font-weight: 500; }

/* ---------- 步骤 / FAQ ---------- */
/* minmax(0, 1fr) + min-width: 0：允许列表项比里面不换行的长命令更窄（命令框自己横向滚动），手机上才不会撑出横向滚动条 */
.steps { counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; max-width: 720px; }
.steps li { min-width: 0; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 17px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 15px; }
.steps strong { color: var(--text); font-weight: 600; }
kbd { font: 600 0.9em var(--font); padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--text); white-space: nowrap; }

.faq { max-width: 760px; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.note { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: rgba(143, 182, 255, 0.07); border: 1px solid rgba(143, 182, 255, 0.18); color: var(--muted); max-width: 720px; font-size: 16px; }
.note strong { color: var(--text); }

/* ---------- 命令框（招募页）---------- */
.command { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 14px 14px 14px 18px; border-radius: 12px; background: #0f1013; border: 1px solid var(--line); max-width: 720px; }
.command code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--glow); }
.command button { flex: none; font: 600 14px var(--font); padding: 8px 14px; border-radius: 999px; border: 0; background: var(--text); color: #000; cursor: pointer; }
.command button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.steps code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; color: var(--glow); }
/* 安装步骤里的真实截图（橙色圈出要点的按钮） */
.steps .shot { display: block; margin-top: 14px; width: 100%; max-width: 320px; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.steps .shot.wide { max-width: 520px; }
.warn { color: #ffb340; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; max-width: 720px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: #9be7b0; font-weight: 700; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer p { margin: 0; max-width: 620px; }

/* ---------- 演示：MacBook 屏幕（WipeMode） ---------- */
/* 左右留出内边距，给比屏幕宽一点的底座（.base 的负边距）留位置，免得手机上出现横向滚动 */
.laptop { position: relative; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 5.5%; }
.laptop .screen { position: relative; aspect-ratio: 16 / 10.4; border-radius: 16px 16px 6px 6px; background: #000; padding: 10px; box-shadow: inset 0 0 0 1px #2c2c30, 0 30px 60px rgba(0, 0, 0, 0.6); }
.laptop .display { position: relative; height: 100%; border-radius: 8px; overflow: hidden; background: #000; }
/* 灵动岛：悬浮在屏幕里、离顶边有一点距离（不是贴边的刘海） */
.laptop .island { position: absolute; top: 17px; left: 50%; width: 13%; height: 4.5%; min-height: 8px; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 5; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.laptop .base { height: 14px; margin: 0 -5%; border-radius: 0 0 14px 14px; background: linear-gradient(#cfd0d4, #8c8d92); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55); }
.laptop .base::after { content: ""; display: block; width: 16%; height: 5px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #6f7075; }

.desktop { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 15% 10%, #ff9a5a 0%, rgba(255, 154, 90, 0) 45%),
  radial-gradient(120% 90% at 85% 20%, #7b6cff 0%, rgba(123, 108, 255, 0) 50%),
  radial-gradient(120% 90% at 50% 100%, #19c4c4 0%, rgba(25, 196, 196, 0) 55%), #1b1440; }
.desktop .window { position: absolute; left: 12%; top: 20%; width: 52%; height: 50%; border-radius: 6px; background: rgba(255, 255, 255, 0.82); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.desktop .window::before { content: ""; position: absolute; left: 6px; top: 6px; width: 26px; height: 6px; background:
  radial-gradient(circle at 3px 3px, #ff5f57 2.5px, transparent 3px),
  radial-gradient(circle at 12px 3px, #febc2e 2.5px, transparent 3px),
  radial-gradient(circle at 21px 3px, #28c840 2.5px, transparent 3px); }
.desktop .window.two { left: 44%; top: 34%; width: 42%; height: 44%; background: rgba(30, 30, 36, 0.9); }
.desktop .menubar { position: absolute; inset: 0 0 auto; height: 7%; background: rgba(255, 255, 255, 0.25); }

.blackout { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 7%; opacity: 0; }
.blackout b { color: rgba(255, 255, 255, 0.6); font-size: clamp(9px, 1.6vw, 12px); }
.blackout span { color: rgba(255, 255, 255, 0.38); font-size: clamp(7px, 1.2vw, 9.5px); margin-top: 3px; }
.smudge { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 70%); }
.streak { position: absolute; top: -40%; bottom: -40%; width: 38%; left: -60%; transform: rotate(18deg); background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(214, 230, 255, 0.16), rgba(0, 0, 0, 0)); }

.demo-wipe .blackout { animation: blackout 9s infinite; }
.demo-wipe .streak { animation: streak 9s infinite; }
.demo-wipe .smudge { animation: smudge 9s infinite; }
@keyframes blackout { 0%, 12% { opacity: 0; } 17%, 82% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes streak { 0%, 30% { left: -60%; } 62%, 100% { left: 130%; } }
@keyframes smudge { 0%, 30% { opacity: 1; } 55%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .demo-wipe .blackout { animation: none; opacity: 1; }
  .demo-wipe .streak, .demo-wipe .smudge { animation: none; opacity: 0; }
}

/* ---------- 演示：屏幕背面的发光 logo（Lidlight） ---------- */
.lid { position: relative; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 16 / 10.5; border-radius: 22px; background: linear-gradient(160deg, #2f3035, #16161a 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px rgba(0, 0, 0, 0.6); display: grid; place-items: center; overflow: hidden; }
.lid .mark { width: 22%; aspect-ratio: 1; border-radius: 50%; background: #3a3b40; box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.08); transition: background 0.6s, box-shadow 0.6s, opacity 0.6s; }
.lid[data-mode="normal"] .mark { background: radial-gradient(circle, #fff 0 55%, #e4eeff 75%); box-shadow: 0 0 22px 6px rgba(255, 255, 255, 0.75), 0 0 90px 30px rgba(170, 200, 255, 0.45); }
.lid[data-mode="dim"] .mark { background: radial-gradient(circle, #c9cfda 0 55%, #9aa3b3 80%); box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.22), 0 0 50px 14px rgba(170, 200, 255, 0.14); }
.lid[data-mode="off"] .mark { background: #3a3b40; box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.08); }
.lid[data-mode="breathe"] .mark { animation: breathe 4.5s infinite; }
@keyframes breathe {
  0%, 100% { background: #4a4c52; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(170, 200, 255, 0); }
  40% { background: #fff; box-shadow: 0 0 22px 6px rgba(255, 255, 255, 0.75), 0 0 90px 30px rgba(170, 200, 255, 0.45); }
}
@media (prefers-reduced-motion: reduce) { .lid[data-mode="breathe"] .mark { animation-duration: 9s; } }
.lid .caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--faint); }

.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.modes button { font: 500 15px var(--font); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.modes button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 数据清单（Lab 隐私说明）---------- */
.datalist { display: grid; gap: 14px; margin-top: 26px; max-width: 820px; }
.datalist article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.datalist ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.datalist li + li { margin-top: 5px; }
.datalist .why { margin: 12px 0 0; font-size: 15px; color: var(--text); }
.datalist .why b { color: var(--glow); font-weight: 600; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose h3 { margin-top: 28px; }
