/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #0a0a0f;
    overflow-x: hidden;
}

/* 通用样式 */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #e6c300;
    text-shadow: 0 0 10px rgba(230, 195, 0, 0.3);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #aaa;
    font-size: 1.1rem;
}

.dark-section {
    background-color: #111119;
    border-radius: 10px;
    margin: 40px auto;
    padding: 60px 20px;
}

/* 导航栏样式 */
.header {
    background-color: rgba(10, 10, 15, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo .logo-text {
    color: #e6c300;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.logo .subtitle {
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #e6c300;
    background-color: rgba(230, 195, 0, 0.1);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e6c300;
}

/* 首页横幅样式 */
.hero-section {
    display: flex;
    align-items: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #e6c300;
}

.hero-description {
    font-size: 1.4rem;
    color: #aaa;
    margin-bottom: 20px;
}

.hero-content p {
    margin-bottom: 30px;
    color: #ccc;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* 按钮样式 */
.download-btn, .download-btn-primary, .download-btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e6c300;
    color: #0a0a0f;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.download-btn:hover, .download-btn-primary:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 195, 0, 0.4);
}

.download-btn-secondary {
    background-color: transparent;
    color: #e6c300;
    border: 2px solid #e6c300;
    margin-left: 15px;
}

.download-btn-secondary:hover {
    background-color: rgba(230, 195, 0, 0.1);
}

/* 游戏下载区域 */
.download-container {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.download-info {
    flex: 1;
}

.platform-icon {
    font-size: 3rem;
    color: #e6c300;
    margin-bottom: 20px;
}

.download-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.requirements {
    margin: 20px 0;
    padding-left: 20px;
    color: #ccc;
}

.requirements li {
    margin-bottom: 8px;
}

.download-btns {
    margin: 30px 0;
}

.download-note {
    color: #ff6b6b;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 20px;
}

.download-image {
    flex: 1;
}

/* 游戏动态区域 */
.news-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    background-color: #1a1a24;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #333;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.news-item.highlight {
    border-left-color: #e6c300;
    background-color: #1f1f2a;
}

.news-date {
    color: #e6c300;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-item h3 {
    color: #f0f0f0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.news-item p {
    color: #ccc;
    line-height: 1.7;
}

.news-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag.update {
    background-color: rgba(230, 195, 0, 0.2);
    color: #e6c300;
}

.tag.content {
    background-color: rgba(0, 150, 255, 0.2);
    color: #4da6ff;
}

.tag.fix {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.tag.optimize {
    background-color: rgba(0, 200, 83, 0.2);
    color: #00c853;
}

.tag.dev {
    background-color: rgba(155, 81, 224, 0.2);
    color: #9b51e0;
}

/* 游戏截图区域 */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.screenshot-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a1a24;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.screenshot-item:hover {
    transform: translateY(-10px);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-caption {
    padding: 15px;
    color: #ccc;
    font-size: 0.95rem;
}

/* 用户评价区域 */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-item {
    background-color: #1a1a24;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid #333;
    transition: transform 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background-color: #e6c300;
    color: #0a0a0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.review-user h4 {
    color: #f0f0f0;
    margin-bottom: 5px;
}

.review-rating {
    color: #e6c300;
}

.review-content {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

.review-date {
    color: #777;
    font-size: 0.85rem;
    text-align: right;
}

/* 页脚样式 */
.footer {
    background-color: #08080c;
    padding: 40px 20px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h3 {
    color: #e6c300;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #777;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e6c300;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.modal-content p {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e6c300;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .download-container {
        flex-direction: column;
    }
    
    .download-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .download-btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #0a0a0f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        border-top: 1px solid #333;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 懒加载图片样式 */
.lazy {
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.lazy.loaded {
    opacity: 1;
}