/* ==========================================================================
   Heart Rate Monitor Pro — 售卖页样式
   与 site/styles.css 共用同一套设计令牌，保持产品官网视觉一致。
   ========================================================================== */

:root {
  color-scheme: dark;
  --ink: #08090d;
  --ink-soft: #0d1016;
  --panel: #121620;
  --panel-raised: #171c27;
  --line: rgba(226, 232, 242, 0.13);
  --line-strong: rgba(226, 232, 242, 0.22);
  --paper: #f5f3ee;
  --paper-soft: #d6d5d1;
  --muted: #8e94a1;
  --coral: #ff4059;
  --coral-bright: #ff5a70;
  --cyan: #31e8dc;
  --amber: #f1b84b;
  --green: #6ce7a1;
  --container: 1160px;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-xl: 0 44px 120px rgba(0, 0, 0, 0.46);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: "SFMono-Regular", "JetBrains Mono", "Menlo", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 64, 89, 0.07), transparent 32rem),
    radial-gradient(circle at 86% 22%, rgba(49, 232, 220, 0.05), transparent 30rem),
    var(--ink);
  font-family:
    "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: rgba(255, 64, 89, 0.8);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
p,
dl,
dd,
dt {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  border-bottom: 1px solid transparent;
  transition:
    background 260ms ease,
    border-color 260ms ease;
}

.topbar.scrolled {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: url("./assets/app-icon.png") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(49, 232, 220, 0.28), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-name small {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--paper-soft);
}

.primary-nav a {
  position: relative;
  padding-block: 4px;
  transition: color 200ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}

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

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.language-switch:hover {
  color: var(--paper);
  border-color: var(--paper-soft);
}

.language-switch::after {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(255, 64, 89, 0.28);
  transition:
    transform 200ms var(--ease-out),
    background 200ms ease;
}

.nav-cta:hover {
  background: var(--coral-bright);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  height: 1.5px;
  background: var(--paper);
  border-radius: 2px;
}

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

.hero {
  position: relative;
  padding: 158px 0 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 64, 89, 0.14), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 62px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 64, 89, 0.16);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 680;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero-lede {
  max-width: 34em;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--paper-soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 220ms var(--ease-out),
    background 200ms ease,
    border-color 200ms ease;
}

.button-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 64, 89, 0.3);
}

.button-primary:hover {
  background: var(--coral-bright);
  transform: translateY(-2px);
}

.button-quiet {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
}

.button-quiet:hover {
  border-color: var(--paper-soft);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: rgba(49, 232, 220, 0.34);
  color: var(--cyan);
  background: rgba(49, 232, 220, 0.06);
}

.button-ghost:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.button-wide {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.hero-facts dd {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--paper-soft);
}

/* price badge floating in hero */
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 64, 89, 0.3);
  border-radius: 999px;
  background: rgba(255, 64, 89, 0.08);
  font-size: 13.5px;
  color: var(--paper-soft);
}

.price-badge b {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--paper);
}

.price-badge s {
  color: var(--muted);
}

/* --------------------------------------------------------------- mockups */

.mock-stack {
  position: relative;
}

.mock-aura {
  position: absolute;
  inset: -12% -8% -16%;
  background: radial-gradient(circle at 60% 40%, rgba(49, 232, 220, 0.13), transparent 60%);
  pointer-events: none;
}

.desktop-window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  box-shadow: var(--shadow-xl);
}

.window-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4f5c;
}

.traffic-lights i:first-child {
  background: var(--coral);
}

.window-bar > span:nth-child(2) {
  font-size: 12.5px;
  text-align: center;
  color: var(--muted);
}

.window-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.window-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseDot 1.9s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

.window-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.signal-card {
  padding: 18px 20px 12px;
  border: 1px solid rgba(255, 64, 89, 0.22);
  border-radius: 16px;
  background: rgba(255, 64, 89, 0.045);
}

.signal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.connected-label {
  letter-spacing: 0;
  color: var(--green);
}

