/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0 20px 20px;
}

/* ===== 顶部浮动卡片 ===== */
.floating-header {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.brand-text p {
    font-size: 14px;
    color: #888;
    margin: 2px 0 0;
}

.download-btn a {
    display: inline-block;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.3);
}

.download-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4);
}

/* ===== 轮播 ===== */
.swiper-container {
    width: 100%;
    height: 500px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 12px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 响应式轮播高度 */
@media (max-width: 768px) {
    .swiper-container {
        height: 280px;
    }
}

/* ===== 游戏简介 ===== */
.intro-section {
    background: #f8faff;
    border-left: 4px solid #ff7e5f;
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.intro-section h2 {
    font-size: 20px;
    color: #e74c3c;
    margin-bottom: 10px;
    text-align: center;
}

.intro-section ul {
    list-style: none;
    padding: 0;
}

.intro-section ul li {
    font-size: 15px;
    color: #2d3e50;
    padding: 4px 0;
    padding-left: 24px;
    position: relative;
}

.intro-section ul li::before {
    content: "✦";
    color: #ff7e5f;
    position: absolute;
    left: 0;
    top: 4px;
}

.intro-section ul li b {
    color: #e74c3c;
}

/* ===== 新手攻略 ===== */
.guide-section {
    margin-bottom: 30px;
}

.guide-section fieldset {
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    padding: 20px 24px;
}

.guide-section legend {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 0 12px;
}

.guide-content p {
    font-size: 15px;
    color: #2d3e50;
    margin-bottom: 12px;
    line-height: 1.8;
}

.guide-content strong {
    color: #e74c3c;
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid #eee;
    margin-top: 20px;
    color: #999;
    font-size: 13px;
}

/* ===== 弹窗（下载） ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.overlay.active {
    display: flex;
}

.popup {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 360px;
    width: 90%;
    animation: fadeIn 0.3s ease;
}

.popup .download-button {
    display: block;
    margin: 12px auto;
    padding: 14px 20px;
    background: #2ecc71;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 16px;
}

.popup .download-button:hover {
    background: #27ae60;
}

.popup .download-button:first-of-type {
    background: #3498db;
}

.popup .download-button:first-of-type:hover {
    background: #2980b9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
    .main-wrapper {
        padding: 0 12px 12px;
        border-radius: 10px;
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .brand {
        flex-direction: column;
    }

    .download-btn a {
        display: block;
        text-align: center;
    }

    .intro-section {
        padding: 14px 16px;
    }

    .guide-section fieldset {
        padding: 14px 16px;
    }

    .popup {
        padding: 28px 20px;
    }
}