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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-image: url('images/bj.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: #e6f7ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080, #ff0000);
    background-size: 1000% 1000%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 4s ease infinite;
}

/* 导航网格布局 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px;
}

/* 导航项目样式 */
.nav-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

/* APP图标样式 */
.app-icon {
    margin-bottom: 10px;
    position: relative;
}

.app-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #00d4ff, #0066cc, #00d4ff);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-icon:hover::before {
    opacity: 0.7;
}

.app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.app-icon img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.6);
    border-color: rgba(0, 212, 255, 0.5);
}

/* 游戏名字样式 */
.game-name {
    margin: 15px 0;
    text-align: center;
}

.game-name h3 {
    color: #00d4ff;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    letter-spacing: 1px;
    margin: 0;
    padding: 8px 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.game-name h3:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

/* 链接样式 */
.game-url a, .gm-url a {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    margin: 5px 0;
    border: 1px solid #0052a3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-url a:hover, .gm-url a:hover {
    background: #0077e6;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 118, 230, 0.4);
}

/* GM密码样式 */
.gm-password {
    background: rgba(0, 212, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
    font-weight: 600;
    color: #00d4ff;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* 响应式设计 */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .nav-item {
        padding: 20px;
    }
    
    .game-name h3 {
        font-size: 1.3rem;
    }
}

/* 手机设备 (max-width: 768px) */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .nav-item {
        padding: 15px;
        gap: 12px;
    }
    
    .app-icon img {
        width: 60px;
        height: 60px;
    }
    
    .game-name h3 {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
    
    .game-url a, .gm-url a {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .gm-password {
        padding: 8px;
        font-size: 12px;
    }
}

/* 小屏手机 (max-width: 480px) */
@media screen and (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .nav-item {
        padding: 15px;
        gap: 10px;
    }
    
    .app-icon img {
        width: 50px;
        height: 50px;
    }
    
    .game-name h3 {
        font-size: 1.1rem;
        padding: 5px 10px;
    }
    
    .game-url a, .gm-url a {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .gm-password {
        padding: 6px;
        font-size: 11px;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2), 0 0 20px rgba(0, 212, 255, 0.1);
    }
}

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

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

.nav-item {
    animation: fadeInUp 0.6s ease forwards, glow 3s ease-in-out infinite;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }
.nav-item:nth-child(7) { animation-delay: 0.7s; }
.nav-item:nth-child(8) { animation-delay: 0.8s; }