/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS 自定义变量 - 霓虹蓝色主题配色 */
:root {
    --primary-color: #0a1a2e; /* 深蓝色，来自夜空深处 */
    --secondary-color: #16213e; /* 中等深蓝色 */
    --accent-color: #00d4ff; /* 霓虹蓝色主色 */
    --accent-bright: #33e0ff; /* 亮霓虹蓝 */
    --accent-deep: #0099cc; /* 深霓虹蓝 */
    --accent-warm: #ff6b35; /* 温暖橙色，来自灯光点缀 */
    --text-light: #e0f4ff; /* 冷色调浅色 */
    --text-dark: #0f1419; /* 深色，来自阴影部分 */
    --overlay-light: rgba(224, 244, 255, 0.1);
    --overlay-dark: rgba(10, 26, 46, 0.6);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
html, body {
    height: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

body {
    position: relative;
    background: var(--secondary-color); /* 备用背景色 */
}

/* 背景容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    
    /* 使用指定的背景图片 */
    background-image: url('assets/images/bg/background.png');
    
    /* 完美自适应屏幕设置 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* 确保图片在不同屏幕比例下都能完整显示 */
    min-height: 100vh;
    min-width: 100vw;
    
    /* 如果没有背景图片，使用渐变背景 */
    background-color: var(--secondary-color);
}

/* 响应式背景优化 */
@media (max-aspect-ratio: 16/9) {
    .background-container {
        background-size: cover;
    }
}

@media (min-aspect-ratio: 16/9) {
    .background-container {
        background-size: cover;
    }
}

/* 背景遮罩层 */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* 主要内容容器 */
.main-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
}

/* 欢迎文本样式 */
.welcome-text {
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out;
}

/* 能量标题容器 */
.energy-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* 能量标题样式 - 实体霓虹蓝按钮 */
.energy-title {
    position: relative;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    padding: 50px 70px;
    border: 3px solid var(--accent-color);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 霓虹蓝色光效 */
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.6),
        0 0 80px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.1),
        inset 0 2px 0 rgba(51, 224, 255, 0.4),
        inset 0 -2px 0 rgba(0, 153, 204, 0.4);
    
    animation: titleEnergyPulse 4s ease-in-out infinite;
    
    /* 实体文字颜色 - 不透明 */
    color: var(--text-light);
    text-shadow: 
        0 0 20px rgba(0, 212, 255, 0.8),
        0 0 40px rgba(51, 224, 255, 0.4);
}

.energy-title:hover {
    transform: scale(1.05);
    border-color: var(--accent-bright);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.8),
        0 0 120px rgba(51, 224, 255, 0.5),
        0 0 180px rgba(0, 212, 255, 0.3),
        inset 0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 3px 0 rgba(51, 224, 255, 0.6),
        inset 0 -3px 0 rgba(0, 153, 204, 0.6);
    
    animation: titleEnergyBurst 1.5s ease-in-out infinite;
    
    /* 悬停时文字更亮 */
    color: var(--accent-bright);
    text-shadow: 
        0 0 30px rgba(51, 224, 255, 1),
        0 0 60px rgba(0, 212, 255, 0.6);
}

.energy-title:active {
    transform: scale(0.98);
    animation: titleEnergyExplode 0.3s ease-out;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .welcome-text p {
        font-size: 1.125rem;
    }
    
    .main-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .welcome-text h1 {
        font-size: 2rem;
    }
    
    .welcome-text p {
        font-size: 1rem;
    }
}

/* 针对没有背景图片的情况，添加动态背景 */
.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-deep) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

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

/* 如果有背景图片，隐藏动态背景 */
.background-container.has-image::before {
    display: none;
}

/* 可选：添加一些装饰性粒子效果 */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 能量光环 */
.energy-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, transparent 60%, rgba(79, 70, 229, 0.1) 70%, transparent 80%);
    border-radius: 20px;
    animation: auraGlow 3s ease-in-out infinite;
    pointer-events: none;
}



