/* ─── 导航栏 v5（悬浮液态玻璃胶囊条）─── */
nav#navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  min-width: 0;
  max-width: 780px;
  width: calc(100% - 32px);
  border-radius: 100px;
  backdrop-filter: blur(28px) saturate(2.2);
  -webkit-backdrop-filter: blur(28px) saturate(2.2);
  background: var(--nav-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 20px var(--nav-shadow), 0 1px 0 var(--glass-highlight) inset;
}

/* 紫金光晕光环（悬浮氛围） */
nav#navbar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 102px;
  background: linear-gradient(135deg, rgba(124,92,255,0.06), rgba(251,191,36,0.04), rgba(124,92,255,0.06));
  z-index: -1;
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
nav#navbar:hover::before { opacity: 1; }

/* 底部高光边缘 */
nav#navbar::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,0.12), rgba(251,191,36,0.08), rgba(124,92,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
nav#navbar.scrolled::after { opacity: 1; }

/* 滚动后缩小+更实 */
nav#navbar.scrolled {
  top: 8px;
  max-width: 720px;
  padding: 0 2px;
  background: var(--nav-bg-scrolled);
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 30px var(--nav-shadow), 0 1px 0 var(--glass-highlight) inset;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 6px 0 10px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-brand-img {
  width: 30px; height: 30px;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.3));
  transition: filter 0.3s ease;
}

.nav-brand:hover .nav-brand-img {
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.5));
}

.nav-brand-name {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--glass-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-3));
  border-radius: 1px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* ─── 合并胶囊（头像+昵称+色环） ─── */
