/* ==========================================================
   交互效果演示 · 样式
   分区：变量 / 基础 / 布局 / 搜索 / 卡片 / 各效果 / 响应式
   ========================================================== */

:root[data-theme="dark"] {
  --bg: #070910;
  --bg-2: #0b0f17;
  --panel: #0f131c;
  --panel-2: #141926;
  --line: #1e2635;
  --line-2: #232c3d;
  --txt: #e8ecf5;
  --muted: #8e9ab0;
  --accent: #7aa2ff;
  --accent-2: #5eead4;
  --card-shadow: 0 30px 60px -50px #000;
  --rail-bg: rgba(9, 12, 19, .72);
}

:root[data-theme="light"] {
  --bg: #eef1f7;
  --bg-2: #e7ebf3;
  --panel: #ffffff;
  --panel-2: #f6f8fc;
  --line: #dbe2ee;
  --line-2: #cfd8e6;
  --txt: #121822;
  --muted: #5c6879;
  --accent: #2f5fe0;
  --accent-2: #0d9488;
  --card-shadow: 0 24px 50px -42px rgba(20, 30, 50, .5);
  --rail-bg: rgba(255, 255, 255, .74);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 背景 ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}

.bg-b1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #24458e; animation: drift1 26s ease-in-out infinite; }
.bg-b2 { width: 40vw; height: 40vw; right: -10vw; top: 18vh; background: #3d2a6d; animation: drift2 32s ease-in-out infinite; }
.bg-b3 { width: 34vw; height: 34vw; left: 24vw; bottom: -16vw; background: #0f5d5a; animation: drift3 29s ease-in-out infinite; }

:root[data-theme="light"] .bg-blob { opacity: .22; }

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

:root[data-theme="light"] .bg-grain { opacity: .3; mix-blend-mode: multiply; }

@keyframes drift1 { 50% { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate3d(-5vw, 7vh, 0) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate3d(4vw, -6vh, 0) scale(1.14); } }

/* ---------- 布局 ---------- */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 14px 22px;
  border-right: 1px solid var(--line);
  background: var(--rail-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  text-decoration: none;
}

.rail-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #7aa2ff, #5eead4);
  color: #0a0f18;
  font-size: 15px;
  font-weight: 700;
}

.rail-name { display: flex; flex-direction: column; font-weight: 650; line-height: 1.2; }
.rail-name small { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.rail-nav { display: flex; flex-direction: column; gap: 2px; }

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.rail-link span { font-size: 10.5px; font-variant-numeric: tabular-nums; opacity: .65; }
.rail-link:hover { color: var(--txt); background: var(--panel-2); }
.rail-link.is-active { color: var(--txt); background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }

.rail-foot { margin-top: auto; }

.theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--txt);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.theme-btn:hover { border-color: var(--line-2); background: var(--panel-2); }
.theme-icon { font-size: 15px; line-height: 1; }

.main {
  min-width: 0;
  padding: 0 clamp(16px, 3vw, 40px) 56px;
}

/* ---------- 首屏 ---------- */
.hero { padding: clamp(30px, 6vw, 74px) 0 clamp(22px, 3vw, 32px); max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .08em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.03em;
}

.lede { max-width: 62ch; color: var(--muted); font-size: clamp(14px, 1.6vw, 15.5px); }

/* ---------- 搜索框（B 站风格） ---------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 4px 6px 4px 4px;
  max-width: 560px;
  height: 48px;
  border-radius: 11px;
  background: #eff1f3;
  box-shadow: 0 10px 30px -22px #000, inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.searchbar:hover { background: #ffffff; }
.searchbar:focus-within { background: #ffffff; box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .45), 0 0 0 3px rgba(122, 162, 255, .35); }

.search-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #18191c;
  font-size: 14.5px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder { color: #8a9099; }
.search-input:focus { background: #e9ebee; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4a5160;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.search-btn:hover { background: #e6e8ec; color: #18191c; }
.search-go { color: #1f2430; }

.search-meta { margin-top: 10px; color: var(--muted); font-size: 12.5px; min-height: 20px; }
.search-meta strong { color: var(--txt); font-weight: 650; }

/* ---------- 卡片与舞台 ---------- */
.cards { display: flex; flex-direction: column; gap: 18px; }

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 60%, var(--bg-2) 100%);
  box-shadow: var(--card-shadow);
  padding: clamp(14px, 2vw, 20px);
  scroll-margin-top: 84px;
}

