﻿/* ============================================
   星序导航 — Premium Navigation Styles
   ============================================ */

:root {
  --font-sans: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --bg-deep: #161c30;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.07);
  --bg-glass-hover: rgba(255, 255, 255, 0.12);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.16);

  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.65);
  --text-muted: rgba(240, 240, 245, 0.4);

  --accent-1: #3b82f6;
  --accent-2: #06b6d4;
  --accent-3: #0ea5e9;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  --glow: 0 0 60px rgba(59, 130, 246, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-glass);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-glass-hover), var(--glow);

  --header-h: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg-deep: #f5f5fa;
  --bg-surface: rgba(0, 0, 0, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-hover: rgba(255, 255, 255, 0.92);
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-hover: rgba(0, 0, 0, 0.12);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.65);
  --text-muted: rgba(26, 26, 46, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border-glass);
  --shadow-card-hover: 0 12px 40px rgba(59, 130, 246, 0.14), 0 0 0 1px var(--border-glass-hover);
  --glow: 0 0 40px rgba(59, 130, 246, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

html.is-mobile {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ---- Background ---- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-stage {
  position: absolute;
  inset: -4%;
  overflow: hidden;
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mix-blend-mode: screen;
}

body.has-custom-bg #bgCanvas {
  opacity: 0.28;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.05) brightness(1.05);
  will-change: transform;
}

.bg-image.visible {
  opacity: 1;
  animation: bgKenBurns 28s ease-in-out infinite alternate;
}

@keyframes bgKenBurns {
  0% { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.2%, -0.8%); }
}

.bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(59, 130, 246, 0.14) 0%, transparent 45%, rgba(6, 182, 212, 0.08) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.bg-image-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(59, 130, 246, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 52%,
    transparent 62%
  );
  background-size: 220% 100%;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
  animation: bgShineSweep 9s ease-in-out infinite;
}

.bg-image.visible + .bg-image-shine {
  opacity: 1;
}

@keyframes bgShineSweep {
  0%, 100% { background-position: 120% 0; }
  45%, 55% { background-position: -20% 0; }
}

.bg-aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 55% 45% at 25% 18%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 78% 62%, rgba(6, 182, 212, 0.18), transparent 68%),
    radial-gradient(ellipse 45% 35% at 48% 88%, rgba(6, 182, 212, 0.12), transparent 65%);
  animation: auroraShift 22s ease-in-out infinite alternate;
  opacity: 0.85;
  mix-blend-mode: screen;
}

body.has-custom-bg .bg-aurora {
  opacity: 0.55;
}

@keyframes auroraShift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(4%, -3%) rotate(3deg) scale(1.06); }
}

.bg-beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.bg-beams::before,
.bg-beams::after {
  content: '';
  position: absolute;
  width: 220%;
  height: 35%;
  left: -60%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.14), rgba(6, 182, 212, 0.08), transparent);
  transform: rotate(-22deg);
  animation: beamSweep 14s ease-in-out infinite;
}

.bg-beams::before { top: 22%; }
.bg-beams::after {
  top: 58%;
  opacity: 0.65;
  animation-delay: -7s;
  transform: rotate(-14deg);
}

@keyframes beamSweep {
  0%, 100% { transform: rotate(-22deg) translateX(-12%); opacity: 0.35; }
  50% { transform: rotate(-22deg) translateX(12%); opacity: 0.85; }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 30, 52, 0.22) 0%, rgba(20, 28, 48, 0.08) 45%, rgba(22, 30, 52, 0.24) 100%);
  opacity: 0.18;
  transition: opacity 0.3s ease;
}

/* 背景欢迎语 — 居中竖排两列（一大一小），置于最上层 */
.bg-welcome {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4.5vw, 2.75rem);
  padding: 2rem 1rem;
  pointer-events: none;
  animation: welcomeFloat 12s ease-in-out infinite;
}

.bg-welcome-line {
  margin: 0;
  font-weight: 600;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.2em;
  line-height: 1.6;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    rgba(191, 219, 254, 0.95) 0%,
    rgba(255, 255, 255, 1) 38%,
    rgba(125, 211, 252, 0.98) 58%,
    rgba(255, 255, 255, 0.98) 78%,
    rgba(191, 219, 254, 0.92) 100%
  );
  background-size: 100% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: welcomeShine 10s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 36px rgba(96, 165, 250, 0.65)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.bg-welcome-line-1 {
  font-size: clamp(1.85rem, 6.8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  animation:
    welcomeShine 10s ease-in-out infinite,
    welcomeColDrift 11s ease-in-out infinite;
  animation-delay: 0s, 0s;
}

.bg-welcome-line-2 {
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  opacity: 0.88;
  animation:
    welcomeShine 10s ease-in-out infinite,
    welcomeColDrift 13s ease-in-out infinite reverse;
  animation-delay: -3s, -2s;
}

@keyframes welcomeShine {
  0%, 100% { background-position: 50% 0%; opacity: 0.92; }
  50% { background-position: 50% 100%; opacity: 1; }
}

@keyframes welcomeFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes welcomeColDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

body.has-custom-bg .bg-welcome-line {
  opacity: 0.95;
  filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.45));
}

