/* ============================================================
   QQYAI 官方下载站 · style.css
   主题：紫罗兰渐变 · 轻量明亮 · 移动优先响应式
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --primary: #7C3AED;
  --primary-2: #8B5CF6;
  --accent: #EC4899;
  --accent-2: #F59E0B;
  --grad-main: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 48%, #EC4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.10) 0%, rgba(139,92,246,.10) 48%, rgba(236,72,153,.10) 100%);
  --bg: #F8F7FF;
  --bg-2: #FFFFFF;
  --text: #1E1B33;
  --text-2: #5B5678;
  --text-3: #8B87A8;
  --line: #E9E6F7;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(124,58,237,.10);
  --shadow-lg: 0 18px 50px rgba(124,58,237,.18);
  --header-h: 68px;
  --font: "PingFang SC","Microsoft YaHei","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 8px 22px rgba(139,92,246,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(139,92,246,.45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--primary);
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.22);
}
.btn-ghost:hover { background: rgba(124,58,237,.14); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-big { padding: 17px 44px; font-size: 17px; }

/* 渐变文字 */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 分区通用 */
.section { padding: 88px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--primary); text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.16);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.3; }
.section-sub { color: var(--text-2); margin-top: 14px; font-size: 16px; }

/* 滚动出现动画（JS 添加 .in-view） */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   顶部导航
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(248,247,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(124,58,237,.08); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(124,58,237,.25); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .5px;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--primary); background: rgba(124,58,237,.07); }
.nav-link.active { color: var(--primary); background: rgba(124,58,237,.10); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero 首屏
   ============================================================ */
.hero {
  position: relative; padding: calc(var(--header-h) + 72px) 0 72px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 { width: 520px; height: 520px; background: rgba(139,92,246,.22); top: -160px; left: -120px; animation: drift 12s ease-in-out infinite alternate; }
.blob-2 { width: 420px; height: 420px; background: rgba(236,72,153,.16); top: 40px; right: -140px; animation: drift 14s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 360px; height: 360px; background: rgba(59,130,246,.12); bottom: -140px; left: 32%; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(28px,18px) scale(1.06); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: #fff; border: 1px solid rgba(124,58,237,.18);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.8);} }

.hero-title { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; line-height: 1.25; }
.hero-brand {
  display: block; font-size: clamp(14px, 1.6vw, 17px); font-weight: 700;
  letter-spacing: 2px; color: var(--text-3); margin-bottom: 12px;
}
.hero-desc { color: var(--text-2); font-size: 17px; margin-top: 18px; max-width: 520px; }

.hero-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.hot-label { font-size: 13px; font-weight: 700; color: var(--text-3); margin-right: 2px; }
.hot-tag {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  color: var(--primary); background: #fff; border: 1px solid rgba(124,58,237,.18);
  transition: all .2s;
}
.hot-tag:hover { background: var(--grad-main); color: #fff; border-color: transparent; transform: translateY(-2px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { color: var(--text-3); font-size: 13.5px; margin-top: 20px; }

/* 手机样机 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2b2440, #141022);
  box-shadow: 0 30px 70px rgba(30,20,60,.35), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #141022; border-radius: 999px; z-index: 2; }
.phone-screen { width: 100%; border-radius: 34px; aspect-ratio: 335/597; object-fit: cover; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(124,58,237,.14); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}
.float-card-1 { top: 14%; left: -8%; animation-delay: 0s; }
.float-card-2 { bottom: 20%; right: -10%; animation-delay: 1.6s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--grad-main); position: relative; }
.fc-icon-online::after {
  content: ""; position: absolute; inset: 10px; border-radius: 6px;
  background: #fff; clip-path: polygon(30% 50%, 100% 0, 100% 100%, 30% 50%, 0 50%);
}
.fc-title { font-size: 12px; color: var(--text-3); }
.fc-num { font-size: 18px; font-weight: 800; color: var(--text); }

.typing { display: flex; gap: 4px; padding: 4px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; transform: translateY(0);} 40% { opacity: 1; transform: translateY(-3px);} }

/* ============================================================
   数据统计
   ============================================================ */
.stats { padding: 56px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }

/* ============================================================
   核心功能
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-main); opacity: 0; transition: opacity .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,.28); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--grad-soft); color: var(--primary);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 14.5px; }

/* ============================================================
   热门角色
   ============================================================ */
.characters { background: linear-gradient(180deg, var(--bg) 0%, #F1EDFF 100%); }
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.char-card {
  background: var(--bg-2); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.char-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.char-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.char-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.char-card:hover .char-cover img { transform: scale(1.05); }
.char-rank {
  position: absolute; top: 12px; left: 12px;
  background: var(--grad-main); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(139,92,246,.4);
}
.char-rank.rank-2 { background: linear-gradient(135deg,#F59E0B,#EC4899); }
.char-rank.rank-3 { background: linear-gradient(135deg,#6366F1,#7C3AED); }
.char-rank.rank-4 { background: linear-gradient(135deg,#0EA5E9,#6366F1); }
.char-rank.rank-5 { background: linear-gradient(135deg,#10B981,#0EA5E9); }
.char-rank.rank-6 { background: linear-gradient(135deg,#8B87A8,#5B5678); }
.char-info { padding: 18px 20px 20px; }
.char-info h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.char-gender { font-size: 13px; color: var(--primary); font-weight: 600; }
.char-tags { display: flex; gap: 8px; margin: 10px 0; }
.char-tags span {
  font-size: 12px; color: var(--primary);
  background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.16);
  padding: 3px 10px; border-radius: 999px;
}
.char-brief {
  color: var(--text-2); font-size: 13.5px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 4.4em;
}
.char-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.char-hot { font-size: 13px; font-weight: 700; color: var(--accent); }
.char-chat {
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--grad-main); padding: 8px 18px; border-radius: 999px;
  transition: box-shadow .2s, transform .2s;
}
.char-chat:hover { box-shadow: 0 8px 18px rgba(139,92,246,.4); transform: translateY(-2px); }

/* ============================================================
   角色榜单
   ============================================================ */
.rank-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.rank-tab {
  font-size: 15px; font-weight: 600; color: var(--text-2);
  padding: 10px 24px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  transition: all .25s;
}
.rank-tab:hover { color: var(--primary); border-color: rgba(124,58,237,.3); }
.rank-tab.active { color: #fff; background: var(--grad-main); border-color: transparent; box-shadow: 0 8px 20px rgba(139,92,246,.35); }

.rank-panel { display: none; }
.rank-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }

.rank-list {
  max-width: 860px; margin: 0 auto; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 10px 26px; box-shadow: var(--shadow);
}
.rank-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: none; }
.rank-no { font-size: 20px; font-weight: 800; color: var(--text-3); width: 34px; font-style: italic; }
.rank-row:nth-child(1) .rank-no { color: #F59E0B; }
.rank-row:nth-child(2) .rank-no { color: #94A3B8; }
.rank-row:nth-child(3) .rank-no { color: #D97706; }
.rank-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 6px 14px rgba(124,58,237,.2);
}
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 16px; font-weight: 700; }
.rank-tag { font-size: 12.5px; color: var(--text-3); }
.rank-side { text-align: right; }
.rank-val { font-size: 14px; font-weight: 700; color: var(--text); }
.rank-delta { font-size: 12.5px; font-weight: 700; }
.rank-delta.up { color: #10B981; }
.rank-delta.down { color: #EF4444; }
.rank-delta.new { color: var(--accent); }

/* ============================================================
   界面一览
   ============================================================ */
.preview { background: #fff; border-top: 1px solid var(--line); }
.preview-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1080px; margin: 0 auto;
}
.shot {
  background: linear-gradient(160deg, #2b2440, #141022);
  border-radius: 22px; padding: 12px 12px 0;
  cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot img { border-radius: 14px; width: 100%; aspect-ratio: 335/597; object-fit: cover; }
.shot figcaption {
  text-align: center; color: #fff; font-size: 14px; font-weight: 600;
  padding: 14px 6px 16px; line-height: 1.6;
}
.shot figcaption span { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,.62); margin-top: 2px; }

/* ============================================================
   下载区
   ============================================================ */
.download { background: linear-gradient(180deg, #F1EDFF 0%, var(--bg) 100%); }
.download-box {
  position: relative; text-align: center; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 28px; padding: 64px 32px;
  box-shadow: var(--shadow-lg);
}
.download-glow {
  position: absolute; inset: -40% -20% auto -20%; height: 70%;
  background: radial-gradient(closest-side, rgba(139,92,246,.20), transparent 70%);
  pointer-events: none;
}
.download-title { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; margin: 8px 0 14px; }
.download-desc { color: var(--text-2); max-width: 620px; margin: 0 auto 30px; font-size: 16px; }
.download-actions { position: relative; }
.download-meta { color: var(--text-3); font-size: 13.5px; margin-top: 18px; }
.download-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px; }
.download-points li { position: relative; color: var(--text-2); font-size: 13.5px; padding-left: 22px; }
.download-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-main);
  clip-path: polygon(38% 62%, 100% 0, 100% 0, 40% 88%, 0 48%, 0 48%);
}

/* ============================================================
   常见问题
   ============================================================ */
.faq-wrap { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, border-color .25s;
}
.faq-item[open] { border-color: rgba(124,58,237,.3); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 16px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { position: relative; width: 22px; height: 22px; flex: none; transition: transform .3s; }
.faq-arrow::before, .faq-arrow::after {
  content: ""; position: absolute; background: var(--primary); border-radius: 2px;
}
.faq-arrow::before { width: 12px; height: 2px; top: 10px; left: 5px; }
.faq-arrow::after { width: 2px; height: 12px; top: 5px; left: 10px; }
.faq-item[open] .faq-arrow { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; color: var(--text-2); font-size: 14.5px; }

/* ============================================================
   页脚
   ============================================================ */
.footer { background: #17142A; color: #B9B4D8; padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.footer-logo { width: 44px; height: 44px; border-radius: 12px; }
.footer-name { font-size: 19px; font-weight: 800; color: #fff; }
.footer-slogan { font-size: 13px; color: #8B87A8; margin-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; margin-top: 12px; }
.footer-copy p { font-size: 13px; color: #8B87A8; line-height: 1.9; }

/* ============================================================
   浮层组件
   ============================================================ */
.back-top {
  position: fixed; right: 24px; bottom: 96px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-main); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(139,92,246,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top svg { width: 20px; height: 20px; }
.back-top:hover { transform: translateY(-3px); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar-btn { width: 100%; }
.mobile-bar.show { display: block; }

/* 图片灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,12,32,.9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { max-width: min(88vw, 420px); text-align: center; }
.lb-figure img { width: 100%; border-radius: 16px; max-height: 78vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-figure figcaption { color: #E6E2FF; font-size: 14px; margin-top: 14px; line-height: 1.7; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; color: #fff; font-size: 34px; line-height: 1;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 22px; right: 22px; font-size: 30px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .float-card-1 { left: 6%; }
  .float-card-2 { right: 6%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-gallery { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 4px; padding: 16px 20px;
    background: rgba(248,247,255,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .28s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { font-size: 16px; padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .preview-gallery { grid-template-columns: 1fr; max-width: 360px; }
  .download-box { padding: 48px 20px; }
  .footer-inner { flex-direction: column; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-actions .btn { width: 100%; }
  body { padding-bottom: 0; }
}

@media (max-width: 420px) {
  .phone { width: 250px; }
  .float-card { padding: 10px 12px; }
  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
  .rank-list { padding: 8px 14px; }
  .rank-row { gap: 10px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
