/* ============================================================
   DomeOS AI — 官网样式
   参考 SPlayer 的排版：顶部导航、居中 Hero、分组特性列表、简洁页脚
   深色默认，浅色可切换；纯 CSS，无外部依赖
   ============================================================ */

:root {
  --bg: #0a0b0f;
  --bg-soft: #0d0f14;
  --surface: #111318;
  --surface-2: #171a21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ebf2;
  --muted: #9ba1b0;
  --faint: #6b7180;
  --blue: #2e9df4;
  --blue-dark: #1c86d8;
  --blue-soft: rgba(46, 157, 244, 0.13);
  --yellow: #f5c84c;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-bg: rgba(12, 14, 22, 0.5);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.55);
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB",
    sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --border: rgba(16, 20, 38, 0.1);
  --border-strong: rgba(16, 20, 38, 0.18);
  --text: #14161f;
  --muted: #5d6274;
  --faint: #8a8fa0;
  --blue-soft: rgba(46, 157, 244, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(16, 20, 38, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景：缓慢流动的光斑，为液态玻璃提供折射内容 ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
  transform: scale(1.06);
  will-change: transform;
}

.bg-scene .orb {
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: orbMove 26s ease-in-out infinite alternate;
  will-change: transform;
}

.bg-scene .o1 {
  top: -16vw;
  left: 2vw;
  background: radial-gradient(circle, rgba(46, 157, 244, 0.55), transparent 66%);
}

.bg-scene .o2 {
  top: 12vh;
  right: -14vw;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 66%);
  animation-delay: -9s;
  animation-duration: 31s;
}

.bg-scene .o3 {
  bottom: -22vw;
  left: 26vw;
  background: radial-gradient(circle, rgba(245, 200, 76, 0.22), transparent 66%);
  animation-delay: -16s;
  animation-duration: 36s;
}

.bg-scene .o4 {
  top: 42vh;
  left: -18vw;
  background: radial-gradient(circle, rgba(40, 220, 200, 0.28), transparent 66%);
  animation-delay: -4s;
  animation-duration: 29s;
}

@keyframes orbMove {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, 4vh, 0) scale(1.14);
  }
}

.bg-scene .grain {
  position: absolute;
  inset: -40%;
  opacity: 0.035;
  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='0.82' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] .bg-scene .orb {
  mix-blend-mode: normal;
  opacity: 0.26;
}

[data-theme="light"] .bg-scene .grain {
  opacity: 0.025;
}

/* 跟随指针的微光 */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(46, 157, 244, 0.16),
    rgba(46, 157, 244, 0.05) 42%,
    transparent 68%
  );
  filter: blur(12px);
  will-change: transform;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(
    circle,
    rgba(46, 157, 244, 0.12),
    rgba(46, 157, 244, 0.04) 42%,
    transparent 68%
  );
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- 液态玻璃基础层 ---------- */
.glass {
  position: relative;
  background-color: var(--glass-bg);
  background-image: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0.07) 100%
  );
  border: 1px solid var(--glass-border);
  box-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(var(--glass-blur, 20px)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px)) saturate(165%);
  isolation: isolate;
}

