/* ✨ 革命：导入新的酷字体 Chakra Petch ✨ */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;500;700;900&family=Inter:wght@300;500;700;900&family=Noto+Sans+SC:wght@300;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: #030305; 
    color: #ffffff; 
    /* ✨ 默认字体仍然保持 Inter，但关键元素使用新的酷字体 ✨ */
    font-family: 'Inter', 'Noto Sans SC', sans-serif; 
    overflow-x: hidden; 
}

#webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }
#progress-bar { position: fixed; top: 0; left: 0; height: 4px; background-color: #ffffff; width: 0%; z-index: 999; transition: width 0.1s; }

/* ✨ 新增：酷字体类 ✨ */
.chakra-font {
    font-family: 'Chakra Petch', 'Inter', sans-serif !important;
}

/* 加载屏过渡控制 */
body.loading .navbar,
body.loading .scroll-container,
body.loading #music-player,
body.loading #progress-bar {
    opacity: 0;
    pointer-events: none;
}
.navbar, .scroll-container, #music-player, #progress-bar {
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ✨ 新增：左上角 HUD 水印样式 (字体 Chakra Petch, 霓虹粉) ✨ */
#hud-top-left {
    position: fixed;
    top: 25px;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    /* ✨ 改为霓虹粉 ✨ */
    color: #ff4499;
    text-shadow: 0 0 15px rgba(255, 68, 153, 0.9), 0 0 30px rgba(255, 68, 153, 0.5);
    z-index: 10000;
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#hud-top-left .hud-cross {
    font-size: 1.2rem;
    font-weight: 300;
    /* ✨ 改为霓虹粉 ✨ */
    color: #ff4499;
    animation: neonFlickerPink 3s infinite alternate;
}
body:not(.loading) #hud-top-left {
    opacity: 0;
    pointer-events: none;
}

/* ✨ 革命：全息 3D 数据加载屏背景，改为五颜六色霓虹混合 ✨ */
#loader-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    /* ✨ 革命：引入图二的粉色、蓝色、紫色、黄色霓虹渐变混合 ✨ */
    background: radial-gradient(circle at center, rgba(3,3,5,0) 0%, rgba(10, 5, 20, 0.95) 100%), radial-gradient(circle at 30% 30%, rgba(255, 68, 153, 0.3) 0%, rgba(255, 68, 153, 0) 50%), radial-gradient(circle at 70% 70%, rgba(68, 153, 255, 0.3) 0%, rgba(68, 153, 255, 0) 50%), radial-gradient(circle at 50% 10%, rgba(255, 255, 68, 0.1) 0%, rgba(255, 255, 68, 0) 40%);
    z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; 
    align-items: center; 
    transition: opacity 0.8s;
    pointer-events: none; 
}
#loader-screen.hidden { opacity: 0; }

#loader-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* ✨ 革命：增强扫描线效果，并使其更五颜六色 ✨ */
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%), linear-gradient(90deg, rgba(255, 68, 153, 0.08), rgba(68, 153, 255, 0.04), rgba(255, 255, 68, 0.08));
    background-size: 100% 4px, 3px 100%;
    z-index: -1;
    pointer-events: none;
}

.loader-content {
    display: flex; flex-direction: column; align-items: center;
}

/* 神奇特效：去除黑底，保留冰蓝发光图案 */
.blend-screen {
    mix-blend-mode: screen; 
}

.loader-logo-img {
    width: 25vw; 
    min-width: 220px;
    max-width: 320px;
    margin-bottom: 40px;
    /* ✨ 革命：增强图片发光，并使其更五颜六色 ✨ */
    filter: drop-shadow(0 0 25px rgba(68, 153, 255, 0.9)) drop-shadow(0 0 50px rgba(255, 68, 255, 0.4));
    animation: imageNeonPulseColorful 3s infinite alternate;
}
@keyframes imageNeonPulseColorful {
    0% { filter: drop-shadow(0 0 15px rgba(68, 153, 255, 0.5)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 35px rgba(68, 153, 255, 0.9)) drop-shadow(0 0 60px rgba(255, 68, 255, 0.5)); transform: scale(1.02); }
}

