/* =========================================================
   美腿社 · 共享设计系统
   视觉概念：夏日吃瓜电台 —— 西瓜粉 x 蜜橙渐变 + 葡萄紫夜场
   ========================================================= */

:root {
  /* 色彩令牌 */
  --bg: #FFF8F4;
  --bg-soft: #FFF0E7;
  --ink: #2A1E3F;
  --ink-2: #6B5B7E;
  --ink-3: #9C8BAF;
  --line: rgba(42, 30, 63, 0.08);
  --card: #FFFFFF;

  --pink: #FF4D6D;
  --pink-2: #FF7A5C;
  --orange: #FFA73A;
  --violet: #7C5CFC;
  --violet-2: #5B3FD4;
  --mint: #2EC4B6;

  --night: #241735;
  --night-2: #33204D;

  --grad: linear-gradient(120deg, #FF4D6D 0%, #FF7A5C 45%, #FFA73A 100%);
  --grad-soft: linear-gradient(120deg, rgba(255, 77, 109, 0.12), rgba(255, 167, 58, 0.12));
  --grad-night: linear-gradient(135deg, #241735 0%, #4A2C6B 100%);
  --grad-violet: linear-gradient(120deg, #7C5CFC, #B79CFF);

  /* 字体令牌 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Arial Narrow", var(--font);

  /* 圆角与阴影 */
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(42, 30, 63, 0.06);
  --shadow: 0 12px 32px rgba(255, 77, 109, 0.14), 0 3px 10px rgba(42, 30, 63, 0.06);
  --shadow-lg: 0 24px 60px rgba(124, 92, 252, 0.18);

  /* 布局 */
  --wrap: 1200px;
  --header-h: 68px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: 0.01em; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 77, 109, 0.22); }

:focus-visible { outline: 3px solid rgba(124, 92, 252, 0.55); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- 通用文字 ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--pink);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); }
.eyebrow.on-night { color: #FFB3C2; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: var(--r-pill);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 77, 109, 0.42); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--pink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-violet { background: var(--grad-violet); color: #fff; box-shadow: 0 8px 20px rgba(124, 92, 252, 0.35); }
.btn-violet:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(124, 92, 252, 0.45); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-md { padding: 12px 26px; font-size: 15px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 248, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(42, 30, 63, 0.06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; }
.brand-name b { color: var(--pink); }

.nav { display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.nav-link {
  position: relative; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(42, 30, 63, 0.05); }
.nav-link.active { color: var(--pink); background: var(--grad-soft); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--grad-soft);
}
.hamburger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 55;
  background: var(--grad-night);
  padding: 22px 24px 28px;
  transform: translateY(-16px); opacity: 0; pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg);
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: grid; gap: 4px; margin-bottom: 18px; }
.mobile-menu .nav-link { color: #EDE6F7; font-size: 16px; padding: 12px 16px; border-radius: 14px; }
.mobile-menu .nav-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mobile-menu .nav-link.active { color: #fff; background: var(--grad); }
.mobile-menu .btn { width: 100%; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 320px at 88% 12%, rgba(255, 167, 58, 0.18), transparent 65%),
    radial-gradient(520px 420px at 6% 88%, rgba(255, 77, 109, 0.14), transparent 62%),
    radial-gradient(460px 360px at 70% 78%, rgba(124, 92, 252, 0.12), transparent 65%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%; background: rgba(255, 77, 109, 0.35);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.hero-title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.22; margin: 18px 0 16px; }
.hero-lead { font-size: 16.5px; color: var(--ink-2); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); }

.hero-figure { position: relative; }
.hero-illus { width: 100%; height: auto; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-chip {
  position: absolute; padding: 10px 16px; border-radius: var(--r-pill);
  background: #fff; box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line);
  animation: floaty 4.2s ease-in-out infinite;
}
.float-chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 7px; }
.float-a { top: 8%; left: -4%; animation-delay: 0.4s; }
.float-b { bottom: 14%; right: -2%; animation-delay: 1.1s; color: var(--violet); }

.stats {
  position: relative; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat { padding: 24px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }
.stat-num {
  font-family: var(--font-num); font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800; color: var(--ink);
}
.stat-num em { font-style: normal; color: var(--pink); }
.stat-label { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 区块通用 ---------- */
.sec { padding: 76px 0; }
.sec-soft { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.sec-night {
  background: var(--grad-night);
  color: #F2EDFB;
}
.sec-night .sec-title { color: #fff; }
.sec-night .sec-sub { color: rgba(242, 237, 251, 0.72); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.sec-title { font-size: clamp(24px, 3vw, 34px); margin-top: 10px; }
.sec-sub { color: var(--ink-3); margin-top: 8px; font-size: 15px; }
.link-more {
  flex-shrink: 0; padding: 10px 20px; border-radius: var(--r-pill);
  border: 2px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: all 0.18s ease;
}
.link-more:hover { border-color: var(--pink); color: var(--pink); transform: translateX(3px); }
.sec-night .link-more { border-color: rgba(255, 255, 255, 0.3); color: #EDE6F7; }
.sec-night .link-more:hover { border-color: #fff; color: #fff; }

/* ---------- 筛选 Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  padding: 9px 20px; border-radius: var(--r-pill);
  background: #fff; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--pink); color: var(--pink); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255, 77, 109, 0.3); }

/* ---------- 排行榜 ---------- */
.rank { display: grid; gap: 14px; }
.rank-item {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rank-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rank-num {
  flex-shrink: 0; width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(42, 30, 63, 0.06);
  font-family: var(--font-num); font-size: 21px; font-weight: 800; color: var(--ink-2);
}
.rank-num.is-top { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 77, 109, 0.35); }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 16.5px; margin-bottom: 6px; }
.rank-title a { transition: color 0.18s ease; }
.rank-title a:hover { color: var(--pink); }
.rank-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.rank-tag {
  padding: 3px 12px; border-radius: var(--r-pill);
  background: var(--grad-soft); color: var(--pink);
  font-weight: 700; font-size: 12.5px;
}
.heat { color: var(--ink-2); font-weight: 600; }
.trend-badge {
  flex-shrink: 0; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 15px; font-weight: 800;
  color: #fff;
}
.trend-badge.is-top { background: var(--grad); }
.trend-badge.is-hot { background: var(--orange); }
.trend-badge.is-new { background: var(--mint); }

/* ---------- 视频卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid-video { grid-template-columns: repeat(3, 1fr); }
.grid-video-2 { grid-template-columns: repeat(2, 1fr); }

.card-video {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-video:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  background: var(--thumb, var(--grad));
  overflow: hidden;
}
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(36, 23, 53, 0.35));
}
.thumb-txt {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font-size: 46px; font-weight: 800; color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.05em;
}
.thumb-badge {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 3px 10px; border-radius: 8px;
  background: rgba(36, 23, 53, 0.72); color: #fff;
  font-family: var(--font-num); font-size: 12.5px; font-weight: 700;
}
.play-ico {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.88);
  display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.play-ico::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 14px solid var(--pink);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.card-video:hover .play-ico { transform: translate(-50%, -50%) scale(1); }
.card-body { padding: 16px 18px 18px; }
.card-cat {
  display: inline-block; padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--grad-soft); color: var(--pink);
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.card-title { font-size: 16.5px; margin-bottom: 8px; }
.card-title a:hover { color: var(--pink); }
.card-meta { font-size: 13px; color: var(--ink-3); }

/* ---------- 分类直达 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 12px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255, 77, 109, 0.35); }
.cat-ico {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--cat-bg, var(--grad-soft));
  color: var(--cat-fg, var(--pink));
  transition: transform 0.2s ease;
}
.cat-card:hover .cat-ico { transform: scale(1.08) rotate(-4deg); }
.cat-ico svg { width: 26px; height: 26px; }
.cat-name { font-weight: 700; font-size: 15px; }
.cat-count { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 深度爆料卡片 ---------- */
.card-deep {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-deep:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.deep-cover {
  border-radius: var(--r-sm); overflow: hidden;
  min-height: 120px;
  display: grid; place-items: center;
  background: var(--deep, var(--grad-violet));
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800; font-size: 15px; letter-spacing: 0.12em;
}
.deep-body { min-width: 0; }
.deep-title { font-size: 17.5px; margin-bottom: 8px; }
.deep-title a:hover { color: var(--pink); }
.deep-excerpt { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.deep-stats { font-size: 13px; color: var(--ink-3); }

/* ---------- App 横幅 ---------- */
.app-banner {
  background: var(--grad-night);
  border-radius: var(--r-lg);
  padding: 46px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
  color: #F2EDFB;
}
.app-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px 260px at 92% 10%, rgba(255, 77, 109, 0.35), transparent 65%),
              radial-gradient(320px 240px at 4% 92%, rgba(124, 92, 252, 0.4), transparent 65%);
}
.app-banner > * { position: relative; }
.app-banner h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; margin-bottom: 10px; }
.app-banner p { color: rgba(242, 237, 251, 0.78); margin-bottom: 22px; max-width: 520px; }
.app-banner .btn { margin-right: 10px; }
.app-mascot { width: 120px; height: 120px; }

/* ---------- 内页 Hero ---------- */
.page-hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 300px at 90% 0%, rgba(255, 167, 58, 0.16), transparent 60%),
              radial-gradient(360px 260px at 4% 100%, rgba(255, 77, 109, 0.12), transparent 60%);
}
.page-hero > .wrap { position: relative; }
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); margin-bottom: 18px;
}
.crumbs a { color: var(--ink-2); font-weight: 600; }
.crumbs a:hover { color: var(--pink); }
.crumbs .sep { color: var(--ink-3); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; }
.page-lead { font-size: 16px; color: var(--ink-2); max-width: 640px; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(36, 23, 53, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(680px, 100%);
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(22px) scale(0.97);
  transition: transform 0.28s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 26px 0;
}
.modal-title { font-size: 19px; }
.modal-tag { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); background: var(--grad-soft); color: var(--pink); font-size: 12px; font-weight: 700; margin-top: 8px; }
.modal-close {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: rgba(42, 30, 63, 0.06); color: var(--ink-2);
  font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  transition: all 0.18s ease;
}
.modal-close:hover { background: var(--pink); color: #fff; }
.video-stage {
  position: relative; margin: 20px 26px 0;
  aspect-ratio: 16 / 9; border-radius: var(--r-sm);
  background: var(--grad);
  display: grid; place-items: center;
  overflow: hidden;
}
.video-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(36, 23, 53, 0.5));
}
.stage-play {
  position: relative; z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid; place-items: center;
}
.stage-play::before {
  content: ""; width: 0; height: 0; margin-left: 6px;
  border-left: 18px solid var(--pink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.stage-hint {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px;
  text-align: center; color: #fff; font-size: 13px; font-weight: 600;
}
.stage-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, 0.35); }
.stage-bar span { display: block; width: 32%; height: 100%; background: #fff; border-radius: 0 4px 4px 0; }
.modal-foot { padding: 18px 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.modal-foot .note { font-size: 13px; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--night); color: #CDC2E0;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 40px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; color: #9D8FB8; margin: 14px 0 0; max-width: 300px; }
.footer-col h3 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: #B5A8D0; transition: color 0.18s ease, padding-left 0.18s ease; }
.footer-col a:hover { color: var(--orange); padding-left: 4px; }
.footer-keywords {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 13px; color: #8A7CA6;
  line-height: 2;
}
.footer-keywords b { color: #B5A8D0; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 22px;
  font-size: 12.5px; color: #7C6F98;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 50;
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.4);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all 0.25s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.hide { display: none !important; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 48px 20px;
  background: #fff; border: 1px dashed var(--line);
  border-radius: var(--r); color: var(--ink-3);
  font-size: 15px;
}

/* ---------- 下载页 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 22px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.platform-ico {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 20px; display: grid; place-items: center;
  background: var(--plat-bg, var(--grad-soft));
  color: var(--plat-fg, var(--pink));
}
.platform-ico svg { width: 30px; height: 30px; }
.platform-card h3 { font-size: 17px; margin-bottom: 4px; }
.platform-card p { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.platform-card .btn { width: 100%; }

.qr-box {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 34px;
  box-shadow: var(--shadow-sm);
}
.qr-box img { width: 170px; height: 170px; border-radius: var(--r-sm); }
.qr-box h3 { font-size: 20px; margin-bottom: 10px; }
.qr-box p { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; max-width: 420px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 22px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-num); font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(255, 77, 109, 0.3);
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.feature-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--f-bg, var(--grad-soft));
  color: var(--f-fg, var(--pink));
}
.feature-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--ink-2); }

.faq { display: grid; gap: 14px; max-width: 860px; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: color 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--pink);
  font-size: 19px; font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--pink); }
.faq-item .faq-a { padding: 0 22px 18px; font-size: 14px; color: var(--ink-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 520px; margin: 0 auto; }
  .grid-video { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 56px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat { padding: 18px 14px; }
  .rank-item { padding: 15px 16px; gap: 14px; }
  .rank-num { width: 40px; height: 40px; font-size: 18px; }
  .grid-video { grid-template-columns: 1fr; }
  .grid-video-2 { grid-template-columns: 1fr; }
  .card-deep { grid-template-columns: 1fr; }
  .deep-cover { min-height: 130px; }
  .app-banner { grid-template-columns: 1fr; padding: 36px 26px; text-align: center; }
  .app-mascot { margin: 0 auto; }
  .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .float-a { left: -10px; }
  .float-b { right: -8px; }
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 44px; }
  .hero-title { font-size: 28px; }
  .hero-cta .btn { width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .chips .chip { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-illus, .float-chip, .live-dot::after { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