/* 粒子效果 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: particleFloat 5s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 25%;
    left: 80%;
    animation-delay: 0.6s;
}

.particle:nth-child(3) {
    top: 45%;
    left: 10%;
    animation-delay: 1.2s;
}

.particle:nth-child(4) {
    top: 55%;
    left: 90%;
    animation-delay: 1.8s;
}

.particle:nth-child(5) {
    top: 75%;
    left: 25%;
    animation-delay: 2.4s;
}

.particle:nth-child(6) {
    top: 85%;
    left: 75%;
    animation-delay: 3s;
}

.particle:nth-child(7) {
    top: 35%;
    left: 50%;
    animation-delay: 3.6s;
}

.particle:nth-child(8) {
    top: 65%;
    left: 50%;
    animation-delay: 4.2s;
}

/* 标题能量动画 */
@keyframes titleEnergyPulse {
    0%, 100% {
        box-shadow: 
            0 0 50px rgba(79, 70, 229, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 
            0 0 70px rgba(79, 70, 229, 0.6),
            0 0 100px rgba(124, 58, 237, 0.3),
            inset 0 0 40px rgba(255, 255, 255, 0.15),
            0 0 0 1px rgba(79, 70, 229, 0.5);
    }
}

@keyframes titleEnergyBurst {
    0%, 100% {
        box-shadow: 
            0 0 80px rgba(79, 70, 229, 0.6),
            0 0 120px rgba(124, 58, 237, 0.4),
            0 0 160px rgba(0, 212, 170, 0.3),
            inset 0 0 50px rgba(255, 255, 255, 0.2),
            0 0 0 2px rgba(79, 70, 229, 0.5);
    }
    50% {
        box-shadow: 
            0 0 120px rgba(79, 70, 229, 0.8),
            0 0 180px rgba(124, 58, 237, 0.6),
            0 0 240px rgba(0, 212, 170, 0.4),
            inset 0 0 70px rgba(255, 255, 255, 0.3),
            0 0 0 3px rgba(79, 70, 229, 0.7);
    }
}

@keyframes titleEnergyExplode {
    0% {
        box-shadow: 
            0 0 80px rgba(79, 70, 229, 0.6),
            0 0 120px rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 
            0 0 200px rgba(79, 70, 229, 1),
            0 0 300px rgba(124, 58, 237, 0.8),
            0 0 400px rgba(0, 212, 170, 0.6);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 
            0 0 80px rgba(79, 70, 229, 0.6),
            0 0 120px rgba(124, 58, 237, 0.4);
        transform: scale(0.98);
    }
}

@keyframes auraGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}



@keyframes coreGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(79, 70, 229, 0.6);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(79, 70, 229, 0.8);
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.5);
    }
}

/* 响应式能量标题 */
@media (max-width: 768px) {
    .energy-title {
        font-size: 2.8rem;
        padding: 30px 40px;
    }
    
    .energy-title-container {
        min-height: 160px;
    }
}

@media (max-width: 480px) {
    .energy-title {
        font-size: 2.2rem;
        padding: 25px 30px;
    }
    
    .energy-title-container {
        min-height: 140px;
    }
    
         .particle {
         width: 2px;
         height: 2px;
     }
 }

/* 漂浮光点和光球系统 */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* 社交媒体能量光球基础样式 */
.energy-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: pointer;
    pointer-events: auto;
    animation: orbFloat 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Discord能量光球 - 右上 */
.discord-orb {
    top: 30%;
    right: 20%;
}

/* Instagram能量光球 - 左上 */
.instagram-orb {
    top: 30%;
    left: 20%;
    animation-delay: 1s;
}