[data-theme="light"] .bg-welcome-line {
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.65) 0%,
    rgba(14, 165, 233, 0.9) 50%,
    rgba(37, 99, 235, 0.65) 100%
  );
  background-size: 100% 200%;
  -webkit-text-fill-color: transparent;
}

body.is-mobile .bg-welcome {
  animation: welcomeFloat 14s ease-in-out infinite;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 3.8vw, 1.25rem);
  padding: 10vh 0.5rem 0;
}

body.is-mobile .bg-welcome-line {
  animation:
    welcomeShine 14s ease-in-out infinite,
    welcomeColDrift 12s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(96, 165, 250, 0.55)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

body.is-mobile .bg-welcome-line-1 {
  font-size: clamp(1.55rem, 7.8vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.55;
  animation:
    welcomeShine 14s ease-in-out infinite,
    welcomeColDrift 12s ease-in-out infinite;
  animation-delay: 0s, 0s;
}

body.is-mobile .bg-welcome-line-2 {
  font-size: clamp(0.78rem, 4.2vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.9;
  line-height: 1.7;
  animation:
    welcomeShine 14s ease-in-out infinite,
    welcomeColDrift 14s ease-in-out infinite reverse;
  animation-delay: -3.5s, -1.5s;
}

body.is-mobile.is-scrolling .bg-welcome,
body.is-mobile.is-scrolling .bg-welcome-line,
body.is-mobile.is-scrolling .bg-aurora {
  animation-play-state: paused !important;
}

body.reduce-motion .bg-welcome,
body.reduce-motion .bg-welcome-line {
  animation: none !important;
  -webkit-text-fill-color: rgba(186, 230, 253, 0.9);
  color: rgba(186, 230, 253, 0.9);
  background: none;
}


body.has-custom-bg .bg-overlay {
  background: linear-gradient(180deg, rgba(16, 22, 40, 0.2) 0%, rgba(14, 20, 36, 0.06) 50%, rgba(16, 22, 40, 0.22) 100%);
  opacity: 0.16;
}

body.has-custom-bg .bg-gradient {
  opacity: 0.42;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 130, 246, 0.22), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6, 182, 212, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(14, 165, 233, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 65% 25%, rgba(96, 165, 250, 0.07), transparent);
  animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black, transparent);
  animation: gridDrift 48s linear infinite;
}

@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 52px 52px; }
}

body.has-custom-bg .bg-grid {
  opacity: 0.75;
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
}

.bg-hex-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z' fill='none' stroke='rgba(99,102,241,0.35)' stroke-width='0.6'/%3E%3Cpath d='M28 34 L56 50 L56 84 L28 100 L0 84 L0 50 Z' fill='none' stroke='rgba(168,85,247,0.25)' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  animation: hexDrift 60s linear infinite;
}

@keyframes hexDrift {
  0% { background-position: 0 0; }
  100% { background-position: 56px 100px; }
}

body.has-custom-bg .bg-hex-mesh {
  opacity: 0.12;
}

.bg-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  opacity: 0.32;
}

[data-theme="light"] .bg-scanlines { opacity: 0.12; }

.bg-scan-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(59, 130, 246, 0.02) 48%,
    rgba(6, 182, 212, 0.18) 50%,
    rgba(59, 130, 246, 0.02) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scanSweep 7s linear infinite;
  opacity: 0.5;
  mix-blend-mode: screen;
}

@keyframes scanSweep {
  0% { background-position: 0 -120%; }
  100% { background-position: 0 220%; }
}

.bg-noise {
  display: none;
}

.bg-vignette {
  display: none !important;
}

.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.bg-glow-orb-1 {
  width: 480px;
  height: 480px;
  top: -10%;
  left: -8%;
  background: rgba(59, 130, 246, 0.22);
}

.bg-glow-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  right: -8%;
  background: rgba(6, 182, 212, 0.18);
  animation-delay: -9s;
}