/* 全新登录面板：还原参考图排版，全部升级酷字体 */
#login-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(3, 5, 8, 0.6);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    z-index: 9900; 
    display: flex; justify-content: center; align-items: center;
    opacity: 1; transition: opacity 0.8s, visibility 0.8s;
    visibility: visible;
}
#login-screen.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.login-box {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.4), rgba(5, 5, 10, 0.8));
    /* ✨ 革命：边框改为从蓝霓虹到紫霓虹 ✨ */
    border: 1px solid rgba(255, 68, 255, 0.5);
    box-shadow: 0 0 50px rgba(68, 153, 255, 0.15), inset 0 0 20px rgba(255, 68, 255, 0.1);
    padding: 50px 60px; border-radius: 16px; text-align: center;
    width: 440px; max-width: 90vw;
    transform: translateY(0) scale(1); 
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; align-items: center;
}
#login-screen.hidden .login-box { transform: translateY(30px) scale(0.95); }

/* ✨ 革命：登录排版全部使用 Chakra Petch ✨ */

/* VIRTUAL KTV 顶部标题 (霓虹紫) */
.login-header-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    /* ✨ 改为霓虹紫 ✨ */
    color: #ff44ff;
    text-shadow: 0 0 10px rgba(255, 68, 255, 0.9), 0 0 20px rgba(255, 68, 255, 0.5);
    margin-bottom: 20px;
}

.login-logo-img {
    width: 140px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(68, 153, 255, 0.6));
}

/* 底部发光文字排版 (霓虹紫) */
.login-main-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 6px;
    /* ✨ 改为霓虹紫 ✨ */
    color: #ff44ff;
    text-shadow: 0 0 15px rgba(255, 68, 255, 0.9), 0 0 30px rgba(255, 68, 255, 0.5);
    margin-bottom: 10px;
}
.login-sub-title { 
    font-size: 0.8rem; font-weight: 600; letter-spacing: 4px; line-height: 1.6;
    margin-bottom: 35px; 
    /* ✨ 改为浅蓝色配合紫色主体 ✨ */
    color: #88ccff; 
    text-shadow: 0 0 8px rgba(68, 153, 255, 0.5);
}

