/* ============================================================
   SuperMagic 官网 · 设计系统
   视觉语言：iOS-UI-MedicalTech（天空蓝渐变 / 白卡片 / 深蓝胶囊 / 毛玻璃）
   ============================================================ */

:root {
  /* 天空蓝渐变 */
  --sky-top: #F2F9FF;
  --sky-mid: #DCEEFF;
  --sky-bottom: #C4E3FF;
  /* 表面与文字 */
  --surface: #FFFFFF;
  --surface-2: #F7FBFF;
  --ink: #1B2A41;
  --ink-2: #7A8699;
  --ink-3: #A8B3C5;
  /* 强调与按钮 */
  --accent: #3D9BFF;
  --accent-soft: rgba(61, 155, 255, 0.12);
  --btn-primary: #0F4C81;
  --btn-primary-press: #0C3A62;
  /* 线与状态 */
  --separator: #E6ECF4;
  --success: #34C759;
  --warning: #FF9F0A;
  /* 圆角与间距（8pt 网格，页边距随视口流体缩放） */
  --r-card: 22px;
  --r-media: 18px;
  --r-pill: 999px;
  --page-x: clamp(18px, 2.2vw, 24px);
  /* 阴影 */
  --shadow-card: 0 6px 14px rgba(27, 42, 65, 0.07);
  --shadow-card-hover: 0 14px 34px rgba(27, 42, 65, 0.13);
  --shadow-float: 0 18px 44px rgba(15, 76, 129, 0.16);
  /* 毛玻璃 */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  /* 页面背景（整页渐变） */
  --bg-gradient: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-bottom) 100%);
}

/* ---------- 深色模式：深蓝夜空 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #0B1526;
    --sky-mid: #0E1D33;
    --sky-bottom: #12263F;
    --surface: #16273F;
    --surface-2: #1B2E49;
    --ink: #EAF2FC;
    --ink-2: #93A5BD;
    --ink-3: #64768E;
    --accent: #5FB0FF;
    --accent-soft: rgba(95, 176, 255, 0.14);
    --btn-primary: #1E6FDB;
    --btn-primary-press: #175CB8;
    --separator: rgba(234, 242, 252, 0.10);
    --shadow-card: 0 6px 14px rgba(0, 0, 0, 0.30);
    --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, 0.42);
    --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.45);
    --glass-bg: rgba(11, 21, 38, 0.62);
    --glass-border: rgba(234, 242, 252, 0.08);
  }
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* 异形屏安全区（刘海/灵动岛，配合 viewport-fit=cover） */
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent-soft); }

.container {
  width: min(1120px, 100% - var(--page-x) * 2);
  margin-inline: auto;
}

/* ---------- 文字层级 ---------- */
.h-display {
  font-size: clamp(34px, 6.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  margin: 0;
}
.h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.h3 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.desc { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.desc-lg { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-2); line-height: 1.75; margin: 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

/* ---------- 毛玻璃导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 0.5px solid transparent;
  /* 横屏刘海安全区 */
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}
.nav.is-scrolled {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--separator);
}
.nav-inner {
  width: min(1120px, 100% - var(--page-x) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--btn-primary));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 76, 129, 0.28);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
.nav-links a.is-active { color: var(--btn-primary); background: var(--accent-soft); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .nav-links a.is-active { color: var(--accent); }
}
.nav-cta {
  margin-left: 8px;
  height: 38px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
}
.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 60px; left: var(--page-x); right: var(--page-x);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--r-card);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 0.5px solid var(--glass-border);
    box-shadow: var(--shadow-card-hover);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .nav-burger { display: grid; place-items: center; }
}

/* ---------- 顶部滚动进度条 ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--btn-primary));
  z-index: 110;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 0.5px solid var(--glass-border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
/* 悬停浮起仅在真鼠标设备上生效（触屏不产生粘滞悬停态） */
@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
  }
  .app-card .app-icon-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
  .app-card:hover .app-icon-card { transform: scale(1.08) rotate(-3deg); }
  .app-card:hover .card-arrow { transform: translateX(4px); color: var(--accent); }
  .btn-primary:hover { background: var(--btn-primary-press); transform: translateY(-2px); text-decoration: none; }
  .btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
  .btn-appstore:hover { transform: translateY(-2px); text-decoration: none; opacity: 0.92; }
}

