/* 魔芋音乐 · 夜苔电波
   色表与 designs/VISUAL.md 第 2 节一一对应。
   纪律：lime 是唯一强调色；红只给「正在录制 / 直播中」，全站出现不超过 3 次；
   毛玻璃只给真正悬浮在内容之上的东西（顶栏、mock 里的底栏），卡片一律实底。 */

:root {
  --night: #080d09;
  --night-1: #0c130e;
  --night-2: #121b14;
  --night-3: #1a261c;

  --lime: #aef25e;
  --lime-lt: #cefba1;
  --lime-dp: #7fcf2c;

  --ink: #edf4e9;
  --ink-2: #a9bca9;
  --ink-3: #6e8270;
  --ink-4: #48584a;

  --live: #ff5f52;

  --hair: rgba(255, 255, 255, 0.05);
  --edge: rgba(255, 255, 255, 0.09);
  --glass: rgba(18, 27, 20, 0.72);

  --max: 1100px;
  --nav-h: 68px;
  --r-card: 22px;
  --r-cover: 16px;
  --r-btn: 22px;
  --r-nav: 31px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

/* display:flex 会盖掉 [hidden] 的 UA 样式，这里一刀切 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--night);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

/* 底：极淡的苔色，不是彩色光晕 */
body {
  background:
    radial-gradient(1100px 460px at 62% -8%, rgba(174, 242, 94, 0.055), transparent 62%),
    var(--night);
}

body.legal {
  background: var(--night);
}

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

a {
  color: var(--lime);
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--lime);
  color: #08110a;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 30;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 40px));
}

.press {
  transition: transform 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

.press:active {
  transform: scale(0.97);
}

/* ---------- 顶栏：唯一一层真毛玻璃 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 8px 0 10px;
  border-radius: var(--r-nav);
  border: 1px solid var(--hair);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  margin-right: auto;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-en {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms ease;
}

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

.nav-cta,
.cta button,
.btn {
  height: 38px;
  padding: 0 18px;
  border-radius: var(--r-btn);
  border: 0;
  background: var(--lime);
  color: #0a1409;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover,
.cta button:hover,
.btn:hover {
  background: var(--lime-lt);
}

.nav-cta:active,
.cta button:active,
.btn:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--edge);
}

.btn-ghost:hover {
  background: rgba(174, 242, 94, 0.08);
  color: var(--ink);
}

.nav-cta:focus-visible,
.cta button:focus-visible,
.btn:focus-visible,
.cta input:focus-visible,
.faq summary:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 56px;
  align-items: center;
  padding: 28px 0 84px;
}

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(38px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0 0 18px;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 33em;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 30px;
}

.cta form,
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta .note {
  flex: 1 0 100%;
  margin: 10px 0 0;
}

.cta input[type="email"] {
  height: 52px;
  border: 1px solid var(--edge);
  border-radius: var(--r-btn);
  padding: 0 18px;
  min-width: min(260px, 100%);
  flex: 1;
  color: var(--ink);
  background: var(--night-1);
  outline: none;
}

.cta input[type="email"]::placeholder {
  color: var(--ink-3);
}

.cta button,
.btn {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.cta button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.note,
.meta {
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 12px 0 0;
}

/* ---------- hero mock：沉浸流一屏 ---------- */

.hero-stage {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(302px, 78vw);
  aspect-ratio: 402 / 874;
  border-radius: 34px;
  background: #060b07;
  border: 1px solid var(--hair);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 10px;
}

.phone::before {
  /* 页底：ink 竖线，与封面 moss 母题错开 */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.022) 0 1px,
    rgba(255, 255, 255, 0) 1px 5px
  );
  pointer-events: none;
}

.p-chip {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 3px 7px;
  letter-spacing: 0.02em;
}

