/* ============================================================
   NameShift 官网样式 — 纯静态，无任何依赖
   主题：亮 / 暗（跟随系统偏好，可手动切换并记忆）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #f5f7fb;
  --bg-soft: #ecf0f7;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --text: #18202e;
  --muted: #5c6675;
  --border: #e3e8f0;
  --primary: #2e7cf6;
  --primary-strong: #1d63d8;
  --primary-soft: rgba(46, 124, 246, 0.1);
  --ok: #15803d;
  --ok-soft: rgba(22, 163, 74, 0.12);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, 0.14);
  --shadow-sm: 0 1px 2px rgba(23, 32, 55, 0.05), 0 2px 8px rgba(23, 32, 55, 0.05);
  --shadow-md: 0 4px 14px rgba(23, 32, 55, 0.08), 0 12px 32px rgba(23, 32, 55, 0.08);
  --shadow-lg: 0 8px 24px rgba(23, 32, 55, 0.1), 0 24px 64px rgba(23, 32, 55, 0.12);
  --radius: 14px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "JetBrains Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #12151b;
  --bg-soft: #171a22;
  --surface: #191c24;
  --surface-2: #20242e;
  --text: #e9ecf2;
  --muted: #99a2b2;
  --border: #272c38;
  --primary: #4a8dff;
  --primary-strong: #2f79f2;
  --primary-soft: rgba(74, 141, 255, 0.14);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

kbd {
  font-family: var(--mono);
  font-size: 0.78em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  margin: 0 2px;
}

html[data-theme="dark"] code {
  color: var(--primary);
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 100% - 48px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 124, 246, 0.35);
}

.btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 124, 246, 0.4);
}

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* 主题图标：亮色下显示月亮，暗色下显示太阳 */
.icon-sun { display: none; }
.icon-moon { display: block; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(46, 124, 246, 0.35);
  flex: none;
}

.footer .brand-logo {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

.nav-burger {
  display: none;
}

/* 移动端下拉菜单 */
@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 24px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(46, 124, 246, 0.28), transparent 65%);
}

.hero::after {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(90, 160, 255, 0.2), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary) 20%, #6fb0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
}

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Hero 演示卡 ---------- */
.hero-demo {
  min-width: 0;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px 26px 18px;
  position: relative;
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.45), transparent 40%, rgba(46, 124, 246, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.demo-scene {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 14px;
  border-radius: 9px;
  transition: opacity 0.25s ease;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.6s infinite;
}

.demo-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.15fr) 84px;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 0 2px 9px;
  border-bottom: 1px solid var(--border);
}

.demo-group {
  display: none;
}

.demo-group.is-active {
  display: grid;
  gap: 4px;
  padding-top: 7px;
}

.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.15fr) 84px;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-radius: 8px;
  font-size: 15.5px;
  animation: rowIn 0.5s ease both;
}

.demo-group.is-active .demo-row:nth-child(1) { animation-delay: 0.05s; }
.demo-group.is-active .demo-row:nth-child(2) { animation-delay: 0.2s; }
.demo-group.is-active .demo-row:nth-child(3) { animation-delay: 0.35s; }

@keyframes rowIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.f-before {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14.5px;
}

.demo-row svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.f-after {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14.5px;
}

.f-state {
  justify-self: end;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.f-state.ok {
  color: var(--ok);
  background: var(--ok-soft);
}

.f-state.warn {
  color: var(--warn);
  background: var(--warn-soft);
}

.demo-foot {
  margin-top: 12px;
  padding: 11px 2px 2px;
  border-top: 1px dashed var(--border);
}

.demo-note {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-soft);
  transition: background 0.3s ease;
}

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.section-title em {
  font-style: normal;
  color: var(--primary);
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  max-width: 44em;
}

/* ---------- 痛点 ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.pain-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pain-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 18px;
}

.pain-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pain-card p {
  font-size: 15px;
  color: var(--muted);
}

.answer-strip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 36px;
  padding: 24px 28px;
  background: linear-gradient(120deg, var(--primary), #4f95ff);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 124, 246, 0.35);
}

.answer-strip svg {
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: 4px;
}

.answer-strip p {
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- 六大模式 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
}

.tip-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
  padding: 20px 26px;
  background: var(--surface);
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15.5px;
}

.tip-strip svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
  margin-top: 3px;
}

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

/* ---------- 安全 ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.safety-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.safety-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.safety-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}

.safety-icon svg {
  width: 20px;
  height: 20px;
}

.safety-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 截图切换区 ---------- */
.shots {
  margin-top: 48px;
}

.shots-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.shots-tab {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shots-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.shots-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(46, 124, 246, 0.35);
}