[data-theme="light"] .glass {
  background-image: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.16) 48%,
    rgba(255, 255, 255, 0.32)
  );
  box-shadow: 0 22px 55px -30px rgba(22, 28, 62, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* 渐变描边 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--glass-highlight),
    rgba(255, 255, 255, 0.05) 34%,
    rgba(255, 255, 255, 0.24) 62%,
    rgba(255, 255, 255, 0.04)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* 指针高光 */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    200px circle at var(--gx, 50%) var(--gy, 0%),
    rgba(255, 255, 255, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.glass:hover::after {
  opacity: 1;
}

/* 内容始终压在玻璃高光之上 */
.cta-inner > *,
.dl-card > * {
  position: relative;
  z-index: 3;
}

.glass-soft {
  background: rgba(17, 19, 24, 0.55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

[data-theme="light"] .glass-soft {
  background: rgba(255, 255, 255, 0.7);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(46, 157, 244, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 布局 ---------- */
.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

section {
  position: relative;
  padding: 88px 0;
}

section[id],
.docs-card[id],
.dl-card[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  animation: headerIn 0.7s var(--ease) 0.15s both;
}

@keyframes headerIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: calc(100% - 8px);
  height: 52px;
  margin: 0;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  --glass-blur: 20px;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.45s var(--ease);
}

.nav.glass {
  background-color: rgba(14, 16, 24, 0.54);
  background-image: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.02) 46%,
    rgba(255, 255, 255, 0.06)
  );
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .nav.glass {
  background-color: rgba(255, 255, 255, 0.64);
  background-image: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.35)
  );
  border-color: rgba(16, 20, 38, 0.12);
  box-shadow: 0 16px 40px -24px rgba(22, 28, 62, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-header.scrolled .nav.glass {
  background-color: rgba(10, 12, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

[data-theme="light"] .site-header.scrolled .nav.glass {
  background-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 48px -24px rgba(22, 28, 62, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (min-width: 721px) {
  .nav.glass {
    transform: perspective(900px) rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg)) translateY(calc(var(--lift, 0) * -2px));
    will-change: transform;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 26px;
  height: 26px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.brand:hover .mark {
  transform: rotate(-10deg) scale(1.08);
}

.nav-version {
  margin-left: 2px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-version::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 6px rgba(245, 200, 76, 0.6);
  vertical-align: middle;
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.nav-divider {
  width: 1px;
  height: 18px;
  flex: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
}

[data-theme="light"] .nav-divider {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(16, 20, 38, 0.12),
    transparent
  );
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}

/* 跟随指针滑动的导航高光 */
.nav-hover {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--pill-w, 0px);
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  transform: translate(var(--pill-x, 0px), -50%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
  z-index: 1;
}

.nav-links.pill-on .nav-hover {
  opacity: 1;
}

[data-theme="light"] .nav-hover {
  border-color: rgba(16, 20, 38, 0.08);
  background: rgba(16, 20, 38, 0.06);
}

.nav-links a {
  position: relative;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: transparent;
}

.nav-links a.nav-privacy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  border: 1px solid rgba(46, 157, 244, 0.28);
  background: rgba(46, 157, 244, 0.09);
}

.nav-links a.nav-privacy svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.nav-links a.nav-privacy:hover {
  background: rgba(46, 157, 244, 0.18);
  border-color: rgba(46, 157, 244, 0.45);
}

[data-theme="light"] .nav-links a.nav-privacy {
  background: rgba(46, 157, 244, 0.08);
  border-color: rgba(46, 157, 244, 0.22);
}

.nav-actions {
  margin-left: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-actions .btn-sm {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
}

.brand,
.nav-divider,
.nav-actions {
  position: relative;
  z-index: 3;
}

.theme-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(16, 20, 38, 0.05);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.lang-switch svg {
  width: 14px;
  height: 14px;
}

.lang-switch:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .lang-switch:hover {
  background: rgba(16, 20, 38, 0.05);
}

/* 阅读进度条 */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--blue), #7cd0ff);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s,
    transform 0.2s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.22s var(--ease);
}

.btn:hover svg {
  transform: translateY(-1px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px -10px rgba(46, 157, 244, 0.7);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -80%;
  width: 45%;
  height: 140%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 135%;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 72px;
  text-align: center;
}

.hero-icon-wrap {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  animation: rise 0.8s var(--ease) 0.28s both,
    float 7s ease-in-out 1.2s infinite;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 22%,
    rgba(46, 157, 244, 0.8) 34%,
    rgba(124, 92, 255, 0.6) 48%,
    transparent 62% 100%
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 1.4px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 1.4px)
  );
  filter: drop-shadow(0 0 5px rgba(46, 157, 244, 0.35));
  animation: ringSpin 9s linear infinite;
  pointer-events: none;
}

@keyframes ringSpin {
  to {
    transform: rotate(1turn);
  }
}

.hero-icon {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  --glass-blur: 20px;
}

.hero-icon img {
  position: relative;
  z-index: 3;
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45));
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ambient {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

/* 顶部环境光，缓慢呼吸 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      900px 540px at 50% -12%,
      rgba(46, 157, 244, 0.13),
      transparent 70%
    ),
    radial-gradient(640px 380px at 88% 6%, rgba(245, 200, 76, 0.05), transparent 70%);
  animation: ambient 11s ease-in-out infinite alternate;
}

[data-theme="light"] body::before {
  background: radial-gradient(
      900px 540px at 50% -12%,
      rgba(46, 157, 244, 0.1),
      transparent 70%
    ),
    radial-gradient(640px 380px at 88% 6%, rgba(245, 200, 76, 0.06), transparent 70%);
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  animation: rise 0.7s var(--ease) 0.3s both;
}

.hero-badges span {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
}

.hero-badges span:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--text);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 750;
  background: linear-gradient(180deg, #ffffff 16%, #c6d0e6 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: 100% 220%;
  animation: rise 0.7s var(--ease) 0.34s both,
    titleSheen 9s 1.4s ease-in-out infinite;
}

[data-theme="light"] .hero h1 {
  background-image: linear-gradient(180deg, #101227 16%, #4b5268 88%);
}

@keyframes titleSheen {
  0%,
  100% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
}

.hero .lead {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  text-wrap: pretty;
  animation: rise 0.7s var(--ease) 0.42s both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  animation: rise 0.7s var(--ease) 0.5s both;
}

.hero-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--faint);
  animation: rise 0.7s var(--ease) 0.58s both;
}

.hero-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}

.hero-note a:hover {
  color: var(--text);
}

/* ---------- 应用界面示意 ---------- */
.mockup-wrap {
  margin: 56px auto 0;
  max-width: 980px;
}

.mockup {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(17, 19, 24, 0.55);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  text-align: left;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

[data-theme="light"] .mockup {
  background: rgba(255, 255, 255, 0.72);
}

.mockup:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.9);
}

.titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.titlebar .dots {
  display: flex;
  gap: 6px;
}

.titlebar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.titlebar .dots i:nth-child(2) {
  background: #febc2e;
}

.titlebar .dots i:nth-child(3) {
  background: #28c840;
}

.titlebar .title {
  margin-left: 6px;
  font-size: 11.5px;
  color: var(--faint);
}

.titlebar .win-controls {
  margin-left: auto;
  display: flex;
  gap: 14px;
  color: var(--faint);
}

.titlebar .win-controls span {
  width: 9px;
  height: 9px;
  display: block;
}

.titlebar .win-controls .x {
  position: relative;
}

.titlebar .win-controls .x::before,
.titlebar .win-controls .x::after {
  content: "";
  position: absolute;
  inset: 4px 0;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.titlebar .win-controls .x::after {
  transform: rotate(-45deg);
}

.app-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 430px;
}

.app-side {
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.side-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--faint);
  font-size: 11.5px;
}

.side-search svg {
  width: 12px;
  height: 12px;
}

.side-label {
  padding: 2px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
}

.side-item .ico {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.side-item.active {
  background: var(--blue-soft);
  color: var(--text);
}

.side-item .meta {
  margin-left: auto;
  font-size: 10px;
  color: var(--faint);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
}

.pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3ddc97;
}

.app-top .spacer {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--faint);
}

.chat {
  flex: 1;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg {
  display: flex;
  gap: 9px;
  max-width: 88%;
}

.msg .avatar {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
}

.msg .avatar-ai {
  display: block;
  background: transparent;
  object-fit: contain;
}

.msg .bubble {
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.msg .bubble b {
  color: var(--text);
  font-weight: 600;
}

.msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg .avatar svg {
  width: 14px;
  height: 14px;
}

.msg.user .avatar {
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(46, 157, 244, 0.22),
    rgba(124, 92, 255, 0.18)
  );
  border: 1px solid var(--border);
  color: var(--muted);
}

.msg.user .bubble {
  background: var(--blue-soft);
  border-color: rgba(46, 157, 244, 0.24);
  color: var(--text);
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 3px 0;
}

.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 1.3s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

.composer {
  margin: 0 18px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--faint);
}

.composer .send {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
}

.composer .send svg {
  width: 12px;
  height: 12px;
}

/* ---------- 章节标题 ---------- */
.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  text-wrap: pretty;
}

