/* ================= Dihde 滴茶播放器 官网样式 ================= */
/* 浅色「茶纸」主题；深色只覆盖变量，见 theme-dark.css */
:root {
  color-scheme: light;

  /* 底色与文字 */
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --surface: rgba(255, 253, 248, 0.72);
  --surface-solid: #fffcf5;
  --glass: rgba(255, 253, 248, 0.62);
  --glass-strong: rgba(255, 253, 248, 0.88);
  --ink: #1d2a24;
  --ink-2: #4f5d55;
  --ink-3: #7c8880;
  --line: rgba(29, 42, 36, 0.09);
  --line-strong: rgba(29, 42, 36, 0.17);

  /* 茶青（主色）与茶汤琥珀（点缀） */
  --primary: #246952;
  --primary-hover: #2c7a5f;
  --on-primary: #ffffff;
  --primary-shadow: rgba(36, 105, 82, 0.5);
  --tea: #246952;
  --tea-soft: rgba(36, 105, 82, 0.1);
  --tea-line: rgba(36, 105, 82, 0.26);
  --amber: #c9822f;
  --amber-deep: #a4601a;
  --amber-soft: rgba(201, 130, 47, 0.15);
  --brew: linear-gradient(135deg, #2a7a5d 0%, #4c9a72 48%, #c9822f 100%);
  --brew-text: linear-gradient(100deg, #246952 0%, #3e8a66 42%, #b5701f 100%);
  --spot: rgba(36, 105, 82, 0.09);
  --selection: rgba(36, 105, 82, 0.26);
  --glow-tea: rgba(76, 154, 114, 0.2);
  --glow-amber: rgba(201, 130, 47, 0.15);

  /* 深色面板（播放器特写，深浅主题下都用深底） */
  --cinema: #13201a;
  --cinema-line: transparent;
  --on-cinema: #f1ebdd;
  --on-cinema-2: rgba(241, 235, 221, 0.68);
  --cinema-accent: #8cd5b1;

  --shadow-sm: 0 1px 2px rgba(29, 42, 36, 0.04), 0 8px 24px -12px rgba(29, 42, 36, 0.2);
  --shadow-md: 0 2px 4px rgba(29, 42, 36, 0.04), 0 18px 44px -20px rgba(29, 42, 36, 0.3);
  --shadow-lg: 0 30px 70px -28px rgba(29, 42, 36, 0.42);
  --phone-shadow: rgba(29, 42, 36, 0.28);
  --phone-shadow-soft: rgba(29, 42, 36, 0.2);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "HONOR Sans CN", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --nav-h: 62px;
  --r-xl: 32px;
  --r-lg: 24px;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* 纸纹：一层极淡的噪点，让暖色底有纸的质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: url("assets/grain.png") repeat;
  opacity: 0.55;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; }
button { font: inherit; color: inherit; }
b { font-weight: 700; }

::selection { background: var(--selection); }

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

/* ---------- 通用 ---------- */
.grad-text {
  background: var(--brew-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 8.5vw, 108px) 24px 0;
}
.section.narrow { max-width: 820px; }

.sec-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.sec-tag {
  --tag-fg: var(--tea);
  --tag-bg: var(--tea-soft);
  --tag-line: var(--tea-line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--tag-fg);
  background: var(--tag-bg);
  border: 1px solid var(--tag-line);
  padding: 6px 14px 6px 16px;
  border-radius: 999px;
}
.sec-head .sec-tag { margin-bottom: 18px; }
.sec-head h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance; /* 折行时两行长度接近，别让单个字掉到下一行 */
}
.sec-head p {
  margin-top: 14px;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.75;
  color: var(--ink-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary {
  background-color: var(--primary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -10px var(--primary-shadow);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 16px 32px -12px var(--primary-shadow);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--tea); color: var(--tea); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 46px; font-size: 18px; }

/* 「敬请期待」：保留品牌色但不可点击，带呼吸光晕 */
.btn-soon {
  cursor: default;
  animation: pulse 2.8s ease-in-out infinite;
}
.btn-soon:hover,
.btn-soon:active { transform: none; background-color: var(--primary); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px -10px var(--primary-shadow); }
  50% { box-shadow: 0 12px 44px -6px var(--primary-shadow); }
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.icon-btn:hover { color: var(--tea); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- 阅读进度 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: var(--brew);
  pointer-events: none;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  height: var(--nav-h);
  padding: 0 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: var(--glass-strong);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(29, 42, 36, 0.18)); }
.brand-name { display: flex; align-items: baseline; gap: 8px; }
.brand-name b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.brand-name span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--tea); background: var(--tea-soft); }