.input-group { margin-bottom: 20px; position: relative; width: 100%; }
.input-group input {
    width: 100%; background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(68, 153, 255, 0.3);
    color: #fff; padding: 15px 20px; border-radius: 8px; outline: none;
    /* ✨ 输入框内字体保持 Inter 以确保可读性，但也可以尝试使用 Chakra Petch 的普通粗细 ✨ */
    font-family: 'Inter', sans-serif; 
    font-size: 0.85rem; font-weight: 500;
    transition: all 0.3s; letter-spacing: 1px;
}
.input-group input::placeholder { color: rgba(255, 255, 255, 0.3); font-weight: 300; }
.input-group input:focus { 
    border-color: #4499ff; 
    box-shadow: 0 0 20px rgba(68, 153, 255, 0.3); 
    background: rgba(5, 10, 20, 0.6);
}
.login-btn { 
    width: 100%; padding: 16px; margin-top: 15px; 
    /* ✨ 革命：渐变改为从蓝霓虹到紫霓虹 ✨ */
    background: linear-gradient(90deg, rgba(68, 153, 255, 0.2), rgba(255, 68, 255, 0.6), rgba(68, 153, 255, 0.2)); 
    border: 1px solid #ff44ff; 
    font-size: 1.1rem; letter-spacing: 4px; 
    color: #fff;
    text-shadow: 0 0 10px #fff;
}
.login-btn:hover { background: #4499ff; color: #fff; box-shadow: 0 0 30px rgba(68, 153, 255, 0.8); }

/* ✨ 革命：加载进度与故障文字，使用新的霓虹配色和酷字体 ✨ */
.loader-text { text-align: center; }
.status {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 5px;
    /* ✨ 改为霓虹蓝色 ✨ */
    color: #4499ff;
    margin-bottom: 10px;
    animation: glitchTextColorful 3s infinite;
    text-shadow: 0 0 10px rgba(68, 153, 255, 0.8);
}
.percentage {
    font-size: 3.5rem; font-weight: 900; letter-spacing: 2px;
    /* ✨ 改为冰蓝色 ✨ */
    color: #44ffff;
    font-variant-numeric: tabular-nums;
    /* ✨ 改为霓虹蓝色发光 ✨ */
    text-shadow: 0 0 20px rgba(68, 153, 255, 0.9), 0 0 40px rgba(68, 153, 255, 0.5);
    animation: blueNeonPulseColorful 2s infinite alternate;
}
@keyframes glitchTextColorful {
    0%, 100% { opacity: 1; transform: translateX(0); }
    95% { opacity: 1; transform: translateX(0); }
    /* ✨ 革命：故障时引入粉色和黄色霓虹 ✅ ✨ */
    96% { opacity: 0.8; transform: translateX(-3px); color: #ff4499; text-shadow: 0 0 10px rgba(255, 68, 153, 0.8); }
    97% { opacity: 0.5; transform: translateX(3px); color: #ff44ff; text-shadow: 0 0 10px rgba(255, 68, 255, 0.8); }
    98% { opacity: 1; transform: translateX(-2px); color: #ffff44; text-shadow: 0 0 10px rgba(255, 255, 68, 0.8); }
    99% { opacity: 0.8; transform: translateX(2px); color: #44ffff; text-shadow: 0 0 10px rgba(68, 153, 255, 0.8); }
}

/* --- 核心界面排版与样式 --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 25px 5vw; display: flex; justify-content: space-between; align-items: center; z-index: 100; background: linear-gradient(to bottom, rgba(3,3,5,0.9) 0%, rgba(3,3,5,0) 100%); }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; color: rgba(255,255,255,0.9); }
.logo span { color: rgba(255,255,255,0.5); font-weight: 300; font-family: 'Inter', sans-serif;}
nav a { text-decoration: none; color: rgba(255,255,255,0.6); margin-left: 40px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; transition: color 0.3s; }
nav a:hover { color: #fff; }
.nav-btn { border: 1px solid rgba(255,255,255,0.6); padding: 8px 20px; border-radius: 20px; color: rgba(255,255,255,0.8); transition: all 0.3s; background: rgba(0,0,0,0.3);}
.nav-btn:hover { background: #fff; color: #000; }

.scroll-container { position: relative; z-index: 1; }
.screen { min-height: 100vh; width: 100vw; display: flex; flex-direction: column; padding: 15vh 10vw; pointer-events: none; }
.screen.center { justify-content: center; align-items: center; position: relative;}

#home .hero-text h1 { 
    font-size: 5.5vw; font-weight: 900; line-height: 1.1; letter-spacing: -2px;
    -webkit-text-stroke: 1.5px rgba(230, 240, 255, 0.9); 
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(68, 153, 255, 0.4); 
    color: transparent; background-color: #030305; 
    background-image: radial-gradient(circle, rgba(68, 153, 255, 0.8) 1.5px, transparent 2px), radial-gradient(circle, rgba(255, 68, 34, 0.4) 1px, transparent 1.5px);
    background-size: 35px 35px, 20px 20px; background-position: 0 0, 10px 10px;
    -webkit-background-clip: text; background-clip: text;
    animation: textParticleFlow 6s linear infinite; position: relative; z-index: 10;
}
@keyframes textParticleFlow { 0% { background-position: 0 0, 10px 10px; } 100% { background-position: 350px 0, 210px 10px; } }

h2 { color: rgba(255, 255, 255, 0.85); -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.4); text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); position: relative; z-index: 10;}
p, span, h3, .desc, .subtitle { color: rgba(230, 235, 255, 0.85); text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9); position: relative; z-index: 10;}

.hero-text { margin-top: 5vh; pointer-events: auto; }
.line-decorator { width: 80px; height: 6px; background-color: rgba(255,255,255,0.8); margin: 30px 0; }
.subtitle { font-size: 1rem; line-height: 1.6; font-weight: 500; margin-top: 10px;}

.text-block { pointer-events: auto; max-width: 500px; }
.right-align { text-align: right; margin-left: auto; }
.text-block h2 { font-size: 3.5vw; font-weight: 900; letter-spacing: -1px; margin: 10px 0; line-height: 1.1;}
.desc { font-size: 1rem; line-height: 1.8; margin-bottom: 20px;}

.scroll-hint { position: absolute; bottom: 5vh; left: 10vw; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; display: flex; flex-direction: column; align-items: center;}
.mini-bar-vertical { width: 2px; height: 40px; background: rgba(255,255,255,0.6); margin-top: 10px; animation: bounce 2s infinite;}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

.floating-ui { position: absolute; font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; pointer-events: auto;}
.cross { margin-right: 5px; }
.mini-bar { width: 40px; height: 2px; background: rgba(255,255,255,0.6); margin-top: 5px; }

.glass-panel { background: transparent; padding: 50px 80px; text-align: center; pointer-events: auto; }
.glass-panel h2 { font-size: 3.5rem; margin-bottom: 10px; font-weight: 900; letter-spacing: -1px;}
.enter-btn { margin-top: 25px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); padding: 15px 40px; border-radius: 30px; font-weight: 700; cursor: pointer; transition: all 0.3s; letter-spacing: 1px; backdrop-filter: blur(5px);}
.enter-btn:hover { background: #fff; color: #000; transform: scale(1.05); }
.site-footer { position: absolute; bottom: 30px; font-size: 0.75rem; text-align: center; width: 100%; }

.menu-block { background: transparent; padding: 40px 0; width: 40%; min-width: 350px; pointer-events: auto;}
.drink-menu { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }
.drink-item { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.2); transition: padding 0.3s; }
.drink-item:hover { padding-left: 15px; background: rgba(255,255,255,0.03); } 
.drink-info h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 5px; }
.drink-info p { font-size: 0.8rem; }
.tag { background: transparent; border: 1px solid rgba(255,255,255,0.6); font-size: 0.6rem; padding: 2px 6px; border-radius: 10px; vertical-align: middle; margin-left: 5px; }
.price-action { display: flex; align-items: center; gap: 15px; }
.price { font-size: 1.1rem; font-weight: 900; font-family: 'Inter', sans-serif;}
.add-btn { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.6); color: #fff; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; display: flex; justify-content: center; align-items: center;}
.add-btn:hover { background: #fff; color: #000; transform: rotate(90deg); }

#music-player { 
    position: fixed; bottom: 40px; left: 40px; 
    background: rgba(20, 20, 25, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8); 
    border-radius: 30px; padding: 12px 28px; display: flex; align-items: center; gap: 20px; z-index: 50; 
}
.equalizer-icon { display: flex; gap: 3px; height: 20px; align-items: flex-end; transition: filter 0.5s;}
.equalizer-icon .bar { width: 4px; background: rgba(255,255,255,0.8); border-radius: 2px; animation: eq-bounce 1s infinite ease-in-out;}
.equalizer-icon .bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.equalizer-icon .bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.equalizer-icon .bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.equalizer-icon .bar:nth-child(4) { height: 80%; animation-delay: 0.4s; }
@keyframes eq-bounce { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

.track-info { display: flex; flex-direction: column;}
.track-name { font-size: 0.85rem; font-weight: 800; letter-spacing: 1px; transition: color 0.5s; }
.track-status { font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; }

#next-track-btn { 
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.6); color: #ffffff; 
    padding: 8px 16px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; cursor: pointer; transition: all 0.3s; 
}
#next-track-btn:hover { background: #ffffff; color: #000000; }

.space-layout { display: flex; flex-direction: row !important; justify-content: space-between; align-items: center; }
.space-text-area { width: 45%; display: flex; flex-direction: column; pointer-events: auto;}
.space-3d-area { width: 50%; height: 100%; pointer-events: none; }

.feature-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; pointer-events: auto; max-width: 500px; }
.feature-card { background: transparent; border: none; border-left: 2px solid rgba(255, 255, 255, 0.3); padding: 10px 0 10px 20px; display: flex; gap: 20px; align-items: center; transition: all 0.4s ease; cursor: pointer; }
.feature-card:hover { transform: translateX(10px); border-left-color: #fff; background: rgba(255,255,255,0.05);}
.card-icon { font-family: 'Inter', sans-serif; font-size: 2.5rem; font-weight: 900; transition: 0.4s; line-height: 1; color: rgba(255,255,255,0.8);}
.feature-card:hover .card-icon { color: #fff; text-shadow: 0 0 20px #fff;}
.card-text h3 { font-size: 1rem; font-weight: 800; margin-bottom: 5px; }
.card-text p { font-size: 0.8rem; line-height: 1.5; }

.reveal-item { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-item.active { opacity: 1; transform: translateY(0); }
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }

@keyframes blueNeonPulseColorful {
    0% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #4499ff, 0 0 40px #4499ff, 0 0 80px rgba(68, 153, 255, 0.5); }
    100% { text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 10px #4499ff, 0 0 20px #44ffff, 0 0 40px rgba(68, 153, 255, 0.9); }
}

@keyframes neonFlickerPink {
    0%, 100% { opacity: 1; text-shadow: 0 0 15px rgba(255, 68, 153, 0.9); }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; text-shadow: 0 0 15px rgba(255, 68, 153, 0.9); }
    95% { opacity: 0.9; }
    96% { opacity: 1; }
}/* --- 📱 手机端适配：解决重叠与布局问题 --- */
@media (max-width: 768px) {
    /* 1. 导航栏适配：防止链接重叠 */
    .navbar {
        padding: 15px 5vw;
        flex-direction: column; /* 导航项多时转为垂直 */
        gap: 10px;
        background: rgba(3, 3, 5, 0.95);
    }
    nav a {
        margin-left: 15px;
        margin-right: 15px;
        font-size: 0.7rem; /* 缩小字体防止换行挤压 */
    }
    .nav-btn { display: none; } /* 手机端隐藏不必要的按钮防止挤占 */

    /* 2. 首页标题适配：放大字体提升视觉感 */
    #home .hero-text h1 {
        font-size: 12vw; 
        margin-top: 10vh;
    }

    /* 3. 核心：将所有“左右布局”改为“上下布局” */
    .space-layout {
        flex-direction: column !important;
        justify-content: flex-start;
        padding-top: 10vh;
    }
    .space-text-area, .space-3d-area, .menu-block {
        width: 100% !important;
        max-width: 100%;
        text-align: center;
    }
    
    /* 4. 解决页面内容过长导致的重叠 */
    .screen {
        height: auto;
        min-height: 100vh;
        padding: 10vh 8vw;
    }
    
    /* 5. 酒水菜单适配 */
    #menu {
        justify-content: flex-start;
        align-items: center;
    }
    .menu-block {
        margin-top: 45vh; /* 给上方的 3D 模型留出空间 */
    }
    
    /* 6. 音乐播放器在手机端底部居中 */
    #music-player {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        width: 90vw;
        justify-content: space-between;
    }
    
    /* 7. HUD 水印缩小 */
    #hud-top-left {
        font-size: 0.8rem;
        top: 15px;
    }
}