/* 苹果下载落地页 v2 — 暖调深底 / 光球 / 骨架手机 / 跑马灯 / 时间轴 */
:root {
  --bg0: #1a1714;
  --bg1: #24201c;
  --text: #f4f0eb;
  --muted: rgba(212, 204, 194, 0.72);
  --dim: rgba(148, 140, 130, 0.55);
  --accent: #e8a84a;
  --accent2: #ff6b4a;
  --line: rgba(255, 248, 240, 0.08);
  --glass: rgba(255, 252, 248, 0.04);
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-lg: 28px;
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s var(--ease-out) infinite;
}

.orb-a {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  top: -15%;
  left: -20%;
  background: radial-gradient(circle, rgba(232, 168, 74, 0.45) 0%, transparent 65%);
  animation-delay: 0s;
}

.orb-b {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  top: 30%;
  right: -25%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.28) 0%, transparent 60%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.orb-c {
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.12) 0%, transparent 55%);
  animation-delay: -12s;
  animation-duration: 25s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, 3%) scale(1.03);
  }
  66% {
    transform: translate(-3%, 2%) scale(0.98);
  }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(8, 7, 6, 0.85) 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 100%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 22px 12px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-glyph {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 24px rgba(232, 168, 74, 0.45);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--glass);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 56px;
}

.hero {
  padding: 8px 0 40px;
}

.hero-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-layout {
    grid-template-columns: 1fr min(340px, 38vw);
    gap: 48px;
  }
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.eyebrow-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.headline {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.headline-accent {
  display: inline-block;
  background: linear-gradient(105deg, #ffd89a 0%, var(--accent2) 48%, #ffb8a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #1a1510;
  background: linear-gradient(180deg, #fff8f0 0%, #f0e0d0 100%);
  box-shadow:
    0 4px 32px rgba(232, 168, 74, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.btn-primary:hover {
  box-shadow:
    0 8px 40px rgba(255, 107, 74, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%, 70%, 100% {
    transform: translateX(-100%);
  }
  85% {
    transform: translateX(100%);
  }
}

.btn-ghost {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(232, 168, 74, 0.35);
  background: rgba(255, 252, 248, 0.07);
}

.hint {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(232, 168, 74, 0.95);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.stats dt {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-stage {
  position: relative;
  width: min(280px, 68vw);
  aspect-ratio: 280 / 570;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(232, 168, 74, 0.2) 0%, transparent 65%);
  filter: blur(24px);
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.phone-frame {
  position: relative;
  height: 100%;
  border-radius: 48px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2622 0%, #141210 50%, #1c1814 100%);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #0a0908;
  border-radius: 20px;
  z-index: 3;
}

.phone-notch::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1918 40%, #0a0908 60%);
  box-shadow: inset 0 0 2px rgba(80, 80, 120, 0.4);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #0e0c0a;
}

.carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone-reflection {
  position: absolute;
  inset: 12px;
  border-radius: 38px;
  z-index: 2;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.07) 0%, transparent 35%);
  pointer-events: none;
}

.marquee-wrap {
  margin: 0 -22px 48px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section-head {
  margin-bottom: 24px;
  max-width: 520px;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.bento {
  margin-bottom: 56px;
}

.grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .tile-hero {
    grid-column: 1 / -1;
  }
}

.tile {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
  overflow: hidden;
}

.tile:hover {
  border-color: rgba(232, 168, 74, 0.22);
  transform: translateY(-3px);
}

.tile-hero {
  padding-bottom: 32px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-icon--pin {
  background: linear-gradient(135deg, rgba(232, 168, 74, 0.2), rgba(255, 107, 74, 0.2));
  color: var(--accent);
}

.tile-icon--lock {
  background: rgba(120, 180, 255, 0.12);
  color: #7ab4ff;
}

.tile-icon--shield {
  background: rgba(94, 234, 180, 0.12);
  color: #5eead4;
}

.tile-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.tile p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 36em;
}

.tile-pulse {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 74, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tile-pulse::before,
.tile-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 168, 74, 0.25);
  animation: pulse-ring 2.5s ease-out infinite;
}

.tile-pulse::after {
  animation-delay: 1.25s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.steps {
  margin-bottom: 56px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  max-width: 640px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
  border-radius: 2px;
  opacity: 0.45;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 0 0 32px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--bg0);
  border: 3px solid var(--accent);
  box-shadow: 0 0 16px rgba(232, 168, 74, 0.45);
}

.timeline-body {
  padding-bottom: 4px;
}

.step-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.timeline-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.timeline-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.foot {
  text-align: center;
  padding-top: 8px;
}

.foot-line {
  height: 1px;
  max-width: 120px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.foot p {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}

.foot .fine {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .marquee,
  .btn-shine,
  .phone-glow,
  .screen-line {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:active,
  .tile:hover {
    transform: none;
  }
}

/* 假页面（微信/QQ内显示的正常新闻页） */
.fake-page {
  position: relative;
  z-index: 1;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #333;
  min-height: 100vh;
}

.fake-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.fake-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.fake-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.fake-header span {
  font-size: 14px;
  font-weight: 600;
  color: #c41a16;
}

.fake-article h1 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

.fake-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #999;
}

.fake-article p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-indent: 2em;
}

.fake-tag {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

/* 微信/QQ蒙层 */
#wechat-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.wechat-mask-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.wechat-mask-pop {
  position: relative;
  z-index: 1;
  margin: max(60px, env(safe-area-inset-top)) 20px 0;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  color: #333;
}

.wechat-mask-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.wechat-mask-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.wechat-mask-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #888;
}

.wechat-mask-steps p {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.6;
}

.wechat-mask-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #e8a84a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.wechat-mask-divider {
  text-align: center;
  margin: 16px 0;
  font-size: 13px;
  color: #bbb;
}

.wechat-mask-copy {
  display: flex;
  gap: 8px;
}

.wechat-mask-copy input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  background: #f8f8f8;
}

.wechat-mask-copy button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--accent, #e8a84a);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
