/**
 * ============================================================================
 * 锁界AI工作室 - 样式文件
 * ============================================================================
 * 版本: 2.1.0 (必须与CONFIG.version保持一致)
 * 说明: 包含全局样式、主题变量、组件样式、动画等
 * ============================================================================
 */

/* ==================== CSS Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    min-height: 100%;
    height: 100%;
    /* Safari/iOS专用 */
    height: -webkit-fill-available;
}

* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 确保输入框可以正常交互 */
input, textarea, [contenteditable="true"], select, button {
    -webkit-user-select: text;
    user-select: text;
    touch-action: auto;
}

body {
    margin: 0;
    padding: 0;
    padding-top: max(env(safe-area-inset-top), 0px);
    padding-bottom: max(env(safe-area-inset-bottom), 0px);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    scroll-snap-type: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100%;
    /* Safari/iOS专用 */
    min-height: -webkit-fill-available;
}

/* 防止边缘白条/滚动条问题 */
html, body {
    position: relative;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-deep);
}

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 防止固定定位元素造成的溢出 */
.fixed, .absolute {
    max-width: 100vw;
}

/* 防止视频元素造成的边缘问题 */
video {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* ==================== CSS变量 - 简洁现代主题 ==================== */
:root {
    --primary: #6366F1;
    --neon: #6366F1;
    --radius: 20px;
    --radius-s: 14px;
    --blur: 20px;
    --red-glass: rgba(239, 68, 68, 0.15);
    --red-neon: #EF4444;
    --bg-deep: #0a0a0f;
    --glass: rgba(255,255,255,0.06);
    --glass-light: rgba(255,255,255,0.1);
    --border: rgba(255,255,255,0.1);
    --text: #f1f5f9;
    --text-sub: #94a3b8;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.2), 0 8px 30px rgba(0,0,0,0.15);
    --card-shadow-hover: 0 4px 20px rgba(0,0,0,0.25), 0 12px 40px rgba(0,0,0,0.2);
    --card-shadow-elevated: 0 8px 40px rgba(0,0,0,0.3), 0 2px 10px rgba(0,0,0,0.2);
}

/* ==================== 音乐播放器样式 ==================== */
#musicContainer {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: calc(20px + env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999999;
}

#musicContainer > div {
    position: relative;
    display: flex;
    align-items: center;
}

#volumeControl {
    position: fixed;
    left: calc(20px + env(safe-area-inset-left, 0px));
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000000;
}

#volumeControl.volume-control-showing {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#volumeControl > div {
    display: flex;
    flex-direction: column;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 6px 20px rgba(155,89,182,0.15);
    white-space: nowrap;
    max-width: calc(100vw - 40px);
    overflow: hidden;
}

.volume-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.current-song-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.playlist-container {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.playlist-scroll {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 200px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.playlist-scroll::-webkit-scrollbar {
    width: 6px !important;
}

.song-item {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-sub);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.song-item:hover {
    background: var(--glass-light);
    color: var(--text);
}

.song-item.active {
    background: linear-gradient(135deg, rgba(102,126,234,0.3) 0%, rgba(118,75,162,0.3) 100%);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(102,126,234,0.4);
}

/* 第一首歌（有MV的歌曲）显示红色 */
.song-item[data-index="0"] {
    color: #ff4444;
    font-weight: 600;
}

.song-item[data-index="0"].active {
    color: #ff6666;
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

#volumeSlider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon);
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon);
    cursor: pointer;
    border: none;
}

#volumeValue {
    font-size: 10px;
    color: var(--text);
    min-width: 28px;
    text-align: right;
}

#musicBtn {
    width: 50px;
    height: 50px;
    background: rgba(128, 128, 128, 0.45); /* 更半透明！！！ */
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: calc(20px + env(safe-area-inset-left));
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999999;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#musicBtn:hover {
    background: rgba(128, 128, 128, 0.55);
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

#musicBtn:active {
    transform: scale(0.92);
    transition-duration: 0.1s;
}

#musicBtn.music-btn-showing {
    opacity: 1;
    visibility: visible;
}

:root.sky-1 #musicBtn {
    background: rgba(155, 89, 182, 0.45);
    border-color: rgba(155, 89, 182, 0.25);
}
:root.sky-2 #musicBtn {
    background: rgba(0, 168, 255, 0.45);
    border-color: rgba(0, 168, 255, 0.25);
}
:root.sky-3 #musicBtn {
    background: rgba(233, 30, 99, 0.45);
    border-color: rgba(233, 30, 99, 0.25);
}
:root.sky-4 #musicBtn {
    background: rgba(63, 81, 181, 0.45);
    border-color: rgba(63, 81, 181, 0.25);
}
:root.sky-5 #musicBtn {
    background: rgba(0, 188, 212, 0.45);
    border-color: rgba(0, 188, 212, 0.25);
}
:root.sky-6 #musicBtn {
    background: rgba(255, 152, 0, 0.45);
    border-color: rgba(255, 152, 0, 0.25);
}

:root.sky-1 #musicBtn:hover {
    background: rgba(155, 89, 182, 0.55);
}
:root.sky-2 #musicBtn:hover {
    background: rgba(0, 168, 255, 0.55);
}
:root.sky-3 #musicBtn:hover {
    background: rgba(233, 30, 99, 0.55);
}
:root.sky-4 #musicBtn:hover {
    background: rgba(63, 81, 181, 0.55);
}
:root.sky-5 #musicBtn:hover {
    background: rgba(0, 188, 212, 0.55);
}
:root.sky-6 #musicBtn:hover {
    background: rgba(255, 152, 0, 0.55);
}

#playIcon, #pauseIcon, #loadingIcon {
    width: 24px;
    height: 24px;
    fill: rgba(255,255,255,0.9);
    transition: fill 0.2s ease;
}

#loadingIcon {
    animation: audioLoadingSpin 1s linear infinite;
    fill: none;
    stroke: rgba(255,255,255,0.9);
}

@-webkit-keyframes audioLoadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes audioLoadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    #musicContainer {
        bottom: 15px;
        left: 15px;
    }
    #volumeControl {
        left: 15px;
        bottom: 70px;
    }
    #volumeControl > div {
        padding: 8px 10px;
    }
    .current-song-title {
        font-size: 11px;
    }
    .song-item {
        font-size: 11px;
        padding: 5px 8px;
    }
    #volumeSlider {
        width: 100%;
    }
    #musicBtn {
        width: 44px;
        height: 44px;
    }
    #playIcon, #pauseIcon, #loadingIcon {
        width: 20px;
        height: 20px;
    }
    .playlist-scroll {
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    #musicBtn {
        width: 40px;
        height: 40px;
    }
    #playIcon, #pauseIcon, #loadingIcon {
        width: 18px;
        height: 18px;
    }
}

