:root {
  --bg: #090a0a;
  --card: rgba(21, 23, 22, 0.72);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f2f2f5;
  --muted: #8a8a92;
  --tune-purple: #987CD6;
  --cue-blue: #007AFF;
  --stream-orange: #FD951C;
  --neon-a: #987CD6;
  --neon-b: #007AFF;
  --neon-c: #FD951C;
}

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

html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 88px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

body {
  background:
    radial-gradient(1100px 600px at 50% -12%, rgba(0, 122, 255, 0.12), transparent 60%),
    radial-gradient(900px 520px at 82% 18%, rgba(152, 124, 214, 0.13), transparent 60%),
    radial-gradient(760px 440px at 8% 46%, rgba(253, 149, 28, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* ---------- 首页：动态背景 ---------- */
.bg-scene {
  position: fixed; inset: 0;
  z-index: -1; overflow: hidden;
  pointer-events: none;
}
.bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.bg-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 10, 0.88) 0%, rgba(9, 10, 10, 0.52) 45%, rgba(9, 10, 10, 0.92) 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 {
  width: 540px; height: 540px;
  left: -140px; top: -90px;
  background: radial-gradient(circle, rgba(152, 124, 214, 0.30), transparent 65%);
  animation: drift-a 24s ease-in-out infinite alternate;
}
.blob-2 {
  width: 480px; height: 480px;
  right: -120px; top: 14%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.22), transparent 65%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
.blob-3 {
  width: 440px; height: 440px;
  left: 18%; bottom: -160px;
  background: radial-gradient(circle, rgba(253, 149, 28, 0.18), transparent 65%);
  animation: drift-c 22s ease-in-out infinite alternate;
}
#particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
}
.mixer-scene {
  position: absolute;
  left: 0; right: 0; bottom: -36px;
  width: 100%;
  min-height: 230px;
  opacity: 0.5;
}
.streak {
  position: absolute;
  top: -20%;
  height: 140%;
  width: 200px;
  background: linear-gradient(90deg, transparent, rgba(152, 124, 214, 0.13), rgba(0, 122, 255, 0.17), rgba(253, 149, 28, 0.11), transparent);
  filter: blur(32px);
  transform: skewX(-18deg);
  animation: streak-sweep 13s linear infinite;
}
.streak.s2 {
  width: 130px;
  animation-delay: -6.5s;
  background: linear-gradient(90deg, transparent, rgba(253, 149, 28, 0.10), rgba(152, 124, 214, 0.16), transparent);
}
@keyframes streak-sweep {
  from { left: -25%; }
  to   { left: 115%; }
}
.eq {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  opacity: 0.35;
}
.eq i {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(152, 124, 214, 0.85), rgba(0, 122, 255, 0.7), rgba(253, 149, 28, 0.6));
  transform-origin: bottom;
  animation: eq-bounce 1.5s ease-in-out infinite;
}
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.2); }
  50%      { transform: scaleY(1); }
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}
.cursor-glow {
  position: absolute;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), rgba(0, 122, 255, 0.05) 42%, transparent 70%);
  mix-blend-mode: screen;
  will-change: transform;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(130px, 90px, 0) scale(1.16); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-110px, -70px, 0) scale(1); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(90px, -80px, 0) scale(1.2); }
}

/* ---------- 首页：logo 展示（静态一排） ---------- */
.logo-stage {
  position: fixed; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 7vw, 96px);
  z-index: 1;
}
.float-logo {
  position: relative;
  display: block;
  border-radius: 28%;
}
.float-logo img {
  display: block;
  width: clamp(92px, 12vw, 150px);
  height: clamp(92px, 12vw, 150px);
  border-radius: 28%;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.float-logo:hover img {
  transform: scale(1.1);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5),
              0 0 60px -4px color-mix(in srgb, var(--accent) 60%, transparent);
}
.float-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 28%;
}

/* ---------- 404 页 ---------- */
.err-stage {
  position: fixed; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
  padding: 24px;
}
.err-code {
  font-size: clamp(96px, 22vw, 220px);
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b), var(--neon-c));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 34px rgba(0, 122, 255, 0.25));
}
.err-title {
  font-size: 24px;
  margin-top: 8px;
}
.err-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 28px;
}
.logo-label {
  position: absolute;
  left: 50%; bottom: -40px;
  transform: translateX(-50%);
  opacity: 0;
  font-size: 13px;
  color: var(--text);
  background: rgba(9, 10, 10, 0.72);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.25s;
}
.float-logo:hover .logo-label,
.float-logo:focus-visible .logo-label { opacity: 1; }
@media (max-width: 640px) {
  .logo-stage { flex-wrap: wrap; gap: 24px; }
  .float-logo img { width: 84px; height: 84px; }
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(9, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1020px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  gap: 12px;
}
.brand {
  font-size: 20px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b), var(--neon-c));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: flex-end; gap: 4px;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  margin-left: 16px; font-size: 14px;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 104px 24px 56px;
}
.hero-eyebrow {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff, #b8b8c2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  max-width: 620px; margin: 18px auto 26px;
  color: var(--muted); font-size: 16px;
}
.hero-badges span {
  display: inline-block;
  margin: 0 6px; padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}