.bg-glow-orb-3 {
  width: 320px;
  height: 320px;
  top: 42%;
  left: 58%;
  background: rgba(6, 182, 212, 0.12);
  animation-delay: -4s;
  filter: blur(100px);
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(28px, -20px) scale(1.1); }
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preloader-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.preloader-logo {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo-char {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(to bottom, #fff, var(--accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: charPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.5));
}

.logo-char:nth-child(2) { animation-delay: 0.2s; }

@keyframes charPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.preloader-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 99px;
  transition: width 0.15s ease;
  box-shadow: 0 0 10px var(--accent-1);
}

.preloader-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preloader-skip {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  cursor: pointer;
}

.preloader {
  cursor: pointer;
}

/* ---- App Layout ---- */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.app.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  margin-bottom: 1.25rem;
  background: rgba(18, 24, 42, 0.32);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border-glass);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 0 1.5rem;
  transition: background 0.3s ease;
}

[data-theme="light"] .header {
  background: rgba(245, 245, 250, 0.75);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-right {
  margin-left: auto;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 16px rgba(59, 130, 246, 0.8); }
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition);
}

.search-box input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.5rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="light"] .search-box input {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 2px 4px rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.4);
}

.search-box input:focus + .search-kbd {
  opacity: 0;
  transform: scale(0.8);
}

.search-box:focus-within .search-icon {
  color: var(--accent-1);
}

.search-kbd {
  position: absolute;
  right: 10px;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  pointer-events: none;
  transition: all 0.2s;
}

.stat-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.stat-pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.hero-nav {
  padding: 0.35rem 0 1rem;
}

/* ---- Hero Glass ---- */
.hero-glass {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  padding: 0.95rem 0.9rem 0.8rem;
  background:
    linear-gradient(160deg, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 40px rgba(59, 130, 246, 0.06);
  animation: fadeUp 0.7s ease 0.15s backwards;
}

.hero-glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), transparent 45%, rgba(6, 182, 212, 0.28));
  opacity: 0.55;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: 
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

[data-theme="light"] .hero-glass {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.08);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title-line {
  flex: 1;
  height: 1px;
  max-width: 120px;
  background: linear-gradient(90deg, var(--accent-1), transparent);
  opacity: 0.5;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.product-index {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.25s, color 0.25s;
  z-index: 1;
}

.product-card:hover .product-index {
  opacity: 1;
  color: var(--accent-2);
}


.hero-cyber {
  overflow: visible;
}

.hero-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(96, 165, 250, 0.65);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.25) inset;
  opacity: 0.55;
  animation: cornerPulse 3s infinite alternate;
}

@keyframes cornerPulse {
  0% { opacity: 0.5; border-color: rgba(59, 130, 246, 0.5); }
  100% { opacity: 1; border-color: rgba(6, 182, 212, 0.9); box-shadow: 0 0 15px rgba(6, 182, 212, 0.6) inset, 0 0 15px rgba(6, 182, 212, 0.6); }
}

.hero-corner-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hero-corner-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hero-corner-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hero-corner-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.hero-motto {
  width: min(260px, 88vw);
  margin: 0 auto 0.65rem;
}

.motto-frame {
  position: relative;
  padding: 0.65rem 0 0.5rem;
  border-top: 1px solid rgba(59, 130, 246, 0.22);
  border-bottom: 1px solid rgba(59, 130, 246, 0.14);
  overflow: hidden;
}

.motto-frame::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.motto-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.12), transparent);
  animation: mottoSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mottoSweep {
  0% { left: -60%; }
  100% { left: 120%; }
}

.motto-slide {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 4rem;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-motto.is-fading .motto-slide {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.motto-line {
  --li: 0;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(245, 245, 250, 0.38);
  text-align: center;
  line-height: 1.62;
  transition: color 0.45s ease, opacity 0.45s ease;
  animation: mottoIdleDrift 4s ease-in-out infinite;
  animation-delay: calc(var(--li) * 0.35s);
}

@keyframes mottoIdleDrift {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-2px); opacity: 0.7; }
}

.motto-line.is-enter {
  animation: mottoLineIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--li) * 0.14s);
}

@keyframes mottoLineIn {
  from {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(3px);
  }
  to {
    opacity: 0.55;
    transform: translateX(0);
    filter: blur(0);
  }
}

.motto-line.is-hot {
  font-weight: 600;
  animation: mottoHotFloat 2.4s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    #e8e8ff 0%,
    #7dd3fc 25%,
    #60a5fa 50%,
    #7dd3fc 75%,
    #e8e8ff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.45));
}

.motto-line.is-hot.is-enter {
  animation:
    mottoLineIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards,
    mottoHotFloat 2.4s ease-in-out 0.65s infinite,
    mottoGradientRun 2.8s linear 0.65s infinite;
  animation-delay: calc(var(--li) * 0.14s), calc(0.65s + var(--li) * 0.14s), calc(0.65s + var(--li) * 0.14s);
}