/* ==================== 反馈按钮样式 ==================== */
#lightningContainer {
    position: fixed;
    bottom: 80px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999998;
}

#lightningBtn {
    width: 50px;
    height: 50px;
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.25);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
    transition: opacity 0.12s cubic-bezier(0.34, 1.2, 0.64, 1),
                transform 0.12s cubic-bezier(0.34, 1.2, 0.64, 1),
                visibility 0s 0s,
                box-shadow 0.12s ease,
                background 0.2s ease,
                border-color 0.2s ease;
    position: relative;
    z-index: 2;
}

:root.sky-1 #lightningBtn {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.25);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.12);
}
:root.sky-2 #lightningBtn {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.12);
}
:root.sky-3 #lightningBtn {
    background: rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.25);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.12);
}
:root.sky-4 #lightningBtn {
    background: rgba(63, 81, 181, 0.2);
    border-color: rgba(63, 81, 181, 0.25);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.12);
}
:root.sky-5 #lightningBtn {
    background: rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.25);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.12);
}
:root.sky-6 #lightningBtn {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.25);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.12);
}

:root.sky-1 #lightningBtn:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}
:root.sky-2 #lightningBtn:hover {
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3);
}
:root.sky-3 #lightningBtn:hover {
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}
:root.sky-4 #lightningBtn:hover {
    box-shadow: 0 6px 20px rgba(63, 81, 181, 0.3);
}
:root.sky-5 #lightningBtn:hover {
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
}
:root.sky-6 #lightningBtn:hover {
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

#lightningBtn.lightning-btn-showing {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#lightningBtn svg {
    width: 24px;
    height: 24px;
    fill: var(--neon);
    transition: fill 0.2s ease;
}



#lightningTooltip {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    background: var(--glass);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
}

#lightningTooltip.lightning-tooltip-showing {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    #lightningContainer { bottom: 65px; left: 15px; }
    #lightningBtn { width: 48px; height: 48px; }
    #lightningTooltip { left: 55px; font-size: 12px; }
    html, body {
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll;
    }
    .btn, .disclaimer-btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        user-select: none;
    }
}

#thanksModal .modal-content {
    max-width: 400px;
}

#thanksModal p {
    font-size: 16px;
    color: var(--text);
    margin: 0;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", PingFang SC, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: transparent;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.45;
    transition: all 0.12s ease;
    padding-top: 80px;
    position: relative;
}

/* ==================== 星空背景层 ==================== */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

:root.light #starCanvas {
    display: none;
}

:root.light .nebula {
    display: none;
}

:root.light .content-bg {
    display: none;
}