/* YouTube能量光球 - 左下 */
.youtube-orb {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

/* X (Twitter)能量光球 - 右下 */
.x-orb {
    bottom: 30%;
    right: 20%;
    animation-delay: 3s;
}

/* 微信能量光球 - 正上方 */
.wechat-orb {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.energy-orb:hover {
    transform: scale(1.2);
    animation: orbFloatHover 2s ease-in-out infinite;
}

.orb-glow {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(51, 224, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: orbGlow 3s ease-in-out infinite;
}

.orb-core {
    position: relative;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, var(--accent-bright) 0%, var(--accent-color) 40%, var(--accent-deep) 100%),
        linear-gradient(135deg, rgba(10, 26, 46, 0.3) 0%, rgba(22, 33, 62, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.7),
        0 0 60px rgba(51, 224, 255, 0.4),
        inset 0 0 25px rgba(224, 244, 255, 0.2),
        inset 2px 2px 0 rgba(51, 224, 255, 0.3),
        inset -2px -2px 0 rgba(0, 153, 204, 0.3);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.orb-icon {
    width: 45px;
    height: 45px;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.energy-orb:hover .orb-icon {
    filter: brightness(1.5) drop-shadow(0 0 15px rgba(51, 224, 255, 0.9));
}

.orb-pulse {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 96px;
    height: 96px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: orbPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(51, 224, 255, 0.3);
}

/* 小型能量光点 */
.energy-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.dot-1 {
    top: 25%;
    left: 30%;
    animation: dotFloat1 8s ease-in-out infinite;
    animation-delay: 0s;
}

.dot-2 {
    top: 40%;
    left: 15%;
    animation: dotFloat2 10s ease-in-out infinite;
    animation-delay: 2s;
}

.dot-3 {
    top: 25%;
    right: 30%;
    animation: dotFloat3 7s ease-in-out infinite;
    animation-delay: 1s;
}

.dot-4 {
    top: 40%;
    right: 15%;
    animation: dotFloat4 9s ease-in-out infinite;
    animation-delay: 3s;
}

.dot-5 {
    bottom: 25%;
    left: 30%;
    animation: dotFloat1 12s ease-in-out infinite;
    animation-delay: 4s;
}

.dot-6 {
    bottom: 25%;
    right: 30%;
    animation: dotFloat2 11s ease-in-out infinite;
    animation-delay: 5s;
}

.dot-core {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 40% 40%, var(--accent-bright) 0%, var(--accent-color) 60%, var(--accent-deep) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.9),
        0 0 35px rgba(51, 224, 255, 0.5),
        inset 0 0 8px rgba(224, 244, 255, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
    border: 1px solid rgba(51, 224, 255, 0.6);
}

.dot-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.9) 0%, rgba(51, 224, 255, 0.6) 50%, transparent 100%);
    transform: translate(-50%, -50%);
    animation: trailMove 3s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

/* 大型能量光球 */
.large-orb {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.orb-1 {
    top: 20%;
    left: 35%;
    animation: largeOrbFloat1 12s ease-in-out infinite;
}

.orb-2 {
    bottom: 20%;
    right: 35%;
    animation: largeOrbFloat2 14s ease-in-out infinite;
    animation-delay: 4s;
}

.orb-3 {
    top: 50%;
    left: 10%;
    animation: largeOrbFloat1 16s ease-in-out infinite;
    animation-delay: 6s;
}

.large-orb-core {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 35% 35%, rgba(51, 224, 255, 0.4) 0%, rgba(0, 212, 255, 0.3) 40%, rgba(10, 26, 46, 0.6) 100%),
        linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(10, 26, 46, 0.8) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.4),
        0 0 80px rgba(51, 224, 255, 0.2),
        inset 0 0 25px rgba(224, 244, 255, 0.1),
        inset 1px 1px 0 rgba(51, 224, 255, 0.2);
    animation: largeCoreGlow 4s ease-in-out infinite;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.large-orb-ring {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 84px;
    height: 84px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-top: 2px solid rgba(51, 224, 255, 0.6);
    border-radius: 50%;
    animation: largeRingRotate 8s linear infinite;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* 动画定义 */
@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-20px) translateX(15px);
    }
}

@keyframes orbFloatHover {
    0%, 100% {
        transform: scale(1.2) translateY(0px);
    }
    50% {
        transform: scale(1.3) translateY(-10px);
    }
}

@keyframes orbGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes orbPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes dotFloat1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-25px) translateX(20px);
    }
    66% {
        transform: translateY(10px) translateX(-15px);
    }
}

@keyframes dotFloat2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(20px) translateX(25px);
    }
    66% {
        transform: translateY(-15px) translateX(-10px);
    }
}

@keyframes dotFloat3 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(-20px);
    }
    66% {
        transform: translateY(15px) translateX(10px);
    }
}

@keyframes dotFloat4 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(25px) translateX(-25px);
    }
    66% {
        transform: translateY(-10px) translateX(15px);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes trailMove {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

@keyframes largeOrbFloat1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(40px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(-40px) translateX(30px) rotate(270deg);
    }
}

@keyframes largeOrbFloat2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(30px) translateX(-40px) rotate(-90deg);
    }
    50% {
        transform: translateY(10px) translateX(20px) rotate(-180deg);
    }
    75% {
        transform: translateY(40px) translateX(-30px) rotate(-270deg);
    }
}