.motto-line.is-hot:not(.is-enter) {
  animation: mottoHotFloat 2.4s ease-in-out infinite, mottoGradientRun 2.8s linear infinite;
}

@keyframes mottoHotFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.03); }
}

@keyframes mottoGradientRun {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

[data-theme="light"] .motto-line {
  color: rgba(26, 26, 46, 0.35);
}

[data-theme="light"] .motto-line.is-hot {
  background: linear-gradient(
    90deg,
    #1a1a2e 0%,
    #3b82f6 35%,
    #06b6d4 65%,
    #1a1a2e 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.lite-mode .motto-frame::after {
  display: none;
}

body.lite-mode .motto-line {
  animation: none;
  opacity: 0.65;
}

body.lite-mode .motto-line.is-hot {
  animation: mottoHotFloat 3s ease-in-out infinite;
  -webkit-text-fill-color: rgba(245, 245, 250, 0.95);
  color: rgba(245, 245, 250, 0.95);
  background: none;
  filter: none;
}

body.reduce-motion .motto-frame::after,
body.reduce-motion .motto-line {
  animation: none !important;
}

body.reduce-motion .motto-line.is-hot {
  -webkit-text-fill-color: rgba(245, 245, 250, 0.95);
  color: rgba(245, 245, 250, 0.95);
  background: none;
}

.hero-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 0.75rem;
  perspective: 1000px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-avatar-wrap:hover {
    transform: scale(1.06);
  }

  .hero-avatar-wrap:hover .avatar-halo {
    opacity: 0.85;
  }

  .hero-avatar-wrap:hover .avatar-orbit-outer::after {
    box-shadow: 0 0 22px 4px var(--accent-1);
  }
}

.hero-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2), transparent 70%);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.avatar-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.avatar-orbit-outer {
  inset: -10px;
  border: 1px dashed rgba(59, 130, 246, 0.5);
  border-top-color: var(--accent-1);
  border-bottom-color: var(--accent-2);
  animation: orbitSpin 12s linear infinite;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15) inset;
}

.avatar-orbit-inner {
  inset: 2px;
  border: 2px solid transparent;
  border-left-color: var(--accent-2);
  border-right-color: var(--accent-3);
  opacity: 0.8;
  animation: orbitSpin 8s linear infinite reverse;
}

.avatar-orbit-outer::after,
.avatar-orbit-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-orbit-outer::after {
  top: -6px;
  width: 12px;
  height: 12px;
  background: var(--accent-1);
  box-shadow: 0 0 16px 2px var(--accent-1);
}

.avatar-orbit-inner::after {
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  box-shadow: 0 0 12px 1px var(--accent-2);
}

.avatar-pulse-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent-1);
  animation: pulseRingCyber 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.avatar-halo {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--accent-1) 55deg,
    var(--accent-2) 120deg,
    transparent 180deg,
    var(--accent-3) 240deg,
    transparent 300deg,
    var(--accent-1) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  animation: orbitSpin 7s linear infinite;
  filter: blur(0.5px);
}

.hero-avatar-wrap.has-avatar .avatar-halo {
  opacity: 0.72;
  animation-duration: 5.5s;
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseRingCyber {
  0% { transform: scale(0.85); opacity: 0.8; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { transform: scale(1.15); opacity: 0; box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.85); opacity: 0; }
}

.avatar-inner {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  animation: avatarSpin 20s linear infinite;
  will-change: transform;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 30px rgba(59, 130, 246, 0.5),
    inset 0 0 20px rgba(59, 130, 246, 0.3);
}

.hero-avatar-wrap.has-avatar .avatar-inner {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow:
    0 0 40px rgba(6, 182, 212, 0.5),
    inset 0 0 25px rgba(59, 130, 246, 0.3);
}

.avatar-inner::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 58%
  );
  animation: avatarShineSweep 5s ease-in-out infinite;
}

.avatar-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 3;
}

@keyframes avatarShineSweep {
  0%, 72%, 100% { transform: translateX(-55%) rotate(18deg); opacity: 0; }
  38% { opacity: 1; }
  50% { transform: translateX(55%) rotate(18deg); opacity: 1; }
}

@keyframes avatarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-avatar-wrap .hero-avatar,
.hero-avatar-wrap .hero-avatar-fallback {
  position: relative;
  z-index: 1;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

.hero-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
}

.hero-avatar-fallback svg {
  width: 40px;
  height: 40px;
  color: var(--accent-1);
  opacity: 0.7;
}

.hero-uptime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 99px;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12), inset 0 0 12px rgba(59, 130, 246, 0.06);
  animation: fadeUp 0.6s ease 0.5s backwards;
}