.card.is-hidden { display: none; }

.card-head { display: flex; gap: 14px; align-items: flex-start; padding: 4px 4px 16px; }

.card-idx {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.card-head-main h2 { font-size: 16.5px; }
.card-head-main p { margin-top: 3px; color: var(--muted); font-size: 12.8px; }

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line-2);
  border-radius: 15px;
  overflow: hidden;
  isolation: isolate;
}

.stage-tip { color: rgba(255, 255, 255, .55); font-size: 11.5px; letter-spacing: .02em; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 4px 2px; }

.ctrl { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(96px, 18vw, 168px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line-2) var(--fill, 50%));
  outline: none;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .6);
  cursor: grab;
}

.range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
}

.ctrl-val { min-width: 42px; color: var(--txt); font-size: 12px; font-variant-numeric: tabular-nums; }

.ghost-btn {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.ghost-btn:hover { color: var(--txt); border-color: var(--accent); background: var(--panel-2); }

/* ==========================================================
   01 液态玻璃
   ========================================================== */
.glass-stage {
  min-height: 330px;
  background: #0d1119;
  touch-action: none;
}

.glass-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .055) 25%, rgba(255, 255, 255, .055) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .055) 75%, rgba(255, 255, 255, .055) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .055) 25%, rgba(255, 255, 255, .055) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .055) 75%, rgba(255, 255, 255, .055) 76%, transparent 77%, transparent);
  background-size: 46px 46px;
  transform: rotate(var(--grid-rot, 0deg));
}