@keyframes largeCoreGlow {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 
            0 0 50px rgba(0, 212, 255, 0.4),
            0 0 80px rgba(51, 224, 255, 0.2),
            inset 0 0 25px rgba(224, 244, 255, 0.1);
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 70px rgba(0, 212, 255, 0.6),
            0 0 100px rgba(51, 224, 255, 0.4),
            0 0 130px rgba(0, 153, 204, 0.2),
            inset 0 0 35px rgba(224, 244, 255, 0.2);
    }
}

@keyframes largeRingRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .energy-orb {
        width: 60px;
        height: 60px;
    }
    
    .discord-orb {
        top: 25%;
        right: 15%;
    }
    
    .instagram-orb {
        top: 25%;
        left: 15%;
    }
    
    .youtube-orb {
        bottom: 25%;
        left: 15%;
    }
    
    .x-orb {
        bottom: 25%;
        right: 15%;
    }
    
    .wechat-orb {
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .orb-glow {
        top: -15px;
        left: -15px;
        width: 90px;
        height: 90px;
    }
    
    .orb-icon {
        width: 35px;
        height: 35px;
    }
    
    .orb-pulse {
        width: 70px;
        height: 70px;
        top: -5px;
        left: -5px;
    }
    
    .energy-dot {
        width: 8px;
        height: 8px;
    }
    
    .dot-1 { top: 20%; left: 25%; }
    .dot-2 { top: 35%; left: 10%; }
    .dot-3 { top: 20%; right: 25%; }
    .dot-4 { top: 35%; right: 10%; }
    .dot-5 { bottom: 20%; left: 25%; }
    .dot-6 { bottom: 20%; right: 25%; }
    
    .large-orb {
        width: 40px;
        height: 40px;
    }
    
    .orb-1 { top: 15%; left: 30%; }
    .orb-2 { bottom: 15%; right: 30%; }
    .orb-3 { top: 45%; left: 5%; }
    
    .large-orb-ring {
        width: 60px;
        height: 60px;
        top: -10px;
        left: -10px;
    }
}