.uptime-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: uptimeBlink 2s ease-in-out infinite;
}

@keyframes uptimeBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.uptime-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.uptime-value {
  color: var(--accent-1);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title-text {
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 700;
  background: linear-gradient(to right, #fff, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.28rem;
  letter-spacing: 0.04em;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.45));
  animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35)); }
  to { filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.55)); }
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.hero-title {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.title-char {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--i) * 0.1s + 0.3s);
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(30px) rotateX(-40deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-float-words {
  position: absolute;
  inset: -20px -40px;
  pointer-events: none;
}

.float-word {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  animation: floatWord 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.8s + 1s);
}

.float-word:nth-child(1) { top: 0; left: 10%; }
.float-word:nth-child(2) { top: 20%; right: 5%; }
.float-word:nth-child(3) { bottom: 10%; left: 5%; }
.float-word:nth-child(4) { bottom: 0; right: 15%; }

@keyframes floatWord {
  0%, 100% { opacity: 0; transform: translateY(0); }
  20%, 80% { opacity: 0.6; }
  50% { transform: translateY(-8px); opacity: 0.8; }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.75;
  animation: fadeUp 0.6s ease 0.6s backwards;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  animation: fadeUp 0.6s ease 0.75s backwards;
}

.hero-time-mobile {
  display: none;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hide-mobile { display: flex; }

.meta-sep { opacity: 0.4; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Category Nav ---- */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.cat-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

/* ---- Links Grid ---- */
.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.section-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
  animation: cardIn 0.5s ease backwards;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover);
}

.link-card:hover::before {
  opacity: 0.04;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.link-icon {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.link-body {
  position: relative;
  flex: 1;
  min-width: 0;
}

.link-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.link-title {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-tag {
  flex-shrink: 0;
  padding: 0.1rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(6, 182, 212, 0.12);
  border-radius: 4px;
}

.link-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-arrow {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-1);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* ---- Announce Panel ---- */
.announce-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.panel-header svg {
  width: 18px;
  height: 18px;
  color: var(--accent-1);
}

.panel-header h3 {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition);
}

.panel-close:hover { color: var(--text-primary); }

.panel-body {
  padding: 0.5rem 0;
  max-height: 280px;
  overflow-y: auto;
}

.announce-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition);
  animation: fadeUp 0.45s ease backwards;
}

.announce-item:last-child { border-bottom: none; }
.announce-item:hover { background: var(--bg-surface); }

.announce-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.announce-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.announce-content {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.main-nav .announce-panel {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
}

.music-player.is-playing .music-info,
.music-player.is-playing .music-volume {
  opacity: 1;
  max-width: 200px;
}

.music-player:not(.is-playing) .music-info,
.music-player:not(.is-playing) .music-volume {
  opacity: 0.7;
}

body.reduce-motion .logo-char,
body.reduce-motion .product-card,
body.reduce-motion .announce-item,
body.reduce-motion .avatar-inner,
body.reduce-motion .avatar-inner::before,
body.reduce-motion .avatar-orbit-outer,
body.reduce-motion .avatar-orbit-inner,
body.reduce-motion .avatar-pulse-ring,
body.reduce-motion .avatar-halo {
  animation: none !important;
}

.section-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1.25rem;
}

/* ---- Product Cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(145deg, var(--bg-glass), rgba(99,102,241,0.03));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s, background 0.4s;
  animation: cardIn 0.55s ease backwards;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(99,102,241,0.1));
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.3),
    0 0 20px rgba(59, 130, 246, 0.2),
    inset 0 0 0 1px rgba(59, 130, 246, 0.3);
  z-index: 10;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.6), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .product-spotlight {
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.08),
    transparent 40%
  );
}

.product-card:hover .product-spotlight {
  opacity: 1;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent 40%, rgba(255,255,255,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

[data-theme="light"] .product-card::after {
  background: linear-gradient(135deg, rgba(99,102,241,0.4), transparent 40%, rgba(168,85,247,0.2));
}

/* hover rules moved up */

.product-card:hover::after {
  opacity: 1;
}

.product-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: rotate(25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.product-card:hover .product-shine {
  left: 120%;
}

.product-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

[data-theme="light"] .product-icon {
  background: rgba(59, 130, 246, 0.08);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
}

.product-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, var(--text-primary), rgba(240,240,245,0.85));
  -webkit-background-clip: text;
  background-clip: text;
}

.product-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-1);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s, gap 0.2s;
}

.product-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.product-card:hover .product-cta {
  opacity: 1;
  gap: 0.5rem;
}

.product-card:hover .product-cta svg {
  transform: translateX(3px);
}

