:root {
    --purple-glow: #8b5cf6;
    --cyan-glow: #06b6d4;
    --void: #0a0a0f;
}

body {
    background: var(--void);
}

[x-cloak] {
    display: none !important;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.08);
}

/* 发光按钮 */
.glow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    min-height: 2.75rem;
    line-height: 1.5;
    background: linear-gradient(135deg, var(--purple-glow), var(--cyan-glow));
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    text-align: center;
    white-space: nowrap;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 20px rgba(6, 182, 212, 0.3);
}

.glow-btn-sm {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-glow), var(--cyan-glow));
    color: white;
    border-radius: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.3s;
}

.glow-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    min-height: 2.75rem;
    line-height: 1.5;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    transition: all 0.3s;
}

.glass-btn:hover {
    border-color: var(--purple-glow);
    background: rgba(139, 92, 246, 0.1);
}

/* 表单 */
.form-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #f3f4f6;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: var(--purple-glow);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* 扫描线 */
.scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* 网格叠加 */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* LOGO 光晕 */
.logo-glow::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Hero 光球 */
.hero-orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2), transparent 70%);
    animation: orb-pulse 4s ease-in-out infinite;
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.3);
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Glitch 标题 */
.glitch-title {
    position: relative;
}

/* 3D 卡片倾斜 */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* VIP 特色卡片 */
.vip-featured {
    border-color: rgba(251, 191, 36, 0.4) !important;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15), 0 0 80px rgba(139, 92, 246, 0.1);
}

.vip-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(139, 92, 246, 0.3));
    z-index: -1;
    opacity: 0.5;
}

/* 上传区 */
.upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    animation: upload-pulse 3s ease-in-out infinite;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--cyan-glow);
    background: rgba(6, 182, 212, 0.05);
}

@keyframes upload-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
    50% { box-shadow: 0 0 20px 0 rgba(139, 92, 246, 0.1); }
}

.upload-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 导航链接 */
.nav-link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-left: 2px solid var(--purple-glow);
}

/* 页面进入动画 */
.page-enter {
    animation: fade-up 0.6s ease-out;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fade-up 0.4s ease-out;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 3px; }

/* ========== 增强动效 v2 ========== */

/* 极光背景 */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6, 182, 212, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(167, 139, 250, 0.1), transparent 50%);
    animation: aurora-shift 12s ease-in-out infinite alternate;
}

@keyframes aurora-shift {
    0% { filter: hue-rotate(0deg) brightness(1); transform: scale(1); }
    100% { filter: hue-rotate(20deg) brightness(1.1); transform: scale(1.05); }
}

/* 漂浮光球 */
.floating-orbs span {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
    animation: float-orb 20s ease-in-out infinite;
}
.floating-orbs span:nth-child(1) { width: 200px; height: 200px; background: rgba(139,92,246,0.15); top: 10%; left: 5%; animation-delay: 0s; }
.floating-orbs span:nth-child(2) { width: 150px; height: 150px; background: rgba(6,182,212,0.12); top: 60%; right: 10%; animation-delay: -5s; }
.floating-orbs span:nth-child(3) { width: 120px; height: 120px; background: rgba(244,114,182,0.1); bottom: 20%; left: 30%; animation-delay: -10s; }
.floating-orbs span:nth-child(4) { width: 180px; height: 180px; background: rgba(99,102,241,0.1); top: 30%; right: 25%; animation-delay: -7s; }
.floating-orbs span:nth-child(5) { width: 100px; height: 100px; background: rgba(251,191,36,0.08); bottom: 10%; right: 40%; animation-delay: -15s; }

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* HUD 角落装饰 */
.hud-corner {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 8;
    pointer-events: none;
    opacity: 0.4;
}
.hud-corner::before, .hud-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, var(--purple-glow), transparent);
}
.hud-tl { top: 12px; left: 12px; }
.hud-tl::before { top: 0; left: 0; width: 30px; height: 2px; }
.hud-tl::after { top: 0; left: 0; width: 2px; height: 30px; background: linear-gradient(180deg, var(--purple-glow), transparent); }
.hud-tr { top: 12px; right: 12px; transform: scaleX(-1); }
.hud-tr::before { top: 0; left: 0; width: 30px; height: 2px; }
.hud-tr::after { top: 0; left: 0; width: 2px; height: 30px; background: linear-gradient(180deg, var(--cyan-glow), transparent); }
.hud-bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.hud-bl::before { top: 0; left: 0; width: 30px; height: 2px; }
.hud-bl::after { top: 0; left: 0; width: 2px; height: 30px; }
.hud-br { bottom: 12px; right: 12px; transform: scale(-1); }
.hud-br::before { top: 0; left: 0; width: 30px; height: 2px; }
.hud-br::after { top: 0; left: 0; width: 2px; height: 30px; }

/* 霓虹渐变边框卡片 */
.neon-border {
    position: relative;
    overflow: hidden;
}
.neon-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139,92,246,0.4), transparent 40%, rgba(6,182,212,0.4));
    -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;
    pointer-events: none;
}
.neon-border:hover::before { opacity: 1; }

/* Glitch 标题 */
.glitch-title {
    position: relative;
}
.glitch-title:hover span {
    animation: glitch-skew 0.4s ease;
}
@keyframes glitch-skew {
    0%, 100% { transform: none; text-shadow: none; }
    20% { transform: skewX(-2deg); text-shadow: 2px 0 var(--cyan-glow), -2px 0 var(--purple-glow); }
    40% { transform: skewX(2deg); text-shadow: -2px 0 var(--cyan-glow), 2px 0 var(--purple-glow); }
    60% { transform: skewX(-1deg); }
}

/* Hero 装饰 */
.hero-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(139,92,246,0.03) 100px, rgba(139,92,246,0.03) 101px);
    animation: hero-lines-scroll 20s linear infinite;
    pointer-events: none;
}
@keyframes hero-lines-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(101px); }
}

.hero-ring {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: ring-rotate 15s linear infinite;
}
.hero-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--cyan-glow);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan-glow);
}
@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.neon-pill { animation: pill-glow 3s ease-in-out infinite; }
@keyframes pill-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(139,92,246,0.2); }
    50% { box-shadow: 0 0 20px rgba(139,92,246,0.4); }
}

.neon-stat {
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.02);
}

.float-icon { animation: icon-float 3s ease-in-out infinite; }
@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.shimmer-badge {
    animation: shimmer 2s linear infinite;
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 错落进入动画 */
.stagger-children > * {
    opacity: 0;
    animation: fade-up 0.6s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }

.stagger-grid > * {
    opacity: 0;
    animation: fade-up 0.5s ease-out forwards;
}
.stagger-grid > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.25s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.35s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.45s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.55s; }

/* 按钮涟漪（仅裁切光效，保留足够内边距避免文字被切） */
.glow-btn, .glass-btn { position: relative; overflow: hidden; }
.glow-btn.w-full, .glass-btn.w-full { display: flex; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* 全屏加载 */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.page-loader.hidden { display: none; }
.loader-ring {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(139,92,246,0.2);
    border-top-color: var(--purple-glow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* VIP 卡片粒子 hover */
.vip-featured:hover {
    animation: vip-pulse 2s ease-in-out infinite;
}
@keyframes vip-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(251,191,36,0.15); }
    50% { box-shadow: 0 0 60px rgba(251,191,36,0.25), 0 0 30px rgba(139,92,246,0.2); }
}