@media (max-width: 480px) {
    .energy-orb {
        width: 50px;
        height: 50px;
    }
    
    .discord-orb {
        top: 20%;
        right: 10%;
    }
    
    .instagram-orb {
        top: 20%;
        left: 10%;
    }
    
    .youtube-orb {
        bottom: 20%;
        left: 10%;
    }
    
    .x-orb {
        bottom: 20%;
        right: 10%;
    }
    
    .wechat-orb {
        top: 8%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .orb-icon {
        width: 28px;
        height: 28px;
    }
    
    .energy-dot {
        width: 6px;
        height: 6px;
    }
    
    .large-orb {
        width: 30px;
        height: 30px;
    }
}

/* 微信二维码模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(10, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.5),
        0 0 100px rgba(51, 224, 255, 0.3),
        inset 0 0 40px rgba(224, 244, 255, 0.1),
        inset 0 2px 0 rgba(51, 224, 255, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-light);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 15px rgba(51, 224, 255, 0.9);
    transform: scale(1.1);
}

.wechat-qr {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 模态框响应式设计 */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .wechat-qr {
        max-width: 250px;
        max-height: 250px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}

/* ===== 移动端优化增强 ===== */

/* 通用触摸优化 */
.energy-title,
.energy-orb,
.close {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 改进480px断点的触摸体验 */
@media (max-width: 480px) {
    /* 主标题优化 */
    .energy-title {
        font-size: 2.4rem !important;
        padding: 30px 35px !important;
        /* 确保触摸区域足够大 */
        min-height: 80px;
        min-width: 250px;
        /* 触摸反馈 */
        transition: all 0.2s ease-out;
    }
    
    .energy-title:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease-out !important;
    }
    
    .energy-title-container {
        min-height: 180px !important;
        padding: 25px 0;
    }
    
    /* 主容器优化 */
    .main-container {
        padding: 25px 15px !important;
        justify-content: center;
    }
    
    /* 能量光球触摸优化 */
    .energy-orb {
        width: 60px !important;
        height: 60px !important;
        /* 确保符合触摸标准 */
        min-height: 44px;
        min-width: 44px;
        cursor: pointer;
        transition: all 0.2s ease-out;
    }
    
    /* 重新定位光球，避免过于靠近边缘 */
    .discord-orb {
        top: 18% !important;
        right: 12% !important;
    }
    
    .instagram-orb {
        top: 18% !important;
        left: 12% !important;
    }
    
    .youtube-orb {
        bottom: 22% !important;
        left: 12% !important;
    }
    
    .x-orb {
        bottom: 22% !important;
        right: 12% !important;
    }
    
    .wechat-orb {
        top: 6% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* 触摸反馈效果 */
    .energy-orb:active {
        transform: scale(0.85);
        transition: transform 0.1s ease-out;
    }
    
    /* 光球内容优化 */
    .orb-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* 改善光效可见性 */
    .orb-glow {
        width: 100px !important;
        height: 100px !important;
        top: -20px !important;
        left: -20px !important;
    }
    
    /* 模态框触摸优化 */
    .modal-content {
        padding: 25px !important;
        margin: 15px !important;
        width: calc(100% - 30px) !important;
        border-radius: 12px;
    }
    
    .wechat-qr {
        max-width: 260px !important;
        max-height: 260px !important;
        border-radius: 8px;
    }
    
    .close {
        top: 8px !important;
        right: 12px !important;
        font-size: 30px !important;
        /* 增加触摸区域 */
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease-out;
    }
    
    .close:active {
        transform: scale(0.9);
        background: rgba(0, 212, 255, 0.2);
        transition: transform 0.1s ease-out;
    }
    
    /* 减少装饰元素在小屏幕上的视觉干扰 */
    .energy-dot {
        width: 4px !important;
        height: 4px !important;
        opacity: 0.7;
    }
    
    .large-orb {
        width: 25px !important;
        height: 25px !important;
        opacity: 0.6;
    }
    
    .particle {
        width: 1.5px !important;
        height: 1.5px !important;
        opacity: 0.6;
    }
}

/* 超小屏幕优化（小于360px） */
@media (max-width: 360px) {
    .energy-title {
        font-size: 2rem !important;
        padding: 25px 30px !important;
        min-width: 220px;
    }
    
    .energy-title-container {
        min-height: 160px !important;
    }
    
    .energy-orb {
        width: 55px !important;
        height: 55px !important;
    }
    
    .discord-orb,
    .instagram-orb {
        top: 15% !important;
    }
    
    .youtube-orb,
    .x-orb {
        bottom: 25% !important;
    }
    
    .wechat-orb {
        top: 4% !important;
    }
    
    .modal-content {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        padding: 20px !important;
    }
    
    .wechat-qr {
        max-width: 220px !important;
        max-height: 220px !important;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .energy-title-container {
        min-height: 120px;
    }
    
    .energy-title {
        font-size: 2.2rem;
        padding: 20px 30px;
    }
    
    /* 在横屏模式下调整光球位置 */
    .discord-orb,
    .instagram-orb {
        top: 10%;
    }
    
    .youtube-orb,
    .x-orb {
        bottom: 10%;
    }
    
    .wechat-orb {
        top: 2%;
    }
    
    .main-container {
        padding: 15px;
    }
}

/* 改善触摸设备上的悬停替代效果 */
@media (hover: none) and (pointer: coarse) {
    .energy-title:hover {
        /* 移除悬停效果，因为触摸设备不支持真正的悬停 */
        transform: none;
        animation: titleEnergyPulse 4s ease-in-out infinite;
    }
    
    .energy-orb:hover {
        transform: none;
        animation: orbFloat 6s ease-in-out infinite;
    }
    
    .close:hover {
        transform: none;
        color: var(--text-light);
        text-shadow: none;
    }
}

/* 改善可访问性 */
@media (prefers-reduced-motion: reduce) {
    .energy-title,
    .energy-orb,
    .energy-dot,
    .large-orb,
    .particle {
        animation: none !important;
    }
    
    .energy-title,
    .energy-orb,
    .close {
        transition: transform 0.1s ease-out !important;
    }
} 