.glass-blob { position: absolute; border-radius: 50%; filter: blur(34px); animation: gfloat 14s ease-in-out infinite; }
.gb1 { width: 220px; height: 220px; background: #4f7cff; left: 4%; top: 6%; }
.gb2 { width: 190px; height: 190px; background: #22d3ee; right: 8%; top: 18%; animation-delay: -4s; }
.gb3 { width: 240px; height: 240px; background: #a855f7; left: 34%; bottom: -14%; animation-delay: -8s; }

@keyframes gfloat {
  50% { transform: translate3d(18px, -22px, 0) scale(1.12); }
}

.glass-card {
  --g-blur: 12px;
  --g-alpha: .12;
  position: relative;
  width: min(360px, 88%);
  padding: 22px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, var(--g-alpha));
  backdrop-filter: blur(var(--g-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(150%);
  box-shadow:
    inset 2px -2px 1px -1px rgba(255, 255, 255, .75),
    inset -2px 2px 1px -1px rgba(255, 255, 255, .75),
    inset 8px -8px 18px -14px rgba(255, 255, 255, .5),
    inset -8px 8px 18px -14px rgba(255, 255, 255, .5),
    inset 0 0 2px rgba(0, 0, 0, .45),
    0 22px 44px -20px rgba(0, 0, 0, .7);
  color: #f4f8ff;
  cursor: grab;
  transition: box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
}

.glass-card:active { cursor: grabbing; }
.glass-card:hover { border-color: rgba(255, 255, 255, .3); }

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, .32) 0%, transparent 34%, transparent 66%, rgba(255, 255, 255, .2) 100%);
  opacity: .55;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glass-kicker { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.glass-card h3 { font-size: 19px; margin: 0 0 6px; }
.glass-text { margin: 0 0 16px; font-size: 12.8px; line-height: 1.7; color: rgba(255, 255, 255, .76); }

.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: inset 2px -2px 2px -1px rgba(255, 255, 255, .6), inset -2px 2px 2px -1px rgba(255, 255, 255, .6), 0 8px 18px -12px #000;
  transition: transform .18s ease, background .18s ease;
}

.glass-btn:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.glass-btn:active { transform: translateY(1px) scale(.99); }

.glass-btn-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f2f6ff;
  color: #11182a;
}

@keyframes gfloat2 { 50% { transform: translate3d(-16px, 14px, 0) scale(1.08); } }

/* ==========================================================
   02 机械旋钮
   ========================================================== */
.knob-stage {
  min-height: 340px;
  gap: 4px;
  background: radial-gradient(120% 110% at 30% 0%, #eef3f6 0%, #b8c6d0 60%, #9fb0bc 100%);
}

.knob-scale { transform: scale(var(--knob-scale, 1)); transform-origin: center; margin: 6px 0 -10px; }

.metal-knob {
  position: relative;
  width: 262px;
  height: 262px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-image: linear-gradient(90deg, #dfe4e1, #bfc9ca);
  box-shadow: 0 0 2px #9fa5a3, 0 26px 40px -28px rgba(20, 40, 50, .8);
  cursor: ns-resize;
  touch-action: none;
}

.metal-bg {
  position: absolute;
  width: 325px;
  height: 325px;
  border-radius: 50%;
  filter: blur(8px);
  background-image: linear-gradient(90deg, #d3dfdd, #aec2ca);
  z-index: 0;
}

.lamp-ring { position: absolute; z-index: 3; width: 265px; height: 265px; pointer-events: none; }

.lamp-ring > div {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  justify-content: center;
  width: 30px;
  height: 220px;
  transform: translate(-50%, -50%) rotate(calc(-125deg + 12.6deg * var(--i)));
  transition: transform .5s ease;
}

.lamp-ring span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6a7d83;
  transition: background .18s ease, box-shadow .18s ease;
}

.lamp-ring span.on {
  background: #fff;
  box-shadow: 0 0 5px #fff, 0 0 12px rgba(190, 235, 255, .9);
}

.metal-shell {
  position: relative;
  z-index: 2;
  width: 245px;
  height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #c6ccca;
  background-image: linear-gradient(90deg, #eaefed, #95a7ae);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .6), inset -1px -1px 1px rgba(170, 184, 183, .6);
}

.metal-bottom {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #c6ccca;
  background-image: linear-gradient(90deg, #dae1de, #a4b6c1);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .5), inset -1px -1px 1px rgba(156, 170, 169, .6);
}

.metal-btn {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background-image: linear-gradient(90deg, #dde3df, #acbfc5);
  box-shadow:
    -11px 0 14px rgba(255, 255, 255, .4),
    4px 0 8px rgba(2, 29, 37, .1),
    22px 0 28px rgba(2, 29, 37, .6),
    inset -2px 0 2px rgba(1, 22, 25, .4),
    inset 2px 0 2px rgba(255, 255, 255, .4);
}

.metal-face { position: absolute; inset: 0; rotate: 0deg; }

.metal-pointer {
  position: absolute;
  left: 50%;
  top: 17%;
  width: 8px;
  height: 25px;
  border-radius: 99px;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(0deg, rgba(255, 255, 255, .6), #fff, rgba(255, 255, 255, .6));
  box-shadow: 0 0 5px #fff;
  transition: background .3s ease, box-shadow .3s ease;
}

.metal-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 20px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .5);
  filter: blur(4px);
}

.metal-pointer.off { background: #6a7d83; box-shadow: none; }
.metal-pointer.off::after { background: transparent; }

.knob-readout { display: flex; align-items: baseline; gap: 6px; color: #2c3a42; }
.knob-num { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.knob-unit { font-size: 11.5px; color: #4a5b66; }
.knob-stage .stage-tip { color: #4a5b66; }

/* ==========================================================
   03 拟态控件
   ========================================================== */
.neu-stage {
  min-height: 330px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 44px);
  background: radial-gradient(120% 120% at 26% 4%, #f4f8fb 0%, #dfe7ee 55%, #c2d0da 100%);
  color: #1d2a33;
}

.neu-knob { position: relative; cursor: grab; touch-action: none; }
.neu-knob:active { cursor: grabbing; }

.neu-around {
  width: 196px;
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-image: linear-gradient(0deg, #f5f8fa, #9da4a8);
  box-shadow: 0 26px 40px -30px rgba(30, 50, 65, .8);
}

.neu-handle {
  width: 152px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c5d1da;
  box-shadow: 0 0 10px rgba(0, 0, 0, .35), 0 10px 10px rgba(0, 0, 0, .18), inset 0 0 16px rgba(0, 0, 0, .7), inset 0 0 24px rgba(0, 0, 0, .6), inset 0 0 48px rgba(0, 0, 0, .18);
  perspective: 320px;
}

.neu-btnwrap {
  width: 102px;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-image: linear-gradient(0deg, #86969c, #eff1f1);
  box-shadow: 0 9px 14px rgba(0, 0, 0, .45), 0 19px 8px -2px rgba(0, 0, 0, .18), 0 33px 8px rgba(0, 0, 0, .35), 0 -12px 10px rgba(255, 255, 255, .55), inset 0 3px 3px rgba(255, 255, 255, .6), inset 0 -3px 3px rgba(89, 91, 92, .5);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
  transform-style: preserve-3d;
}

.neu-inside {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  rotate: 0deg;
  background-image: linear-gradient(180deg, #adb9bf, #d4dbdd);
  box-shadow: inset 0 3px 6px rgba(152, 160, 163, .5), inset 0 -3px 6px rgba(238, 244, 246, .5);
}

.neu-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7ecef;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .3), inset 0 -2px 2px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
}

.neu-dot:nth-child(1) { left: 50%; top: 12%; }
.neu-dot:nth-child(2) { left: 88%; top: 50%; }
.neu-dot:nth-child(3) { left: 50%; top: 88%; }
.neu-dot:nth-child(4) { left: 12%; top: 50%; }

.neu-inside.is-lit { box-shadow: inset 0 3px 6px rgba(152, 160, 163, .5), inset 0 -3px 6px rgba(238, 244, 246, .5), 0 0 18px rgba(240, 180, 90, .8); }
.neu-inside.is-lit .neu-dot { background: #f6c877; box-shadow: 0 0 8px #f3b35a; }

.neu-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.neu-readout { display: flex; align-items: baseline; gap: 5px; }
.neu-readout span { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; color: #23313a; }
.neu-readout small { font-size: 11.5px; color: #4d5d68; }

.neu-keys { display: flex; gap: 10px; }

.neu-key {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 13px;
  background: #e3e5e7;
  color: #3d474e;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 6px 6px 12px #b1b4b5, -6px -6px 12px #fafafd;
  transition: box-shadow .12s ease, transform .12s ease, color .2s ease;
}

.neu-key.is-inset { box-shadow: inset 5px 5px 10px #b1b4b5, inset -5px -5px 10px #fafafd; }

.neu-key:active { box-shadow: inset 5px 5px 10px #b1b4b5, inset -5px -5px 10px #fafafd; transform: scale(.97); }
.neu-key.is-inset:active { box-shadow: 4px 4px 10px #b1b4b5, -4px -4px 10px #fafafd; }
.neu-key.is-on { color: #b4701f; text-shadow: 0 0 6px rgba(240, 170, 80, .8); }

.neu-stage .stage-tip { color: #4d5d68; }

/* ==========================================================
   04 按钮
   ========================================================== */
.btn-stage { min-height: 240px; background: linear-gradient(160deg, #171b23, #0e1117); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 30px); }

.pro-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #05070a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.pro-label, .pro-icon { position: relative; z-index: 1; }

.pro-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  transform: translate(-132%, 86%);
  transition: transform .42s cubic-bezier(.4, 0, .2, 1), border-radius .42s ease;
  pointer-events: none;
}

.pro-btn:hover .pro-sweep { transform: translate(0, 0) scale(1.08); border-radius: 0; }
.pro-btn:active { transform: translateY(3px); }
.pro-btn.is-done { background: #0f766e; }
.pro-btn.is-done .pro-sweep { display: none; }

.sheen-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(135deg, #6d8dff, #4fd6c4);
  color: #06131a;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 14px 26px -18px #4fd6c4;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sheen-btn span { position: relative; z-index: 1; }

.sheen {
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, .65) 48%, transparent 62%);
  transform: translateX(-110%) skewX(-16deg);
  transition: transform .6s ease;
  pointer-events: none;
}

.sheen-btn:hover .sheen { transform: translateX(110%) skewX(-16deg); }
.sheen-btn:hover { box-shadow: 0 18px 34px -18px #4fd6c4; }
.sheen-btn:active { transform: scale(.975); }
.sheen-btn.is-pop { animation: pop .28s ease; }

@keyframes pop { 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

.btn-note { color: rgba(255, 255, 255, .55); font-size: 12px; min-height: 18px; }
.btn-note strong { color: #9fe9dc; font-weight: 650; }

/* ==========================================================
   05 启动按钮
   ========================================================== */
.launch-stage { min-height: 320px; background: radial-gradient(90% 100% at 50% 18%, #3a3e46 0%, #1a1c21 58%, #101216 100%); }

.launch {
  position: relative;
  width: 188px;
  height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background-image: linear-gradient(0deg, #5e5e61 20%, #212123);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .3),
    inset 0 3px 5px rgba(255, 255, 255, .3),
    inset 0 -6px 2px rgba(255, 255, 255, .05),
    inset 0 -3px 0 rgba(0, 0, 0, .15),
    inset -2px 5px 0 rgba(0, 0, 0, .3),
    inset 2px 5px 0 rgba(0, 0, 0, .3),
    0 -11px 22px 2px rgba(255, 255, 255, .09),
    0 6px 22px 2px rgba(0, 0, 0, .5),
    0 2px 6px #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease;
}

.launch:active { transform: scale(.97); }

.launch-shadow {
  position: absolute;
  width: 140px;
  height: 40px;
  border-radius: 50%;
  background: rgba(71, 164, 239, .9);
  filter: blur(20px) brightness(1.1);
  opacity: 0;
  transition: opacity .9s ease;
}

.launch-mid {
  position: relative;
  width: 155px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 5px #000, 0 1px 2px rgba(255, 255, 255, .55);
}

.launch-mid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 50%;
  box-shadow: inset 0 -18px 27px rgba(0, 0, 0, .8);
  pointer-events: none;
}

.launch-spot {
  position: absolute;
  width: 160px;
  height: 30px;
  background: #66a7fb;
  filter: blur(15px) brightness(1.5);
  opacity: 0;
  transition: opacity .8s ease;
}

.launch-btn-face {
  position: relative;
  z-index: 2;
  width: 146px;
  height: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #424242;
  box-shadow: 0 -1px 2px rgba(255, 255, 255, .5), inset 0 -13px 26px rgba(0, 0, 0, .8);
  transition: transform .2s ease, box-shadow .2s ease;
}

.launch-light {
  position: absolute;
  width: 160px;
  height: 30px;
  background: rgba(104, 151, 255, .6);
  filter: blur(20px) brightness(1.1);
  opacity: 0;
  transition: opacity .8s ease;
}

.launch-center {
  position: relative;
  z-index: 3;
  width: 125px;
  height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: #232323;
  color: #595959;
}

.launch-icon { transition: color 1.2s ease, filter 1.2s ease; }
.launch-icon svg { margin-top: -2px; }

.launch-word { display: flex; margin-top: -2px; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.launch-word i { font-style: normal; }

.launch-status {
  margin-top: 1px;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: #7a7a7a;
  transition: color .4s ease;
}

.launch.is-on .launch-shadow,
.launch.is-on .launch-spot,
.launch.is-on .launch-light { opacity: .9; animation: spotSpin 1.9s linear infinite; }

.launch.is-on .launch-center { color: #bbe7e9; }
.launch.is-on .launch-icon { color: #bbe7e9; filter: drop-shadow(0 0 5px rgba(120, 220, 235, .85)); }
.launch.is-on .launch-word i { animation: waveText 1.8s calc(var(--i) * -0.13s) infinite; }
.launch.is-on .launch-status { color: #9bd8dd; }

@keyframes spotSpin { to { transform: rotate(360deg); } }

@keyframes waveText {
  0% { opacity: .5; }
  50% { opacity: 1; color: #e8fdff; text-shadow: 0 0 10px rgba(150, 235, 250, .7); }
  100% { opacity: .5; }
}

/* ==========================================================
   06 水滴
   ========================================================== */
.drop-stage {
  min-height: 320px;
  background: radial-gradient(80% 90% at 50% 12%, #16323f 0%, #0b141c 62%, #070d13 100%);
  cursor: crosshair;
  touch-action: manipulation;
}

.drop-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); color: rgba(255, 255, 255, .32); font-size: 11.5px; letter-spacing: .16em; }

.drop {
  position: relative;
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  border-radius: 30% 70% 52% 48% / 50% 60% 40% 50%;
  background: rgba(190, 232, 255, .08);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  box-shadow:
    20px 20px 30px rgba(0, 0, 0, .4),
    inset 10px 10px 16px rgba(255, 255, 255, .16),
    inset -12px -12px 20px rgba(0, 0, 0, .45),
    0 0 40px -12px rgba(120, 210, 255, .45);
  cursor: pointer;
  animation: wobble 1.15s ease-in-out infinite alternate;
  transition: border-radius .45s ease;
}

.drop:hover { border-radius: 39% 61% 52% 48% / 57% 55% 45% 43%; }

.drop-spec { position: absolute; background: rgba(255, 255, 255, .92); border-radius: 30% 70% 52% 48% / 50% 60% 40% 50%; transition: left .35s ease, top .35s ease; }
.sp1 { left: 32px; top: 28px; width: 16px; height: 16px; }
.sp2 { left: 28px; top: 58px; width: 22px; height: 22px; background: rgba(255, 255, 255, .98); }
.drop:hover .sp1 { left: 40px; top: 34px; }
.drop:hover .sp2 { left: 32px; top: 66px; }

.drop.is-poke { animation: poke .55s ease; }

@keyframes wobble {
  0% { transform: translateY(0) scale(1, 1); border-radius: 30% 70% 52% 48% / 50% 60% 40% 50%; }
  100% { transform: translateY(-6px) scale(1.02, .97); border-radius: 36% 64% 46% 54% / 56% 52% 48% 44%; }
}

@keyframes poke {
  0% { transform: scale(1); }
  35% { transform: scale(1.09, .93); }
  70% { transform: scale(.96, 1.05); }
  100% { transform: scale(1); }
}

.ripple {
  position: absolute;
  border: 1px solid rgba(180, 228, 255, .55);
  border-radius: 50%;
  pointer-events: none;
  animation: rippleOut .95s ease-out forwards;
}

@keyframes rippleOut {
  from { width: 12px; height: 12px; margin: -6px 0 0 -6px; opacity: .9; }
  to { width: 210px; height: 210px; margin: -105px 0 0 -105px; opacity: 0; }
}

.mini-drop {
  position: absolute;
  border-radius: 30% 70% 52% 48% / 50% 60% 40% 50%;
  background: rgba(180, 226, 255, .12);
  border: 1px solid rgba(190, 235, 255, .4);
  box-shadow: inset 4px 4px 8px rgba(255, 255, 255, .25), inset -4px -4px 8px rgba(0, 0, 0, .35), 0 0 22px -8px rgba(140, 220, 255, .6);
  pointer-events: none;
  animation: miniIn .5s cubic-bezier(.2, .8, .3, 1.2) both, miniWob 1.4s 0.5s ease-in-out infinite alternate;
}

@keyframes miniIn { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes miniWob { to { transform: translateY(-4px) scale(1.03, .97); } }

/* ==========================================================
   07 导航栏
   ========================================================== */
.nav-stage {
  min-height: 260px;
  gap: 16px;
  background: radial-gradient(120% 120% at 20% 0%, #f4f7fb 0%, #dfe6ef 60%, #cbd6e2 100%);
}

.seg-row {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 20px -16px rgba(20, 40, 60, .7), inset 0 0 0 1px rgba(20, 40, 60, .07);
}

.seg {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4a5765;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.seg:hover { color: #131a22; }
.seg.is-on { background: #131a22; color: #fff; }

.nav-preview { width: 100%; max-width: 620px; }

.pv-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: #13181f;
  box-shadow: 0 20px 40px -28px rgba(25, 45, 65, .75), inset 0 0 0 1px rgba(20, 40, 60, .06);
}

.pv-logo { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; }
.pv-mark { color: #4f7cff; font-size: 15px; }

.pv-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.pv-link {
  position: relative;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #46505d;
  font-size: 12.8px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.pv-link:hover { color: #10161d; background: #f1f4f8; }
.pv-link.is-on { color: #10161d; font-weight: 650; }

.pv-caret { display: inline-block; font-size: 9px; opacity: .7; transition: transform .2s ease; }
.pv-link[aria-expanded="true"] .pv-caret { transform: rotate(180deg); }

.pv-cta {
  flex: none;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: #10161d;
  color: #fff;
  font-size: 12.5px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.pv-cta:hover { transform: translateY(-1px); background: #22303f; }

/* 变体 A：极简 —— 悬停描边下移 */
.nav-a .pv-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-a .pv-link:hover::after, .nav-a .pv-link.is-on::after { transform: scaleX(1); }

/* 变体 B：下划线 —— 更粗的渐变下划线 + 淡背景 */
.nav-b .pv-link { border-radius: 0; }
.nav-b .pv-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4f7cff, #22d3ee);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-b .pv-link:hover::after, .nav-b .pv-link.is-on::after { transform: scaleX(1); }
.nav-b .pv-cta { background: linear-gradient(135deg, #4f7cff, #22d3ee); color: #06131a; }

/* 变体 C：胶囊 */
.nav-c .pv-nav { background: #f3f6fb; box-shadow: inset 0 0 0 1px rgba(20, 40, 60, .07); }
.nav-c .pv-links { gap: 2px; padding: 3px; border-radius: 999px; background: #e7edf6; }
.nav-c .pv-link { border-radius: 999px; padding: 6px 13px; }
.nav-c .pv-link.is-on { background: #10161d; color: #fff; }
.nav-c .pv-link:hover:not(.is-on) { background: #dbe4f0; }
.nav-c .pv-link::after { display: none; }

.pv-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-30%);
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 44px -24px rgba(20, 40, 60, .7), inset 0 0 0 1px rgba(20, 40, 60, .07);
  z-index: 5;
  animation: dropIn .18s ease;
}

.pv-drop[hidden] { display: none; }

@keyframes dropIn { from { opacity: 0; transform: translate(-30%, -6px); } to { opacity: 1; transform: translate(-30%, 0); } }

.pv-drop-link {
  padding: 8px 10px;
  border-radius: 8px;
  color: #3a4552;
  font-size: 12.5px;
  text-decoration: none;
}

.pv-drop-link:hover { background: #f1f4f8; color: #10161d; }

/* ==========================================================
   08 发光输入框
   ========================================================== */
.glow-stage { min-height: 250px; gap: 16px; background: radial-gradient(90% 120% at 50% 0%, #171d2a 0%, #0b0f16 70%); }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.glow-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  padding: 6px 6px 6px 8px;
  border-radius: 15px;
}

.glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 17px;
  background: conic-gradient(from var(--ang), #7aa2ff, #5eead4, #c084fc, #ffd479, #7aa2ff);
  opacity: 0;
  filter: blur(9px);
  transition: opacity .35s ease;
  pointer-events: none;
}

.glow-form:focus-within .glow-ring { opacity: .85; animation: spinAng 6s linear infinite; }

@keyframes spinAng { to { --ang: 360deg; } }

.glow-input {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #263048;
  border-radius: 12px;
  background: #0e131c;
  color: #e8ecf5;
  font-size: 14px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.glow-input::placeholder { color: #6b7789; }
.glow-form:focus-within .glow-input { border-color: #4b6fd6; box-shadow: 0 0 0 1px rgba(122, 162, 255, .35) inset; }

.glow-send {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #7aa2ff, #5eead4);
  color: #06131a;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.glow-send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.glow-send:active { transform: scale(.96); }

.glow-out { display: flex; flex-direction: column; gap: 8px; width: min(520px, 100%); }

.glow-bubble {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #232c3d;
  border-radius: 12px;
  background: #121826;
  color: #cfd7e6;
  font-size: 12.8px;
  line-height: 1.6;
  animation: bubbleIn .3s ease;
}

.glow-bubble::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7aa2ff, #5eead4);
}

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

/* ---------- 空态与页脚 ---------- */
.empty-note { margin: 22px 4px; color: var(--muted); font-size: 13.5px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .app { grid-template-columns: minmax(0, 1fr); }

  .rail {
    min-width: 0;
    max-width: 100vw;
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-brand { padding: 0; flex: none; }
  .rail-name { font-size: 13px; }
  .rail-name small { display: none; }
  .rail-mark { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }

  .rail-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-link { flex: none; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
  .rail-link span { display: none; }
  .rail-link.is-active { box-shadow: inset 0 -2px 0 var(--accent); background: transparent; }

  .rail-foot { margin-left: auto; }
  .theme-btn { width: auto; padding: 6px 10px; }
  .theme-label { display: none; }

  .main { padding-top: 0; }
  .card { scroll-margin-top: 64px; }
  .hero { padding-top: 26px; }
}

@media (max-width: 720px) {
  .knob-stage { min-height: 300px; }
  .knob-scale { --knob-scale: .78; margin: 10px 0 -18px; }
  .neu-stage { flex-direction: column; }
  .neu-around { width: 168px; height: 168px; }
  .neu-handle { width: 128px; height: 128px; }
  .neu-btnwrap { width: 88px; height: 88px; }
  .neu-inside { width: 74px; height: 74px; }
  .stage { padding: 18px 14px; }
  .glass-card { padding: 18px; }
  .pv-nav { flex-wrap: wrap; gap: 10px; }
  .pv-links { margin-left: 0; width: 100%; justify-content: space-between; }
  .pv-cta { margin-left: auto; }
  .pv-drop { left: 0; transform: none; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 420px) {
  body { font-size: 14px; }
  .searchbar { height: 46px; }
  .search-input { font-size: 14px; }
  .pro-btn, .sheen-btn { font-size: 13px; }
  .launch { width: 168px; height: 168px; }
  .launch-mid { width: 140px; height: 140px; }
  .launch-btn-face { width: 132px; height: 132px; }
  .launch-center { width: 114px; height: 114px; }
  .launch-word { font-size: 16px; }
  .drop { width: 132px; height: 132px; }
}

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