/* =========================================================
   Cloudside 云边声坊 · 产品官网
   纯手写 CSS / 零依赖 / 4 套氛围主题
   ========================================================= */

/* ---------- 基础令牌 ---------- */
:root {
  --bg:          #08080f;
  --bg-soft:     #0d0d18;
  --card-solid:  #15152a;
  --surface:     rgba(255, 255, 255, .035);
  --surface-2:   rgba(255, 255, 255, .06);
  --surface-strong: #23233c;

  --border:      rgba(255, 255, 255, .09);
  --border-2:    rgba(255, 255, 255, .16);

  --text:        #f5f6fa;
  --text-2:      #a2a4bb;
  --text-3:      #6d7089;

  --city-ink:    #0a0a14;
  --art-sky-1:   #14143a;
  --art-sky-2:   #08080f;

  /* 氛围色（由 data-mood 覆盖） */
  --brand-a:     #7c5cff;
  --brand-b:     #00d9c0;
  --brand-soft:  rgba(124, 92, 255, .16);
  --grad:        linear-gradient(115deg, var(--brand-a) 0%, var(--brand-b) 100%);

  --radius-lg: 28px;
  --radius:    20px;
  --radius-sm: 13px;

  --shell: 1200px;
  --ease:  cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

/* 四套氛围 */
html[data-mood="rain"]   { --brand-a:#7c5cff; --brand-b:#00d9c0; --brand-soft:rgba(124,92,255,.16);
                           --art-sky-1:#15153d; --city-ink:#0a0a18; }
html[data-mood="forest"] { --brand-a:#2fbf71; --brand-b:#a8e063; --brand-soft:rgba(47,191,113,.16);
                           --art-sky-1:#0e2a1c; --city-ink:#08150e; }
html[data-mood="ocean"]  { --brand-a:#2e86ff; --brand-b:#4fe0e8; --brand-soft:rgba(46,134,255,.16);
                           --art-sky-1:#0b1e3c; --city-ink:#08111f; }
html[data-mood="space"]  { --brand-a:#b44bff; --brand-b:#ff5fa2; --brand-soft:rgba(180,75,255,.16);
                           --art-sky-1:#220c3a; --city-ink:#0f0718; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .7s var(--ease);
}

h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas, svg { display: block; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

::selection { background: var(--brand-soft); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-b);
  outline-offset: 3px;
  border-radius: 8px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a12; }
::-webkit-scrollbar-thumb { background: #26263c; border-radius: 99px; border: 2px solid #0a0a12; }
::-webkit-scrollbar-thumb:hover { background: #353552; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 图标 ---------- */
.ico {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-xs { width: 1em; height: 1em; stroke-width: 2; }

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

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

/* ---------- 背景装饰 ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

.aurora {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  transition: background .8s var(--ease);
}
.aurora-1 {
  width: 52vw; height: 52vw;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle, var(--brand-a), transparent 66%);
  opacity: .34;
}
.aurora-2 {
  width: 44vw; height: 44vw;
  top: 38vh; right: -14vw;
  background: radial-gradient(circle, var(--brand-b), transparent 66%);
  opacity: .22;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  z-index: 80;
  background: var(--grad);
  box-shadow: 0 0 12px var(--brand-a);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), border-color .45s, backdrop-filter .45s;
}
.nav.is-scrolled {
  background: rgba(8, 8, 15, .74);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background .6s, border-color .6s;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.brand-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .06em;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a {
  padding: 9px 15px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: 99px;
  transition: color .25s, background .25s;
}
.nav-links > a:hover { color: var(--text); background: var(--surface-2); }
.nav-mobile-extra { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.link-login {
  font-size: 14.5px;
  color: var(--text-2);
  padding: 9px 12px;
  transition: color .25s;
}
.link-login:hover { color: var(--text); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  place-items: center;
}
.burger .ico { width: 20px; height: 20px; }
.burger .ico-close { display: none; }
.nav.is-open .burger .ico-menu { display: none; }
.nav.is-open .burger .ico-close { display: block; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .35s, background .4s,
              border-color .4s, color .4s;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #06060c;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px var(--brand-a);
}
.btn-primary:hover { box-shadow: 0 16px 42px -10px var(--brand-b); }

.btn-ghost {
  border-color: var(--border-2);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .3); }

.btn-icon {
  width: 48px; height: 48px;
  padding: 0;
  border-radius: 50%;
  border-color: var(--border-2);
  background: var(--surface);
}
.btn-icon .ico { width: 19px; height: 19px; }

.btn-round {
  width: 78px; height: 78px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 12px 36px -10px var(--brand-a);
}
.btn-round .ico { width: 26px; height: 26px; }
.btn-round .ico-pause { display: none; }
.device.is-running .btn-round .ico-play { display: none; }
.device.is-running .btn-round .ico-pause { display: block; }

/* ---------- 通用标题 ---------- */
.sec-head { max-width: 660px; margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head.center { max-width: 720px; margin-inline: auto; text-align: center; }

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.sec-tag .ico { width: 15px; height: 15px; color: var(--brand-b); }

.sec-title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -.028em;
}
.sec-desc {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 16px;
  max-width: 58ch;
}
.sec-head.center .sec-desc { margin-inline: auto; }

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background .7s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(70px + clamp(40px, 7vw, 90px)) 0 clamp(50px, 6vw, 80px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-b);
  box-shadow: 0 0 0 0 var(--brand-b);
  animation: pulse 2.3s infinite;
}
.pill-sep { width: 1px; height: 12px; background: var(--border-2); }
.pill > *:last-child { color: var(--brand-b); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .28); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-title {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  vertical-align: top;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
html.is-loaded .hero-title .line:nth-child(1) > span { transition-delay: .08s; transform: none; }
html.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .2s;  transform: none; }
.hero-title .line:nth-child(2) > span:nth-child(2) { margin-inline: .06em; }

.hero-sub {
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: var(--text-2);
  line-height: 1.82;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-3);
}
.hero-trust b { color: var(--text); font-weight: 700; }
.stars { display: inline-flex; align-items: center; gap: 3px; }
.ico-star { width: 15px; height: 15px; color: #ffc857; stroke: none; }
.stars b { margin-left: 6px; }
.trust-divider { width: 1px; height: 20px; background: var(--border); }

.avatars { display: inline-flex; }
.av {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -9px;
}
.av:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(135deg, #7c5cff, #b44bff); }
.av-2 { background: linear-gradient(135deg, #2e86ff, #4fe0e8); }
.av-3 { background: linear-gradient(135deg, #ff7a59, #ffc857); }
.av-4 { background: var(--surface-strong); color: var(--text-2); }

.hero-art { position: relative; }
.art { width: 100%; height: auto; }

/* 插画内元素 */
.art .fc-title { font-size: 16px; font-weight: 700; fill: var(--text); }
.art .fc-meta  { font-size: 12.5px; fill: var(--text-3); }
.art .fc-ico   { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.art .float-card { animation: floaty 6s var(--ease) infinite; }
.art .fc-2 { animation-delay: -2s; }
.art .fc-3 { animation-delay: -4s; }

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

.art .ripple path { animation: rippleFade 4s ease-in-out infinite; }
.art .ripple path:nth-child(2) { animation-delay: .5s; }
.art .ripple path:nth-child(3) { animation-delay: 1s; }

@keyframes rippleFade {
  0%, 100% { opacity: .18; }
  50%      { opacity: .6; }
}

.art .stars-g circle { animation: twinkle 3.4s ease-in-out infinite; }
.art .stars-g circle:nth-child(2n) { animation-delay: -1.2s; }
.art .stars-g circle:nth-child(3n) { animation-delay: -2.1s; }

@keyframes twinkle {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

/* 氛围切换时插画平滑过渡 */
.art * { transition: fill .7s var(--ease), stroke .7s var(--ease), stop-color .7s var(--ease); }

/* 媒体墙 */
.logos-wrap {
  margin-top: clamp(46px, 6vw, 74px);
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.logos-label { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.logos {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  flex: 1;
}
.logo-item {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-3);
  opacity: .62;
  transition: opacity .3s, color .3s;
}
.logo-item:hover { opacity: 1; color: var(--text); }

/* ---------- 互动演示区 ---------- */
.demo-section { padding-top: clamp(60px, 7vw, 100px); }

.device {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: border-color .6s, box-shadow .6s;
}
.device.is-running { border-color: var(--border-2); }

.device-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .22);
}
.device-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.device-title {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.device-mode {
  margin-left: auto;
  font-size: 12px;
  padding: 4px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--brand-soft);
  color: var(--brand-b);
  font-weight: 650;
  transition: background .6s, color .6s;
}

.sound-toggle {
  width: 34px; height: 34px;
  margin-left: 8px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: color .35s, border-color .35s, background .35s;
}
.sound-toggle .ico { width: 17px; height: 17px; }
.sound-toggle .ico-vol-off { display: none; }
.sound-toggle.is-muted .ico-vol-on { display: none; }
.sound-toggle.is-muted .ico-vol-off { display: block; }
.sound-toggle:hover { color: var(--brand-b); border-color: var(--brand-b); }
.sound-toggle.is-muted { color: var(--text-3); }
.device.is-running .sound-toggle:not(.is-muted) {
  color: var(--brand-b);
  border-color: var(--brand-b);
  background: var(--brand-soft);
}

.device-body {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) 292px;
}
.panel { padding: 26px 22px; }
.panel + .panel { border-left: 1px solid var(--border); }
.panel-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.panel-hint {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.65;
}

/* 氛围按钮 */
.mood-list { display: grid; gap: 9px; }
.mood {
  display: grid;
  grid-template-columns: 38px 1fr 52px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: border-color .35s, background .35s, transform .3s var(--ease);
}
.mood:hover { background: var(--surface-2); transform: translateX(2px); }
.mood.is-active {
  border-color: var(--brand-b);
  background: var(--brand-soft);
}
.mood-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-2);
  transition: background .4s, color .4s;
}
.mood-ico .ico { width: 20px; height: 20px; }
.mood.is-active .mood-ico { background: var(--grad); color: #06060c; }
.mood-name { font-size: 14.5px; font-weight: 650; }
.mood-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.mood-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad);
}
.mood.is-active .mood-bar i { width: 100%; }
.device.is-running .mood.is-active .mood-bar i {
  animation: barBreath 2.6s ease-in-out infinite;
}
@keyframes barBreath {
  0%, 100% { opacity: .45; transform: scaleX(.75); transform-origin: left; }
  50%      { opacity: 1;   transform: scaleX(1);   transform-origin: left; }
}

/* 计时器 */
.panel-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 34px 22px;
}
.timer-wrap { position: relative; width: min(264px, 68vw); aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, .07);
  stroke-width: 9;
}
.ring-fill {
  fill: none;
  stroke: var(--brand-b);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 703.72;
  stroke-dashoffset: 703.72;
  transition: stroke-dashoffset .35s linear, stroke .7s var(--ease);
  filter: drop-shadow(0 0 10px var(--brand-b));
}

.timer-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.timer-time {
  font-size: clamp(38px, 6vw, 50px);
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.timer-state { font-size: 13px; color: var(--text-3); letter-spacing: .06em; }

.timer-orb {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  opacity: 0;
  transition: opacity .8s;
  pointer-events: none;
}
.device.is-running .timer-orb {
  opacity: 1;
  animation: orbBreath 4s ease-in-out infinite;
}
@keyframes orbBreath {
  0%, 100% { transform: scale(.92); opacity: .5; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.timer-ctrl { display: flex; align-items: center; gap: 14px; }

.durations {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.dur {
  min-width: 44px;
  height: 34px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-2);
  transition: background .3s, color .3s;
}
.dur:hover { color: var(--text); }
.dur.is-active { background: var(--grad); color: #06060c; }
.dur-unit { font-size: 12px; color: var(--text-3); padding-right: 10px; }

/* 混音台 */
.tracks { display: grid; gap: 19px; }
.track { display: block; }
.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.track-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.track-name .ico { color: var(--brand-b); }
.track-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand-b);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
  display: block;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--brand-b);
  box-shadow: 0 0 0 0 var(--brand-soft);
  transition: box-shadow .3s, transform .25s;
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 7px var(--brand-soft); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--brand-b);
}

.track-bar {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
}
.track-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad);
  transition: width .18s linear;
}

.meter { margin-top: 22px; }
.meter-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.meter-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-top: 10px;
}
.meter-bars i {
  flex: 1;
  height: 12%;
  border-radius: 3px;
  background: var(--grad);
  opacity: .75;
  transition: height .16s linear;
}

/* 设备底栏 */
.device-foot {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .22);
  flex-wrap: wrap;
}
.foot-stat { display: flex; flex-direction: column; gap: 2px; }
.foot-k {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.foot-v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.foot-actions { margin-left: auto; }
.foot-tip { font-size: 12.5px; color: var(--text-3); }

/* ---------- 功能网格 ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .022);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, background .45s;
}
.feat:hover {
  transform: translateY(-5px);
  border-color: var(--border-2);
  background: rgba(255, 255, 255, .042);
}
.feat-ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-b);
  margin-bottom: 20px;
  transition: background .6s, color .6s, transform .45s var(--ease);
}
.feat-ico .ico { width: 24px; height: 24px; }
.feat:hover .feat-ico { transform: scale(1.06) rotate(-4deg); }
.feat h3 {
  font-size: 18.5px;
  font-weight: 720;
  letter-spacing: -.015em;
  margin-bottom: 9px;
}
.feat p { font-size: 14.5px; color: var(--text-2); line-height: 1.72; }
.feat-bg {
  position: absolute;
  right: -40px; top: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.feat:hover .feat-bg { opacity: 1; }

/* ---------- 数字 ---------- */
.stats-section { padding: clamp(30px, 4vw, 50px) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
}
.stat { padding: 30px 26px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.stat-num i { font-style: normal; font-size: .48em; color: var(--brand-b); font-weight: 700; }
.stat-label { margin-top: 7px; font-size: 13px; color: var(--text-3); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-art {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .022);
  padding: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color .45s, transform .45s var(--ease);
}
.step:hover .step-art { border-color: var(--border-2); transform: translateY(-4px); }
.step-art svg { width: 100%; height: auto; }
.step-no {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--brand-b);
}
.step h3 { font-size: 19px; font-weight: 720; letter-spacing: -.015em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); line-height: 1.72; }

/* ---------- 评价 ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .022);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .45s var(--ease), border-color .45s, background .45s;
}
.review:hover {
  transform: translateY(-5px);
  border-color: var(--border-2);
  background: rgba(255, 255, 255, .042);
}
.quote-ico {
  width: 28px; height: 28px;
  color: var(--brand-a);
  opacity: .75;
}
.review-text { font-size: 15px; line-height: 1.78; color: var(--text-2); flex: 1; }
.review-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.review-who .av { width: 40px; height: 40px; margin: 0; font-size: 15px; }
.review-who b { display: block; font-size: 14.5px; font-weight: 700; }
.review-who em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 定价 ---------- */
.billing {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 26px;
}
.bill {
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-2);
  transition: background .35s, color .35s;
}
.bill.is-active { background: var(--grad); color: #06060c; }
.save {
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  margin-left: 5px;
}
.bill:not(.is-active) .save { background: var(--brand-soft); color: var(--brand-b); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.price {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .022);
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), border-color .45s;
}
.price:hover { transform: translateY(-5px); border-color: var(--border-2); }
.price.is-featured {
  border-color: var(--brand-a);
  background: linear-gradient(180deg, var(--brand-soft), rgba(255, 255, 255, .02));
  box-shadow: 0 26px 70px -40px var(--brand-a);
}
.price-badge {
  position: absolute;
  top: -13px; left: 26px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--grad);
  color: #06060c;
  font-size: 12px;
  font-weight: 750;
}
.price-name { font-size: 18px; font-weight: 750; letter-spacing: -.015em; }
.price-desc { margin-top: 6px; font-size: 13.5px; color: var(--text-3); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.price-amount .cur { font-size: 20px; font-weight: 700; color: var(--text-2); }
.price-amount .num {
  font-size: clamp(38px, 4.6vw, 50px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-amount .per { font-size: 13.5px; color: var(--text-3); margin-left: 5px; }

.price-list { display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-2);
}
.price-list .ico { margin-top: 4px; color: var(--brand-b); }
.price-list li.off { color: var(--text-3); opacity: .55; }
.price-list li.off .ico { color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 840px; }
.faq-list { display: grid; gap: 11px; }
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .022);
  transition: border-color .35s, background .35s;
}
.faq[open] { border-color: var(--border-2); background: rgba(255, 255, 255, .04); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
}
.faq .chev {
  width: 20px; height: 20px;
  color: var(--text-3);
  transition: transform .4s var(--ease), color .3s;
  flex-shrink: 0;
}
.faq[open] .chev { transform: rotate(180deg); color: var(--brand-b); }
.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.78;
  max-width: 66ch;
}