.hero-badge-link {
  display: inline-block;
  margin: 0;
  text-decoration: none;
  border-radius: 999px;
}
.hero-badge-link:hover span {
  color: #fff;
  border-color: color-mix(in srgb, #007AFF 60%, transparent);
}
.scroll-cue {
  display: inline-block;
  margin-top: 46px;
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ---------- 区块通用 ---------- */
.section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 76px 24px 24px;
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 30px;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .dir-grid { grid-template-columns: 1fr; } }
.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
  backdrop-filter: blur(16px);
}
.mini-card h3 { font-size: 16px; margin-bottom: 8px; }
.mini-card p { color: var(--muted); font-size: 13.5px; }

/* ---------- 软件卡片排（数据驱动） ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
  max-width: 1020px;
  margin: 0 auto;
}
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 38px 26px 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.18s ease-out;
}
.app-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px 220px at 50% 0%, var(--accent), transparent 72%);
  opacity: 0.14;
  pointer-events: none;
  transition: opacity 0.3s;
}
.app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45),
              0 0 44px -8px color-mix(in srgb, var(--accent) 38%, transparent);
}
.app-card:hover::before { opacity: 0.26; }
.app-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.app-logo {
  width: 104px; height: 104px;
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
.app-card h3 { margin-top: 20px; font-size: 22px; }
.app-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
}
.app-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 12px 0 20px;
  min-height: 66px;
}
.cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  padding: 9px 22px;
  transition: background 0.25s, color 0.25s;
}
.app-card:hover .cta { background: var(--accent); color: #0a0b0c; }
.noscript-note { color: var(--muted); font-size: 14px; grid-column: 1 / -1; text-align: center; }

/* ---------- 教程 ---------- */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
}
@media (max-width: 760px) { .tutorial-grid { grid-template-columns: 1fr; } }
.tutorial-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tutorial-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24); }
.tutorial-card h3 { font-size: 16px; margin-bottom: 8px; }
.tutorial-card p { color: var(--muted); font-size: 13px; }
.tutorial-card span {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--neon-b);
  font-weight: 600;
}

/* ---------- 联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(16px);
}
.contact-card h3 { font-size: 16px; margin-bottom: 10px; }
.contact-mail {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  word-break: break-all;
}
.mail-link {
  color: inherit;
  text-decoration: none;
}
.mail-link:hover {
  text-decoration: underline;
}
.contact-note {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 8px;
}
.qr {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 6px;
  margin: 0 auto 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- 产品详情页共用 ---------- */
.products {
  max-width: 1020px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 8px 24px 56px;
}
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }

/* ---------- 详情页区块分层 ---------- */
.detail-sec,
.detail-sec-narrow {
  padding: 60px 24px;
}
.detail-sec {
  max-width: 1020px;
  margin: 0 auto;
}
.detail-sec-narrow {
  max-width: 760px;
  margin: 0 auto;
}
.detail-sec + .detail-sec,
.detail-sec + .detail-sec-narrow,
.detail-sec-narrow + .detail-sec,
.detail-sec-narrow + .detail-sec-narrow {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sec-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 26px;
}
.sec-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b), var(--neon-c));
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px;
  text-align: center;
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(300px 200px at 50% 0%, var(--accent), transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}
.product-card h2 { margin-top: 0; font-size: 24px; }
.product-card ul { text-align: left; color: var(--muted); font-size: 14px; margin-top: 14px; padding-left: 20px; }
.product-card li { margin-bottom: 6px; }
.product-card code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
.tag { color: var(--accent); font-size: 13px; margin-top: 4px; }

.btn {
  display: inline-block;
  padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.btn.primary { background: #fff; color: #111; }
.btn.ghost {
  border: 1px solid var(--border); color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.download-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 产品截图 ---------- */
.shot {
  display: block;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #0a0b0c;
}

.footer {
  text-align: center; padding: 56px 24px;
  color: #5a5a64; font-size: 13px;
}
.footer .icp { margin-top: 6px; font-size: 12px; }
.footer .icp a {
  color: inherit;
  text-decoration: none;
}
.footer .icp a:hover {
  text-decoration: underline;
}
.home-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  z-index: 2;
  background: transparent;
  opacity: 0.75;
}
.home-footer .icp { margin: 0; }

/* ---------- 响应式与无障碍 ---------- */
@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: flex-start; gap: 2px 10px; }
  .nav-links a { margin-left: 0; font-size: 13px; }
  .hero { padding: 72px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .scroll-cue, .eq i, .streak { animation: none !important; }
}