.panel-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-client {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.footer-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ---- Footer ---- */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-btn {
  background: none;
  border: none;
  color: var(--accent-1);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: opacity var(--transition);
}

.text-btn:hover { opacity: 0.8; }

kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7em;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
}

/* ---- Music Player ---- */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.music-player:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover);
}

.music-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: transform var(--transition-spring);
}

.music-toggle:hover { transform: scale(1.08); }
.music-toggle svg { width: 14px; height: 14px; }

.music-toggle.playing {
  animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.music-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.music-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.music-visualizer span {
  width: 3px;
  background: var(--accent-1);
  border-radius: 2px;
  animation: vizBar 0.8s ease-in-out infinite;
}

.music-visualizer span:nth-child(1) { animation-delay: 0s; height: 40%; }
.music-visualizer span:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.music-visualizer span:nth-child(3) { animation-delay: 0.3s; height: 50%; }
.music-visualizer span:nth-child(4) { animation-delay: 0.45s; height: 90%; }

.music-visualizer.paused span { animation-play-state: paused; height: 30% !important; }

@keyframes vizBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.music-volume {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-surface);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent-1);
  border-radius: 50%;
  cursor: pointer;
}

/* ---- Shortcut Dialog ---- */
.shortcut-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: min(360px, 90vw);
  padding: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
}

.shortcut-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.dialog-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.dialog-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.shortcut-list {
  list-style: none;
  padding: 0.75rem 0;
}

.shortcut-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
}

.shortcut-list kbd {
  min-width: 2rem;
  text-align: center;
}

.shortcut-list span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .stat-pill { display: flex; }
}

@media (min-width: 900px) {
  .main-content {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .announce-panel {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

/* ---- 性能模式 / 无动画 ---- */
.no-anim,
.no-anim.product-card,
.no-anim.announce-item {
  animation: none !important;
}

body.is-mobile,
body.lite-mode {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  -webkit-text-size-adjust: 100%;
}

body.lite-mode .bg-scanlines,
body.lite-mode .bg-glow-orb,
body.lite-mode .bg-beams,
body.lite-mode .bg-scan-sweep,
body.lite-mode .bg-noise,
body.lite-mode .bg-hex-mesh,
body.lite-mode #bgCanvas,
body.lite-mode #preloaderCanvas {
  display: none !important;
}

body.lite-mode .bg-gradient,
body.lite-mode .bg-aurora,
body.lite-mode .bg-grid {
  animation: none;
}

body.lite-mode .bg-image.visible {
  animation: none;
  transform: scale(1.06);
}

body.lite-mode .bg-image-shine {
  display: none;
}

body.lite-mode .avatar-orbit-outer,
body.lite-mode .avatar-orbit-inner,
body.lite-mode .avatar-pulse-ring,
body.lite-mode .avatar-halo {
  /* Keep rings visible but remove heavy effects */
  box-shadow: none;
  filter: none;
}

body.lite-mode .avatar-inner {
  /* Keep avatar rotating */
  box-shadow: none;
}

body.is-mobile .header,
body.is-mobile .hero-glass,
body.is-mobile .announce-panel,
body.is-mobile .music-player,
body.is-mobile .popup-modal {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.is-mobile .bg-layer {
  contain: strict;
  transform: translateZ(0);
}

body.is-mobile .bg-beams,
body.is-mobile .bg-grid,
body.is-mobile .bg-hex-mesh,
body.is-mobile .bg-scanlines,
body.is-mobile .bg-scan-sweep,
body.is-mobile .bg-noise,
body.is-mobile .bg-image-shine,
body.is-mobile #bgCanvas {
  display: none !important;
}

body.is-mobile .bg-image {
  filter: none;
  will-change: auto;
  transform: none;
}

body.is-mobile .bg-image.visible {
  animation: none;
}

body.is-mobile .bg-image::after {
  display: none;
}

body.is-mobile .bg-gradient {
  animation: none !important;
  opacity: 1;
  background:
    radial-gradient(ellipse 90% 70% at 15% 8%, rgba(59, 130, 246, 0.28), transparent 65%),
    radial-gradient(ellipse 70% 55% at 85% 75%, rgba(6, 182, 212, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 182, 212, 0.1), transparent 55%);
}

/* 手机静态美化：零动画背景层，肉眼可见的紫光氛围 */
body.is-mobile .bg-aurora {
  display: block !important;
  animation: mobileBlueBreath 9s ease-in-out infinite;
  inset: -15%;
  opacity: 0.55;
  mix-blend-mode: normal;
  will-change: opacity;
}

@keyframes mobileBlueBreath {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.62; }
}

body.is-mobile.has-custom-bg .bg-aurora {
  opacity: 0.38;
}

body.is-mobile .bg-glow-orb-1 {
  display: block !important;
  animation: none !important;
  width: 260px;
  height: 260px;
  top: -5%;
  left: -10%;
  opacity: 0.45;
  filter: blur(48px);
  will-change: auto;
}

body.is-mobile .bg-glow-orb-2 {
  display: block !important;
  animation: none !important;
  width: 200px;
  height: 200px;
  bottom: 15%;
  right: -8%;
  opacity: 0.3;
  filter: blur(40px);
}

body.is-mobile .bg-glow-orb-3,
body.is-mobile .bg-beams,
body.is-mobile .bg-grid,
body.is-mobile .bg-hex-mesh,
body.is-mobile .bg-scanlines,
body.is-mobile .bg-scan-sweep,
body.is-mobile .bg-noise,
body.is-mobile .bg-image-shine,
body.is-mobile #bgCanvas {
  display: none !important;
}

