/* ============================================================
   壹品九紫 App 官网 · app.ypin.top —— 深色 · 紫金 · 毛玻璃
   夜空紫底与品牌同源（#300030 系加深），琥珀金取自 logo 金纹，
   作为全站唯一高饱和强调色（CTA/眉题/关键数字），构成记忆点。
   卡片一律真毛玻璃：blur + 低透明白 + 1px 亮边 + 顶部内高光。
   ============================================================ */

:root {
  --night-0: #0e0014;
  --night-1: #160221;
  --night-2: #1e0730;
  --purple-500: #843c9c;
  --purple-accent: #a855d8;
  --gold: #f5b93f;
  --gold-deep: #d99a1b;
  --grad-gold: linear-gradient(135deg, #f7c95c, #e8a41f);
  --grad-brand: linear-gradient(135deg, #7a1f9c, #a855d8);
  --ink-hi: #ffffff;
  --ink-1: rgba(255, 255, 255, 0.92);
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.48);
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-line: rgba(255, 255, 255, 0.13);
  --glass-hi: rgba(255, 255, 255, 0.22);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 24px 70px rgba(0, 0, 0, 0.55);
  --r-card: 22px;
  --r-pill: 999px;
  --wrap: 1120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink-1);
  background:
    radial-gradient(900px 520px at 82% -6%, rgba(168, 85, 216, 0.16), transparent 62%),
    radial-gradient(720px 480px at 4% 12%, rgba(122, 31, 156, 0.18), transparent 60%),
    radial-gradient(600px 400px at 92% 46%, rgba(245, 185, 63, 0.05), transparent 65%),
    linear-gradient(180deg, var(--night-1), var(--night-0) 55%, #0a000f);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: rgba(245, 185, 63, 0.35); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 2, 28, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand { display: flex; align-items: center; }

/* 暗版 logo：徽章保留紫金原貌，字样已重着色为暖白 */
.brand-logo {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-2);
}

.nav a { transition: color 0.15s; }
.nav a:hover { color: var(--gold); }

.nav-cta {
  padding: 9px 22px;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: #2a1500;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(245, 185, 63, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 7px 24px rgba(245, 185, 63, 0.45); }

/* ========== Hero ========== */
.hero { position: relative; overflow: hidden; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-a { width: 420px; height: 420px; background: rgba(168, 85, 216, 0.22); top: -140px; left: -100px; }
.glow-b { width: 340px; height: 340px; background: rgba(245, 185, 63, 0.1); bottom: -80px; right: 2%; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 76px;
  padding-bottom: 48px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--ink-hi);
}

.hero-copy .dot { color: var(--gold); }

.hero-sub {
  margin: 0 0 36px;
  max-width: 30em;
  font-size: 17px;
  color: var(--ink-2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}

.btn em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

/* 主 CTA：全站唯一金色实心，形成视觉记忆点 */
.btn-solid {
  background: var(--grad-gold);
  color: #2a1500;
  box-shadow: 0 10px 30px rgba(245, 185, 63, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(245, 185, 63, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

.btn:active, .nav-cta:active { transform: scale(0.97); transition-duration: 0.08s; }

.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  color: var(--ink-2);
  cursor: default;
}

.btn-light {
  background: var(--grad-gold);
  color: #2a1500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-light:hover { transform: translateY(-2px); }

.hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* 手机壳：深色金属 + 屏幕高光 + 品牌光晕 */
.phone {
  position: relative;
  width: 300px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #3a3142, #17101d 70%);
  box-shadow:
    var(--shadow-pop),
    0 0 80px rgba(168, 85, 216, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-btn {
  position: absolute;
  right: -2px;
  width: 3px;
  border-radius: 2px;
  background: #0c0611;
}

.pb-power { top: 26%; height: 56px; }
.pb-volup { left: -2px; right: auto; top: 22%; height: 34px; }
.pb-voldn { left: -2px; right: auto; top: 22%; margin-top: 44px; height: 34px; }

.phone::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 36px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
  z-index: 3;
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 24px;
  background: #0c0611;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone img {
  border-radius: 36px;
  width: 100%;
  height: auto;
  aspect-ratio: 440 / 956;
  object-fit: cover;
  object-position: top;
}

.hero-visual { display: flex; justify-content: center; }

.phone-main { transform: rotate(2.5deg); }

/* ========== Section 通用 ========== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.01em;
  color: var(--ink-hi);
}

.section-sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* ========== Features：毛玻璃卡 ========== */
.features { padding: 96px 0 72px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-card);
  padding: 30px 26px;
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-card);
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-strong);
  border-color: rgba(245, 185, 63, 0.35);
}

/* 线性图标 */
.feature-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 18px;
  background: rgba(168, 85, 216, 0.14);
  border: 1px solid rgba(168, 85, 216, 0.25);
  color: #c88ae0;
}

.fi-gold { background: rgba(245, 185, 63, 0.1); border-color: rgba(245, 185, 63, 0.3); color: var(--gold); }
.fi-blue { background: rgba(90, 168, 255, 0.1); border-color: rgba(90, 168, 255, 0.28); color: #7db9ff; }
.fi-green { background: rgba(72, 214, 128, 0.1); border-color: rgba(72, 214, 128, 0.26); color: #6fdd97; }
.fi-red { background: rgba(255, 108, 96, 0.1); border-color: rgba(255, 108, 96, 0.26); color: #ff8d84; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink-hi);
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ========== Screens ========== */
.screens {
  padding: 72px 0 88px;
  position: relative;
}

.screens::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 340px at 50% 6%, rgba(168, 85, 216, 0.1), transparent 70%);
  pointer-events: none;
}

.screen-rail {
  position: relative;
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 12px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 185, 63, 0.4) transparent;
}

.screen-rail .phone { flex: 0 0 auto; scroll-snap-align: center; }

.phone-sm { width: 250px; border-radius: 40px; padding: 10px; }
.phone-sm::before { width: 90px; height: 20px; top: 10px; }
.phone-sm::after { inset: 10px; border-radius: 32px; }
.phone-sm img { border-radius: 32px; }

.screen-rail figure { margin: 0; }

.screen-rail figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ========== Download：金边玻璃大卡 ========== */
.download { padding: 88px 0; }

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 44px;
  border-radius: 28px;
  padding: 56px 60px;
  color: var(--ink-hi);
  background:
    linear-gradient(150deg, rgba(122, 31, 156, 0.4), rgba(30, 7, 48, 0.55)),
    var(--glass-bg);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(245, 185, 63, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 70px rgba(168, 85, 216, 0.15),
    var(--shadow-pop);
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(245, 185, 63, 0.1);
  filter: blur(60px);
  pointer-events: none;
}

.download-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
}

.download-copy p {
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 16px;
}

.download-copy strong { color: var(--gold); }

.download-tip {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  font-size: 13px !important;
  color: var(--ink-3) !important;
}

.qr-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 18px 18px 12px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(245, 185, 63, 0.4), 0 14px 40px rgba(0, 0, 0, 0.45);
}

.qr-box p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #55555f;
}

