/* 方案 C · 大标题 + App 图标 + 胶囊下载（无样机） */
:root {
  --canvas: #2a313b;
  --ink: #f7f8f8;
  --ink-muted: rgba(247, 248, 248, 0.55);
  --ink-faint: rgba(247, 248, 248, 0.34);
  --brand-blue: #316afd;
  --brand-blue-pressed: #2b5fe6;
  --page-pad-x: 28px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Helvetica Neue", sans-serif;
}

@font-face {
  font-family: "ZhuoTeZiYouTi";
  src: url("../assets/fonts/brand-title.subset.otf") format("opentype");
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "CaoShu";
  src: url("../assets/fonts/brand-tagline.subset.otf") format("opentype");
  font-weight: 400;
  font-display: block;
}

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

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

.wechat-guide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(10px + var(--safe-top)) 48px 12px 16px;
  background: var(--brand-blue);
  color: #fff;
}

.wechat-guide::after {
  content: "↗";
  position: absolute;
  top: calc(8px + var(--safe-top));
  right: 14px;
  font-size: 24px;
}

.wechat-guide-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.wechat-guide p {
  font-size: 12px;
  line-height: 1.45;
}

body.wechat .page {
  padding-top: calc(68px + var(--safe-top));
}

.page {
  height: 100dvh;
  height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(16px + var(--safe-top)) var(--page-pad-x)
    calc(12px + var(--safe-bottom));
  overflow: hidden;
  background: var(--canvas);
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 0;
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.hero-title,
.hero-tagline {
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.fonts-ready .hero-title,
body.fonts-ready .hero-tagline {
  opacity: 1;
}

.hero-title {
  margin-top: 24px;
  font-family: "ZhuoTeZiYouTi", var(--font-sans);
  font-size: clamp(56px, 15vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-tagline {
  margin-top: 12px;
  font-family: "CaoShu", "KaiTi", serif;
  font-size: clamp(22px, 5.5vw, 26px);
  line-height: 1.15;
  color: var(--ink-muted);
}

.cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 260px;
  min-height: 52px;
  padding: 12px 36px;
  background: #fff;
  border-radius: 980px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  touch-action: manipulation;
}

.cta-primary-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--canvas);
  line-height: 1.2;
}

.cta-primary-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(42, 49, 59, 0.45);
  line-height: 1;
}

.cta-primary:active {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.cta-secondary {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 12px;
  -webkit-appearance: none;
}

.cta-secondary:active {
  color: var(--ink);
}

.copy {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.copy p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.copy p + p {
  margin-top: 6px;
}

.pledge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-align: center;
}

.foot {
  flex-shrink: 0;
  margin-top: 4px;
  text-align: center;
}

.foot-nav {
  font-size: 11px;
}

.foot-nav a {
  color: var(--ink-faint);
}

.foot-dot {
  margin: 0 8px;
  color: var(--ink-faint);
}

@media (max-height: 700px) {
  .stage {
    gap: 20px;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .hero-title {
    margin-top: 18px;
    font-size: 48px;
  }

  .hero-tagline {
    margin-top: 8px;
    font-size: 20px;
  }

  .copy p {
    font-size: 11px;
    line-height: 1.5;
  }
}