/* ---------- 特性分组 ---------- */
.feature-groups {
  border-top: 1px solid var(--border);
}

.feature-group {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

.feature-group h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 650;
  transition: color 0.25s;
}

.feature-group:hover h3 {
  color: var(--blue);
}

.feature-group .group-desc {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
  margin: 0;
  padding: 0;
}

.feature-list li {
  list-style: none;
}

.feature-list b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.feature-list span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.feature-list code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text);
}

/* ---------- 下载 CTA ---------- */
.cta {
  padding: 0;
  margin-bottom: 88px;
}

.cta-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: transparent;
  --glass-blur: 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}

.cta-inner:hover {
  border-color: rgba(46, 157, 244, 0.4);
  transform: translateY(-3px);
}

.cta-inner img {
  width: 46px;
  height: 46px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.cta-inner:hover img {
  transform: scale(1.06) rotate(-3deg);
}

.cta-text {
  min-width: 240px;
}

.cta-text h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cta-text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.cta-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 300px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- 子页面 ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 36px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 720;
  animation: rise 0.7s var(--ease) 0.32s both;
}

.page-hero p {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 14.5px;
  color: var(--muted);
  animation: rise 0.7s var(--ease) 0.4s both;
}

.page-hero .crumbs {
  animation: rise 0.7s var(--ease) 0.26s both;
}

.crumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--faint);
}

.crumbs a:hover {
  color: var(--text);
}

/* 文档布局 */
.docs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 96px;
}

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 4px 0;
}

.docs-nav .group {
  padding: 12px 10px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.docs-nav a:hover,
.docs-nav a.active {
  color: var(--text);
  border-left-color: var(--blue);
}

.docs-body {
  min-width: 0;
}

.docs-card {
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.docs-card h3 {
  margin: 30px 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.docs-card p,
.docs-card li {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.docs-card p + p {
  margin-top: 12px;
}

.docs-card ul,
.docs-card ol {
  margin: 10px 0 16px;
  padding-left: 22px;
}

.docs-card li {
  margin-bottom: 4px;
}

.docs-card a {
  color: var(--blue);
}

.docs-card a:hover {
  text-decoration: underline;
}

.docs-card code {
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
}

.docs-card pre {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text);
}

.docs-card pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}

.note {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--blue-soft);
  font-size: 13px;
  color: var(--muted);
}

.note strong {
  color: var(--text);
}

.stack-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.stack-table th,
.stack-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
}

.stack-table th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

.stack-table td:first-child {
  color: var(--text);
  font-weight: 550;
}

/* 下载页 */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}

.dl-card {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: transparent;
  --glass-blur: 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.dl-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.dl-card .top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-card .top svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.dl-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.dl-card .sub {
  margin: 6px 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.dl-card .btn {
  min-width: 220px;
}

.dl-card .info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- 关于页 ---------- */
.about-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 26px rgba(46, 157, 244, 0.28));
}

.about {
  max-width: 900px;
  padding-bottom: 96px;
}

.about-card {
  padding: 32px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.about-meta span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

.about-section {
  margin-top: 44px;
}

.about-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.thanks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thanks-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.thanks-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.thanks-item .tag {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--faint);
}

.about-quote {
  margin: 64px 0 26px;
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffffff 18%, var(--blue) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .about-quote {
  background-image: linear-gradient(180deg, #101227 10%, #1c86d8 130%);
}

.about-contact {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.about-contact a {
  color: var(--blue);
}

.about-links {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
}

.about-links a {
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}

.about-links a:hover {
  color: var(--text);
}

a.thanks-item {
  display: block;
  position: relative;
  color: var(--text);
  text-decoration: none;
}

a.thanks-item[data-tip]:hover,
a.thanks-item[data-tip]:focus-visible {
  z-index: 4;
}

a.thanks-item[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: min(260px, 80vw);
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 5;
}

a.thanks-item[data-tip]:hover::after,
a.thanks-item[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.about-join {
  margin-top: 24px;
  text-align: center;
}

.music-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.music-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .music-toggle:hover {
  background: rgba(16, 20, 38, 0.05);
}

.music-toggle svg {
  width: 16px;
  height: 16px;
}

.music-toggle.is-playing {
  color: var(--blue);
  background: rgba(46, 157, 244, 0.08);
}

.music-toggle.is-playing::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(46, 157, 244, 0.28);
  border-radius: 50%;
  animation: musicPulse 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes musicPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.16);
    opacity: 0;
  }
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.site-modal.show {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden;
}

.site-modal-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.24s var(--ease);
}

.site-modal.show .site-modal-card {
  transform: translateY(0) scale(1);
}

.site-modal-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.site-modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.site-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.site-modal-actions .btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 13.5px;
}