.nav-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px 2px 4px;
  border-radius: 100px;
  background: rgba(124,92,255,0.10);
  border: 1px solid rgba(124,92,255,0.08);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-capsule:hover {
  background: rgba(124,92,255,0.16);
  border-color: rgba(124,92,255,0.15);
  transform: scale(1.05);
}
.nav-capsule:active {
  transform: scale(0.93);
}
.nav-capsule .nc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ring-color, rgba(165,180,192,0.4));
  box-shadow: 0 0 4px var(--ring-color, rgba(165,180,192,0.2));
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-capsule .nc-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ring-color, rgba(165,180,192,0.4));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6), 0 2px 6px rgba(0,0,0,0.06);
}
.nav-capsule:hover .nc-circle {
  transform: rotate(-8deg) scale(1.08);
}
.nav-capsule .nc-circle img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.nav-capsule .nc-circle .default-icon { width: 13px; height: 13px; color: #7c5cff; }
.nav-capsule .nc-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── 圆形汉堡按钮（果冻弹簧） ─── */
.hamburger-circle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(124,92,255,0.10);
  border: 1px solid rgba(124,92,255,0.10);
  color: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hamburger-circle:hover {
  background: rgba(124,92,255,0.18);
  border-color: rgba(124,92,255,0.18);
  transform: scale(1.12);
}
.hamburger-circle:active {
  transform: scale(0.88);
}
.hamburger-circle svg { width: 18px; height: 18px; }

/* ─── Nav 元素入场果冻弹跳 ─── */
@keyframes navJellyIn {
  0% { opacity: 0; transform: scale(0.6) translateY(-8px); }
  60% { transform: scale(1.08) translateY(1px); }
  80% { transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.nav-capsule, .hamburger-circle {
  animation: navJellyIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.nav-capsule { animation-delay: 0.1s; }
.hamburger-circle { animation-delay: 0.2s; }

/* ─── 悬浮主题按钮（右下+果冻） ─── */
.theme-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,92,255,0.20), rgba(124,92,255,0.10));
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(124,92,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--aurora-3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(124,92,255,0.15), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.theme-float:hover {
  transform: scale(1.18) rotate(15deg);
  background: linear-gradient(135deg, rgba(124,92,255,0.28), rgba(124,92,255,0.14));
  border-color: rgba(124,92,255,0.25);
  color: var(--aurora-3);
  box-shadow: 0 6px 24px rgba(124,92,255,0.25);
}
.theme-float:active {
  transform: scale(0.90) rotate(-10deg);
}
.theme-float svg { width: 20px; height: 20px; }
.theme-float .moon-icon { display: block; }
.theme-float .sun-icon { display: none; }
[data-theme="light"] .theme-float .sun-icon { display: block; }
[data-theme="light"] .theme-float .moon-icon { display: none; }
[data-theme="light"] .theme-float {
  background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(124,92,255,0.06));
  border-color: rgba(124,92,255,0.12);
  color: #7c5cff;
}
[data-theme="light"] .theme-float:hover {
  background: linear-gradient(135deg, rgba(124,92,255,0.22), rgba(124,92,255,0.10));
  color: #7c5cff;
}

@media (max-width: 480px) {
  .theme-float { bottom: 16px; right: 16px; width: 38px; height: 38px; }
  .theme-float svg { width: 16px; height: 16px; }
}

/* ─── 按钮 v3（招新风格）─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 100px;
  font-size: 0.93rem; font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
  cursor: pointer; border: none; font-family: inherit;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--btn-shadow);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--btn-hover-gradient);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: inherit;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 40px var(--btn-shadow-hover); }
.btn-primary:active { transform: translateY(-1px) scale(0.97); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-glass {
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(124,92,255,0.08);
}
.btn-glass:active { transform: translateY(0) scale(0.98); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + var(--space-4xl)) var(--space-lg) var(--space-2xl);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(124,92,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(124,92,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}
.hero-content { position: relative; z-index: var(--z-content); text-align: center; max-width: 750px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  background: var(--glass-base); border: 1px solid var(--glass-border);
  font-size: 0.78rem; font-weight: 500; color: var(--aurora-3);
  margin-bottom: var(--space-xl);
  opacity: 0; animation: heroSlideSpring 0.8s var(--spring-out) 0.3s forwards;
}
.hero h1 {
  font-size: clamp(2.5rem, 10vw, 4.8rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.05; margin-bottom: var(--space-lg);
  opacity: 0; animation: heroSlideSpring 0.8s var(--spring-out) 0.5s forwards;
}
.hero h1 .gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--text-secondary);
  max-width: 520px; margin: 0 auto var(--space-2xl); line-height: 1.8;
  opacity: 0; animation: heroSlideSpring 0.8s var(--spring-out) 0.7s forwards;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-md); flex-wrap: wrap;
  opacity: 0; animation: heroSlideSpring 0.8s var(--spring-out) 0.9s forwards;
}
@keyframes heroSlideSpring {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  60% { transform: translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Section ─── */
section { position: relative; padding: var(--space-4xl) 0; transition: background 0.3s ease; }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-lg); }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 100px;
  background: var(--glass-base); border: 1px solid var(--glass-border);
  font-size: 0.72rem; font-weight: 700; color: var(--aurora-3);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md);
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: var(--space-md);
  background: var(--section-title);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { font-size: 1rem; color: var(--text-secondary); max-width: 560px; line-height: 1.8; margin-bottom: var(--space-2xl); }

/* ─── News carousel ─── */
.news-carousel { position: relative; overflow: visible; margin: 0 calc(-1 * var(--space-lg)); padding: 0 var(--space-lg); }
.news-track { display: flex; gap: var(--space-lg); transition: transform 0.6s var(--spring-out); will-change: transform; }
.news-slide {
  min-width: 340px; max-width: 380px; flex-shrink: 0;
  border-radius: 20px;
  background: var(--glass-base); backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--spring-out); cursor: pointer;
  position: relative; overflow: hidden;
}
.news-slide::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(124,92,255,0.03), transparent, rgba(251,191,36,0.02), transparent);
  animation: newsRotate 8s linear infinite; opacity: 0; transition: opacity 0.5s ease;
}
.news-slide:hover::before { opacity: 1; }
.news-slide:hover { transform: translateY(-8px) scale(1.02); border-color: var(--glass-border-hover); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
@keyframes newsRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.news-slide .image { width: 100%; aspect-ratio: 16/9; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.news-slide .image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(4,5,10,0.5)); }
.news-slide .image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--spring-out); }
.news-slide:hover .image img { transform: scale(1.08); }
.news-slide .body { padding: var(--space-lg); position: relative; }
.news-tag { display: inline-block; padding: 3px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; background: rgba(124,92,255,0.10); color: var(--dawn-300); margin-bottom: var(--space-sm); border: 1px solid rgba(124,92,255,0.06); }
.news-slide h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: var(--space-xs); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.news-slide .date { font-size: 0.75rem; color: var(--text-muted); }
.news-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-xl); }
.news-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); transition: all 0.4s var(--spring-out); cursor: pointer; border: none; }
.news-dot.active { width: 32px; border-radius: 4px; background: linear-gradient(90deg, var(--aurora-1), var(--aurora-3)); }
.news-dot:hover { background: var(--dawn-400); }
.news-arrow { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--glass-base); border: 1px solid var(--glass-border); color: var(--text-secondary); transition: all 0.3s var(--spring-out); }
.news-arrow:hover { background: var(--glass-hover); color: var(--text-primary); border-color: var(--glass-border-hover); transform: scale(1.1); }

