/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-dark: #2a4a7a;
    --secondary-color: #e76f51;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 排版工具类 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-download {
    background-color: var(--secondary-color);
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-download:hover {
    background-color: #d45c3e;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-dark);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo span {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    padding: 10px 15px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 400;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 下载区域 */
.download-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.download-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-10px);
}

.download-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.download-card p {
    margin-bottom: 10px;
    color: var(--gray-color);
}

.version, .file-size {
    font-weight: 600;
    color: var(--primary-color);
}

.download-note {
    font-size: 0.9rem;
    margin-top: 20px;
    color: var(--gray-color);
    font-style: italic;
}

.download-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-warning i {
    color: #e67e22;
    font-size: 1.5rem;
    margin-right: 15px;
}

/* 游戏介绍区域 */
.intro-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-image {
    flex: 0 0 300px;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--gray-color);
    margin-top: 10px;
}

.intro-text h3 {
    color: var(--primary-dark);
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.intro-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.version-info {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

/* 游戏特色区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* 游戏动态区域 */
.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
}

.date-month, .date-year {
    font-size: 1rem;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* 游戏截图区域 */
.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.screenshot {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.screenshot:hover {
    transform: scale(1.03);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 15px;
    background-color: var(--light-color);
    text-align: center;
    font-weight: 500;
}

/* 用户评价区域 */
.steam-rating {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    box-shadow: var(--box-shadow);
}

.rating-score {
    text-align: center;
}

.score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.score-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-color);
}

.score-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.reviews-count {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.rating-details {
    flex: 1;
    min-width: 300px;
}

.rating-details p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.review-user h4 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.review-stars {
    color: #ffc107;
}

.review-content p {
    font-style: italic;
    line-height: 1.7;
}

/* 页脚 */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #b0c4de;
}

.footer-info p {
    margin-bottom: 10px;
    color: #b0c4de;
}

.footer-links a {
    color: #b0c4de;
    text-decoration: none;
    margin: 0 5px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 10px 0;
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image {
        order: -1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .download-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .download-card {
        width: 100%;
    }
    
    .screenshots-container {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-date {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 15px;
    }
    
    .date-day, .date-month, .date-year {
        font-size: 1.2rem;
    }
}