.btn-quiet {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.btn-quiet:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1300;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.site-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.music-panel {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  width: 340px;
  max-height: min(70vh, 620px);
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 0.22s, visibility 0.22s, transform 0.24s var(--ease);
}

.music-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.music-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.music-panel-heading {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.music-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.music-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.music-now {
  margin-top: 12px;
}

.music-now-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-now-artist {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-progress {
  position: relative;
  height: 4px;
  margin-top: 16px;
  border-radius: 99px;
  background: var(--border);
  cursor: pointer;
}

.music-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #7cc4ff);
  transition: width 0.12s linear;
}

.music-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.music-ctrl {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.music-ctrl svg {
  width: 14px;
  height: 14px;
}

.music-ctrl:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.music-play {
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px -10px rgba(46, 157, 244, 0.7);
}

.music-play svg {
  width: 16px;
  height: 16px;
}

.music-play:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-1px);
}

.music-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-height: 60px;
  max-height: 240px;
  margin-top: 14px;
  padding-right: 2px;
  overflow: auto;
  overscroll-behavior: contain;
}

.music-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.music-item:hover {
  background: var(--surface-2);
}

.music-item.active {
  border-color: rgba(46, 157, 244, 0.35);
  background: var(--blue-soft);
}

.music-item-note {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--faint);
  flex: none;
}

.music-item.active .music-item-note {
  color: var(--blue);
}

.music-item-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-item-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-item-artist {
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-empty {
  padding: 20px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

.music-hint {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--faint);
}

@media (max-width: 720px) {
  .music-panel {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 68vh;
  }

  .music-list {
    max-height: 190px;
  }
}

@media (max-width: 480px) {
  .site-modal-actions {
    flex-direction: column-reverse;
  }

  .site-modal-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing::after {
    animation: none;
    opacity: 0.25;
  }
}

/* ---------- 法律页 ---------- */
.legal-body h2 {
  margin: 40px 0 14px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.legal-body .legal-section:first-of-type h2 {
  margin-top: 0;
}

.legal-body h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.legal-body h4 {
  margin: 18px 0 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.legal-meta span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

.legal-section + .legal-section {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-fold {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}

.legal-fold summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.legal-fold[open] summary {
  border-bottom: 1px solid var(--border);
}

.legal-fold > h3,
.legal-fold > p,
.legal-fold > ul {
  margin-left: 16px;
  margin-right: 16px;
}

.legal-fold > h3:first-of-type {
  margin-top: 16px;
}

.legal-fold > p:last-child {
  margin-bottom: 16px;
}

.legal-sign {
  text-align: right;
  color: var(--faint);
}

.legal-top {
  margin-top: 36px;
  text-align: right;
  font-size: 12.5px;
}

.legal-top a {
  color: var(--blue);
}

@media (max-width: 720px) {
  .about-card {
    padding: 24px;
  }

  .thanks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.in.cta-inner:hover,
.reveal.in.dl-card:hover {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .feature-group {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .feature-list {
    gap: 16px 28px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .docs {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .docs-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-side {
    display: none;
  }
}

@media (max-width: 880px) {
  .nav-version,
  .nav-actions .btn-sm {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 0 10px;
  }

  .nav {
    height: 46px;
    padding: 4px 5px 4px 9px;
    gap: 8px;
  }

  /* 避免 backdrop-filter 变成 fixed 子元素的包含块 */
  .nav.glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-version,
  .nav-divider {
    display: none;
  }

  .brand {
    gap: 7px;
    font-size: 14px;
  }

  .brand .mark {
    width: 24px;
    height: 24px;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 20px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 11, 15, 0.97);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease);
  }

  [data-theme="light"] .nav-links {
    background: rgba(247, 248, 250, 0.98);
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 11px 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-actions .btn {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero-icon-wrap {
    width: 112px;
    height: 112px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
  }

  .hero-icon img {
    width: 60px;
    height: 60px;
  }

  .nav-hover {
    display: none;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 24px;
  }

  .cta-actions {
    margin-left: 0;
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-card {
    padding: 24px 20px;
  }

  .docs-nav {
    grid-template-columns: 1fr;
  }

  .app-top .spacer {
    display: none;
  }

  .composer span.hint {
    display: none;
  }
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.not-found .code {
  font-size: clamp(64px, 16vw, 132px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.05em;
  color: var(--blue);
}

.not-found h1 {
  margin: 10px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.not-found p {
  margin: 10px 0 26px;
  font-size: 14px;
  color: var(--muted);
}