/* ─── Func grid ─── */
.func-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.func-item {
  padding: var(--space-xl) var(--space-lg); border-radius: 20px;
  background: var(--glass-base); backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  transition: all 0.5s var(--spring-out);
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.func-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--aurora-1), var(--aurora-3), transparent); opacity: 0; transition: opacity 0.4s ease; }
.func-item:hover::before { opacity: 1; }
.func-item:hover { transform: translateY(-6px); border-color: var(--glass-border-hover); background: var(--glass-hover); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.func-item .icon-wrap { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(124,92,255,0.06); color: var(--dawn-300); margin-bottom: 4px; transition: all 0.3s ease; }
.func-item:hover .icon-wrap { background: rgba(124,92,255,0.12); transform: scale(1.1); }
.func-item h4 { font-size: 0.95rem; font-weight: 700; }
.func-item p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── Info module ─── */
.info-module { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.info-visual { position: relative; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; background: var(--bg-surface); }
.info-visual-blob { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(124,92,255,0.12), transparent 60%), radial-gradient(ellipse at 70% 60%, rgba(251,191,36,0.06), transparent 50%); filter: blur(50px); animation: blobBreathe 6s ease-in-out infinite alternate; }
@keyframes blobBreathe { 0% { transform: scale(1) rotate(-3deg); filter: blur(50px); } 100% { transform: scale(1.15) rotate(3deg); filter: blur(60px); } }
.info-visual img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.info-visual::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(135deg, rgba(124,92,255,0.08), transparent); }

/* ─── Light bar ─── */
.light-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.light-bar-value { font-size: clamp(1.4rem, 4vw, 2.5rem); font-weight: 900; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.03em; }
.light-bar-label { font-size: 0.82rem; color: var(--text-muted); }
.light-bar-track { width: 80px; height: 3px; background: var(--glass-base); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.light-bar-fill { height: 100%; background: linear-gradient(90deg, var(--aurora-1), var(--aurora-3)); border-radius: 2px; width: 0; transition: width 1.2s var(--spring-out); }
.light-bar-fill.animate { width: 100%; }

/* ─── Footer ─── */
footer { padding: var(--space-3xl) 0 0; border-top: 1px solid var(--glass-border); position: relative; }
footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border), var(--aurora-3), var(--glass-border), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--glass-border); }
.footer-brand { max-width: 320px; }
.footer-brand-name { display: flex; align-items: center; gap: var(--space-sm); font-weight: 700; font-size: 1rem; margin-bottom: var(--space-md); }
.footer-brand-name img { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--text-primary); letter-spacing: 0.05em; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--text-secondary); padding: 5px 0; transition: all 0.3s var(--spring-out); }
.footer-col a:hover { color: var(--dawn-300); padding-left: 6px; }
.footer-bottom { padding: var(--space-lg) 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--dawn-300); }

/* ─── Reveal ─── */
.reveal-fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--liquid-flow), transform 0.8s var(--spring-out); }
.reveal-fade-up.revealed { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.88); transition: opacity 0.7s var(--spring-out), transform 0.7s var(--spring-out); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
.reveal-blur { opacity: 0; filter: blur(10px); transition: opacity 0.8s var(--smooth), filter 0.8s var(--smooth); }
.reveal-blur.revealed { opacity: 1; filter: blur(0); }

/* ─── Guide dots ─── */
.guide-dots { display: flex; gap: var(--space-sm); justify-content: center; margin-top: var(--space-xl); }
.guide-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: dotPulse 2s ease-in-out infinite; }
.guide-dot:nth-child(2) { animation-delay: 0.3s; }
.guide-dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes dotPulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.4); } }