/* ---------- 胶囊按钮 ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.25s ease;
}
.btn-primary:active { background: var(--btn-primary-press); transform: scale(0.97); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border: 1.5px solid var(--separator);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .btn-row { justify-content: center; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--btn-primary);
}
@media (prefers-color-scheme: dark) { .badge { color: var(--accent); } }
.badge-soon {
  background: rgba(255, 159, 10, 0.12);
  color: var(--warning);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge-dot.is-live {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.08); }
}

/* ---------- 区块 ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 640px; display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- App 图标 ---------- */
.app-icon {
  border-radius: 22.375%;
  box-shadow: 0 10px 26px rgba(15, 76, 129, 0.22);
  -webkit-user-select: none;
  user-select: none;
}
.app-icon-hero {
  width: clamp(120px, 15vw, 168px);
  height: clamp(120px, 15vw, 168px);
}
.app-icon-card { width: 84px; height: 84px; }
.app-icon-sm { width: 56px; height: 56px; }

/* ---------- 功能网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 手机模拟框 ---------- */
.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 44px;
  background: var(--surface);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  padding: 11px;
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--sky-mid);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 26px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.92;
  z-index: 2;
}

/* ---------- 浮动装饰 ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-color-scheme: dark) { .orb { opacity: 0.30; } }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(40px, 6vw, 64px) 0 40px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 0.5px solid var(--separator);
}
@media (prefers-color-scheme: dark) {
  .footer { background: rgba(5, 12, 24, 0.45); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-title { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--ink-2); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 0.5px solid var(--separator);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------- 法务文本页 ---------- */
.legal-body { max-width: 760px; margin-inline: auto; }
.legal-body h2 { font-size: 20px; font-weight: 600; margin: 36px 0 10px; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.legal-body ul { padding-left: 22px; }

/* ============================================================
   滚动动画系统（由 motion.js 驱动）
   ============================================================ */

/* 滚动浮现：默认向上淡入 */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="blur"]  { filter: blur(14px); transform: translateY(20px); }
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 视差层由 JS 直接设置 transform，不加过渡 */
.parallax { will-change: transform; }