body.is-mobile .bg-image.visible {
  animation: none !important;
  transform: scale(1.05);
  will-change: auto;
}

body.is-mobile .bg-image::after {
  display: block;
  opacity: 0.35;
}

/* ---- 手机 Premium UI：静态仿玻璃，对齐电脑观感，不卡顿 ---- */
body.is-mobile .hero-glass::before {
  display: block;
  opacity: 0.45;
}

body.is-mobile .hero-glass::after {
  display: block;
  opacity: 0.2;
}

body.is-mobile .hero-corner {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5) inset;
  animation: none !important;
}

body.is-mobile .hero-title-text {
  animation: none !important;
  filter: none;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
}

body.is-mobile .hero-avatar-wrap::before {
  display: block;
  inset: -12px;
  animation: pulseGlow 5s ease-in-out infinite;
  opacity: 0.65;
}

body.is-mobile .avatar-halo {
  display: block;
  opacity: 0.5;
  animation: orbitSpin 9s linear infinite;
}

body.is-mobile .avatar-orbit-inner {
  display: block;
  animation: orbitSpin 12s linear infinite reverse;
  opacity: 0.75;
}

body.is-mobile .avatar-pulse-ring {
  display: block;
  animation: pulseRingCyber 3.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.55;
}

body.is-mobile .avatar-orbit-outer {
  animation: orbitSpin 18s linear infinite;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.2) inset;
}

body.is-mobile .avatar-inner {
  animation: avatarSpin 22s linear infinite;
  will-change: transform;
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.4),
    inset 0 0 14px rgba(59, 130, 246, 0.25);
}

body.is-mobile .avatar-inner::before {
  animation: avatarShineSweep 6s ease-in-out infinite;
}

body.is-mobile .motto-frame::before {
  display: block;
}

body.is-mobile .motto-frame::after {
  display: none;
}

body.is-mobile .motto-line {
  animation: none !important;
  opacity: 0.42;
  transform: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

body.is-mobile .motto-line.is-hot {
  opacity: 1;
  font-weight: 600;
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  background: none;
  filter: none;
  transform: none;
  animation: none !important;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

body.is-mobile .hero-motto.is-fading .motto-slide {
  opacity: 1;
  transform: none;
  transition: none;
}

body.is-mobile .header {
  background: linear-gradient(180deg, rgba(16, 20, 34, 0.82) 0%, rgba(12, 16, 28, 0.72) 100%);
  border-bottom: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  contain: layout style;
}

[data-theme="light"] body.is-mobile .header {
  background: linear-gradient(180deg, #fff 0%, rgba(245, 245, 250, 0.98) 100%);
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

body.is-mobile .brand-dot {
  animation: none !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

body.is-mobile .hero-glass {
  max-width: min(280px, 86vw);
  padding: 0.85rem 0.8rem 0.75rem;
  background: linear-gradient(155deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 22, 38, 0.42) 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 24px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  contain: layout style paint;
}

[data-theme="light"] body.is-mobile .hero-glass {
  background: linear-gradient(155deg, rgba(59, 130, 246, 0.06) 0%, rgba(255, 255, 255, 0.72) 50%);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.1);
}

body.is-mobile .product-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 3px solid #3b82f6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  contain: layout style paint;
  transition: transform 0.12s ease, border-color 0.15s ease;
  animation: none !important;
}

body.is-mobile .product-card::before {
  opacity: 0.8;
}

body.is-mobile .product-card:active {
  transform: scale(0.98);
  border-color: rgba(6, 182, 212, 0.5);
  border-left-color: #06b6d4;
}

body.is-mobile .product-shine--mobile {
  left: 50%;
  opacity: 0.35;
}

body.is-mobile .product-icon {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.2);
}

body.is-mobile .product-index {
  opacity: 0.85;
  color: #93c5fd;
  font-weight: 700;
}

body.is-mobile .product-cta {
  color: #60a5fa;
  opacity: 1;
}

body.is-mobile .announce-panel {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.08) 0%, rgba(10, 10, 15, 0.94) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28), 0 0 24px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] body.is-mobile .announce-panel {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.05) 0%, #fff 100%);
}