/* ─── Preloader v5 — 深色渐变光晕 + 快速 Logo 入场 ─── */
#preloader { position: fixed; inset: 0; background: var(--bg-deep); z-index: 99999; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* 主光晕 — 深色优雅渐变，像缓慢呼吸的极光 */
.preloader-sweep { position: absolute; width: 220%; height: 220%; top: -60%; left: -60%; background: conic-gradient(transparent 0deg, rgba(96,76,186,0.22) 30deg, rgba(140,120,210,0.12) 70deg, rgba(96,76,186,0.28) 110deg, rgba(160,140,200,0.08) 150deg, transparent 180deg); animation: sweepRotate 4s cubic-bezier(0.45, 0, 0.35, 1) infinite; filter: blur(40px); will-change: transform, opacity; }
@keyframes sweepRotate { 0% { transform: rotate(-15deg) scale(0.3); opacity: 0; } 8% { opacity: 0.7; } 42% { opacity: 0.3; } 58% { opacity: 0.3; } 92% { opacity: 0.7; } 100% { transform: rotate(345deg) scale(1.3); opacity: 0; } }

/* 副光晕 — 深蓝紫调，慢速弥漫 */
.preloader-sweep-2 { position: absolute; width: 160%; height: 160%; top: -30%; left: -30%; background: conic-gradient(transparent 0deg, rgba(70,85,170,0.10) 50deg, rgba(96,76,186,0.18) 100deg, rgba(70,85,170,0.06) 150deg, transparent 190deg); animation: sweepRotate2 5s cubic-bezier(0.45, 0, 0.35, 1) 0.5s infinite; filter: blur(32px); }
@keyframes sweepRotate2 { 0% { transform: rotate(15deg) scale(0.25); opacity: 0; } 8% { opacity: 0.5; } 42% { opacity: 0.2; } 58% { opacity: 0.2; } 92% { opacity: 0.5; } 100% { transform: rotate(-345deg) scale(1.2); opacity: 0; } }

/* Logo 区 — 快速入场 */
.preloader-logo-wrap { position: relative; z-index: 2; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; opacity: 0; animation: logoAppear 0.35s cubic-bezier(0.23, 1, 0.32, 1) 0.15s forwards; }
.preloader-logo-wrap img { width: 80px; height: 80px; border-radius: 16px; position: relative; z-index: 3; filter: drop-shadow(0 0 28px rgba(96,76,186,0.5)) drop-shadow(0 0 50px rgba(140,120,210,0.25)); }
.preloader-logo-glow { position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, rgba(96,76,186,0.25) 0%, rgba(140,120,210,0.08) 45%, transparent 70%); filter: blur(30px); animation: logoGlowPulse 2.4s ease-in-out infinite alternate; }
@keyframes logoAppear { 0% { opacity: 0; transform: scale(0.85); } 100% { opacity: 1; transform: scale(1); } }
@keyframes logoGlowPulse { 0% { transform: scale(0.92); opacity: 0.4; } 100% { transform: scale(1.12); opacity: 0.8; } }

/* 加载状态文字 */
.preloader-status {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  white-space: nowrap;
  opacity: 0;
  animation: statusFadeIn 0.8s ease 0.6s forwards;
  text-align: center;
}
.preloader-status .status-label { opacity: 0.7; }
.preloader-status .status-dots { display: inline-block; min-width: 24px; text-align: left; }
@keyframes statusFadeIn { to { opacity: 1; } }

/* 退出动画 */
#preloader.fade-out { animation: preloaderExit 0.6s var(--liquid-flow) forwards; }
@keyframes preloaderExit { 0% { opacity: 1; } 100% { opacity: 0; pointer-events: none; visibility: hidden; } }

/* ─── Blob shapes ─── */
.blob-shape { position: absolute; border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; filter: blur(40px); opacity: 0.06; animation: blobMorph 12s ease-in-out infinite alternate; pointer-events: none; z-index: 0; }
.blob-shape:nth-child(1) { width: 500px; height: 500px; background: var(--aurora-1); top: -10%; left: -10%; animation-duration: 14s; }
.blob-shape:nth-child(2) { width: 400px; height: 400px; background: var(--aurora-3); bottom: -5%; right: -5%; animation-duration: 10s; animation-delay: -3s; }
.blob-shape:nth-child(3) { width: 300px; height: 300px; background: var(--aurora-4); top: 40%; right: 15%; animation-duration: 16s; animation-delay: -6s; opacity: 0.04; }
@keyframes blobMorph { 0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: translate(0,0) rotate(0deg); } 33% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; transform: translate(20px,-30px) rotate(120deg); } 66% { border-radius: 30% 70% 40% 60% / 60% 40% 60% 40%; transform: translate(-15px,20px) rotate(240deg); } 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: translate(0,0) rotate(360deg); } }