.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-tools { margin-left: 4px; }
.nav-menu-btn { display: none; }

.icon-sun,
.nav-menu-btn .icon-close,
.nav.open .icon-menu { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
.nav.open .icon-close { display: block; }

/* 移动端菜单：导航条下方展开的面板。
   导航条自身带 backdrop-filter，会成为 backdrop root，子元素再叠毛玻璃
   看不到背后的页面内容，所以这里直接用不透明底。 */
.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}
.menu.open { display: flex; }
.menu > a {
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.menu > a:hover { background: var(--surface-solid); }
.menu .menu-cta { margin-top: 6px; color: var(--on-primary); }
.menu .menu-cta:hover { background-color: var(--primary-hover); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* 两侧副机图探出舞台，窄屏时不让它撑宽页面 */
  padding: calc(var(--nav-h) + 58px) 24px 36px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80px 0 auto 0;
  height: 980px;
  pointer-events: none;
  background:
    radial-gradient(760px 540px at 14% 6%, var(--glow-tea), transparent 66%),
    radial-gradient(680px 500px at 86% 22%, var(--glow-amber), transparent 66%),
    radial-gradient(560px 440px at 58% 88%, var(--glow-tea), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1180px;
  min-height: clamp(600px, calc(100svh - var(--nav-h) - 96px), 860px);
  margin: 0 auto;
}
.hero-copy { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tea);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--tea);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(50px, 6.6vw, 90px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.h1-cn,
.h1-en { display: block; }
.h1-en {
  margin-top: 0.06em;
  font-size: 0.9em;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 33em;
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.8;
  color: var(--ink-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* 舞台：主机组图 + 悬浮信息胶囊 + 落地涟漪 */
.hero-stage {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.2;
}
.ripples {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 5%;
  width: 80%;
  aspect-ratio: 2.7 / 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.ripples i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--tea);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 6.6s ease-out infinite;
}
.ripples i:nth-child(2) { animation-delay: 2.2s; }
.ripples i:nth-child(3) { animation-delay: 4.4s; }
@keyframes ripple {
  0% { transform: scale(0.42); opacity: 0.48; }
  100% { transform: scale(1.12); opacity: 0; }
}

.phone { position: absolute; }
.js .phone img { opacity: 0; transition: opacity 0.7s ease; }
.js .phone img.loaded { opacity: 1; }
.p-main {
  z-index: 3;
  top: 7%;
  left: 50%;
  width: 54%;
  margin-left: -27%;
  translate: calc(var(--px, 0) * 6px) calc(var(--py, 0) * 5px);
  animation: float-main 7s ease-in-out infinite alternate;
}
.hero-stage .phone,
.hero-stage .chip { transition: translate 0.6s var(--ease); }
.p-main img { filter: drop-shadow(0 34px 44px var(--phone-shadow)); }
.p-left,
.p-right {
  z-index: 2;
  top: 19%;
  width: 41%;
  translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 12px);
}
.p-left { left: -5%; transform: rotate(-12deg); }
.p-right { right: -5%; transform: rotate(12deg); }
.p-left img,
.p-right img {
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 97%);
  filter: drop-shadow(0 24px 30px var(--phone-shadow-soft));
}
@keyframes float-main {
  from { transform: translateY(-5px); }
  to { transform: translateY(7px); }
}
@keyframes float {
  from { transform: translateY(-6px); }
  to { transform: translateY(7px); }
}

.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite alternate;
  font-variant-numeric: tabular-nums;
}
.chip svg { width: 15px; height: 15px; color: var(--tea); }
.chip b { color: var(--tea); font-weight: 700; }
.chip-a { top: 8%; left: 0; translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -12px); }
.chip-b { top: 41%; right: -2%; animation-delay: -2.1s; animation-duration: 7s; translate: calc(var(--px, 0) * -26px) calc(var(--py, 0) * -16px); }
.chip-c { bottom: 12%; left: -5%; animation-delay: -4s; animation-duration: 6.5s; translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -14px); }

