/* ============================================================
   Appflow — 暗色高级感设计系统
   品牌渐变取自 AuraPlayer 图标：#F5A623 → #F47B20 → #F43B6F
   ============================================================ */

:root {
  --bg: #08080c;
  --bg-soft: #0d0d13;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-muted: #9a9aa5;
  --text-faint: #6b6b76;
  --blue: #1e6ef5;
  --grad: linear-gradient(135deg, #f5a623 0%, #f47b20 52%, #f43b6f 100%);
  --grad-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.14), rgba(244, 59, 111, 0.14));
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

/* 渐变字标：Appflow 无独立 logo，用渐变文字承担品牌识别 */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-links .cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #0a0a0e;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links .cta:hover { transform: translateY(-1px); opacity: 0.92; color: #0a0a0e; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 420px;
  left: 50%;
  top: -180px;
  transform: translateX(-72%);
  background: radial-gradient(closest-side, rgba(244, 123, 32, 0.22), transparent);
}

.hero::after {
  width: 520px;
  height: 380px;
  left: 50%;
  top: -140px;
  transform: translateX(-8%);
  background: radial-gradient(closest-side, rgba(244, 59, 111, 0.16), transparent);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ---------- 按钮 ---------- */

.btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(244, 123, 32, 0.32);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(244, 59, 111, 0.4); }

.btn-ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { background: var(--card-hover); transform: translateY(-2px); }

/* ---------- 区块 ---------- */

.section { padding: 88px 0; }

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { text-align: center; margin-bottom: 52px; }

.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- App 卡片网格 ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.app-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(244, 123, 32, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

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

.app-card:hover::before { opacity: 1; }

.app-card .icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.app-card h3 {
  font-size: 21px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.app-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.app-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}

.tag-live {
  color: #ffd6a5;
  border-color: rgba(245, 166, 35, 0.35);
  background: rgba(245, 166, 35, 0.08);
}

.app-card-soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  background: transparent;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text-faint);
}

.app-card-soon .plus {
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--text-faint);
}

.app-card-soon h3 { color: var(--text-muted); font-size: 17px; margin-bottom: 6px; }
.app-card-soon p { font-size: 13.5px; }

/* ---------- 理念 ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.value-card .num {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.value-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- 产品页 Hero ---------- */

.product-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 72px;
  text-align: center;
  overflow: hidden;
}

.product-hero .glow {
  position: absolute;
  left: 50%;
  top: -140px;
  width: 760px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(244, 123, 32, 0.2), rgba(244, 59, 111, 0.08) 55%, transparent);
  filter: blur(70px);
  pointer-events: none;
}

.product-hero .app-icon {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  margin: 0 auto 26px;
  box-shadow: 0 24px 60px rgba(244, 123, 32, 0.28), 0 6px 18px rgba(0, 0, 0, 0.5);
  position: relative;
}

.product-hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.product-hero .slogan {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 10px;
}

.product-hero .platform {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 30px;
}

/* ---------- 功能网格 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover { border-color: var(--line-strong); background: var(--card-hover); }

.feature-card .f-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(244, 123, 32, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 19px;
}

.feature-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- 数据条 ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  text-align: center;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 12px;
}

.stat .v {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .l { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- 截图画廊 ---------- */

.shot-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 4px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shot-gallery::-webkit-scrollbar { display: none; }

.shot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  cursor: pointer;
}

/* 不溢出时居中，溢出时可正常横向滚动 */
.shot-item:first-child { margin-left: auto; }
.shot-item:last-child { margin-right: auto; }

.phone {
  position: relative;
  width: min(252px, 74vw);
  aspect-ratio: 393 / 852;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(150deg, #4a4a52 0%, #232329 22%, #101014 55%, #3a3a42 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 4px #050508,
    0 26px 64px rgba(0, 0, 0, 0.55);
}

/* 左侧静音键 + 音量键 */
.phone::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 22%;
  width: 3px;
  height: 32px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #3c3c44, #22222a);
  box-shadow: 0 52px 0 -7px #34343c, 0 96px 0 -13px #34343c;
}

/* 灵动岛 */
.phone::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 13px;
  background: #050507;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.shot-gallery .phone { width: 252px; }

.screen {
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #0a0a0e;
  position: relative;
}

/* 屏幕微弱反光，增强机壳真实感 */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 28%, transparent 46%);
  pointer-events: none;
  z-index: 2;
}

.screen img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  transform: translateY(0);
  transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.shot-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}

.hint-touch { display: none; }

/* 桌面端：悬停后长图自动下滑，移开后滑回 */
@media (hover: hover) and (pointer: fine) {
  .shot-item:hover .screen img {
    transform: translateY(calc(-1 * var(--pan, 0px)));
    transition-duration: var(--pan-dur, 5s);
  }
}

/* 触屏端：改为手机框内直接上滑浏览 */
@media (hover: none) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
  .shot-item .screen { overflow-y: auto; scrollbar-width: none; }
  .shot-item .screen::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen img { transition: none; }
  .shot-item:hover .screen img { transform: none; }
}

/* 大图查看层 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  padding: 4vh 4vw;
}

.lightbox[hidden] { display: none; }

.lightbox-body {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: thin;
}

.lightbox-body img { display: block; }

.lightbox-body img.is-tall {
  width: min(78vw, 560px);
  height: auto;
}

.lightbox-body img:not(.is-tall) {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 86vh;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover { background: var(--card-hover); }

/* ---------- CTA & 页脚 ---------- */

.cta-band {
  position: relative;
  text-align: center;
  padding: 92px 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: 640px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(244, 123, 32, 0.18), transparent);
  filter: blur(60px);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-band p { color: var(--text-muted); margin-bottom: 30px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

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

.footer-inner .links { display: flex; gap: 22px; }
.footer-inner a:hover { color: var(--text-muted); }

/* ---------- 入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .app-card { transition: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--nav-h) + 64px) 0 64px; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}
