/* 全局样式 */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #3a7bc8;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --light-text: #f4f4f4;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #4a90e2, #8e44ad);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 80%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 平台功能介绍样式 */
.features {
    padding: 80px 0;
    background-color: white;
}

.feature-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-card {
    flex: 1;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
}

/* 游戏新闻样式 */
.news {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
}

.view-more {
    text-align: center;
    margin-top: 20px;
}

/* 游戏下载样式 */
.download {
    padding: 100px 0;
    background-color: white;
}

.download-options {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.download-card {
    flex: 1;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.download-card p {
    color: #666;
    margin-bottom: 20px;
}

.download-note {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 0.9rem;
}

/* 好友联机系统样式 */
.friends {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.friends-showcase {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.friends-app-preview {
    flex: 1;
}

.friends-app-preview img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.friends-features {
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-item p {
    color: #666;
}

.app-download {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.app-download h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.app-download p {
    margin-bottom: 20px;
    color: #666;
}

.app-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-btn img {
    height: 40px;
}

/* 模组社区样式 */
.mods {
    padding: 100px 0;
    background-color: white;
}

.mods-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-radius: 20px;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mod-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mod-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.mod-content {
    padding: 20px;
}

.mod-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mod-content p {
    color: #666;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.mod-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 社区互动样式 */
.community {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.community-options {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.community-card {
    flex: 1;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.community-card:hover {
    transform: translateY(-5px);
}

.community-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.community-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.community-card p {
    color: #666;
    margin-bottom: 20px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-logo h3 {
    font-size: 1.3rem;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 160px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .friends-showcase {
        flex-direction: column;
    }
    .friends-app-preview {
        display: none;
    }
    .friends-features {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-item {
        align-items: flex-start;
    }
    .feature-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
    .download-options,
    .community-options {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-column {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    .logo {
        margin-bottom: 15px;
    }
    nav ul {
        margin-bottom: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
    .user-actions {
        width: 100%;
        justify-content: center;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .friends-app-preview {
        display: none;
    }
    .friends-features {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-item {
        align-items: flex-start;
    }
    .feature-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-column {
        min-width: 100%;
    }
}