/* ==============================================
   Floating Menu — 悬浮弹出菜单
   ============================================== */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 299;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: auto; }

.float-menu {
  position: fixed;
  right: calc(var(--space-lg) + 50px);
  top: calc(var(--nav-h) + 8px);
  min-width: 200px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(4,5,10,0.92);
  backdrop-filter: blur(32px) saturate(2);
  -webkit-backdrop-filter: blur(32px) saturate(2);
  border: 1px solid rgba(124,92,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  z-index: 300;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top right;
}
.float-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

[data-theme="light"] .float-menu {
  background: rgba(248,250,252,0.95);
  border-color: rgba(124,92,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(8px);
}
.float-menu.open .menu-item {
  animation: menuItemJelly 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes menuItemJelly {
  0% { opacity: 0; transform: translateY(14px) scale(0.92); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.float-menu.open .menu-item:nth-child(1) { animation-delay: 0.03s; }
.float-menu.open .menu-item:nth-child(2) { animation-delay: 0.06s; }
.float-menu.open .menu-item:nth-child(3) { animation-delay: 0.09s; }
.float-menu.open .menu-item:nth-child(4) { animation-delay: 0.12s; }
.float-menu.open .menu-item:nth-child(5) { animation-delay: 0.15s; }
.float-menu.open .menu-item:nth-child(6) { animation-delay: 0.18s; }
.menu-item:hover { background: var(--glass-base); color: var(--text-primary); }

.menu-divider {
  height: 1px;
  margin: 6px 12px;
  background: var(--glass-border);
  opacity: 0.5;
}

.menu-item-auth {
  color: var(--aurora-3) !important;
  font-weight: 600;
}
[data-theme="light"] .menu-item-auth {
  color: #d97706 !important;
}

.menu-item-all {
  color: var(--dawn-300) !important;
  font-size: 0.82rem;
}
[data-theme="light"] .menu-item-all {
  color: #7c5cff !important;
}

/* ─── 个人中心悬浮窗 ─── */
.profile-card {
  position: fixed;
  right: calc(var(--space-lg) + 6px);
  top: calc(var(--nav-h) + 8px);
  width: 260px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(4,5,10,0.92);
  backdrop-filter: blur(32px) saturate(2);
  -webkit-backdrop-filter: blur(32px) saturate(2);
  border: 1px solid rgba(124,92,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  z-index: 300;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top right;
  text-align: center;
}
.profile-card.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

[data-theme="light"] .profile-card {
  background: rgba(248,250,252,0.95);
  border-color: rgba(124,92,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

.profile-card .pc-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #fff;
  border: 2px solid var(--ring-color, rgba(165,180,192,0.4));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  animation: pcAvatarIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.profile-card .pc-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.profile-card .pc-avatar svg { width: 24px; height: 24px; color: #7c5cff; }

@keyframes pcAvatarIn {
  0% { transform: scale(0) rotate(-10deg); }
  100% { transform: scale(1) rotate(0); }
}

.profile-card .pc-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
  animation: pcFadeSlide 0.4s ease 0.1s both;
}
.profile-card .pc-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  animation: pcFadeSlide 0.4s ease 0.15s both;
}
.profile-card .pc-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: pcFadeSlide 0.4s ease 0.2s both;
}
.profile-card .pc-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer; border: none; font-family: inherit;
}
.profile-card .pc-btn-primary {
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
  color: #fff;
}
.profile-card .pc-btn-primary:hover { transform: scale(1.02); }
.profile-card .pc-btn-secondary {
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.profile-card .pc-btn-secondary:hover { background: var(--glass-hover); color: var(--text-primary); }

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

/* ─── 移动端悬浮菜单位置 ─── */
@media (max-width: 480px) {
  .float-menu { right: var(--space-md); min-width: 180px; }
  .profile-card { right: var(--space-md); width: 220px; }
}