.signal-reading {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.signal-reading strong {
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.signal-reading div {
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.signal-reading span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.signal-reading small {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--paper-soft);
}

.hero-wave {
  width: 100%;
  height: 54px;
  margin-top: 6px;
}

.hero-wave .wave-base {
  stroke: rgba(255, 64, 89, 0.16);
}

.hero-wave .wave-line {
  stroke: var(--coral);
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawWave 3.6s cubic-bezier(0.3, 0.9, 0.3, 1) infinite;
}

@keyframes drawWave {
  0% {
    stroke-dashoffset: 900;
  }
  52%,
  100% {
    stroke-dashoffset: 0;
  }
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control-grid article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.control-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.control-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}

.control-grid small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.window-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.window-actions span {
  display: grid;
  place-items: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--paper-soft);
}

.window-actions .accent-action {
  border-color: rgba(49, 232, 220, 0.4);
  color: var(--cyan);
  background: rgba(49, 232, 220, 0.07);
}

.floating-overlay {
  position: absolute;
  right: -26px;
  bottom: -22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(13, 16, 22, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}

.floating-overlay b {
  font-family: var(--mono);
  font-size: 24px;
}

.floating-overlay span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.overlay-heart {
  color: var(--coral);
  font-size: 15px;
}

.pet-badge {
  position: absolute;
  left: -46px;
  bottom: -10px;
  z-index: 2;
  width: 104px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
  animation: petFloat 4.6s ease-in-out infinite;
}

/* 未使用的桌宠装饰：保留类名以便后续接入更好的素材
   <img class="pet-badge" src="./assets/pet.png" alt="" /> */

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

/* ------------------------------------------------------------ trust strip */

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 20px 0;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-inner span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trust-inner span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

/* --------------------------------------------------------------- sections */

.section {
  padding: 108px 0;
}

.section-tight {
  padding: 84px 0;
}

.section-index {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  max-width: 46em;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.026em;
  font-weight: 660;
}

.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--paper-soft);
}

.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 52px;
  align-items: end;
}

/* ----------------------------------------------------------------- reason */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 54px;
}

.reason-card {
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  transition:
    transform 300ms var(--ease-out),
    border-color 300ms ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.reason-card .card-number {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.reason-card h3 {
  margin-top: 22px;
  font-size: 19.5px;
  letter-spacing: -0.014em;
}

.reason-card p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--paper-soft);
}

.reason-icon {
  width: 46px;
  height: 46px;
  margin-top: 22px;
  border: 1px solid rgba(49, 232, 220, 0.3);
  border-radius: 14px;
  background: rgba(49, 232, 220, 0.07);
  display: grid;
  place-items: center;
}

.reason-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- compare */

.table-shell {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.016);
}

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

table.compare caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

table.compare th,
table.compare td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.compare thead th {
  background: #141924;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

table.compare thead th.col-pro {
  color: var(--coral);
  background: #1b1320;
}

table.compare tbody th {
  font-weight: 500;
  color: var(--paper-soft);
  width: 44%;
}

table.compare tbody td {
  color: var(--paper-soft);
}

table.compare td.col-pro {
  background: rgba(255, 64, 89, 0.055);
  color: var(--paper);
}

table.compare tbody tr:hover th,
table.compare tbody tr:hover td {
  background: rgba(255, 255, 255, 0.026);
}

table.compare tbody tr:hover td.col-pro {
  background: rgba(255, 64, 89, 0.085);
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td {
  border-bottom: 0;
}

.cell-yes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 500;
}

.cell-yes::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(108, 231, 161, 0.14);
  font-size: 11px;
}

.cell-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.cell-no::before {
  content: "—";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.cell-partial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
}

.cell-partial::before {
  content: "◆";
  font-size: 9px;
}

.table-legend {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.008));
}

.plan-pro {
  border-color: rgba(255, 64, 89, 0.42);
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 64, 89, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255, 64, 89, 0.07), rgba(255, 255, 255, 0.01));
  box-shadow: 0 34px 90px rgba(255, 64, 89, 0.14);
}

.plan-flag {
  position: absolute;
  top: -13px;
  right: 28px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.plan-name {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-pro .plan-name {
  color: var(--coral);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
}

.plan-price b {
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.plan-price small {
  font-size: 14px;
  color: var(--muted);
}

/* ---------------------------------------------------- 下载量统计徽章 */

.download-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 12px;
  background: rgba(49, 232, 220, 0.08);
  border: 1px solid rgba(49, 232, 220, 0.22);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--cyan);
  width: fit-content;
}

.counter-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.download-subtext {
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.download-subtext strong,
.download-counter-badge strong {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--paper);
}

.download-count-number {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.download-count-number.count-bump {
  transform: scale(1.35);
  color: var(--cyan);
}

.plan-note {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--paper-soft);
}

.plan-list {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  font-size: 14.5px;
  color: var(--paper-soft);
}

.plan-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}

