/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "微软雅黑", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用组件样式 */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #3498db;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
.site-header {
    background-color: #1a1a2e;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: #e6b89c;
}

.logo p {
    font-size: 0.9rem;
    color: #ccc;
}

/* 导航样式 */
.nav-list {
    display: flex;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link i {
    margin-right: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e6b89c;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #e6b89c;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主横幅样式 */
.hero-banner {
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.8)), url('https://picsum.photos/id/237/1920/600') center/cover no-repeat;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 活动区域样式 */
.activity-section {
    padding: 4rem 0;
    background-color: #fff;
}

.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.activity-time,
.activity-reward {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
}

.activity-time i,
.activity-reward i {
    margin-right: 0.5rem;
    color: #3498db;
}

/* 游戏特色样式 */
.features-section {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #f1c40f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
}

/* 页脚样式 */
.site-footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 3rem 0 2rem;
}

.copyright {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.copyright p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 下载页面样式 */
.page-title {
    background-color: #1a1a2e;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-title h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-title p {
    font-size: 1.1rem;
    color: #ccc;
}

.download-section {
    padding: 4rem 0;
    background-color: #fff;
}

.download-container {
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.download-icon {
    width: 70px;
    height: 70px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

.download-info {
    flex-grow: 1;
}

.download-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.version, .file-size, .update-date {
    margin-bottom: 0.3rem;
    color: #666;
}

.download-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download i {
    margin-right: 0.5rem;
}

.btn-download.primary {
    background-color: #3498db;
    color: #fff;
}

.btn-download.primary:hover {
    background-color: #2980b9;
}

.btn-download.mirror {
    background-color: #f1c40f;
    color: #333;
}

.btn-download.mirror:hover {
    background-color: #d4ac0d;
}

/* 安装说明样式 */
.installation-guide {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.guide-step {
    display: flex;
    margin-bottom: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step-content p {
    color: #666;
}

/* 常见问题样式 */
.faq-section {
    padding: 4rem 0;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: #f9f9f9;
    padding: 1rem 1.5rem;
    text-align: left;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 1rem 0;
    color: #666;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a2e;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        padding: 0 2rem;
    }

    .nav-link {
        padding: 0.8rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-banner {
        padding: 4rem 0;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .activity-list {
        grid-template-columns: 1fr;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .download-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .guide-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5rem;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .copyright p {
        font-size: 0.8rem;
    }
}