/* ---------- 底部 CTA ---------- */
.cta-section { padding-bottom: clamp(60px, 8vw, 96px); }
.cta {
  position: relative;
  text-align: center;
  padding: clamp(46px, 6vw, 80px) clamp(24px, 4vw, 60px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 130%; height: 200%;
  background: radial-gradient(ellipse at center, var(--brand-soft), transparent 62%);
  pointer-events: none;
  transition: background .7s var(--ease);
}
.cta-moon {
  position: relative;
  display: inline-block;
  width: 62px; height: 62px;
  margin-bottom: 22px;
}
.cta-moon svg { width: 100%; height: 100%; }
.cta h2 {
  position: relative;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 880;
  line-height: 1.16;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.cta p {
  position: relative;
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 44ch;
  margin-inline: auto;
}
.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 32px;
}
.cta-note {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.cta-note span { display: inline-flex; align-items: center; gap: 7px; }
.cta-note .ico { color: var(--brand-b); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(48px, 6vw, 70px);
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.footer-slogan {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.8;
  max-width: 34ch;
}
.socials { display: flex; gap: 9px; margin-top: 22px; }
.social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: border-color .3s, color .3s, transform .3s var(--ease), background .3s;
}
.social .ico { width: 18px; height: 18px; }
.social:hover {
  color: var(--brand-b);
  border-color: var(--brand-b);
  background: var(--brand-soft);
  transform: translateY(-3px);
}

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 5px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-3);
  transition: color .25s, transform .25s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--text); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.footer-made { display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 0 rgba(40, 200, 64, .6);
  animation: pulse 2.4s infinite;
}

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.feat-grid .reveal:nth-child(2) { transition-delay: .06s; }
.feat-grid .reveal:nth-child(3) { transition-delay: .12s; }
.feat-grid .reveal:nth-child(4) { transition-delay: .04s; }
.feat-grid .reveal:nth-child(5) { transition-delay: .1s; }
.feat-grid .reveal:nth-child(6) { transition-delay: .16s; }
.reviews .reveal:nth-child(2) { transition-delay: .1s; }
.reviews .reveal:nth-child(3) { transition-delay: .2s; }
.price-grid .reveal:nth-child(2) { transition-delay: .1s; }
.price-grid .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(2) { transition-delay: .12s; }
.steps .reveal:nth-child(3) { transition-delay: .24s; }

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1180px) {
  .device-body { grid-template-columns: 216px minmax(0, 1fr) 254px; }
  .panel { padding: 22px 18px; }
  .foot-tip { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-sub { max-width: none; }

  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 38px; }
  .price-grid { grid-template-columns: 1fr; gap: 16px; }
  .price.is-featured { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }

  /* 演示区改为两段式 */
  .device-body { grid-template-columns: 1fr 1fr; }
  .panel-mixer {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .panel-moods { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .shell { width: calc(100% - 32px); }
  .section { padding: 66px 0; }

  /* 移动菜单 */
  .nav { height: 62px; }
  .nav-actions { display: none; }
  .burger { display: grid; }
  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 22px;
    background: rgba(8, 8, 15, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .32s var(--ease), transform .42s var(--ease), visibility .32s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open {
    background: rgba(8, 8, 15, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .nav-links > a {
    padding: 15px 4px;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-links > a:hover { background: none; }
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  /* Hero */
  .hero { padding-top: calc(62px + 40px); }
  .hero-title { font-size: clamp(34px, 10.5vw, 48px); }
  .hero-title .line { overflow: visible; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { gap: 12px; font-size: 13px; }
  .trust-divider { display: none; }
  .logos-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logos { gap: 22px; }
  .logo-item { font-size: 15px; }

  /* 演示区单列 */
  .device { border-radius: var(--radius); }
  .device-body { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--border); }
  .panel-timer { padding: 28px 16px; gap: 22px; }
  .timer-wrap { width: min(232px, 66vw); }
  .panel-hint { display: none; }
  .mood-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mood { grid-template-columns: 34px 1fr; gap: 9px; padding: 11px; }
  .mood-ico { width: 34px; height: 34px; }
  .mood-bar { display: none; }
  .mood-name { font-size: 13.5px; }

  .device-foot { gap: 18px; padding: 14px 16px; }
  .foot-stat { flex: 1 1 30%; }

  /* 其它区块 */
  .feat-grid { grid-template-columns: 1fr; gap: 14px; }
  .feat { padding: 24px 20px 26px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 14px; }
  .review { padding: 24px 20px; }
  .price { padding: 26px 20px; }
  .cta { border-radius: var(--radius); }
  .cta-actions .btn { flex: 1 1 100%; }
  .cta-note { gap: 12px 18px; font-size: 12.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col a { font-size: 13.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 26px); }
  .hero-title { font-size: clamp(30px, 10vw, 40px); }
  .pill { font-size: 11.5px; gap: 8px; }
  .pill-sep { display: none; }
  .mood-list { grid-template-columns: 1fr; }
  .durations { flex-wrap: wrap; justify-content: center; }
  .dur-unit { display: none; }
  .timer-wrap { width: min(210px, 62vw); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .line > span { transform: none !important; }
  .ring-fill { transition: none !important; }
}
