/* ============ 基础变量 ============ */
:root {
  --bg: #f7f8fc;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-solid: #ffffff;
  --surface-soft: #f2f4fa;
  --text: #1c2333;
  --muted: #6c7488;
  --line: rgba(28, 42, 82, 0.09);
  --shadow: 0 20px 60px rgba(36, 51, 96, 0.10);
  --shadow-hover: 0 30px 70px rgba(36, 51, 96, 0.18);
  --brand: #5b6ee1;
  --brand-2: #8b5ce0;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] {
  --bg: #0e1220;
  --surface: rgba(28, 35, 56, 0.66);
  --surface-solid: #181e30;
  --surface-soft: #222a40;
  --text: #edf0fa;
  --muted: #9da6bd;
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(17, 22, 37, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(91, 110, 225, 0.28); }

/* ============ 背景装饰 ============ */
.bg-orbs { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 520px; height: 520px; background: #c9d7ff; top: -180px; left: -120px; animation: orbDrift 18s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; background: #ffdcc8; top: 24%; right: -180px; animation: orbDrift 22s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 400px; height: 400px; background: #ddd2ff; bottom: -160px; left: 28%; animation: orbDrift 26s ease-in-out infinite alternate; opacity: 0.36; }
html[data-theme="dark"] .orb-1 { background: #2c3b7d; opacity: 0.55; }
html[data-theme="dark"] .orb-2 { background: #6b3350; opacity: 0.42; }
html[data-theme="dark"] .orb-3 { background: #3b3070; opacity: 0.5; }
@keyframes orbDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, 50px, 0) scale(1.16); } }

.cursor-glow {
  position: fixed; z-index: 0; width: 420px; height: 420px; left: 0; top: 0;
  margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(122, 143, 240, 0.12), transparent 70%);
  transform: translate3d(-1000px, -1000px, 0); transition: opacity 0.4s;
  opacity: 0; will-change: transform;
}
html[data-theme="dark"] .cursor-glow { background: radial-gradient(circle, rgba(132, 152, 255, 0.16), transparent 70%); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200; width: 0;
  background: linear-gradient(90deg, var(--brand), #9b6df0, #ff9d70);
  border-radius: 0 3px 3px 0; transition: width 0.1s linear;
}

/* ============ 导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(30, 40, 80, 0.05); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #5b6ee1, #9b6df0); color: #fff;
  font-size: 21px; font-weight: 700; box-shadow: 0 8px 20px rgba(91, 110, 225, 0.35);
  transform: rotate(-6deg); transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.08); }
.brand-text { font-size: 17px; font-weight: 750; letter-spacing: 0.02em; line-height: 1.15; }
.brand-text small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); margin-left: auto; }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: var(--brand); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-soft); border: 1px solid var(--line); color: var(--text);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.icon-btn:hover { transform: rotate(18deg); background: var(--surface-solid); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 14px; padding: 12px 20px;
  font-size: 14px; font-weight: 650; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible, .icon-btn:focus-visible, .app-card:focus-visible, .filters button:focus-visible,
.gallery-arrow:focus-visible, .modal-switcher button:focus-visible, .thumb:focus-visible, .tabs button:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}
.btn-small { padding: 9px 15px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 15px 26px; font-size: 15px; border-radius: 15px; }
.btn-dark { background: #1c2333; color: #fff; box-shadow: 0 8px 22px rgba(28, 35, 51, 0.2); }
html[data-theme="dark"] .btn-dark { background: #edf0fa; color: #181e30; }
.btn-primary { background: linear-gradient(120deg, #5b6ee1, #8b5ce0); color: #fff; box-shadow: 0 12px 30px rgba(91, 110, 225, 0.32); }
.btn-primary:hover { box-shadow: 0 18px 38px rgba(91, 110, 225, 0.42); }
.btn-primary:hover svg { transform: translate(3px, -3px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-solid); box-shadow: var(--shadow); }

/* ============ Hero ============ */
.hero {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
  padding: 78px 28px 70px; min-height: calc(90vh - 70px);
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 40px;
}
.hero-copy { position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 12px; font-weight: 650; letter-spacing: 0.08em; color: var(--muted);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #5b6ee1; box-shadow: 0 0 0 0 rgba(91, 110, 225, 0.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(91, 110, 225, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 110, 225, 0); } }
.hero h1 {
  margin: 26px 0 20px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.16;
  letter-spacing: -0.04em; font-weight: 800;
  animation: riseIn 0.9s var(--ease) both;
}
.gradient-text {
  background: linear-gradient(100deg, #4f63dc 5%, #8b5ce0 48%, #e8798f 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { margin: 0 0 32px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.9; color: var(--muted); animation: riseIn 0.9s 0.12s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: riseIn 0.9s 0.22s var(--ease) both; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 38px; font-size: 13px; color: var(--muted); animation: riseIn 0.9s 0.32s var(--ease) both; }
.hero-meta strong { color: var(--text); }
.mini-avatars { display: flex; padding-left: 6px; }
.mini-avatars img {
  width: 34px; height: 34px; border-radius: 11px; object-fit: cover; margin-left: -6px;
  border: 2px solid var(--bg); background: #fff; box-shadow: 0 4px 12px rgba(20, 30, 70, 0.12);
  transition: transform 0.3s var(--ease);
}
.mini-avatars img:hover { transform: translateY(-5px) rotate(-8deg); z-index: 2; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-visual {
  position: relative; height: 500px; display: grid; place-items: center;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform 0.35s ease-out;
  animation: riseIn 1s 0.15s var(--ease) both;
}
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(91, 110, 225, 0.25); }
.orbit-a { width: 420px; height: 420px; animation: spin 40s linear infinite; }
.orbit-b { width: 310px; height: 310px; border-color: rgba(155, 109, 240, 0.2); animation: spin 28s linear infinite reverse; }
.orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 14px var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: absolute; width: 168px; height: 336px; padding: 6px;
  border-radius: 28px; background: linear-gradient(145deg, #ffffff, #d5dced);
  box-shadow: 0 30px 60px rgba(32, 43, 89, 0.24), inset 0 0 0 1px rgba(255,255,255,0.8);
  overflow: hidden; will-change: transform;
}
html[data-theme="dark"] .phone { background: linear-gradient(145deg, #3d4765, #1b2238); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.phone-main { z-index: 4; transform: translate(-50%, -50%) rotate(-3deg) scale(1.12); top: 50%; left: 50%; animation: floatMain 7s ease-in-out infinite; }
.phone-left { z-index: 2; transform: translate(-112%, -42%) rotate(-15deg) scale(0.86); top: 50%; left: 50%; opacity: 0.92; animation: floatLeft 8s ease-in-out infinite; }
.phone-right { z-index: 3; transform: translate(8%, -45%) rotate(13deg) scale(0.94); top: 50%; left: 50%; animation: floatRight 9s ease-in-out infinite; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 46px; height: 9px; border-radius: 999px; background: rgba(0,0,0,0.55); }
@keyframes floatMain { 0%,100% { transform: translate(-50%, -50%) rotate(-3deg) scale(1.12); } 50% { transform: translate(-50%, calc(-50% - 16px)) rotate(-1deg) scale(1.14); } }
@keyframes floatLeft { 0%,100% { transform: translate(-112%, -42%) rotate(-15deg) scale(0.86); } 50% { transform: translate(-116%, calc(-42% - 18px)) rotate(-12deg) scale(0.88); } }
@keyframes floatRight { 0%,100% { transform: translate(8%, -45%) rotate(13deg) scale(0.94); } 50% { transform: translate(12%, calc(-45% - 14px)) rotate(10deg) scale(0.96); } }
.float-badge {
  position: absolute; z-index: 6; width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 19px; font-weight: 750; color: var(--brand);
  animation: badgeFloat 5s ease-in-out infinite;
}
.badge-1 { top: 12%; left: 10%; transform: rotate(-12deg); }
.badge-2 { top: 22%; right: 8%; color: var(--brand-2); animation-delay: -1.6s; }
.badge-3 { bottom: 12%; right: 16%; color: #e8798f; animation-delay: -3s; }
@keyframes badgeFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.spark { position: absolute; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; animation: sparkle 3s ease-in-out infinite; }
.spark-1 { top: 16%; right: 30%; }
.spark-2 { bottom: 26%; left: 14%; background: #e8798f; animation-delay: -1s; }
.spark-3 { top: 48%; right: 6%; background: #ffb35c; animation-delay: -2s; }
@keyframes sparkle { 0%,100% { opacity: 0.2; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.5); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { width: 1px; height: 28px; background: linear-gradient(var(--brand), transparent); animation: hintLine 2s ease-in-out infinite; }
@keyframes hintLine { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============ 数据条 & 跑马灯 ============ */
.stats-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 26px 20px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 10%; height: 80%; width: 1px; background: var(--line); }
.stat strong { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(120deg, #5b6ee1, #9b6df0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12px; color: var(--muted); }
.marquee { margin: 60px 0 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 42px; animation: marquee 42s linear infinite; font-size: 14px; font-weight: 650; color: var(--muted); }
.marquee-track span { display: inline-flex; align-items: center; gap: 42px; white-space: nowrap; }
.marquee-track b { color: var(--brand); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 应用区 ============ */
.apps-section { max-width: 1200px; margin: 0 auto; padding: 92px 28px 30px; position: relative; z-index: 1; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.section-title h2 { margin: 18px 0 10px; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.035em; line-height: 1.22; }
.section-title p { margin: 0; font-size: 14px; color: var(--muted); }
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 46px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid);
  box-shadow: var(--shadow); transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 110, 225, 0.12); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { width: 210px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filters button {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--muted); font-size: 13px; font-weight: 600;
  transition: all 0.3s var(--ease);
}
.filters button:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(91,110,225,0.4); }
.filters button.active { color: #fff; background: linear-gradient(120deg, #5b6ee1, #8b5ce0); border-color: transparent; box-shadow: 0 8px 22px rgba(91, 110, 225, 0.28); }
.filters button span { margin-left: 5px; opacity: 0.7; font-size: 11px; }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 1001px) {
  .app-card:last-child:nth-child(3n + 1) { grid-column: 2; }
}
.app-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.3s;
  animation: riseIn 0.7s var(--ease) both; animation-delay: var(--delay, 0ms);
}
.app-card::before {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.32), transparent 68%);
  transition: opacity 0.35s;
}
.app-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.app-card:hover::before { opacity: 1; }
.card-cover { position: relative; height: 190px; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.cover-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(20px) saturate(1.35); opacity: 0.62; transform: scale(1.08); transition: transform 0.7s var(--ease); }
.app-card:hover .cover-bg { transform: scale(1.2) rotate(3deg); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,35,0.12) 0%, rgba(10,15,35,0.02) 45%, var(--surface-solid) 100%); }
.cover-phone {
  position: absolute; right: 28px; top: 16px; width: 80px; height: 152px; padding: 3px;
  background: rgba(255,255,255,0.95); border-radius: 14px; box-shadow: 0 16px 32px rgba(8, 14, 40, 0.28);
  transform: rotate(11deg); transition: transform 0.55s var(--ease);
}
.cover-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.app-card:hover .cover-phone { transform: rotate(2deg) translateY(-6px) scale(1.07); }
.card-category {
  position: absolute; left: 18px; top: 16px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.88); color: #263049; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.card-icon {
  position: absolute; z-index: 3; left: 20px; bottom: -27px; width: 68px; height: 68px; padding: 5px;
  border-radius: 20px; background: var(--surface-solid); box-shadow: 0 12px 26px rgba(20, 30, 70, 0.2);
  transition: transform 0.45s var(--ease);
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.app-card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-body { padding: 36px 22px 18px; }
.card-body h3 { margin: 0 0 8px; font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.card-body p { margin: 0; min-height: 42px; font-size: 13px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.card-tags span { padding: 5px 9px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--accent); }
.card-actions { display: inline-flex; align-items: center; gap: 7px; }
.card-go, .card-download { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-soft); color: var(--accent); font-size: 17px; transition: all 0.35s var(--ease); }
.card-download { font-size: 18px; font-weight: 700; text-decoration: none; }
.app-card:hover .card-go { background: var(--accent); color: #fff; transform: rotate(45deg); }
.card-download:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 45%, transparent); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 18px; }
.empty-state[hidden] { display: none; }

/* ============ 关于 ============ */
.about { max-width: 1200px; margin: 0 auto; padding: 70px 28px 90px; position: relative; z-index: 1; }
.about-card {
  display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 40px; align-items: center;
  border-radius: 30px; padding: 52px; color: #fff; overflow: hidden; position: relative;
  background: linear-gradient(125deg, #4355c9, #7147c8 55%, #b45a9e);
  box-shadow: 0 30px 70px rgba(74, 66, 160, 0.28);
}
.about-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); right: -130px; top: -190px; }
.about-card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.07); left: -120px; bottom: -180px; }
.about-card .eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); }
.about-card .pulse-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
.about-copy h2 { margin: 18px 0 14px; font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -0.03em; }
.about-copy p { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.95; color: rgba(255,255,255,0.82); }
.about-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.about-chips span { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.1); font-size: 12px; }
.about-side { position: relative; z-index: 2; display: grid; justify-items: start; gap: 14px; }
.about-number { font-size: 110px; line-height: 0.9; font-weight: 800; letter-spacing: -0.07em; color: rgba(255,255,255,0.28); }
.about-side-label { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.about-side .btn { background: #fff; color: #4a43b8; box-shadow: 0 12px 30px rgba(30,20,90,0.25); }
.about-side .btn:hover { box-shadow: 0 18px 38px rgba(30,20,90,0.35); }
.about-side .btn svg { transform: none; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 28px; text-align: center; color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; }
.site-footer a:hover { color: var(--brand); }
.to-top {
  position: fixed; z-index: 90; right: 24px; bottom: 24px; width: 44px; height: 44px;
  border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); color: var(--brand); }
.to-top svg { width: 19px; height: 19px; }

/* ============ 详情弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 16, 32, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fadeIn 0.3s both; }
.modal-panel {
  position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  border-radius: 28px; padding: 26px 30px 30px; background: var(--surface-solid);
  box-shadow: 0 40px 100px rgba(10, 14, 35, 0.35); animation: modalIn 0.45s var(--ease) both;
  scrollbar-width: thin;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 18px; right: 20px; z-index: 3; width: 36px; height: 36px;
  border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface-soft); color: var(--muted); transition: all 0.3s;
}
.modal-close:hover { color: var(--text); transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }
.modal-switcher { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.modal-switcher button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 5px 8px; border-radius: 8px; transition: color 0.25s, background 0.25s; }
.modal-switcher button:hover { color: var(--text); background: var(--surface-soft); }
.modal-switcher span { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.modal-body { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 34px; }
.gallery-stage {
  position: relative; height: 430px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--modal-accent, #5b6ee1) 16%, var(--surface-soft)));
  display: grid; place-items: center;
}
.gallery-stage > img { max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 18px 40px rgba(10, 15, 40, 0.22); animation: fadeIn 0.35s both; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid);
  color: var(--text); font-size: 25px; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform 0.3s var(--ease), color 0.3s;
}
.gallery-arrow:hover { color: var(--brand); transform: translateY(-50%) scale(1.1); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-count { position: absolute; bottom: 12px; right: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(15,20,40,0.6); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.thumbnails { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; padding: 3px 2px 8px; scrollbar-width: thin; }
.thumb { flex: none; width: 48px; height: 82px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--surface-soft); opacity: 0.6; transition: all 0.3s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateY(-3px); }
.thumb.active { opacity: 1; border-color: var(--modal-accent, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--modal-accent, #5b6ee1) 18%, transparent); }
.detail-head { display: flex; align-items: flex-start; gap: 16px; padding-right: 30px; }
.detail-icon { width: 74px; height: 74px; border-radius: 19px; object-fit: cover; box-shadow: var(--shadow); flex: none; }
.detail-category { display: inline-block; margin-bottom: 6px; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--modal-accent, #5b6ee1) 14%, transparent); color: var(--modal-accent, var(--brand)); font-size: 11px; font-weight: 700; }
.detail-head h3 { margin: 0 0 6px; font-size: 25px; letter-spacing: -0.02em; }
.detail-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.detail-stats div { display: grid; gap: 4px; justify-items: center; padding: 13px 6px; border-radius: 13px; background: var(--surface-soft); }
.detail-stats strong { font-size: 14px; font-weight: 750; }
.detail-stats span { font-size: 11px; color: var(--muted); }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; border: 0; background: transparent; color: var(--muted); padding: 10px 2px; font-size: 14px; font-weight: 650; transition: color 0.25s; }
.tabs button.active { color: var(--text); }
.tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--modal-accent, var(--brand)); }
.tab-panel { max-height: 172px; overflow-y: auto; margin: 14px 0 20px; padding-right: 8px; white-space: pre-line; font-size: 13px; line-height: 1.9; color: var(--muted); scrollbar-width: thin; }
.tab-panel[hidden] { display: none; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-actions .btn-primary { background: linear-gradient(120deg, var(--modal-accent, #5b6ee1), var(--modal-accent2, #8b5ce0)); box-shadow: 0 12px 30px color-mix(in srgb, var(--modal-accent, #5b6ee1) 35%, transparent); }
.detail-note { margin: 12px 0 0; font-size: 11px; color: var(--muted); }

/* ============ 提示 & 彩纸 ============ */
.toast {
  position: fixed; z-index: 300; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  padding: 12px 22px; border-radius: 14px; background: #1c2333; color: #fff; font-size: 13px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25); opacity: 0; pointer-events: none; transition: all 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; z-index: 290; pointer-events: none; }

/* ============ 响应式 ============ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; text-align: center; min-height: auto; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-desc br { display: none; }
  .hero-visual { height: 420px; width: 100%; margin-top: 10px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card:last-child:nth-child(3n + 1) { grid-column: auto; }
  .about-card { grid-template-columns: 1fr; padding: 40px; }
  .modal-body { grid-template-columns: 1fr; gap: 24px; }
  .gallery-stage { height: 360px; }
  .thumbnails { justify-content: center; }
}
@media (max-width: 680px) {
  .nav-inner { padding: 12px 18px; }
  .nav-links { display: none; }
  .brand-text small { display: none; }
  .brand-text { font-size: 15px; }
  .btn-small { padding: 8px 12px; font-size: 12px; }
  .hero { padding: 48px 20px 50px; gap: 10px; }
  .hero h1 { font-size: 39px; margin-top: 22px; }
  .hero-actions { justify-content: center; }
  .hero-meta { margin-top: 28px; }
  .hero-visual { height: 350px; transform: none; }
  .phone { width: 130px; height: 260px; border-radius: 22px; }
  .phone-left { transform: translate(-100%, -40%) rotate(-16deg) scale(0.8); }
  .phone-right { transform: translate(0%, -44%) rotate(14deg) scale(0.85); }
  .orbit-a { width: 300px; height: 300px; }
  .orbit-b { width: 230px; height: 230px; }
  .float-badge { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }
  .scroll-hint { display: none; }
  .stats-wrap { padding: 0 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; padding: 22px 10px; }
  .stat:nth-child(3)::before { display: none; }
  .stat strong { font-size: 27px; }
  .apps-section { padding: 70px 18px 20px; }
  .section-head { align-items: stretch; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .app-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-cover { height: 175px; }
  .about { padding: 50px 18px 70px; }
  .about-card { padding: 32px 26px; border-radius: 24px; }
  .about-number { font-size: 80px; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; padding: 18px 20px 26px; }
  .gallery-stage { height: 300px; }
  .detail-head h3 { font-size: 22px; }
  .detail-stats strong { font-size: 12px; }
  .detail-actions .btn { flex: 1; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