/* ========== Contact ========== */
.contact { padding: 8px 0 88px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 15px;
  box-shadow: inset 0 1px 0 var(--glass-hi);
  color: var(--ink-1);
}

.contact-item a { transition: color 0.15s; }
.contact-item a:hover { color: var(--gold); }

.ci-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 0, 16, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  color: var(--ink-3);
}

.footer-inner p { margin: 0; }
.footer-inner a:hover { color: var(--gold); }

/* ========== 滚动进场 ========== */
.reveal {
  opacity: 0.001;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-in, html.no-io .reveal { opacity: 1; transform: none; }

/* ========== 响应式 ========== */
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; padding-top: 8px; }
  .phone-main { width: 240px; transform: none; }
  .nav { display: none; }
  .brand-logo { height: 38px; }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .download-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    text-align: center;
  }
  .download-card .hero-actions { justify-content: center; }
  .qr-box { margin: 0 auto; }
  .header-inner { gap: 12px; }
  .hero-inner { padding-top: 48px; }
}

/* ========== 无障碍降级 ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-cta, .feature-card { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #160221; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .feature-card, .contact-item, .btn-ghost, .download-card {
    background: #21102e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root { --glass-line: rgba(255, 255, 255, 0.4); --ink-2: rgba(255, 255, 255, 0.88); }
}