body.is-mobile .panel-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.08));
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

body.is-mobile .announce-item {
  animation: none !important;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, rgba(59, 130, 246, 0.5), transparent) 1;
}

body.is-mobile .section-title-line {
  max-width: 72px;
  opacity: 0.7;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, transparent);
}

body.is-mobile .section-count {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
}

body.is-mobile .section-title {
  text-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

body.is-mobile .hero-uptime-badge {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.38);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.12);
}

body.is-mobile .uptime-dot {
  animation: none !important;
}

body.is-mobile .music-player {
  background: linear-gradient(135deg, rgba(12, 12, 18, 0.97), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

body.is-mobile .popup-modal {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.1) 0%, rgba(12, 12, 20, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: none;
}

body.is-mobile .footer-client {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.06));
}

body.is-mobile .links-section,
body.is-mobile .announce-panel {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}

body.is-mobile .app {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }

  .app {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(5rem, calc(4rem + env(safe-area-inset-bottom)));
  }

  .header {
    flex-wrap: nowrap;
    height: auto;
    min-height: var(--header-h);
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
    gap: 0.65rem;
    margin-left: calc(-1 * max(1rem, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(1rem, env(safe-area-inset-right)));
    margin-bottom: 0.85rem;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    touch-action: manipulation;
  }

  .hero-nav { padding: 0.35rem 0 0.85rem; }

  .hero-glass {
    padding: 0.8rem 0.75rem 0.7rem;
    border-radius: var(--radius-lg);
    max-width: min(280px, 86vw);
  }

  .hero-motto {
    width: 100%;
    margin-bottom: 0.65rem;
  }

  .motto-slide {
    min-height: 3.6rem;
    gap: 0.28rem;
  }

  .motto-line {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .hero-avatar-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 0.65rem;
  }

  .avatar-inner { inset: 14px; }

  .hero-title-text {
    font-size: clamp(1.25rem, 5.8vw, 1.65rem);
    letter-spacing: 0.03em;
  }

  .hero-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
  }

  .hero-uptime-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.68rem;
    margin-bottom: 0.45rem;
  }

  .hero-time-mobile {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.35rem;
  }

  .section-header { margin-bottom: 1rem; }

  .section-desc {
    margin-bottom: 1rem;
    font-size: 0.75rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .product-card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
    content-visibility: auto;
    contain-intrinsic-size: auto 100px;
    touch-action: manipulation;
  }

  .product-card:active {
    transform: scale(0.98);
  }

  .product-icon {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }

  .product-name { font-size: 0.9375rem; }

  .main-nav .announce-panel {
    position: static;
    border-radius: var(--radius-md);
  }

  .announce-item {
    padding: 0.85rem 1rem;
    content-visibility: auto;
  }

  .music-player {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    left: auto;
    padding: 0.4rem;
    border-radius: 50px;
    touch-action: manipulation;
  }

  .music-player:not(.is-playing) .music-info,
  .music-player:not(.is-playing) .music-volume {
    display: none;
  }

  .music-player.is-playing {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    border-radius: var(--radius-xl);
    padding: 0.5rem 0.75rem;
  }

  .music-player.is-playing .music-info,
  .music-player.is-playing .music-volume {
    display: flex;
  }

  .music-volume { flex: 1; max-width: 80px; }

  .popup-overlay {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.75);
  }

  .popup-modal {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: none;
    animation: none;
  }

  .popup-body { max-height: 40vh; }

  .footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-glass-hover);
  border-radius: 99px;
}

/* ---- 进入弹窗公告 ---- */
body.popup-open { overflow: hidden; }

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: popupFadeIn 0.35s ease;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-modal {
  width: min(440px, 100%);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), var(--glow);
  backdrop-filter: blur(24px);
  animation: popupSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08));
}

.popup-badge { font-size: 1.25rem; }

.popup-header h2 {
  flex: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.popup-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.popup-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.popup-body {
  padding: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-height: 50vh;
  overflow-y: auto;
}

.popup-footer {
  padding: 0 1.25rem 1.25rem;
}

.popup-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.popup-btn:active { transform: scale(0.98); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .avatar-inner,
  .avatar-inner::before,
  .avatar-orbit-outer,
  .avatar-orbit-inner,
  .avatar-halo {
    animation: none !important;
  }
}
