/* ===== 全局重置 & 变量 ===== */
:root {
    --primary: #3A5FCD;
    --primary-dark: #2a4a9a;
    --accent: #e74c3c;
    --bg-body: #f0f4f8;
    --bg-card: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #5a6a7a;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部品牌栏 ===== */
.brand-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-header .container {
    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: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.brand h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.header-actions .btn-download {
    display: inline-block;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.3);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

/* ===== 横幅广告 ===== */
.banner-ad {
    background: linear-gradient(135deg, #81C524, #5a9e1a);
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 24px 0 16px;
    font-size: 18px;
    font-weight: 600;
    transition: all var(--transition);
}

.banner-ad a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.banner-ad:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(129, 197, 36, 0.4);
}

/* ===== QQ群 ===== */
.qq-group {
    background: #fff;
    border-left: 4px solid #12b7f5;
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.qq-group i {
    color: #12b7f5;
    font-size: 24px;
}

.qq-group strong {
    color: var(--primary);
    font-size: 20px;
}

/* ===== 截图轮播 ===== */
.gallery {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.gallery h2 {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 12px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.focus {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background: #000;
}

.focus ul {
    height: 100%;
    position: relative;
    display: flex;
    transition: transform 0.6s ease;
    padding: 0;
    margin: 0;
    list-style: none;
}

.focus ul li {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}

.focus ul li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 轮播指示器 */
.focus .btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.focus .btn span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.focus .btn span.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ===== 简介 & 指南 ===== */
.intro-section,
.guide-short {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.intro-section h2,
.guide-short h2,
.guide-full h2 {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 12px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

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

.intro-section ul li,
.guide-short ul li {
    font-size: 16px;
    padding: 4px 0;
    padding-left: 28px;
    position: relative;
    color: #2d3e50;
}

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

.guide-short ul li::before {
    content: "▶";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 4px;
}

/* ===== 完整新手攻略 ===== */
.guide-full {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.guide-full .guide-content h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin: 18px 0 8px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

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

.guide-full .guide-content ul {
    list-style: none;
    padding: 0 0 0 20px;
}

.guide-full .guide-content ul li {
    font-size: 15px;
    color: #2d3e50;
    padding: 2px 0;
    position: relative;
    padding-left: 20px;
}

.guide-full .guide-content ul li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.more-tip {
    margin-top: 16px;
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px dashed #ddd;
    padding-top: 12px;
}

/* ===== 下载弹窗 ===== */
.download-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.download-overlay.active {
    display: flex;
}

.download-popup {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: popFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes popFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
}

.popup-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.popup-header h2 i {
    color: var(--primary, #3A5FCD);
    margin-right: 10px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #e74c3c;
}

.popup-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f7f9fc;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-option:hover {
    background: #eef3fa;
    border-color: var(--primary, #3A5FCD);
    transform: translateX(4px);
}

.download-option .download-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A5FCD, #2a4a9a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.download-option .download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.download-option .download-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.download-option .download-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 10px;
    border-radius: 20px;
    margin-left: 6px;
}

.download-option .download-tag.micro {
    background: #d4edda;
    color: #155724;
}

.download-option .download-tag.medium {
    background: #fff3cd;
    color: #856404;
}

.download-option .download-size {
    font-size: 13px;
    color: #888;
}

.download-option .download-arrow {
    color: #bbb;
    font-size: 18px;
    transition: all 0.3s;
}

.download-option:hover .download-arrow {
    color: var(--primary, #3A5FCD);
    transform: translateX(4px);
}

.popup-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.popup-footer i {
    color: #12b7f5;
    margin-right: 6px;
}

.popup-footer strong {
    color: var(--primary, #3A5FCD);
}

/* ===== 页脚 ===== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 24px 0;
    margin-top: 20px;
    border-top: 2px solid var(--primary);
}

.footer p {
    margin: 4px 0;
    font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .focus {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .brand-header .container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .brand {
        justify-content: center;
    }

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

    .intro-section,
    .guide-short,
    .guide-full,
    .gallery {
        padding: 16px 18px;
    }

    .qq-group {
        font-size: 16px;
        justify-content: center;
    }

    .banner-ad {
        font-size: 15px;
        padding: 12px 16px;
    }

    .download-popup {
        border-radius: 12px;
    }
    .popup-header {
        padding: 16px 18px 12px;
    }
    .popup-header h2 {
        font-size: 17px;
    }
    .popup-body {
        padding: 16px 18px 18px;
    }
    .download-option {
        padding: 14px 16px;
        flex-wrap: wrap;
    }
    .download-option .download-name {
        font-size: 16px;
    }
}