/* ---------- 特性跑马灯 ---------- */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
}
.mq-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.mq-item:nth-child(3n)::before { background: var(--tea); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 功能卡片（bento 网格） ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.b-7 { grid-column: span 7; }
.b-6 { grid-column: span 6; }
.b-5 { grid-column: span 5; }
.b-4 { grid-column: span 4; }

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
}
/* 跟随指针的高光 */
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 62%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 15px;
  color: var(--ic);
  background: var(--ic-bg);
}
.icon svg { width: 23px; height: 23px; }
.ic-tea { --ic: #246952; --ic-bg: rgba(36, 105, 82, 0.12); }
.ic-amber { --ic: #a4601a; --ic-bg: rgba(201, 130, 47, 0.16); }
.ic-clay { --ic: #b04a41; --ic-bg: rgba(176, 74, 65, 0.12); }
.ic-sky { --ic: #2c6ca3; --ic-bg: rgba(44, 108, 163, 0.12); }
.ic-plum { --ic: #684aa8; --ic-bg: rgba(104, 74, 168, 0.12); }

.card h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.card p b { color: var(--ink); }

/* 卡片内的示意小图：统一贴底对齐 */
.viz {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}
.viz svg { width: 18px; height: 18px; }

.src-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  background: var(--surface-solid);
}
.src-row b { font-weight: 700; }
.src-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  color: var(--ic);
  background: var(--ic-bg);
}
.src-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tea);
}
.src-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--tea-soft);
}

/* 4K 卡的迷你画面：一帧冷蓝 HDR 画面 + 玻璃播放键 */
.scene {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 5.6;
  border-radius: 16px;
  background:
    radial-gradient(90% 130% at 12% 118%, rgba(240, 168, 90, 0.85), transparent 56%),
    radial-gradient(110% 150% at 88% -20%, rgba(63, 143, 208, 0.8), transparent 60%),
    linear-gradient(135deg, #1b3a52, #0e1d28);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%);
}
.scene-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.scene-play svg { width: 18px; height: 18px; margin-left: 2px; }

.spec-row { display: flex; flex-wrap: wrap; gap: 8px; }
.spec {
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ic);
  background: var(--ic-bg);
}

.dm-row { position: relative; padding: 4px 0; }
.dm {
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-solid);
  animation: drift 5s ease-in-out infinite alternate;
}
.dm:nth-child(2) { align-self: center; animation-delay: -1.6s; }
.dm:nth-child(3) { align-self: flex-end; animation-delay: -3.2s; }
@keyframes drift {
  from { translate: 0 0; }
  to { translate: 0 -5px; }
}

.rate-row { flex-direction: row; flex-wrap: wrap; }
.rate {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-solid);
}

.sync {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
}
.sync-node {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--paper-2);
}
.sync-node.is-hub { color: var(--ic); background: var(--ic-bg); }
.sync-line {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}
.sync-line::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  border-radius: 2px;
  background: var(--ic);
  animation: flow 2.2s linear infinite;
}
.sync-line.is-reverse::after { animation-name: flow-reverse; }
@keyframes flow {
  from { left: -40%; }
  to { left: 100%; }
}
@keyframes flow-reverse {
  from { left: 100%; }
  to { left: -40%; }
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.compare figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.compare .raw {
  background: linear-gradient(135deg, #eab56b, #4c9a72 55%, #1f5f7a);
  filter: saturate(0.25) contrast(0.72) brightness(1.22);
}
.compare .boost { background: linear-gradient(135deg, #eab56b, #4c9a72 55%, #1f5f7a); }
.compare figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.devices {
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  padding: 6px 4px 0;
}
.dev {
  position: relative;
  height: 62px;
  border: 1.5px solid var(--ic);
  border-radius: 10px;
  background: var(--ic-bg);
}
.dev-phone { width: 34px; }
.dev-fold { width: 54px; }
.dev-fold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1.5px dashed var(--ic);
}
.dev-tablet { width: 92px; }

/* 折叠屏适配的说明直接写在卡片里，不藏在气泡里 */
.note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--amber-soft);
}
.note svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--amber-deep);
}
.note b { color: var(--ink); }

.ver-list { gap: 7px; }
.ver {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-solid);
  font-variant-numeric: tabular-nums;
}
.ver b { font-weight: 700; color: var(--ink); }
.ver.best { border-color: var(--ic); background: var(--ic-bg); }
.ver .tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ic);
}
.ver .size { margin-left: auto; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 4px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
  color: var(--ink-2);
  background: var(--surface-solid);
}
.tile svg { width: 20px; height: 20px; color: var(--ic); }