.p-script {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.p-script .dim {
  color: var(--ink-4);
}

.p-script .em {
  color: var(--ink);
}

.p-script .hi {
  color: var(--lime);
}

.p-cover {
  position: relative;
  margin-top: 14px;
  flex: 1;
  min-height: 90px;
  border-radius: var(--r-cover);
  overflow: hidden;
  border: 1px solid var(--hair);
}

.p-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.p-by {
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
}

.p-chips {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.p-chips span {
  font-size: 9.5px;
  padding: 3.5px 7px;
  border-radius: 8px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.p-chips span.on {
  color: #0a1409;
  background: var(--lime);
  font-weight: 600;
}

.p-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
  margin-top: 12px;
}

.p-wave i {
  flex: 1;
  min-width: 0;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.p-wave i.done {
  background: var(--lime);
}

.p-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 右侧竖排动作区 */
.p-acts {
  position: absolute;
  right: 20px;
  top: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.p-acts i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 13, 9, 0.5);
  display: block;
}

.p-acts i.on {
  background: var(--lime);
  border-color: var(--lime);
}

.p-acts b {
  font-size: 9.5px;
  color: var(--ink-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* 左缘刻度 */
.p-ticks {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.p-ticks i {
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.p-ticks i.on {
  background: var(--lime);
  height: 20px;
}

/* 悬浮玻璃底栏 */
.p-dock {
  margin-top: auto;
  height: 46px;
  border-radius: 31px;
  border: 1px solid var(--hair);
  background: rgba(18, 27, 20, 0.66);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px;
  position: relative;
  z-index: 2;
}

.p-dock i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.p-dock i.on {
  background: var(--lime);
}

.p-dock .fab {
  position: absolute;
  right: 6px;
  top: 3px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(8, 13, 9, 0.9);
}

/* ---------- 封面母题：封面是物体，不是色块 ---------- */

.cv {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-cover);
  background: #080d09;
  border: 1px solid var(--hair);
  isolation: isolate;
}

/* 底：三段线性渐变 */
.cv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, #0e1a11 0%, #070c08 62%, #040704 100%);
}

/* 母题 */
.cv > i.m {
  position: absolute;
  inset: 0;
  display: block;
}

.m-moss {
  background:
    radial-gradient(85% 85% at 16% 3%, rgba(174, 242, 94, 0.26), rgba(174, 242, 94, 0) 100%),
    repeating-radial-gradient(
      circle at 77% 66%,
      rgba(174, 242, 94, 0.1) 0 1px,
      rgba(174, 242, 94, 0) 1px 16px
    ),
    radial-gradient(60% 60% at 84% 96%, rgba(127, 207, 44, 0.18), rgba(127, 207, 44, 0) 100%);
}

.m-tide {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(174, 242, 94, 0.085) 0 1px,
      rgba(174, 242, 94, 0) 1px 7px
    ),
    radial-gradient(62% 62% at 50% 92%, rgba(174, 242, 94, 0.18), rgba(174, 242, 94, 0) 100%);
}

.m-orbit {
  background:
    repeating-radial-gradient(
      circle at 52% 42%,
      rgba(174, 242, 94, 0.09) 0 1px,
      rgba(174, 242, 94, 0) 1px 18px
    ),
    radial-gradient(46% 46% at 52% 42%, rgba(174, 242, 94, 0.13), rgba(174, 242, 94, 0) 100%),
    linear-gradient(
      to top right,
      rgba(127, 207, 44, 0.14) 0%,
      rgba(174, 242, 94, 0) 45%,
      rgba(127, 207, 44, 0.1) 100%
    ),
    radial-gradient(9px 9px at 52% 42%, rgba(206, 251, 161, 0.9) 0 34%, rgba(206, 251, 161, 0) 100%);
}

.m-halftone {
  background:
    radial-gradient(rgba(174, 242, 94, 0.16) 0.9px, rgba(174, 242, 94, 0) 1px) 0 0 / 8px 8px,
    radial-gradient(44% 44% at 71% 25%, rgba(174, 242, 94, 0.26), rgba(174, 242, 94, 0) 100%);
}

.m-shaft {
  inset: -30%;
  transform: rotate(-24deg);
  background:
    radial-gradient(50% 50% at 28% 78%, rgba(127, 207, 44, 0.18), rgba(127, 207, 44, 0) 100%),
    linear-gradient(
      90deg,
      rgba(174, 242, 94, 0) 0%,
      rgba(174, 242, 94, 0.22) 50%,
      rgba(174, 242, 94, 0) 100%
    );
  background-size: 100% 100%, 34% 140%;
  background-position: center, 26% center;
  background-repeat: no-repeat;
}

.m-ink {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      rgba(255, 255, 255, 0) 1px 6px
    ),
    radial-gradient(50% 50% at 78% 12%, rgba(174, 242, 94, 0.18), rgba(174, 242, 94, 0) 100%);
}

/* 颗粒 + 暗角：暗角不是装饰，是让白字在任何封面上都读得清 */
.cv::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0.6px 0.7px, rgba(255, 255, 255, 0.075) 0.42px, rgba(255, 255, 255, 0) 0.43px)
      0 0 / 3px 3px,
    radial-gradient(130% 96% at 50% 20%, rgba(4, 8, 5, 0) 38%, rgba(3, 6, 4, 0.78) 100%);
  pointer-events: none;
}

