/* ============================================================
   Riot 官网样式 — Obsidian 黑曜石极简
   近纯黑 · 暖白 · hairline 细线 · 冷光点缀 · serif 混排
   ============================================================ */

:root {
  --bg: #040404;
  --surface: rgba(255, 255, 255, 0.024);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.17);
  --fg: #f4f3ee;
  --muted: rgba(236, 235, 228, 0.6);
  --muted-2: rgba(236, 235, 228, 0.38);
  --faint: rgba(236, 235, 228, 0.22);
  --accent: #bcc8ff;
  --glow-a: 157, 184, 255;
  --glow-b: 201, 184, 255;
  --ok: #4ade80;
  --warn: #fbbf24;
  --font-sans:
    'Geist', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system,
    sans-serif;
  --font-serif: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --nav-h: 62px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(188, 200, 255, 0.24);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.42em;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   背景（纯黑 + 极淡噪点）
   ------------------------------------------------------------ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   导航
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--fg);
  background: rgba(4, 4, 4, 0.5);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition:
    background 0.35s,
    border-color 0.35s;
}

.nav.scrolled {
  background: rgba(4, 4, 4, 0.78);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.22em;
  color: inherit;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
}
.brand-mark img {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav-links a {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.nav-github:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 10px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.nav-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  color: var(--fg);
  background: rgba(4, 4, 4, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 12px 8px;
  font-size: 15.5px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 10px;
}
.mobile-menu .btn-primary {
  justify-content: center;
}
.mobile-menu.open {
  display: flex;
}

/* ------------------------------------------------------------
   按钮
   ------------------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s,
    box-shadow 0.25s,
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.18),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}
.btn:hover::after {
  opacity: 1;
}
.btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--fg);
  color: #060606;
  border-color: var(--fg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 18px 40px -18px rgba(244, 243, 238, 0.32);
}
.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 22px 48px -20px rgba(244, 243, 238, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
  padding: 7px 18px;
  font-size: 13px;
}
.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
  padding: 12px 20px;
  font-size: 14.5px;
}

.btn-os-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
}
.btn-os-icon:empty {
  display: none;
}
.btn-os-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 8px;
  text-align: center;
}

.hero-sky {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: min(860px, 96vh);
  overflow: hidden;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 4, 4, 0) 0%,
    rgba(4, 4, 4, 0.06) 55%,
    rgba(4, 4, 4, 0.62) 84%,
    var(--bg) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 6;
}

/* 动画 Logo：粒子重构（canvas 绘制）+ 辉光 + 3D 倾斜环 */
.hero-logo {
  position: relative;
  width: clamp(270px, 30vw, 370px);
  aspect-ratio: 1;
  margin: 0 auto;
  perspective: 760px;
}

.hl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 禁用动效 / 无 canvas 时的静态兜底 */
.hl-fallback {
  display: none;
  position: absolute;
  inset: 24%;
  width: 52%;
  height: 52%;
  filter: drop-shadow(0 0 26px rgba(var(--glow-a), 0.38));
}

.hl-glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--glow-a), 0.16),
    rgba(var(--glow-b), 0.06) 46%,
    transparent 68%
  );
  animation: hl-breathe 6.5s ease-in-out infinite;
}

@keyframes hl-breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hl-ring {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(var(--glow-a), 0.2);
  animation: hl-tilt-spin 16s linear infinite;
}

@keyframes hl-tilt-spin {
  from {
    transform: rotateX(72deg) rotate(0deg);
  }
  to {
    transform: rotateX(72deg) rotate(360deg);
  }
}

/* 平面虚线轨道（反向慢转） */
.hl-orbit {
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  animation: hl-spin 46s linear infinite reverse;
}

@keyframes hl-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 轨道卫星光点 */
.hl-sat {
  position: absolute;
  top: -2.5px;
  left: 50%;
  margin-left: -2.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(var(--glow-a), 0.9);
}

/* 小卫星钉在轨道左侧圆周点上，随轨道旋转 */
.hl-sat-sm {
  top: 50%;
  left: -1.75px;
  margin-left: 0;
  margin-top: -1.75px;
  width: 3.5px;
  height: 3.5px;
  box-shadow: 0 0 9px 2px rgba(var(--glow-b), 0.8);
}

/* RIOT 字标 */
.hero-wordmark {
  margin-top: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--fg);
  text-shadow: 0 0 60px rgba(var(--glow-a), 0.3);
}