.plan-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  content: "✓";
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.55;
}

.plan-pro .plan-list li::before {
  color: var(--coral);
}

.plan-list li.is-muted {
  color: var(--muted);
}

.plan-list li.is-muted::before {
  content: "—";
}

.plan-actions {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.plan-actions .button {
  height: 50px;
  font-size: 15px;
}

.platform-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.platform-mini span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.platform-mini svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pricing-foot {
  margin-top: 26px;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.pricing-foot strong {
  color: var(--paper-soft);
  font-weight: 600;
}

/* -------------------------------------------------------------- screens */

.screens-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 50px;
  align-items: start;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.shot-side {
  display: grid;
  gap: 20px;
}

.feature-note {
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.feature-note h3 {
  font-size: 16.5px;
  letter-spacing: -0.012em;
}

.feature-note p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--paper-soft);
}

/* ------------------------------------------------------------------- flow */

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 50px;
  counter-reset: step;
}

.flow-list li {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.flow-list li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--coral);
}

.flow-list strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
}

.flow-list p {
  margin-top: 11px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--paper-soft);
}

.flow-list small {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* --------------------------------------------------------- requirements */

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.req-card {
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.req-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.req-card header svg {
  width: 22px;
  height: 22px;
  fill: var(--paper);
}

.req-card h3 {
  font-size: 17.5px;
}

.req-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--paper-soft);
}

.req-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.req-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.req-list li span:first-child {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* -------------------------------------------------------------------- faq */

.faq-list {
  margin-top: 46px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 220ms ease;
}

.faq-list details[open] {
  border-color: var(--line-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1;
  color: var(--muted);
  transition: transform 240ms var(--ease-out);
}

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

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--paper-soft);
  max-width: 68em;
}

.faq-answer a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(49, 232, 220, 0.35);
}

/* --------------------------------------------------------------- final cta */

.final-cta {
  padding-bottom: 0;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 68px 56px;
  border: 1px solid rgba(255, 64, 89, 0.26);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 64, 89, 0.2), transparent 58%),
    radial-gradient(circle at 8% 92%, rgba(49, 232, 220, 0.12), transparent 52%),
    linear-gradient(180deg, #191420, #0e1119);
  text-align: center;
}

.cta-card h2 {
  max-width: 22em;
  margin-inline: auto;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.026em;
  font-weight: 660;
}

