/* LanStream 官网：配色取自 App 的 ui.json（背景 #0E0E10、强调 #1688F8、在线 #52C41A、正文 #ECECEF、弱化 #9A9AA2）。 */
:root {
  --bg: #07080b;
  --surface: rgba(22, 23, 28, .72);
  --surface-solid: #141519;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #ececef;
  --muted: #9a9aa2;
  --accent: #1688f8;
  --accent-2: #5ab8ff;
  --violet: #7c5cff;
  --online: #52c41a;
  --warning: #faad14;
  --radius: 18px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 背景：极光 + 点阵 ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; mix-blend-mode: screen; }
.aurora i:nth-child(1) { background: radial-gradient(circle, #1688f8, transparent 65%); top: -25vmax; left: -15vmax; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, #7c5cff, transparent 65%); top: -10vmax; right: -25vmax; animation: drift 32s ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(3) { background: radial-gradient(circle, #13c2c2, transparent 65%); bottom: -35vmax; left: 20vmax; opacity: .18; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: min(var(--maxw), calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(10, 11, 14, .6); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 34px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); font: 600 13px var(--font); cursor: pointer;
}
.lang:hover { background: rgba(255,255,255,.06); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 14px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { font-size: 20px; }
.btn-primary {
  background: linear-gradient(135deg, #1688f8, #3a6cff 55%, #7c5cff); color: #fff;
  box-shadow: 0 10px 40px -10px rgba(22,136,248,.8), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(22,136,248,.95), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { border-color: var(--border-strong); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-small { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; background: var(--text); color: #0b0c10; }
.btn-small:hover { background: #fff; }

/* ---------- 首屏 ---------- */
.hero {
  width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; min-height: calc(100vh - 80px);
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; padding: 72px 0 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255,255,255,.04);
  font-size: 13px; color: #cfd3dc;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(82,196,26,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(82,196,26,0); } 100% { box-shadow: 0 0 0 0 rgba(82,196,26,0); } }
.headline {
  margin: 0; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750;
  background: linear-gradient(180deg, #fff 30%, #a9b4c8); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: pre-line;
}
:lang(en) .headline { font-size: clamp(40px, 5.4vw, 70px); }
.intro { margin: 26px 0 0; max-width: 34em; font-size: 18px; color: #b9bdc7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.smart-note { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.smart-note a { color: var(--accent-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: #c5c9d2; }
.tags li { display: inline-flex; align-items: center; gap: 8px; }
.tags li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(82,196,26,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352c41a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }

/* 舞台：3D 倾斜的 App 窗口 + 远程桌面 + 连接光束 */
.stage { position: relative; height: 620px; perspective: 1600px; }
.app-window {
  position: absolute; left: 0; top: 176px; width: 212px; margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #0e0e10;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04), 0 0 80px -10px rgba(22,136,248,.35);
  transform: rotateY(14deg) rotateX(4deg); z-index: 3;
  animation: float 7s ease-in-out infinite;
}
.remote-screen {
  position: absolute; right: 0; top: 118px; width: 86%; aspect-ratio: 16 / 10.4; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #0b0d12;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 120px -30px rgba(124,92,255,.45);
  transform: rotateY(-10deg) rotateX(3deg); z-index: 2; animation: float 8s ease-in-out -2s infinite;
}
.app-window img { width: 100%; height: auto; }
@keyframes float { 50% { translate: 0 -10px; } }
.remote-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.remote-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3b42; }
.remote-bar em { margin-left: 10px; font-style: normal; font-size: 11px; color: var(--muted); }
.remote-desktop {
  position: relative; height: calc(100% - 30px);
  background: radial-gradient(120% 90% at 20% 10%, #1b3b6b 0%, transparent 55%), radial-gradient(90% 90% at 90% 90%, #3b2a78 0%, transparent 55%), linear-gradient(160deg, #0f1f35, #181134);
}
.rd-window { position: absolute; border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.rd-window::before { content: ""; display: block; height: 16px; border-radius: 8px 8px 0 0; background: #e8eaef; }
.rd-a { left: 7%; top: 12%; width: 50%; height: 56%; }
.rd-a::after { content: ""; position: absolute; left: 10%; right: 10%; top: 30%; height: 45%; border-radius: 4px; background: repeating-linear-gradient(180deg, #d4d9e3 0 6px, transparent 6px 14px); }
.rd-b { left: 40%; top: 36%; width: 40%; height: 46%; background: rgba(28,30,38,.96); }
.rd-b::before { background: #2a2c35; }
.rd-b::after { content: ""; position: absolute; left: 10%; top: 34%; width: 60%; height: 36%; border-radius: 4px; background: repeating-linear-gradient(180deg, rgba(90,184,255,.55) 0 5px, transparent 5px 12px); }
.rd-stats {
  position: absolute; right: 10px; top: 10px; display: grid; gap: 3px; padding: 9px 11px; min-width: 128px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  font-size: 10px; color: #fff;
}
.rd-stats b { font-size: 11px; margin-bottom: 2px; }
.rd-stats span { display: flex; justify-content: space-between; gap: 10px; color: #fff; }
.rd-stats em { font-style: normal; color: rgba(255,255,255,.65); }
.rd-stats i { font-style: normal; color: var(--online); }
.rd-cursor {
  position: absolute; left: 58%; top: 58%; width: 14px; height: 14px; border-left: 2px solid #fff; border-top: 2px solid #fff;
  transform: rotate(-12deg) skew(8deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); animation: cursor 6s ease-in-out infinite;
}
@keyframes cursor { 0%,100% { left: 58%; top: 58%; } 35% { left: 30%; top: 40%; } 70% { left: 70%; top: 30%; } }
.beam { position: absolute; left: 4%; right: 4%; top: 0; height: 110px; z-index: 4; }
.beam svg { width: 100%; height: 100%; overflow: visible; }
.beam-path { stroke: url(#beam-grad); stroke-width: 2; opacity: .6; }
.beam-packets { stroke: #9fd4ff; stroke-width: 3; stroke-dasharray: 2 26; animation: packets 1.6s linear infinite; filter: drop-shadow(0 0 6px #5ab8ff); }
@keyframes packets { to { stroke-dashoffset: -28; } }
.node {
  position: absolute; bottom: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(10,12,16,.8); border: 1px solid var(--border-strong); backdrop-filter: blur(8px);
}
.node-mac { left: -3%; }
.node-win { right: -2%; }
.chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  font-size: 13px; background: rgba(18,20,26,.85); border: 1px solid var(--border-strong); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
}
.chip svg { color: var(--online); font-size: 16px; }
.chip-a { left: 30%; bottom: 36px; animation: float 6s ease-in-out -1s infinite; }
.chip-b { right: 2%; bottom: 96px; animation: float 7s ease-in-out -3s infinite; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background: var(--online); box-shadow: 0 0 10px var(--online); }

/* ---------- 跑马灯 ---------- */
.marquee { border-block: 1px solid var(--border); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; padding: 22px 0; animation: marquee 38s linear infinite; font-size: 15px; color: #aeb3bf; white-space: nowrap; }
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--accent-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 通用区块 ---------- */
.section { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; padding: 120px 0 0; }
.section-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.section-title { margin: 12px 0 0; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.025em; font-weight: 720; max-width: 18em; }
.section-sub { margin: 16px 0 0; color: var(--muted); }

/* 功能卡片：渐变描边 + 跟随鼠标的高光 */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(22,136,248,.18), transparent 60%);
}
.feature:hover { transform: translateY(-4px); border-color: rgba(90,184,255,.35); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, rgba(22,136,248,.9), rgba(124,92,255,.9)); box-shadow: 0 10px 26px -8px rgba(22,136,248,.8);
}
.feature h3 { position: relative; margin: 22px 0 10px; font-size: 19px; letter-spacing: -.01em; }
.feature p { position: relative; margin: 0; color: #a9aeb9; font-size: 15px; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--border); }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: 50px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.step-no { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent-2); }
.steps h3 { margin: 14px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: #a9aeb9; font-size: 15px; }
.shot-frame { margin: 56px auto 0; max-width: 420px; text-align: center; }
.shot-frame img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -30px rgba(22,136,248,.55); }
.shot-frame figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* 下载 */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.dl {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s;
}
.dl.recommended { border-color: rgba(22,136,248,.55); box-shadow: 0 0 0 1px rgba(22,136,248,.25), 0 30px 60px -30px rgba(22,136,248,.6); }
.dl-badge { position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(22,136,248,.18); color: var(--accent-2); }
.dl-os { display: flex; align-items: center; gap: 12px; }
.dl-os svg { font-size: 30px; stroke-width: 1.6; }
.dl-os h3 { margin: 0; font-size: 20px; }
.dl-os small { display: block; color: var(--muted); font-size: 13px; }
.dl-meta { margin: 0; font-size: 13px; color: var(--muted); }
.dl .btn { height: 46px; margin-top: auto; }
.sha { display: flex; align-items: center; gap: 8px; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #7f8490; }
.sha code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sha button { flex: none; border: 1px solid var(--border-strong); background: transparent; color: var(--text); border-radius: 8px; padding: 3px 8px; font: 12px var(--font); cursor: pointer; }
.notice {
  display: flex; gap: 14px; margin-top: 24px; padding: 18px 20px; border-radius: 14px;
  background: rgba(250,173,20,.08); border: 1px solid rgba(250,173,20,.3); color: #f3d9a4;
}
.notice svg { flex: none; font-size: 20px; margin-top: 2px; color: var(--warning); }
.notice p { margin: 0; font-size: 14px; }
.requirements { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 40px; max-width: 860px; }
.faq details { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: #a9aeb9; }

/* 页脚 */
.footer { width: min(var(--maxw), calc(100% - 32px)); margin: 140px auto 0; padding: 32px 0 48px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { color: var(--text); }
.copyright { margin: 0; }

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; min-height: 0; }
  .stage { height: 520px; }
  .feature-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .intro { font-size: 16px; }
  .btn { width: 100%; }
  .stage { height: 420px; }
  .app-window { width: 150px; top: 140px; }
  .remote-screen { width: 92%; top: 96px; }
  .chip-a { left: 34%; bottom: 8px; }
  .chip-b { display: none; }
  .feature-grid, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