/* 字标字符入场（由 JS 拆分） */
.ht-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(7px);
  transition:
    opacity 0.62s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.62s cubic-bezier(0.2, 0.6, 0.2, 1),
    filter 0.62s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--ch-delay, 0ms);
}
.hero-wordmark.played .ht-ch {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(15px, 1.8vw, 16.5px);
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

/* Hero 截图 */
.hero-shot-wrap {
  position: relative;
  z-index: 6;
  margin-top: 64px;
}

.hero-facts {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-facts i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.hero-shot {
  position: relative;
}

.hero-shot-glow {
  position: absolute;
  inset: -12% -10% auto;
  height: 60%;
  background: radial-gradient(
    ellipse 52% 50% at 50% 22%,
    rgba(var(--glow-a), 0.24),
    rgba(var(--glow-b), 0.1) 55%,
    transparent 78%
  );
  filter: blur(52px);
  z-index: 0;
}

.window {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0c;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 120px -36px rgba(var(--glow-a), 0.35);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.028);
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.window-title {
  margin-inline: auto;
  transform: translateX(-20px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.window img {
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------
   模型 ticker
   ------------------------------------------------------------ */
.ticker {
  margin-top: 96px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color 0.25s;
}
.marquee-track span:hover {
  color: var(--fg);
}

.marquee-track i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------
   Section 通用
   ------------------------------------------------------------ */
.section {
  padding: 132px 0 36px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}

.section-head h2,
.security-copy h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--fg);
}

.section-sub {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 600px;
}
.section-head-center .section-sub {
  margin-inline: auto;
}

/* ------------------------------------------------------------
   产品支柱（编号分栏，无卡片底色）
   ------------------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.pillar {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s;
}

.pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1));
  transition: width 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.pillar:hover::before {
  width: 100%;
}

.pillar-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  margin-bottom: 22px;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pillar-tag {
  margin: 8px 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}

.pillar > p:last-child {
  font-size: 14.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Bento 网格
   ------------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  overflow: hidden;
  transition:
    border-color 0.3s,
    background 0.3s;
  display: flex;
  flex-direction: column;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.05),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.bento-card:hover::after {
  opacity: 1;
}

.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}

.bento-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  margin-bottom: 22px;
  flex-shrink: 0;
}
.bento-icon svg {
  width: 20px;
  height: 20px;
}

.bento-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 14px;
  color: var(--muted);
}

/* 文件徽章 */
.file-badges {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  flex-wrap: wrap;
}

.fb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  letter-spacing: 0.08em;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.bento-card:hover .fb {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.28);
}

/* 规划步骤 */
.plan-steps {
  list-style: none;
  counter-reset: step;
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.plan-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
}

/* 权限 pills */
.perm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.perm-pills span {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  background: transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.perm-pills span:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}
.perm-pills span:first-child {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.3);
}

/* code chips */
.code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}
.code-chips code {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

/* ------------------------------------------------------------
   终端动画
   ------------------------------------------------------------ */
.terminal {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #050506;
  overflow: hidden;
}
.bento-card .terminal {
  margin-top: 26px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar .dot {
  width: 8px;
  height: 8px;
}

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
}

.terminal-body {
  padding: 16px 18px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2.1;
  text-align: left;
}

.t-line {
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  animation: t-line-in 12s infinite;
  animation-delay: calc(var(--i) * 1.1s);
  color: #d8d7d0;
}

.t-dim {
  color: var(--muted-2);
}

@keyframes t-line-in {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  3.5%,
  82% {
    opacity: 1;
    transform: translateY(0);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

.t-prompt {
  color: var(--accent);
  font-weight: 500;
}
.t-mark {
  font-size: 10.5px;
}
.t-run {
  color: var(--warn);
}
.t-ask {
  color: var(--accent);
}
.t-ok {
  color: var(--ok);
}

.t-btn {
  font-size: 11px;
  padding: 1px 11px;
  border-radius: 6px;
  background: var(--fg);
  color: #060606;
  font-weight: 600;
}
.t-btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

/* ------------------------------------------------------------
   安全 / 设计原则
   ------------------------------------------------------------ */
.section-security {
  margin-top: 96px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 56% 70% at 88% 12%, rgba(var(--glow-a), 0.05), transparent 62%),
    rgba(255, 255, 255, 0.008);
}

.security-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}

.principles {
  list-style: none;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
}

.principles li {
  position: relative;
  padding: 24px 0 24px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.principles li:last-child {
  border-bottom: none;
}

.principles li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 34px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  transform: rotate(45deg);
}

.principles h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.principles p {
  font-size: 14px;
  color: var(--muted);
}

/* 权限弹窗仿真 */
.security-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.perm-dialog {
  width: min(410px, 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.94), rgba(9, 9, 11, 0.96));
  backdrop-filter: blur(8px);
  box-shadow:
    0 36px 90px -32px rgba(0, 0, 0, 0.9),
    0 0 90px -46px rgba(var(--glow-a), 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 26px 26px 24px;
  animation: dialog-float 7s ease-in-out infinite;
}

@keyframes dialog-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.perm-dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.perm-dialog-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 19px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}