.cta-card p {
  max-width: 40em;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-soft);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta-foot {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

/* ----------------------------------------------------------------- footer */

.footer {
  margin-top: 108px;
  border-top: 1px solid var(--line);
  padding: 46px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-meta {
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
}

/* ----------------------------------------------------------- mobile bar */

.mobile-buy-bar {
  position: fixed;
  z-index: 90;
  inset: auto 0 0 0;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(18px);
}

.mobile-buy-bar div {
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.mobile-buy-bar strong {
  display: block;
  font-size: 15px;
}

.mobile-buy-bar small {
  font-size: 12px;
  color: var(--muted);
}

.mobile-buy-bar .button {
  height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- toast */

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 34px;  max-width: min(92vw, 560px);
  padding: 14px 20px;
  border: 1px solid rgba(241, 184, 75, 0.42);
  border-radius: 14px;
  background: rgba(20, 17, 12, 0.96);
  color: #f6e2bb;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 300ms var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 760ms var(--ease-out),
    transform 760ms var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 90ms;
}

.reveal[data-delay="2"] {
  transition-delay: 180ms;
}

.reveal[data-delay="3"] {
  transition-delay: 270ms;
}

html.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero {
    padding-top: 136px;
  }

  .floating-overlay {
    right: -14px;
  }

  .pet-badge {
    left: -20px;
  }

  .head-split {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .screens-grid {
    grid-template-columns: 1fr;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 14px 24px 26px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 220ms ease,
      transform 260ms var(--ease-out);
  }

  .primary-nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .primary-nav a::after {
    display: none;
  }

  .language-switch {
    border: 0;
    padding-left: 0;
    font-size: 14px;
  }

  body.menu-open .primary-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .pricing-grid,
  .req-grid {
    grid-template-columns: 1fr;
  }

  .mobile-buy-bar {
    display: flex;
  }

  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .footer {
    margin-top: 84px;
    padding-bottom: 104px;
  }

  .section {
    padding: 82px 0;
  }

  .section-tight {
    padding: 66px 0;
  }

  /* 窄屏把对比表折叠成卡片，避免横向滚动丢失上下文 */
  .table-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  table.compare,
  table.compare tbody,
  table.compare tr,
  table.compare th,
  table.compare td {
    display: block;
    width: auto;
  }

  table.compare thead {
    display: none;
  }

  table.compare tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.022);
    overflow: hidden;
  }

  table.compare tbody tr:last-child {
    margin-bottom: 0;
  }

  table.compare tbody th {
    padding: 16px 18px 12px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--paper);
    border-bottom: 0;
  }

  table.compare tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
    text-align: right;
  }

  table.compare tbody td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  table.compare tbody td.col-pro {
    background: rgba(255, 64, 89, 0.06);
  }

  table.compare tbody tr:hover th,
  table.compare tbody tr:hover td {
    background: transparent;
  }

  table.compare tbody tr:hover td.col-pro {
    background: rgba(255, 64, 89, 0.06);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 34px), var(--container));
  }

  .price-badge {
    flex-wrap: wrap;
    gap: 6px 10px;
    row-gap: 6px;
    border-radius: 20px;
  }

  .price-badge i {
    display: none;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .floating-overlay,
  .pet-badge {
    display: none;
  }

  .cta-card {
    padding: 46px 24px;
  }

  .req-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* -------------------------------------------------- 界面对比 / Compare Screens */

.compare-screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
}

.compare-screen-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.compare-screen-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.compare-screen-card.pro-card {
  border-color: rgba(255, 64, 89, 0.35);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 64, 89, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(255, 64, 89, 0.04), rgba(255, 255, 255, 0.01));
}

.screen-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.screen-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper-soft);
  border: 1px solid var(--line);
}

.badge-pro {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 64, 89, 0.35);
}

.screen-platform {
  font-size: 12px;
  color: var(--cyan);
  font-family: var(--mono);
}

.screen-preview-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(8, 9, 13, 0.85);
  border: 1px solid var(--line);
  padding: 16px;
}

.compare-preview-img {
  max-width: 100%;
  max-height: 480px;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.screen-preview-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.screen-sub-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
}

.screen-sub-shot img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.screen-sub-shot img:hover {
  transform: scale(1.03);
}

.screen-sub-shot figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--paper-soft);
  letter-spacing: 0.04em;
  text-align: center;
  font-family: var(--mono);
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
  width: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--paper-soft);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--cyan);
  opacity: 0.8;
}

.placeholder-icon svg {
  width: 100%;
  height: 100%;
}

.screen-placeholder strong {
  font-size: 16px;
  color: var(--paper);
  margin-bottom: 6px;
}

.screen-placeholder p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}

.screen-feature-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--paper-soft);
  text-align: left;
}

.screen-feature-tags li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen-feature-tags li::before {
  content: "•";
  color: var(--cyan);
  font-weight: bold;
}

.screen-card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.screen-card-footer strong {
  display: block;
  font-size: 15px;
  color: var(--paper);
}

.screen-card-footer p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--paper-soft);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .compare-screens-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------- 微信购买弹窗 / Modal */

.wechat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wechat-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.wechat-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 36px 32px 30px;
  border: 1px solid rgba(255, 64, 89, 0.4);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 64, 89, 0.14), transparent 65%),
    linear-gradient(180deg, #151821, #0c0e14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 64, 89, 0.18);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wechat-modal-backdrop.show .wechat-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.modal-close-btn:hover {
  background: rgba(255, 64, 89, 0.2);
  border-color: var(--coral);
  color: #fff;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.wechat-modal-card h3 {
  font-size: 22px;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.modal-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--paper-soft);
  line-height: 1.5;
}

.wechat-code-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.wechat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wechat-id {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin: 8px 0 16px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  font-size: 14.5px;
  cursor: pointer;
}

.wechat-steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--paper-soft);
  line-height: 1.5;
}

.step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(49, 232, 220, 0.15);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: bold;
}

.modal-footnote {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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