/* 站群共用样式。所有颜色走 CSS 变量，变量值由 build 从 site.config.js 生成到 theme.css。 */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景氛围光 */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: -180px;
  left: 50%;
  width: 520px;
  height: 520px;
  margin-left: -320px;
  background: var(--glow-one);
}

.ambient-two {
  bottom: -220px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: var(--glow-two);
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
}

.card {
  padding: 30px 26px 26px;
  border: 1px solid var(--surface-line);
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--card-shadow);
}

/* 品牌行 */
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 10px 26px var(--brand-glow);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand);
}

.brand-note {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

/* 主文案 */
.hero-copy {
  margin-top: 28px;
}

.route-label {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: normal;
  color: var(--brand);
}

.lede {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

/* 图形区：dial（表盘 + 播放）与 wave（波形 + 心形）两套，由 brand.motif 选择 */
.motif {
  position: relative;
  margin: 30px 0 4px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--orbit-strong);
  animation: breathe 5.5s ease-in-out infinite;
}

.orbit-outer {
  width: 210px;
  height: 210px;
}

.orbit-inner {
  width: 150px;
  height: 150px;
  border-color: var(--orbit-soft);
  animation-delay: -2.6s;
}

/* 300° 表盘（底部留缺口），呼应 App 图标；两端切线对称收在缺口两侧。 */
.dial {
  position: absolute;
  width: 230px;
  max-width: 100%;
  overflow: visible;
}

.dial-track,
.dial-live {
  fill: none;
  stroke-linecap: round;
  stroke-width: 10;
}

.dial-track {
  stroke: var(--track);
}

/* 一次画满后停住：不循环回空状态，静态截图与首屏都是完整的表盘。 */
.dial-live {
  stroke: var(--brand);
  stroke-dasharray: 524;
  stroke-dashoffset: 524;
  filter: drop-shadow(0 0 10px var(--brand-glow));
  animation: sweep 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wave {
  position: absolute;
  width: 100%;
  height: 120px;
}

.wave-track,
.wave-live {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.wave-track {
  stroke: var(--track);
}

.wave-live {
  stroke: var(--brand);
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(0 0 10px var(--brand-glow));
  animation: trace 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.motif-mark {
  position: relative;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
}

.motif-mark svg {
  width: 30px;
  height: 30px;
  fill: var(--brand);
}

@keyframes sweep {
  from {
    stroke-dashoffset: 524;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes trace {
  from {
    stroke-dashoffset: 900;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dial-live {
    animation: none;
    stroke-dashoffset: 0;
  }

  .wave-live {
    animation: none;
    stroke-dashoffset: 0;
  }

  .orbit {
    animation: none;
  }
}

/* 下载区 */
.action-area {
  margin-top: 22px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-button:active {
  transform: scale(0.985);
}

.store-button svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.store-button small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.store-button strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-button.is-pending {
  background: var(--pending-bg);
  color: var(--ink-faint);
  cursor: default;
}

.store-button.is-pending:active {
  transform: none;
}

.open-hint {
  margin: 12px 2px 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* 事实条 */
.facts {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts li {
  padding: 5px 11px;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.facts:empty {
  display: none;
}

/* 页脚 */
footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.domain {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

@media (max-width: 380px) {
  .card {
    padding: 24px 20px 22px;
  }

  .motif {
    height: 170px;
  }
}