/* ---------- 区块 ---------- */

.section {
  padding: 20px 0 76px;
  scroll-margin-top: 84px;
}

#wait {
  scroll-margin-top: 92px;
}

.section h2 {
  font-size: clamp(24px, 3.1vw, 32px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.028em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.section .lead {
  margin-bottom: 26px;
}

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

.card {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 20px 20px 22px;
  background: var(--night-2);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.62;
}

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

/* 三种声音 */
.kinds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kind {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--night-2);
  padding: 14px 14px 16px;
}

.kind .cv {
  height: 132px;
}

.kind h3 {
  margin: 14px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.kind .sub {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}

.kind .quote {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.055);
  letter-spacing: 0;
}

.tag.ai {
  color: var(--lime);
  background: rgba(174, 242, 94, 0.1);
}

/* 直播中：全站只用在「正在发生」 */
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(255, 95, 82, 0.7);
  display: inline-block;
  animation: pulse 2.6s ease-in-out infinite;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 19px;
  padding: 0 7px 0 6px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--live);
  background: rgba(255, 95, 82, 0.12);
}

@keyframes pulse {
  50% {
    opacity: 0.42;
  }
}

/* ---------- 四端 ---------- */

.devices {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--night-2);
}

.devices table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.devices th,
.devices td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

.devices tr:last-child th,
.devices tr:last-child td {
  border-bottom: 0;
}

.devices th {
  font-weight: 600;
  color: var(--ink);
  width: 128px;
  white-space: nowrap;
}

.devices td {
  color: var(--ink-2);
}

.devices .dim {
  color: var(--ink-3);
}

/* ---------- 一句 ---------- */

.tagline {
  padding: 40px 0 76px;
}

.tagline-line {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.tagline-line + .tagline-line {
  margin-top: 6px;
}

.tagline-line span {
  color: var(--night-3);
  transition: color 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tagline-line span.on {
  color: var(--lime);
}

/* ---------- 问答 ---------- */

.faq {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 2px 20px;
  background: var(--night-2);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 0;
  list-style: none;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- 收尾 ---------- */

.final {
  text-align: center;
  padding: 8px 0 16px;
}

.final .cta,
.final form,
.final .downloads {
  justify-content: center;
}

.final .lead {
  margin-left: auto;
  margin-right: auto;
}

footer {
  padding: 30px 0 60px;
  color: var(--ink-3);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
}

.foot-links {
  display: flex;
  gap: 16px;
}

.foot-links a {
  color: var(--ink-3);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink-2);
}

/* ---------- 法律页 ---------- */

.legal .nav-inner {
  width: min(760px, calc(100% - 40px));
}

.prose {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 30px;
  margin: 26px 0 64px;
  background: var(--night-2);
}

.prose h1 {
  font-size: 28px;
  letter-spacing: -0.024em;
}

.prose h2 {
  font-size: 17px;
  margin-top: 30px;
  letter-spacing: -0.015em;
}

.prose h3 {
  font-size: 15px;
  margin-top: 22px;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.prose ul {
  padding-left: 20px;
}

.prose a {
  color: var(--lime);
}

/* ---------- 降级 ---------- */

@media (prefers-reduced-transparency: reduce) {
  .nav-inner,
  .p-dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #121b14;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .live-dot,
  .live-tag .live-dot {
    animation: none;
  }
  .cta button,
  .btn,
  .nav-cta,
  .press,
  .tagline-line span,
  .faq summary::after {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #d3e2d1;
    --ink-3: #9fb39f;
    --hair: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 56px;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .grid-3,
  .kinds {
    grid-template-columns: 1fr;
  }
  .devices table,
  .devices tbody,
  .devices tr,
  .devices th,
  .devices td {
    display: block;
    width: auto;
  }
  .devices th {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .devices td {
    padding-top: 0;
  }
  .prose {
    padding: 22px;
  }
}