/* ---------- 截图画廊 ---------- */
.gal-wrap { position: relative; }
.gal {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 24px max(calc(50% - 150px), 20px) 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.gal.dragging { cursor: grabbing; scroll-snap-type: none; }
.gal.dragging .gal-open { cursor: grabbing; }
.gal::-webkit-scrollbar { display: none; }

.gal-item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
  text-align: center;
}
.gal-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gal-item img {
  width: 100%;
  opacity: 0.58;
  transform: scale(0.92);
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
}
.gal-item.is-active img {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 30px 40px var(--phone-shadow-soft));
}
.gal figcaption {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.4s ease;
}
.gal-item.is-active figcaption { color: var(--ink-2); }

.gal-btn {
  position: absolute;
  z-index: 5;
  top: 40%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s var(--ease), color 0.2s ease, border-color 0.2s ease;
}
.gal-btn svg { width: 20px; height: 20px; }
.gal-btn:hover { transform: scale(1.08); color: var(--tea); border-color: var(--tea-line); }
.gal-btn.prev { left: 6px; }
.gal-btn.next { right: 6px; }

.gal-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.gal-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.35s var(--ease), background-color 0.35s ease;
}
.gal-dots button.is-active { width: 24px; background: var(--tea); }

/* 灯箱 */
/* 全局 margin:0 会清掉 <dialog> 自带的居中外边距，这里补回 */
.lightbox {
  margin: auto;
  max-width: min(94vw, 520px);
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(10, 16, 13, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, calc(100dvh - 170px));
  margin: 0 auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55));
}
.lb-cap {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
}
.lb-btn,
.lb-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.lb-btn svg,
.lb-close svg { width: 20px; height: 20px; }
.lb-btn:hover,
.lb-close:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }
.lb-btn { top: 50%; margin-top: -23px; }
.lb-prev { left: -64px; }
.lb-next { right: -64px; }
/* 上方留不出一行高度时（矮窗口、手机横竖屏），关闭键落到大图里 */
.lb-close { top: -58px; right: 0; }
@media (max-width: 640px), (max-height: 720px) {
  .lb-close { top: 12px; right: 12px; }
}

/* ---------- 播放器特写（深色影院面板） ---------- */
.cinema {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(22px, 3.4vw, 44px);
  overflow: hidden;
  border-radius: 40px;
  color: var(--on-cinema);
  background: var(--cinema);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--cinema-line);
}
.cinema::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(201, 130, 47, 0.18), transparent 62%),
    radial-gradient(52% 72% at 0% 100%, rgba(76, 154, 114, 0.2), transparent 62%);
  pointer-events: none;
}
.cinema-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.65);
}
.cinema-info {
  --tag-fg: var(--cinema-accent);
  --tag-bg: rgba(140, 213, 177, 0.12);
  --tag-line: rgba(140, 213, 177, 0.28);
}
.cinema-info .sec-tag { margin-bottom: 16px; }
.cinema-info .grad-text { background-image: var(--brew); }
.cinema-info h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cinema-sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--on-cinema-2);
}
.cinema .badges { margin-top: 24px; }
.badge {
  padding: 6px 13px;
  border: 1px solid rgba(140, 213, 177, 0.28);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cinema-accent);
  background: rgba(140, 213, 177, 0.12);
}

.player-list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.player-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 15px;
  line-height: 1.6;
}
.player-list li::before,
.player-list li::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  border-radius: 50%;
}
.player-list li::before {
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brew);
}
.player-list li::after {
  left: 5.5px;
  width: 5px;
  height: 3px;
  border-radius: 0;
  border-left: 1.8px solid var(--cinema);
  border-bottom: 1.8px solid var(--cinema);
}

/* ---------- 视频演示：步骤 1-2 ｜ 录屏 ｜ 步骤 3-4 ---------- */
.demo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 16px clamp(44px, 4vw, 60px);
}
.demo-frame {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 46px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
}
.demo-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
  background: #0b0f0d;
}