.shots-frame {
  max-width: 1080px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.shots-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.shots-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.shots-bar i:first-child {
  background: #fc5f57;
}

.shots-bar i:nth-child(2) {
  background: #febc2e;
}

.shots-bar i:last-child {
  background: #28c840;
}

.shots-body {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.shot.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  cursor: zoom-in;
}

/* ---------- 截图全屏预览（Lightbox） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 5px 0;
  background: rgba(8, 10, 16, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lb-figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}

.lightbox.is-open .lb-figure {
  transform: scale(1);
}

.lb-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* 说明文字与圆点悬浮在图片下缘，不占用图片高度 */
.lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  margin: 0;
  color: #f2f5fa;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.lb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lb-btn svg {
  width: 22px;
  height: 22px;
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.lb-prev {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 0;
}

.lb-dots i {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.lb-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lb-dots i.is-active {
  background: #fff;
  transform: scale(1.3);
}

body.lb-open {
  overflow: hidden;
}

/* ---------- 技术栈 ---------- */
.tech {
  text-align: center;
}

.tech .section-sub {
  margin-inline: auto;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.tech-badges li {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 8px 18px;
  border-radius: 999px;
}

.tech-quote {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.tech-quote p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

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

/* ---------- 下载 ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 26px;
  margin-top: 48px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dl-os {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.dl-os svg {
  width: 30px;
  height: 30px;
}

.dl-card h3 {
  font-size: 21px;
  font-weight: 700;
}

.dl-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* 下载操作区：默认一个主按钮，鼠标划过卡片时切换为两个具体版本 */
.dl-actions {
  position: relative;
  height: 58px;
  margin-top: 22px;
}

.dl-main-btn {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dl-hover {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dl-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.dl-opt .btn {
  width: 100%;
  padding: 11px 10px;
  font-size: 14.5px;
}

.dl-opt .btn em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 4px;
}

.dl-card:hover .dl-main-btn,
.dl-card:focus-within .dl-main-btn {
  opacity: 0;
  transform: translateY(-50%) translateY(-10px);
  pointer-events: none;
}

.dl-card:hover .dl-hover,
.dl-card:focus-within .dl-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 触屏设备无悬停能力：始终直接显示两个具体选项 */
@media (hover: none) {
  .dl-main-btn {
    display: none;
  }

  .dl-actions {
    height: auto;
  }

  .dl-hover {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.dl-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 34px;
  font-size: 14px;
  color: var(--muted);
}

.dl-note p {
  margin: 0;
}

.dl-pan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--primary);
  font-weight: 600;
}

.dl-pan:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-pan .ext {
  width: 13px;
  height: 13px;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.faq-list summary {
  padding: 16px 0;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
  user-select: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.faq-list details p strong {
  color: var(--text);
}

/* ---------- 更新日志时间线 ---------- */
.log-timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 34px;
}

/* 时间线竖线 */
.log-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: var(--border);
}

.log-entry {
  position: relative;
  padding-bottom: 46px;
}

.log-entry:last-child {
  padding-bottom: 8px;
}

/* 版本节点圆点 */
.log-dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.log-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.log-version {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.log-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 3px 11px;
  border-radius: 999px;
}

.log-date {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
}

.log-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.log-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.log-tag {
  flex: none;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.log-tag.add {
  color: var(--ok);
  background: var(--ok-soft);
}

.log-tag.improve {
  color: var(--primary);
  background: var(--primary-soft);
}

.log-tag.fix {
  color: var(--warn);
  background: var(--warn-soft);
}

.log-tag.change {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 8px;
}

.log-empty {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 子页面（更新日志等） ---------- */
.page-head {
  padding: calc(var(--nav-h) + 72px) 0 56px;
}

.nav-links a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* 外链小图标 */
.nav-links a .ext,
.faq-more .ext,
.dl-pan .ext {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.nav-links a:hover .ext,
.faq-more a:hover .ext,
.dl-pan:hover .ext {
  opacity: 1;
}

.nav-links a .ext {
  width: 12px;
  height: 12px;
  margin-left: 3px;
  vertical-align: -1px;
}

.faq-more .ext {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
}

/* FAQ 末尾的更多帮助引导 */
.faq-more {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

.faq-more a {
  color: var(--primary);
  font-weight: 600;
}

.faq-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 44px 0;
  transition: background 0.3s ease;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
}

.footer-meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

.footer-icp {
  font-size: 12.5px;
}

.footer-icp a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: var(--primary);
}

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 渐显延迟：同容器内错落出现 */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .demo-row {
    animation: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta,
  .hero-stats {
    justify-content: center;
  }

  .hero-demo {
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }

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

@media (max-width: 680px) {
  .section {
    padding: 68px 0;
  }

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

  .pain-grid,
  .feature-grid,
  .safety-grid,
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .log-timeline {
    padding-left: 26px;
  }

  .log-dot {
    left: -23px;
  }

  .page-head {
    padding: calc(var(--nav-h) + 48px) 0 40px;
  }

  .lightbox {
    padding: 40px 4px 0;
  }

  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }

  .lb-img {
    max-height: 70vh;
  }

  .lb-dots {
    bottom: 16px;
  }

  .lb-cap {
    bottom: 40px;
  }

  .hero-stats {
    gap: 18px 26px;
  }

  .demo-cols,
  .demo-row {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 64px;
    gap: 7px;
  }

  .f-before,
  .f-after {
    font-size: 11.5px;
  }

  .answer-strip,
  .tip-strip {
    flex-direction: column;
    gap: 10px;
  }
}