/* ---------- 首页 Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-copy { display: grid; gap: 22px; justify-items: center; position: relative; z-index: 2; }
.hero-icons {
  display: flex;
  gap: clamp(10px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 44px);
  position: relative;
  z-index: 2;
}
.hero-icons .app-icon {
  width: clamp(56px, 8vw, 88px);
  height: clamp(56px, 8vw, 88px);
  animation: float-y 6s ease-in-out infinite;
}
.hero-icons .app-icon:nth-child(2) { animation-delay: -1.2s; }
.hero-icons .app-icon:nth-child(3) { animation-delay: -2.4s; }
.hero-icons .app-icon:nth-child(4) { animation-delay: -3.6s; }
.hero-icons .app-icon:nth-child(5) { animation-delay: -4.8s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.12em;
}
@media (prefers-color-scheme: dark) { .scroll-cue { color: var(--ink-2); } }
.scroll-cue .mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--ink-3);
  border-radius: 999px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--ink-3);
  transform: translateX(-50%);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* ---------- 品牌跑马灯 ---------- */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 0.5px solid var(--separator);
  background: rgba(255, 255, 255, 0.35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
@media (prefers-color-scheme: dark) { .marquee { background: rgba(5, 12, 24, 0.35); } }
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee-item img { width: 26px; height: 26px; border-radius: 7px; }

/* ---------- App 卡片（首页总览） ---------- */
.app-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.app-card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card-title .h3 { font-size: 20px; }
.app-card-links { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.card-arrow {
  position: absolute;
  top: 26px; right: 24px;
  color: var(--ink-3);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* ---------- 统计数字 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; padding: 28px 16px; }
.stat-value {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ---------- 展示画廊（横向滚动吸附） ---------- */
.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--page-x) 26px;
  margin-inline: calc(var(--page-x) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: center; flex-shrink: 0; }
.gallery .phone { width: 264px; }
.gallery img.shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 双栏布局 ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split.reverse .split-media { order: -1; }

/* ---------- 功能行（编号列表式） ---------- */
.feature-rows { display: grid; gap: 14px; }
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
}
.feature-row .num {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  min-width: 28px;
}

/* ---------- 视差装饰球 ---------- */
.orb-blue { background: radial-gradient(circle at 30% 30%, #9CCBFF, #3D9BFF); }
.orb-teal { background: radial-gradient(circle at 30% 30%, #7FE3D2, #13B4AD); }
.orb-soft { background: radial-gradient(circle at 30% 30%, #FFFFFF, #C4E3FF); }

/* ---------- CTA 区 ---------- */
.cta-card {
  text-align: center;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.cta-card .h1 { margin-bottom: 16px; }
.cta-card .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- App Store 下载按钮 ---------- */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (prefers-color-scheme: dark) { .btn-appstore { background: #fff; color: #0B1526; } }
.btn-appstore svg { width: 26px; height: 26px; fill: currentColor; }
.btn-appstore .as-small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.btn-appstore .as-big { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; }

/* ============================================================
   多设备自适应（手机 / iPad / iPhone Duo 折叠屏 / 桌面高分屏）
   断点策略（以内容可用性为准，非唯设备论）：
   ≤380  小屏手机（iPhone SE 一类）
   ≤620  常规手机竖屏 / Duo 折叠态（窄长屏）
   620–880 平板竖屏 / Duo 展开态（近方形屏）
   880–1600 桌面
   ≥1600 大屏高分桌面（容器微扩）
   另有 max-height 短屏紧凑模式（横屏手机 / 展开态 Duo 下半屏）
   ============================================================ */

/* ---------- 小屏手机 ≤380px ---------- */
@media (max-width: 380px) {
  /* 字号压到整行中文标题不被拆词的宽度 */
  .h-display { font-size: 31px; }
  .h1 { font-size: 28px; }
  .hero-icons { gap: 8px; margin-top: 24px; }
  .hero-icons .app-icon { width: 52px; height: 52px; }
  .btn-row { gap: 10px; }
  .btn-primary { height: 50px; padding: 0 26px; font-size: 16px; }
  .stat-value { font-size: 30px; }
  .gallery { gap: 16px; }
  .gallery .phone { width: 236px; }
  .phone { width: min(272px, 82vw); }
  .btn-appstore { height: 50px; }
  .btn-appstore .as-big { font-size: 17px; }
}

/* ---------- 平板 / iPhone Duo 展开态（620–880，含近方形屏） ---------- */
@media (min-width: 621px) and (max-width: 880px) {
  .gallery .phone { width: 280px; }
  .split { gap: 36px; }
  .hero-icons .app-icon { width: 76px; height: 76px; }
}

/* ---------- iPad 横屏及以上 881–1100：split 提前双栏 ---------- */
@media (min-width: 881px) and (max-width: 1100px) {
  .split { gap: 40px; }
  .phone { width: min(272px, 60vw); }
}

/* ---------- 大屏高分桌面 ≥1600：容器微扩，保持阅读宽度 ---------- */
@media (min-width: 1600px) {
  .container, .nav-inner { width: min(1200px, 100% - var(--page-x) * 2); }
}

/* ---------- 超宽屏 ≥2200（4K/5K 全屏）：限制首屏排版蔓延 ---------- */
@media (min-width: 2200px) {
  :root { --page-x: 32px; }
  .hero-copy { max-width: 900px; }
}

/* ---------- 短屏紧凑模式（横屏手机、展开态 Duo 的矮视口） ---------- */
@media (max-height: 640px) and (min-width: 480px) {
  .hero { padding: 92px 0 48px; }
  .hero-icons { margin-top: 18px; }
  .hero-icons .app-icon { width: 54px; height: 54px; }
  .h-display { font-size: clamp(30px, 4.6vw, 46px); }
  .desc-lg { font-size: 16px; }
  .scroll-cue { display: none; }
  .section { padding: clamp(56px, 8vw, 88px) 0; }
}

/* ---------- 触屏设备：去掉粘滞 hover 残留，按钮全尺寸触达 ---------- */
@media (hover: none) {
  .card-hover, .app-card .app-icon-card, .card-arrow { transition: none; }
  .nav-links a { padding: 12px 16px; }
  a, button { touch-action: manipulation; }
}

/* 无动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .parallax { transform: none !important; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