.steps { display: contents; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 4px;
  align-items: center;
  counter-increment: step;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.steps li:nth-child(-n + 2) { grid-column: 1; }
.steps li:nth-child(n + 3) { grid-column: 3; }
.steps li:nth-child(odd) { grid-row: 1; }
.steps li:nth-child(even) { grid-row: 2; }
/* 序号圆片占第一列并纵跨两行，标题与说明在第二列 */
.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
  color: var(--on-primary);
  background: var(--brew);
  box-shadow: 0 10px 22px -8px var(--primary-shadow);
}
.steps li > b,
.steps li > span { grid-column: 2; }
/* 朝录屏一侧引一条短线：步骤汇入中间的演示 */
.steps li::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--line-strong), var(--tea));
}
.steps li:nth-child(-n + 2)::after { right: -30px; }
.steps li:nth-child(n + 3)::after { left: -30px; transform: scaleX(-1); }
.steps b { font-size: 17px; font-weight: 700; }
.steps span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- 下载 ---------- */
.dl {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
/* 右上角两道涟漪环，呼应「滴」 */
.dl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 0%, transparent 0 150px, var(--tea-line) 150px 151.5px, transparent 151.5px 226px, var(--amber-soft) 226px 227.5px, transparent 227.5px);
}
.dl-logo {
  width: 96px;
  height: 96px;
  padding: 10px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.dl h2 {
  margin-top: 24px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dl-sub { margin-top: 8px; font-size: 16px; color: var(--ink-2); }

.dl-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.dl-note { font-size: 12.5px; color: var(--ink-3); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: var(--surface-solid);
}
.meta i { font-style: normal; color: var(--ink-3); }
.meta b { font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] {
  border-color: var(--tea-line);
  background: var(--surface-solid);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: relative;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.8px 12px no-repeat;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease), color 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--tea); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq details[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > p {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  transition: padding 0.35s var(--ease);
}
.faq details[open] .faq-body > p { padding-bottom: 22px; }
.faq-body b { color: var(--ink); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: clamp(80px, 10vw, 120px);
  padding: 56px 24px calc(48px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer img { width: 56px; height: 56px; margin: 0 auto 16px; object-fit: contain; }
.footer p { font-size: 15px; }
.foot-note {
  margin-top: 12px;
  font-size: 12.5px !important;
  line-height: 1.9;
  color: var(--ink-3);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease), color 0.2s ease, border-color 0.2s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--tea); border-color: var(--tea-line); }

/* ---------- 入场动画 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-menu-btn { display: grid; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-7,
  .b-5 { grid-column: span 2; }
  .b-6,
  .b-4 { grid-column: span 1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    min-height: 0;
  }
  .hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stage { justify-self: center; width: min(420px, 100%); }
  .p-main { width: 56%; margin-left: -28%; }
  .p-left,
  .p-right { width: 42%; }
  .cinema { grid-template-columns: minmax(0, 1fr); }
  .demo-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; }
  .demo-frame { grid-column: auto; grid-row: auto; width: min(300px, 100%); margin: 0 auto 34px; }
  .steps { display: flex; flex-direction: column; gap: 14px; }
  .steps li,
  .steps li:nth-child(odd),
  .steps li:nth-child(even) { grid-column: auto; grid-row: auto; }
  .steps li:nth-child(-n + 2)::after,
  .steps li:nth-child(n + 3)::after { display: none; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl-action { align-items: center; text-align: center; }
  .dl-copy { text-align: center; }
  .dl-logo { margin: 0 auto; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .steps li { padding: 20px 18px; }
  .section { padding-inline: 18px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-7,
  .b-6,
  .b-5,
  .b-4 { grid-column: auto; }
  .card { padding: 24px; }
  .hero { padding-inline: 18px; }
  .hero h1 { font-size: clamp(46px, 14vw, 72px); }
  .sec-head h2 { font-size: clamp(24px, 7vw, 34px); }
  .hero-stage { width: min(360px, 100%); }
  .p-main { width: 60%; margin-left: -30%; top: 5%; }
  .p-left,
  .p-right { width: 42%; top: 21%; }
  .p-left { left: -9%; }
  .p-right { right: -9%; }
  .chip { gap: 5px; padding: 7px 11px; font-size: 12px; }
  .chip svg { width: 13px; height: 13px; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .chip-c { left: 0; bottom: 9%; }
  .gal { gap: 14px; padding-inline: max(calc(50% - 122px), 18px); }
  .gal-item { width: 244px; }
  .gal-btn { display: none; }
  .to-top { right: 14px; width: 40px; height: 40px; opacity: 0.86; }
  .cinema,
  .dl { border-radius: 30px; }
  .ver span:nth-child(2) { display: none; }
  .lb-cap { padding-inline: 60px; }
}

@media (max-width: 380px) {
  .brand-name span { display: none; }
}

/* 尊重「减弱动态效果」：停掉跑马灯、漂浮、涟漪，内容直接可见 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: 16px; }
  .mq:last-child { display: none; }
}

@media (forced-colors: active) {
  .grad-text {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}