.ink-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: none;
    background:
        radial-gradient(ellipse 50% 50% at 20% 30%, rgba(180, 180, 180, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(160, 160, 160, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 45% 45% at 60% 80%, rgba(170, 170, 170, 0.07) 0%, transparent 58%),
        radial-gradient(ellipse 35% 35% at 90% 70%, rgba(150, 150, 150, 0.05) 0%, transparent 50%),
        radial-gradient(circle 1px at 80px 60px, rgba(100, 100, 100, 0.03) 0%, transparent 50%),
        radial-gradient(circle 1px at 200px 120px, rgba(120, 120, 120, 0.025) 0%, transparent 50%),
        radial-gradient(circle 1px at 350px 90px, rgba(110, 110, 110, 0.028) 0%, transparent 50%),
        radial-gradient(circle 1px at 480px 150px, rgba(130, 130, 130, 0.022) 0%, transparent 50%),
        radial-gradient(circle 1px at 620px 100px, rgba(105, 105, 105, 0.025) 0%, transparent 50%),
        radial-gradient(circle 1px at 120px 250px, rgba(115, 115, 115, 0.023) 0%, transparent 50%),
        radial-gradient(circle 1px at 280px 280px, rgba(125, 125, 125, 0.026) 0%, transparent 50%),
        radial-gradient(circle 1px at 420px 220px, rgba(110, 110, 110, 0.022) 0%, transparent 50%),
        radial-gradient(circle 1px at 550px 260px, rgba(120, 120, 120, 0.024) 0%, transparent 50%),
        radial-gradient(circle 1px at 700px 200px, rgba(105, 105, 105, 0.023) 0%, transparent 50%),
        linear-gradient(180deg, #FAFAFA 0%, #F0F0F0 50%, #E8E8E8 100%);
    background-size: 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 1200px 800px, 100% 100%;
    background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat;
    filter: blur(2px);
}

:root.light .ink-bg {
    display: block !important;
}

@-webkit-keyframes starsClose {
    from { transform: translateX(0); }
    to { transform: translateX(-600px); }
}
@keyframes starsClose {
    from { transform: translateX(0); }
    to { transform: translateX(-600px); }
}

@-webkit-keyframes starsFar {
    from { transform: translateX(0); }
    to { transform: translateX(-550px); }
}
@keyframes starsFar {
    from { transform: translateX(0); }
    to { transform: translateX(-550px); }
}

.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.nebula-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
}

/* ==================== 主题1 - 靛蓝 ==================== */
:root.sky-1 {
    --primary: #6366F1;
    --neon: #6366F1;
}
:root.sky-1 .background-overlay {
    background: radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* ==================== 主题2 - 天蓝 ==================== */
:root.sky-2 {
    --primary: #0EA5E9;
    --neon: #0EA5E9;
}
:root.sky-2 .background-overlay {
    background: radial-gradient(ellipse at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

/* ==================== 主题3 - 玫瑰 ==================== */
:root.sky-3 {
    --primary: #EC4899;
    --neon: #EC4899;
}
:root.sky-3 .background-overlay {
    background: radial-gradient(ellipse at 20% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(244, 63, 94, 0.1) 0%, transparent 50%);
}

/* ==================== 主题4 - 靛青 ==================== */
:root.sky-4 {
    --primary: #8B5CF6;
    --neon: #8B5CF6;
}
:root.sky-4 .background-overlay {
    background: radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

/* ==================== 主题5 - 青碧 ==================== */
:root.sky-5 {
    --primary: #14B8A6;
    --neon: #14B8A6;
}
:root.sky-5 .background-overlay {
    background: radial-gradient(ellipse at 20% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* ==================== 主题6 - 琥珀 ==================== */
:root.sky-6 {
    --primary: #F59E0B;
    --neon: #F59E0B;
}
:root.sky-6 .background-overlay {
    background: radial-gradient(ellipse at 20% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(251, 146, 60, 0.1) 0%, transparent 50%);
}

.content-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: transparent;
}

:root.light body {
    background: transparent;
}

:root.light .nebula,
:root.light .stars-layer,
:root.light .content-bg {
    display: none;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

.container { 
    max-width: 1080px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

.lang-btn, .theme-btn { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    background: var(--glass-light); 
    border: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s ease;
    flex-shrink: 0;
    box-shadow: var(--card-shadow); 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--text); 
}

.lang-btn:hover, .theme-btn:hover { 
    transform: scale(1.04); 
    box-shadow: var(--card-shadow-hover); 
}

.lang-btn:active, .theme-btn:active {
    transform: scale(0.94);
    transition-duration: 0.1s;
}

.theme-btn svg { 
    width: 18px; 
    height: 18px; 
    fill: var(--text); 
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    background: #080810;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loader-bg-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52%;
    background: linear-gradient(180deg, #0D0D18 0%, #12121f 100%);
    -webkit-animation: splitTop 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: splitTop 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.loader-bg-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48%;
    background: linear-gradient(180deg, #f8f8fc 0%, #ffffff 100%);
    -webkit-animation: splitBottom 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation: splitBottom 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@-webkit-keyframes splitTop {
    0% { -webkit-transform: translateY(0) scaleY(1); transform: translateY(0) scaleY(1); opacity: 1; }
    50% { -webkit-transform: translateY(-10%) scaleY(1.05); transform: translateY(-10%) scaleY(1.05); opacity: 0.8; }
    100% { -webkit-transform: translateY(-70%) scaleY(0.8); transform: translateY(-70%) scaleY(0.8); opacity: 0; }
}

@keyframes splitTop {
    0% { -webkit-transform: translateY(0) scaleY(1); transform: translateY(0) scaleY(1); opacity: 1; }
    50% { -webkit-transform: translateY(-10%) scaleY(1.05); transform: translateY(-10%) scaleY(1.05); opacity: 0.8; }
    100% { -webkit-transform: translateY(-70%) scaleY(0.8); transform: translateY(-70%) scaleY(0.8); opacity: 0; }
}

@-webkit-keyframes splitBottom {
    0% { -webkit-transform: translateY(0) scaleY(1); transform: translateY(0) scaleY(1); opacity: 1; }
    50% { -webkit-transform: translateY(10%) scaleY(1.05); transform: translateY(10%) scaleY(1.05); opacity: 0.8; }
    100% { -webkit-transform: translateY(70%) scaleY(0.8); transform: translateY(70%) scaleY(0.8); opacity: 0; }
}

@keyframes splitBottom {
    0% { -webkit-transform: translateY(0) scaleY(1); transform: translateY(0) scaleY(1); opacity: 1; }
    50% { -webkit-transform: translateY(10%) scaleY(1.05); transform: translateY(10%) scaleY(1.05); opacity: 0.8; }
    100% { -webkit-transform: translateY(70%) scaleY(0.8); transform: translateY(70%) scaleY(0.8); opacity: 0; }
}

.loader-text-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    overflow: hidden;
}

.loader-text-group {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: baseline;
    -webkit-align-items: baseline;
    align-items: baseline;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: min(80px, 12vw);
    position: relative;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
}

:root.light .loader-text-group {
    -webkit-transform: translateY(-12px);
    transform: translateY(-12px);
}

.loader-text {
    font-size: clamp(36px, 10vw, 68px);
    font-weight: 900;
    position: relative;
    font-family: inherit;
    line-height: 1;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.loader-text-left {
    color: #fff;
    -webkit-animation: leftMove 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards, leftColorMove 2.2s ease-out forwards;
    animation: leftMove 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards, leftColorMove 2.2s ease-out forwards;
    will-change: transform, opacity, color;
    font-size: clamp(40px, 11vw, 76px);
    position: relative;
    top: clamp(4px, 1vw, 6px);
    -webkit-transform: translateX(-4vw) translateY(0.5vw);
    transform: translateX(-4vw) translateY(0.5vw);
    -webkit-transform: translate3d(-4vw, 0.5vw, 0);
    transform: translate3d(-4vw, 0.5vw, 0);
}

.loader-text-right {
    color: #000;
    -webkit-animation: rightMove 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards, rightColorMove 2.2s ease-out forwards;
    animation: rightMove 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards, rightColorMove 2.2s ease-out forwards;
    will-change: transform, opacity, color;
    -webkit-transform: translateX(4vw) translateY(0.5vw);
    transform: translateX(4vw) translateY(0.5vw);
    -webkit-transform: translate3d(4vw, 0.5vw, 0);
    transform: translate3d(4vw, 0.5vw, 0);
}

@-webkit-keyframes leftMove {
    0% { -webkit-transform: translate3d(-4vw, 0.5vw, 0) scale(1); transform: translate3d(-4vw, 0.5vw, 0) scale(1); opacity: 1; }
    60% { -webkit-transform: translate3d(20vw, 0.5vw, 0) scale(1.1); transform: translate3d(20vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
    100% { -webkit-transform: translate3d(28vw, 0.5vw, 0) scale(0.9); transform: translate3d(28vw, 0.5vw, 0) scale(0.9); opacity: 0; }
}

@keyframes leftMove {
    0% { -webkit-transform: translate3d(-4vw, 0.5vw, 0) scale(1); transform: translate3d(-4vw, 0.5vw, 0) scale(1); opacity: 1; }
    60% { -webkit-transform: translate3d(20vw, 0.5vw, 0) scale(1.1); transform: translate3d(20vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
    100% { -webkit-transform: translate3d(28vw, 0.5vw, 0) scale(0.9); transform: translate3d(28vw, 0.5vw, 0) scale(0.9); opacity: 0; }
}

@-webkit-keyframes rightMove {
    0% { -webkit-transform: translate3d(4vw, 0.5vw, 0) scale(1); transform: translate3d(4vw, 0.5vw, 0) scale(1); opacity: 1; }
    60% { -webkit-transform: translate3d(-20vw, 0.5vw, 0) scale(1.1); transform: translate3d(-20vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
    100% { -webkit-transform: translate3d(-28vw, 0.5vw, 0) scale(0.9); transform: translate3d(-28vw, 0.5vw, 0) scale(0.9); opacity: 0; }
}

@keyframes rightMove {
    0% { -webkit-transform: translate3d(4vw, 0.5vw, 0) scale(1); transform: translate3d(4vw, 0.5vw, 0) scale(1); opacity: 1; }
    60% { -webkit-transform: translate3d(-20vw, 0.5vw, 0) scale(1.1); transform: translate3d(-20vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
    100% { -webkit-transform: translate3d(-28vw, 0.5vw, 0) scale(0.9); transform: translate3d(-28vw, 0.5vw, 0) scale(0.9); opacity: 0; }
}

@-webkit-keyframes leftColorMove {
    0% { color: #fff; }
    50% { color: #888; }
    100% { color: #000; }
}

@keyframes leftColorMove {
    0% { color: #fff; }
    50% { color: #888; }
    100% { color: #000; }
}

@-webkit-keyframes rightColorMove {
    0% { color: #000; }
    50% { color: #888; }
    100% { color: #fff; }
}

@keyframes rightColorMove {
    0% { color: #000; }
    50% { color: #888; }
    100% { color: #fff; }
}

.loader.hidden {
    opacity: 0;
    -webkit-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
    pointer-events: none;
    visibility: hidden;
    will-change: opacity, visibility;
}

/* ==================== 导航栏 ==================== */
.nav { 
    position: fixed; 
    top: env(safe-area-inset-top, 0px); 
    left: 0; 
    right: 0; 
    z-index: 9999; 
    padding: 16px 0; 
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    background: var(--glass); 
    border-bottom: 1px solid var(--border); 
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px); 
    box-shadow: var(--card-shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-wrap { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px; 
}

.logo { 
    font-size: 20px; 
    font-weight: 700; 
    letter-spacing: 0.4px; 
    flex-shrink: 0; 
}

.logo span { 
    color: var(--neon); 
}

.desktop-menu { 
    display: flex; 
    gap: 24px; 
}

.desktop-menu a { 
    font-size: 14px; 
    color: var(--text-sub); 
    transition: 0.22s; 
    white-space: nowrap; 
    font-weight: 500; 
}

.desktop-menu a:hover { 
    color: var(--neon); 
}

.mobile-menu-btn { 
    display: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 10px; 
    background: var(--glass-light); 
    border: 1px solid var(--border); 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    flex-shrink: 0; 
    position: relative; 
}

.mobile-menu-btn span { 
    display: block; 
    width: 20px; 
    height: 2px; 
    background: var(--text); 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1); 
}

.mobile-menu-btn span::before, .mobile-menu-btn span::after { 
    content: ''; 
    position: absolute; 
    width: 20px; 
    height: 2px; 
    background: var(--text); 
    left: 50%; 
    transform: translateX(-50%); 
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1); 
}

.mobile-menu-btn span::before { 
    top: -7px; 
}

.mobile-menu-btn span::after { 
    top: 7px; 
}

.mobile-menu-btn.active span { 
    background: transparent; 
}

.mobile-menu-btn.active span::before { 
    top: 0; 
    transform: translateX(-50%) rotate(45deg); 
}

.mobile-menu-btn.active span::after { 
    top: 0; 
    transform: translateX(-50%) rotate(-45deg); 
}

.mobile-menu { 
    display: none; 
    position: fixed; 
    top: 70px; 
    left: 0; 
    right: 0; 
    background: var(--glass); 
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid var(--border); 
    padding: 20px;
    z-index: 9998;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
    pointer-events: none;
}

.mobile-menu.active { 
    transform: translateY(0); 
    opacity: 1; 
    pointer-events: auto; 
}

.mobile-menu a { 
    display: block; 
    padding: 14px 0; 
    font-size: 16px; 
    color: var(--text-sub); 
    border-bottom: 1px solid var(--border); 
    font-weight: 500; 
}

.mobile-menu a:last-child { 
    border-bottom: none; 
}

.mobile-menu a:hover { 
    color: var(--neon); 
}

.nav-controls { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-shrink: 0; 
}

.nav-join-btn { 
    display: flex; 
}

.btn {
    padding: 10px 20px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-s);
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    white-space: nowrap;
    box-shadow: var(--card-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155,89,182,0.08), transparent);
    opacity: 0;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
}

.btn:hover { 
    border-color: rgba(155,89,182,0.3); 
    color: var(--neon); 
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(155,89,182,0.12);
    background: rgba(155,89,182,0.06);
}

.btn:hover::after {
    left: 100%;
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(155,89,182,0.08);
    transition-duration: 0.1s;
}

/* ==================== Hero区域 ==================== */
.hero { 
    padding: 100px 0 120px; 
    text-align: center; 
}

.hero h1 { 
    font-size: 48px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    line-height: 1.1; 
    letter-spacing: -0.6px; 
}

.hero h1 span { 
    color: var(--neon); 
}

.hero p { 
    font-size: 18px; 
    color: var(--text-sub); 
    max-width: 620px; 
    margin: 0 auto 36px; 
    font-weight: 500; 
    padding: 0 20px; 
}

.hero-btns { 
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    flex-wrap: wrap; 
    padding: 0 20px; 
}

.sec-title { 
    text-align: center; 
    margin-bottom: 50px; 
    padding: 0 20px; 
}

.sec-title h2 { 
    font-size: 42px; 
    font-weight: 700; 
    margin-bottom: 12px; 
    letter-spacing: -0.4px; 
}

.sec-title p { 
    font-size: 17px; 
    color: var(--text-sub); 
    max-width: 580px; 
    margin: 0 auto; 
    font-weight: 500;
}

/* ==================== 产品卡片区域 ==================== */
.products { 
    padding: 80px 0; 
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.product-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(155,89,182,0.12), rgba(155,89,182,0.03), transparent 50%, rgba(155,89,182,0.05));
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-2px);
    background: var(--glass-light);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(155,89,182,0.25);
}

.product-card:hover::before {
    opacity: 0.5;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card h3 { 
    font-size: 20px; 
    margin-bottom: 12px; 
    position: relative; 
    z-index: 2; 
}

.product-card p { 
    font-size: 14px; 
    color: var(--text-sub); 
    line-height: 1.6; 
    position: relative; 
    z-index: 2; 
}

/* ==================== 流星效果 ==================== */
.meteor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.meteor {
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(to left, transparent, rgba(255,255,255,0.9), rgba(255,255,255,0.6), rgba(255,255,255,0.2), transparent);
    animation: meteorMove linear forwards;
    transform: rotate(var(--meteor-angle, -45deg));
    box-shadow: 0 0 6px 1px rgba(255,255,255,0.4);
    border-radius: 1px;
}

@-webkit-keyframes meteorMove {
    0% { opacity: 0; transform: translate(0, 0) rotate(var(--meteor-angle, -45deg)); }
    5% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--meteor-x, 100px), var(--meteor-y, 100px)) rotate(var(--meteor-angle, -45deg)); }
}
@keyframes meteorMove {
    0% { opacity: 0; transform: translate(0, 0) rotate(var(--meteor-angle, -45deg)); }
    5% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--meteor-x, 100px), var(--meteor-y, 100px)) rotate(var(--meteor-angle, -45deg)); }
}

/* ==================== 简洁背景 ==================== */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .background-overlay {
        background: radial-gradient(ellipse at 30% 70%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
                    radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    }
}

.product-tag { 
    display: inline-block; 
    padding: 5px 10px; 
    background: rgba(155,89,182,0.15); 
    color: var(--neon); 
    font-size: 12px; 
    border-radius: 8px; 
    margin-bottom: 14px; 
    font-weight: 600; 
    position: relative; 
    z-index: 2; 
}

.red-glass-tag { 
    background: var(--red-glass) !important; 
    color: var(--red-neon) !important; 
}

.power-box-group { 
    display: flex; 
    justify-content: center; 
    align-items: stretch; 
    gap: 16px; 
    margin-bottom: 40px; 
    position: relative; 
    min-height: 440px; 
    perspective: 1400px; 
}

.power-side {
    width: 230px;
    min-height: 340px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: var(--card-shadow);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease, box-shadow 0.5s ease;
    z-index: 1;
}

.power-side.left {
    transform: rotateY(-26deg) translateX(24px);
}

.power-side.right {
    transform: rotateY(26deg) translateX(-24px);
}

.power-main {
    width: 420px;
    min-height: 440px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: var(--card-shadow-hover);
    position: relative;
    z-index: 2;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s ease, background 0.4s ease;
    will-change: transform;
}

.power-box-group:hover .power-main {
    transform: translateY(-5px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.32);
    background: var(--glass);
}

.power-box-group:hover .power-side {
    opacity: 0.9;
    transform: rotateY(0deg) translateX(0);
}

.power-main .inner, .power-side .inner { 
    position: relative; 
    z-index: 2; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
}

.power-side .inner { 
    padding: 28px; 
    justify-content: center; 
    text-align: center; 
}

.power-side-tag { 
    font-size: 11px; 
    padding: 5px 10px; 
    background: var(--glass); 
    border-radius: 999px; 
    margin-bottom: 12px; 
    display: inline-block; 
}

.power-more {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ==================== 核心优势区域 ==================== */
.adv { 
    padding: 80px 0; 
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.adv-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.adv-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 55%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.adv-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(155,89,182,0.3), rgba(155,89,182,0.08), transparent 50%, rgba(155,89,182,0.15));
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.adv-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    background: var(--glass-light);
    border-color: rgba(155,89,182,0.35);
}

.adv-card:hover::before {
    opacity: 0.6;
}

.adv-card:hover::after {
    opacity: 1;
}

.adv-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.adv-card p {
    font-size: 13px;
    color: var(--text-sub); 
    position: relative; 
    z-index: 2; 
    line-height: 1.5; 
}

.support { 
    padding: 80px 0; 
    text-align: center; 
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

@-webkit-keyframes badgePulse {
    0%, 100% { 
        box-shadow: var(--card-shadow);
        border-color: var(--border);
    }
    50% { 
        box-shadow: 0 0 0 0 rgba(155,89,182,0.3), var(--card-shadow);
        border-color: rgba(155,89,182,0.4);
    }
}
@keyframes badgePulse {
    0%, 100% { 
        box-shadow: var(--card-shadow);
        border-color: var(--border);
    }
    50% { 
        box-shadow: 0 0 0 0 rgba(155,89,182,0.3), var(--card-shadow);
        border-color: rgba(155,89,182,0.4);
    }
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neon);
    margin: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: var(--card-shadow);
    animation: badgePulse 3.5s ease-in-out infinite;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(155,89,182,0.5);
    animation: none;
}

.video-section { 
    padding: 60px 0; 
    text-align: center; 
}

.video-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

.video-box::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(155,89,182,0.25), rgba(155,89,182,0.05), transparent 50%, rgba(155,89,182,0.1));
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.video-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(155,89,182,0.3);
}

.video-box:hover::after {
    opacity: 1;
}

.video-wrapper { 
    position: relative; 
    width: 100%; 
    height: 0; 
    padding-bottom: 56.25%; 
    border-radius: 14px; 
    overflow: hidden; 
    background: #000; 
    z-index: 2; 
}

.video-wrapper video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    object-position: center;
    -webkit-object-position: center;
}

.video-label { 
    margin-top: 14px; 
    font-size: 14px; 
    font-weight: 600; 
    text-align: center; 
    position: relative; 
    z-index: 2; 
}

.radar-image {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ==================== 常见问题区域 ==================== */
.qa { 
    padding: 80px 0; 
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.qa-list { 
    max-width: 760px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    padding: 0 20px; 
}

.qa-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.qa-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-hover);
    background: var(--glass-light);
}

.qa-item h3 { 
    font-size: 15px; 
    font-weight: 600; 
    margin-bottom: 6px; 
    position: relative; 
    z-index: 2; 
}

.qa-item .qa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
}

.qa-item .qa-icon {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.qa-item.active .qa-icon {
    transform: rotate(180deg);
}

.qa-item .qa-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-top 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qa-item.active .qa-content {
    max-height: 300px;
    margin-top: 12px;
}

.qa-item p { 
    font-size: 14px; 
    color: var(--text-sub); 
    position: relative; 
    z-index: 2; 
    line-height: 1.5; 
}

.scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.adv-grid .adv-card,
.product-grid .product-card,
.video-grid .video-box,
.scroll-animate.visible .adv-grid .adv-card,
.scroll-animate.visible .product-grid .product-card,
.scroll-animate.visible .video-grid .video-box,
.scroll-animate.visible .badge {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.visible .adv-grid .adv-card:nth-child(1) { transition-delay: 0s; }
.scroll-animate.visible .adv-grid .adv-card:nth-child(2) { transition-delay: 0.06s; }
.scroll-animate.visible .adv-grid .adv-card:nth-child(3) { transition-delay: 0.12s; }
.scroll-animate.visible .adv-grid .adv-card:nth-child(4) { transition-delay: 0.18s; }

.scroll-animate.visible .product-grid .product-card:nth-child(1) { transition-delay: 0s; }
.scroll-animate.visible .product-grid .product-card:nth-child(2) { transition-delay: 0.08s; }

.scroll-animate.visible .video-grid .video-box:nth-child(1) { transition-delay: 0s; }
.scroll-animate.visible .video-grid .video-box:nth-child(2) { transition-delay: 0.08s; }

.scroll-animate.visible .support .badge:nth-child(1) { transition-delay: 0s; }
.scroll-animate.visible .support .badge:nth-child(2) { transition-delay: 0.05s; }
.scroll-animate.visible .support .badge:nth-child(3) { transition-delay: 0.1s; }
.scroll-animate.visible .support .badge:nth-child(4) { transition-delay: 0.15s; }
.scroll-animate.visible .support .badge:nth-child(5) { transition-delay: 0.2s; }
.scroll-animate.visible .support .badge:nth-child(6) { transition-delay: 0.25s; }

.nav.scrolled {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

:root.light .nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== 联系区域 ==================== */
.contact { 
    padding: 100px 0; 
    text-align: center; 
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.contact-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 30px;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.contact-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.contact-box h3 { 
    margin-bottom: 18px; 
    font-size: 20px; 
    font-weight: 600; 
    position: relative; 
    z-index: 2; 
}

.qq-group { 
    margin: 12px 0 24px; 
    font-size: 15px; 
    color: var(--text-sub); 
    font-weight: 500; 
    position: relative; 
    z-index: 2; 
}

.copy-tip { 
    display: none; 
    margin-top: 12px; 
    color: var(--neon); 
    font-size: 13px; 
    font-weight: 500; 
    position: relative; 
    z-index: 2; 
}

.copy-tip.show { 
    display: block; 
    animation: fadeIn 0.3s ease forwards; 
}

@-webkit-keyframes fadeIn { 
    0% { opacity: 0; transform: translateY(5px); } 
    100% { opacity: 1; transform: translateY(0); } 
}
@keyframes fadeIn { 
    0% { opacity: 0; transform: translateY(5px); } 
    100% { opacity: 1; transform: translateY(0); } 
}

.qq-tip { 
    font-size: 12px; 
    color: var(--text-sub); 
    margin-top: 8px; 
    text-align: center; 
    position: relative; 
    z-index: 2; 
}

.footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.6;
    background: var(--glass);
    position: relative;
    z-index: 10;
}

.disclaimer {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.7;
}

.disclaimer-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.9), rgba(0, 122, 255, 0.7));
    border: 1px solid rgba(0, 122, 255, 0.5);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.disclaimer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.lucky-text {
    display: inline-block;
    margin-top: 12px;
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
}

.lucky-text:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 6px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
}

/* ==================== 模态框样式 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    background: rgba(20, 20, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header { 
    padding: 24px 28px 16px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
}

.modal-header h3 { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text); 
    text-align: center; 
}

.modal-body { 
    padding: 20px 28px; 
    max-height: calc(85vh - 160px); 
    overflow-y: auto; 
}

.modal-section { 
    margin-bottom: 18px; 
}

.modal-section h4 { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--neon); 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.modal-section p { 
    font-size: 13px; 
    color: var(--text-sub); 
    line-height: 1.7; 
    padding-left: 12px; 
}

.modal-footer { 
    padding: 16px 28px 24px; 
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    text-align: center; 
}

.modal-close-btn { 
    padding: 12px 40px; 
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.9), rgba(0, 122, 255, 0.7)); 
    border: 1px solid rgba(0, 122, 255, 0.5); 
    border-radius: 999px; 
    color: #fff; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-close-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25); 
}

.modal-signature { 
    margin-top: 16px; 
    font-size: 12px; 
    color: var(--text-sub); 
    opacity: 0.7; 
}

[lang=en] { 
    display: none; 
}

body.en [lang=zh] { 
    display: none; 
}

body.en [lang=en] { 
    display: block !important; 
}

body.en .product-tag[lang=en], 
body.en .power-side-tag[lang=en], 
body.en .badge[lang=en] { 
    display: inline-block !important; 
}

.mobile-menu .menu-item-en { 
    display: none; 
}

body.en .mobile-menu .menu-item-zh { 
    display: none; 
}

body.en .mobile-menu .menu-item-en { 
    display: block; 
}

.red-text { 
    color: #dc2626 !important; 
    font-weight: 600; 
}

@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 40px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .power-box-group { flex-direction: column; perspective: none; }
    .power-main, .power-side { width: 100%; max-width: 500px; transform: none !important; }
}

/* 移动端性能优化：降低blur半径，减少GPU负担 */
@media (max-width: 768px) {
    .nav { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    .mobile-menu { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    .product-card, .adv-card, .video-box, .qa-item, .contact-box, .badge, .btn {
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    }
    .modal-content, .taffy-modal-container {
        -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    }
    /* 移动端关闭badgePulse持续动画，节省GPU */
    .badge { animation: none !important; }
    /* 移动端简化nebula动画 */
    .nebula { animation-duration: 60s !important; }
    body { padding-top: 56px; }
    .nav { padding: 10px 0; }
    .desktop-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu { display: block; }
    .nav-join-btn { display: none; }
    .nav-controls { gap: 6px; }
    .lang-btn, .theme-btn { width: 36px; height: 36px; }
    .logo { font-size: 16px; }
    .hero { padding: 50px 0 70px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; padding: 0 10px; }
    .sec-title h2 { font-size: 26px; }
    .sec-title p { font-size: 14px; }
    .product-grid { grid-template-columns: 1fr; gap: 12px; }
    .adv-grid { grid-template-columns: 1fr; gap: 12px; }
    .power-box-group { min-height: auto; gap: 10px; margin-bottom: 25px; }
    .power-main { padding: 20px; min-height: auto; }
    .power-side { min-height: auto; width: 100%; max-width: none; }
    .power-side.left, .power-side.right { transform: none !important; }
    .products { padding: 40px 0; }
    .adv { padding: 40px 0; }
    .video-grid { grid-template-columns: 1fr; gap: 12px; }
    .support { padding: 40px 0; }
    .qa { padding: 40px 0; }
    .contact { padding: 50px 0; }
    .contact-box { padding: 24px 16px; }
    .loader-text { font-size: 48px; }
    .loader-text-left { font-size: 54px; }
    .loader-text-right { font-size: 54px; }
    
    @-webkit-keyframes leftMove {
        0% { -webkit-transform: translate3d(-4vw, 0.5vw, 0) scale(1); transform: translate3d(-4vw, 0.5vw, 0) scale(1); opacity: 1; }
        60% { -webkit-transform: translate3d(24vw, 0.5vw, 0) scale(1.1); transform: translate3d(24vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
        100% { -webkit-transform: translate3d(32vw, 0.5vw, 0) scale(0.9); transform: translate3d(32vw, 0.5vw, 0) scale(0.9); opacity: 0; }
    }
    
    @keyframes leftMove {
        0% { -webkit-transform: translate3d(-4vw, 0.5vw, 0) scale(1); transform: translate3d(-4vw, 0.5vw, 0) scale(1); opacity: 1; }
        60% { -webkit-transform: translate3d(24vw, 0.5vw, 0) scale(1.1); transform: translate3d(24vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
        100% { -webkit-transform: translate3d(32vw, 0.5vw, 0) scale(0.9); transform: translate3d(32vw, 0.5vw, 0) scale(0.9); opacity: 0; }
    }
    
    @-webkit-keyframes rightMove {
        0% { -webkit-transform: translate3d(4vw, 0.5vw, 0) scale(1); transform: translate3d(4vw, 0.5vw, 0) scale(1); opacity: 1; }
        60% { -webkit-transform: translate3d(-24vw, 0.5vw, 0) scale(1.1); transform: translate3d(-24vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
        100% { -webkit-transform: translate3d(-32vw, 0.5vw, 0) scale(0.9); transform: translate3d(-32vw, 0.5vw, 0) scale(0.9); opacity: 0; }
    }
    
    @keyframes rightMove {
        0% { -webkit-transform: translate3d(4vw, 0.5vw, 0) scale(1); transform: translate3d(4vw, 0.5vw, 0) scale(1); opacity: 1; }
        60% { -webkit-transform: translate3d(-24vw, 0.5vw, 0) scale(1.1); transform: translate3d(-24vw, 0.5vw, 0) scale(1.1); opacity: 0.6; }
        100% { -webkit-transform: translate3d(-32vw, 0.5vw, 0) scale(0.9); transform: translate3d(-32vw, 0.5vw, 0) scale(0.9); opacity: 0; }
    }
    
    @-webkit-keyframes leftMoveLight {
        0% { transform: translateX(-4vw) translateY(-1.6vw) scale(1); opacity: 1; }
        60% { transform: translateX(24vw) translateY(-1.6vw) scale(1.1); opacity: 0.6; }
        100% { transform: translateX(32vw) translateY(-1.6vw) scale(0.9); opacity: 0; }
    }
    @keyframes leftMoveLight {
        0% { transform: translateX(-4vw) translateY(-1.6vw) scale(1); opacity: 1; }
        60% { transform: translateX(24vw) translateY(-1.6vw) scale(1.1); opacity: 0.6; }
        100% { transform: translateX(32vw) translateY(-1.6vw) scale(0.9); opacity: 0; }
    }
    
    @-webkit-keyframes rightMoveLight {
        0% { transform: translateX(4vw) translateY(-1.6vw) scale(1); opacity: 1; }
        60% { transform: translateX(-24vw) translateY(-1.6vw) scale(1.1); opacity: 0.6; }
        100% { transform: translateX(-32vw) translateY(-1.6vw) scale(0.9); opacity: 0; }
    }
    @keyframes rightMoveLight {
        0% { transform: translateX(4vw) translateY(-1.6vw) scale(1); opacity: 1; }
        60% { transform: translateX(-24vw) translateY(-1.6vw) scale(1.1); opacity: 0.6; }
        100% { transform: translateX(-32vw) translateY(-1.6vw) scale(0.9); opacity: 0; }
    }
    .modal-content { width: 95%; max-width: none; }
    .modal-header { padding: 16px 16px 12px; }
    .modal-body { padding: 14px 16px; }
    .modal-footer { padding: 12px 16px 16px; }
    #musicContainer { bottom: calc(15px + env(safe-area-inset-bottom, 0px)); left: calc(15px + env(safe-area-inset-left, 0px)); }
    #musicBtn { width: 48px; height: 48px; }
    #volumeControl { left: 55px; }
    .taffy-modal-container { width: 300px !important; padding: 18px 20px !important; }
    .taffy-title { font-size: 20px !important; }
}

@media (max-width: 480px) {
    body { padding-top: 52px; }
    .container { padding: 0 14px; }
    .nav { padding: 8px 0; }
    .logo { font-size: 15px; }
    .nav-controls { gap: 5px; }
    .lang-btn, .theme-btn { width: 32px; height: 32px; font-size: 11px; }
    .hero h1 { font-size: 24px; }
    .hero-btns { gap: 8px; }
    .btn { padding: 9px 14px; font-size: 13px; }
    .sec-title h2 { font-size: 22px; margin-bottom: 8px; }
    .sec-title { margin-bottom: 30px; }
    .product-card { padding: 20px; }
    .product-card h3 { font-size: 17px; }
    .adv-card { padding: 18px; }
    .video-section { padding: 35px 0; }
    .video-box { padding: 14px; }
    .qa-item { padding: 16px 18px; }
    .qa-item h3 { font-size: 14px; }
    .footer { padding: 25px 14px; font-size: 12px; }
    .loader-text { font-size: 38px; }
    .loader-text-left { font-size: 42px; }
    .loader-text-right { font-size: 42px; }
    #musicContainer { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); gap: 8px; }
    #musicBtn { width: 44px; height: 44px; }
    #lightningBtn { width: 44px; height: 44px; }
    #volumeControl { left: 52px; }
    #volumeSlider { width: 80px; }
    #volumeValue { font-size: 11px; }
    .taffy-modal-container { width: 280px !important; padding: 16px 18px !important; border-radius: 24px !important; }
    .taffy-title { font-size: 18px !important; }
    #taffyFloatingTexts .taffy-floating-text { font-size: 14px !important; }
    #taffyFloatingTexts .taffy-floating-img { width: 50px !important; }
}

@media (max-width: 375px) {
    body { padding-top: 48px; }
    .nav { padding: 7px 0; }
    .logo { font-size: 14px; }
    .nav-controls { gap: 4px; }
    .lang-btn, .theme-btn { width: 30px; height: 30px; font-size: 10px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .sec-title h2 { font-size: 20px; }
    .product-card { padding: 18px; }
    .product-card h3 { font-size: 16px; }
    .adv-card { padding: 16px; }
    .loader-text { font-size: 32px; }
    .loader-text-left { font-size: 36px; }
    .loader-text-right { font-size: 36px; }
    .taffy-modal-container { width: 260px !important; }
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover, .adv-card:hover, .video-box:hover, .qa-item:hover, .contact-box:hover, .badge:hover, .btn:hover {
        transform: none;
    }
    .desktop-menu a:hover { color: var(--text-sub); }
}

@media screen and (orientation: portrait) {
    .power-box-group { flex-direction: column; }
    .power-side.left, .power-side.right { transform: none !important; }
    .power-main, .power-side { width: 100%; max-width: none; }
}

@supports (-webkit-touch-callout: none) or (not (overflow: clip)) {
    .nav, .mobile-menu, .hero, .adv, .products, .qa, .contact, .footer, #musicContainer {
        display: -webkit-flex;
    }
}

.footer .container {
    text-align: center;
}

.taffy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.taffy-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.taffy-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.taffy-floating-texts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.taffy-floating-text {
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    pointer-events: none;
    animation: floatText 8s linear infinite;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

body.light .taffy-floating-text {
    color: rgba(0, 0, 0, 0.2);
}

@-webkit-keyframes floatText {
    0% { transform: translateX(-20%) translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(120%) translateY(20px) rotate(360deg); opacity: 0; }
}
@keyframes floatText {
    0% { transform: translateX(-20%) translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(120%) translateY(20px) rotate(360deg); opacity: 0; }
}

.taffy-modal-container {
    position: relative;
    z-index: 3;
    background: var(--glass);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 32px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.3);
    animation: taffyPopIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    max-width: 90%;
    width: 420px;
}

@-webkit-keyframes taffyPopIn {
    0% { opacity: 0; transform: scale(0.85) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes taffyPopIn {
    0% { opacity: 0; transform: scale(0.85) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@-webkit-keyframes taffyPopOut {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.85) translateY(20px); }
}
@keyframes taffyPopOut {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.85) translateY(20px); }
}

.taffy-modal-container .taffy-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.taffy-modal-container .taffy-desc {
    font-size: 20px;
    color: var(--neon);
    margin-bottom: 24px;
    text-shadow: 0 0 5px rgba(155,89,182,0.3);
}

.taffy-modal-container .taffy-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    border-radius: 999px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.taffy-modal-container .taffy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.6);
}

.taffy-modal-container .taffy-btn:active {
    transform: translateY(1px);
}

.taffy-modal-container .taffy-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-sub);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .taffy-modal-container { padding: 24px 28px; width: 85%; }
    .taffy-modal-container .taffy-title { font-size: 22px; }
    .taffy-modal-container .taffy-desc { font-size: 16px; }
    .taffy-floating-text { font-size: 14px; }
}

:root.light #volumeSlider {
    background: rgba(0,0,0,0.2);
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9B59B6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(155,89,182,0.4);
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1);
}

#volumeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9B59B6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(155,89,182,0.4);
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: none;
}

#volumeSlider::-ms-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9B59B6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(155,89,182,0.4);
    transition: all 0.12s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: none;
}

:root.light #volumeSlider::-webkit-slider-thumb {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

:root.light #volumeSlider::-moz-range-thumb {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

:root.light #volumeSlider::-ms-thumb {
    background: #3A3A3A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.volume-control-showing {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 170px !important;
}

.optimize-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.optimize-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    text-align: left;
    margin-bottom: 24px;
}

.optimize-checkbox-wrap {
    margin-top: 20px;
}

.optimize-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.optimize-checkbox-label input[type="checkbox"] {
    display: none;
}

.optimize-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--glass);
    flex-shrink: 0;
}

.optimize-checkbox-label input[type="checkbox"]:checked + .optimize-checkbox-custom {
    background: var(--neon);
    border-color: var(--neon);
}

.optimize-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    display: none;
    margin-bottom: 2px;
}

.optimize-checkbox-label input[type="checkbox"]:checked + .optimize-checkbox-custom::after {
    display: block;
}

.optimize-checkbox-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.optimize-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.optimize-close-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
}

.optimize-download-btn {
    min-width: 100px;
    text-align: center;
}

.optimize-download-btn.disabled,
.optimize-download-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-box h3 {
    margin-bottom: 16px;
}

.contact-box .btn {
    margin-bottom: 12px;
}

.contact-box .qq-group {
    margin: 12px 0;
}

.contact-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* 页面不可见时暂停所有持续动画，节省CPU/GPU */
body.hidden-page .nebula,
body.hidden-page .badge,
body.hidden-page #loadingIcon,
body.hidden-page .taffy-floating-text {
    animation-play-state: paused !important;
}

@media (max-width: 768px) {
    .optimize-content {
        font-size: 14px;
    }
    .optimize-footer {
        flex-direction: column-reverse;
    }
    .optimize-footer .btn,
    .optimize-footer button {
        width: 100%;
    }
}

.update-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.update-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    text-align: left;
    margin-bottom: 20px;
}

.update-link {
    color: var(--neon);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    word-break: break-all;
}

.update-link:hover {
    opacity: 0.8;
}

.update-more-content {
    margin-top: 20px;
    text-align: center;
}

.more-content-link {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.more-content-link:hover {
    color: var(--neon);
}

.more-content-confirm-modal .modal-body {
    text-align: center;
}

.more-content-confirm-modal p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.more-content-modal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
}

@media (max-width: 768px) {
    .update-content {
        font-size: 14px;
    }
    .more-content-link {
        font-size: 12px;
    }
}

/* ==================== MV播放弹窗样式 ==================== */
.mv-confirm-modal {
    max-width: 420px;
}

.mv-confirm-modal .modal-body {
    text-align: center;
}

.mv-confirm-modal p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

/* MV确认弹窗按钮颜色互换 */
.mv-confirm-modal .mv-confirm-cancel-btn {
    /* 取消按钮使用主要按钮样式（蓝色） */
    background: var(--neon);
    border: none;
    color: #fff;
}

.mv-confirm-modal .mv-confirm-cancel-btn:hover {
    background: var(--neon-dark);
}

.mv-confirm-modal .mv-confirm-btn {
    /* 播放按钮使用次要按钮样式（玻璃效果） */
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
}

.mv-confirm-modal .mv-confirm-btn:hover {
    background: var(--glass-light);
}

.mv-player-modal {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(10, 10, 15, 0.95);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.mv-video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background: #000;
}

.mv-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 更新公告弹窗显示时，音乐按钮不置顶 */
.update-modal-overlay.active ~ #musicContainer,
.update-modal-overlay.active ~ #musicBtn {
    z-index: 100 !important;
}

.update-modal-overlay.active ~ #volumeControl {
    z-index: 101 !important;
}

@media (max-width: 768px) {
    .mv-player-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .mv-close-btn {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
    
    .mv-close-btn svg {
        width: 16px;
        height: 16px;
    }
}