.perm-dialog-title {
  font-size: 15.5px;
  font-weight: 700;
}
.perm-dialog-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.perm-dialog-cmd {
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: #050506;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e8e7e0;
  text-align: left;
}
.perm-dialog-cmd span {
  color: var(--accent);
  margin-right: 8px;
}

.perm-dialog-path {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  text-align: left;
}

.perm-dialog-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.pd-btn {
  flex: 1;
  padding: 9px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: default;
}

.pd-btn-primary {
  color: #060606;
  background: var(--fg);
  border-color: transparent;
}

.perm-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -14px;
  margin-left: 38%;
  padding: 11px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(9, 9, 11, 0.96);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  font-size: 12.5px;
  animation: dialog-float 7s ease-in-out infinite reverse;
}

.perm-toast-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-radius: 50%;
  color: #052e16;
  background: var(--ok);
  font-weight: 700;
}

.perm-toast-diff em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.perm-toast-diff .add {
  color: var(--ok);
}
.perm-toast-diff .del {
  color: #f87171;
  margin-left: 5px;
}

/* ------------------------------------------------------------
   下载区
   ------------------------------------------------------------ */
.section-download {
  position: relative;
  padding-top: 130px;
  padding-bottom: 150px;
  overflow: hidden;
}

.section-download::before {
  content: '';
  position: absolute;
  inset: auto 0 -40%;
  height: 90%;
  background: radial-gradient(
    ellipse 60% 55% at 50% 100%,
    rgba(var(--glow-a), 0.12),
    rgba(var(--glow-b), 0.05) 50%,
    transparent 75%
  );
  pointer-events: none;
}

.section-download > .container {
  position: relative;
}

#download-detect strong {
  color: var(--fg);
  font-weight: 700;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 430px));
  justify-content: center;
  gap: 18px;
}

.dl-card {
  position: relative;
  padding: 42px 36px 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  overflow: hidden;
}

.dl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.05),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.dl-card:hover::after {
  opacity: 1;
}

.dl-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.dl-card.recommended {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 30px 80px -46px rgba(var(--glow-a), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.dl-recommend {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #060606;
  background: var(--fg);
  border-radius: 999px;
}

.dl-os-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--fg);
}
.dl-os-icon svg {
  width: 28px;
  height: 28px;
}

.dl-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.dl-req {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.dl-desc {
  margin: 16px 0 26px;
  font-size: 14px;
  color: var(--muted);
  min-height: 3.2em;
}

.dl-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

.dl-foot {
  margin-top: 52px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.dl-foot a {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.dl-foot a:hover {
  border-color: var(--fg);
}

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 56px;
}

.footer .brand {
  color: var(--fg);
}

.footer-brand p {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  width: fit-content;
}
.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.footer-watermark {
  pointer-events: none;
  user-select: none;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(120px, 24vw, 320px);
  line-height: 0.72;
  letter-spacing: 0.06em;
  margin-top: 10px;
  margin-bottom: -0.08em;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ------------------------------------------------------------
   滚动显现动画
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.65, 0.25, 1),
    transform 0.85s cubic-bezier(0.2, 0.65, 0.25, 1),
    filter 0.85s cubic-bezier(0.2, 0.65, 0.25, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-reveal-delay='1'] {
  --reveal-delay: 1;
}
[data-reveal-delay='2'] {
  --reveal-delay: 2;
}
[data-reveal-delay='3'] {
  --reveal-delay: 3;
}
[data-reveal-delay='4'] {
  --reveal-delay: 4;
}
[data-reveal-delay='5'] {
  --reveal-delay: 5;
}

/* ------------------------------------------------------------
   无障碍：减少动效
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html {
    scroll-behavior: auto;
  }
  .t-line {
    opacity: 1;
  }
  .hero-canvas {
    display: none;
  }
  .hl-canvas {
    display: none;
  }
  .hl-fallback {
    display: block;
  }
  .ht-ch {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .span-2,
  .span-3,
  .span-4 {
    grid-column: span 3;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pillar {
    padding-bottom: 30px;
  }
  .security-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .perm-toast {
    margin-left: 22%;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav-cta .btn {
    display: none;
  }
  .mobile-menu.open {
    display: flex;
  }

  .section {
    padding: 92px 0 24px;
  }
  .section-security {
    padding: 92px 0;
  }
  .section-download {
    padding-top: 92px;
    padding-bottom: 110px;
  }

  .bento {
    grid-template-columns: 1fr;
  }
  .span-2,
  .span-3,
  .span-4 {
    grid-column: span 1;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 52px 0 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero-logo {
    width: 256px;
  }
  .hero-shot-wrap {
    margin-top: 60px;
  }
  .ticker {
    margin-top: 64px;
  }

  .perm-toast {
    margin-left: 8%;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 36px);
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-facts {
    gap: 10px;
  }
  .marquee-track {
    gap: 22px;
  }
  .marquee-track span {
    font-size: 14px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
