* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* 背景容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ===== 在这里修改背景图片地址 ===== */
    background-image: url('assets/fortress-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* 遮罩层，让文字更清晰 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 20, 0.5);
    z-index: 1;
}

/* 主内容区 */
.main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

/* 页面底部联系方式 */
.contact-bar {
    position: absolute;
    left: 50%;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: calc(100% - 2rem);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.7rem 1rem;
    color: #fff;
    text-decoration: none;
    background: rgba(8, 12, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-item[href] {
    cursor: pointer;
}

.contact-item[href]:hover {
    transform: translateY(-2px);
    background: rgba(17, 25, 47, 0.9);
    border-color: rgba(255, 255, 255, 0.42);
}

.contact-item[href]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.contact-item.is-disabled {
    cursor: default;
    opacity: 0.78;
}

.contact-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.contact-account {
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-title {
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 4px 20px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 4px 30px rgba(0, 0, 0, 1);
    }
}

.game-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.1em;
}

/* 按钮容器 */
.button-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮基础样式 */
.action-btn {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.btn-text {
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.btn-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 下载按钮 - 深蓝色渐变（策略感） */
.download-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.download-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* WebGL按钮 - 紫红色渐变（竞技感） */
.webgl-btn {
    background: linear-gradient(135deg, #8e44ad 0%, #e74c3c 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.webgl-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.webgl-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Unity WebGL 容器相关样式已移除（改为直接跳转方式） */

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .background-container {
        position: relative;
        min-height: 100vh;
        min-height: 100svh;
        height: auto;
        padding: 2rem 1rem 1rem;
    }

    .main-content {
        margin: auto 0;
        padding-bottom: 1.5rem;
    }

    .game-title {
        font-size: 3rem;
    }
    
    .game-subtitle {
        font-size: 1.2rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .action-btn {
        min-width: 250px;
        padding: 1.2rem 2.5rem;
    }

    .contact-bar {
        position: static;
        width: 100%;
        max-width: 26rem;
        transform: none;
        flex-direction: column;
        gap: 0.7rem;
    }

    .contact-item {
        width: 100%;
        justify-content: flex-start;
    }
}
