/* ===== CSS变量定义 ===== */
:root {
    /* 主题配色 */
    --primary-color: #8b52b8;
    --secondary-color: #864264;
    --accent-color: #e18eba;
    --dark-color: #3b1e2d;
    
    /* 扩展配色 */
    --primary-light: #a066d1;
    --primary-dark: #70428f;
    --background-light: #fafafa;
    --background-dark: #1a1a1a;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(139, 82, 184, 0.1);
    --shadow-medium: rgba(139, 82, 184, 0.2);
    --shadow-heavy: rgba(59, 30, 45, 0.3);
    
    /* 字体 */
    --font-primary: 'Noto Sans SC', sans-serif;
    --font-accent: 'Orbitron', monospace;
    
    /* 尺寸 */
    --header-height: 70px;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== 基础重置和全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 排版样式 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 按钮样式 ===== */
.btn, .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn.primary, .download-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn.primary:hover, .download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-heavy);
}

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

.btn.secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.download-btn {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 16px;
}

.download-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-text {
    font-size: 18px;
    font-weight: 600;
}

.download-details {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 2px;
}

/* ===== 导航栏样式 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px var(--shadow-light);
    transition: var(--transition-medium);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    background: var(--shadow-light);
    color: var(--primary-color);
}

.nav-link i {
    font-size: 14px;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== 英雄区样式 ===== */
.hero {
    margin-top: var(--header-height);
    min-height: 600px;
    background: linear-gradient(135deg, #f8f6fc 0%, #ede7f3 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e18eba" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%238b52b8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.5rem;
}

.game-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-tag {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.version-number {
    font-family: var(--font-accent);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.release-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature i {
    color: var(--accent-color);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-heavy);
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: var(--transition-medium);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(139, 82, 184, 0.1) 100%);
}

/* ===== 区块标题样式 ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    justify-content: center;
}

.section-title i {
    font-size: 2rem;
    color: var(--accent-color);
}

/* ===== 新闻动态样式 ===== */
.news {
    padding: 80px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.news-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
    position: relative;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.news-item.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.news-item.featured .news-title,
.news-item.featured .news-date {
    color: white;
}

.news-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--accent-color);
    color: white;
}

.news-item.featured .news-icon {
    background: rgba(255, 255, 255, 0.2);
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.news-excerpt {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.news-item.featured .tag {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== 游戏截图样式 ===== */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f6fc 0%, #ede7f3 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    opacity: 0.9;
}

.gallery-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 图片弹窗样式 */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-caption {
    text-align: center;
    color: #ccc;
    padding: 20px;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.3); }
    to { transform: scale(1); }
}

/* ===== 用户评价样式 ===== */
.reviews {
    padding: 80px 0;
    background: white;
}

.reviews-summary {
    text-align: center;
    margin-bottom: 4rem;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-accent);
}

.stars {
    display: flex;
    gap: 4px;
}

.stars i {
    font-size: 1.5rem;
    color: #ffc107;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.rating-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.rating-tags .tag {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
}

.reviews-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.review-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--border-color);
    display: none;
    animation: slideIn 0.5s ease;
}

.review-item.active {
    display: block;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars i {
    font-size: 14px;
    color: #ffc107;
}

.review-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.review-text {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator.active {
    background: var(--primary-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 下载中心样式 ===== */
.versions {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f6fc 0%, #ede7f3 100%);
}

/* 版本项目 */
.version-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.version-item.latest {
    background: #fafbff;
    border: 2px solid #6f42c1;
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.15);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.version-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.version-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.latest-badge {
    background: linear-gradient(135deg, #fd7e14, #e63946);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.version-subtitle {
    color: #5a6c7d;
    font-size: 1rem;
    font-weight: 500;
}

.version-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.version-date,
.version-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.version-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.version-features h4,
.version-platforms h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.version-features ul {
    list-style: none;
    padding-left: 0;
}

.version-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
    color: #495057;
    line-height: 1.5;
}

.version-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.platform-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: #007bff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

/* Android平台标签 */
.platform-tag.android {
    background: #28a745;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.version-actions {
    text-align: center;
}

/* 下载帮助 */
.download-help {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-top: 4rem;
}

.download-help h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.help-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--background-light);
    transition: var(--transition-medium);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.help-item:hover {
    background: var(--shadow-light);
}

.help-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.help-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    margin: 0;
}

.help-item a {
    color: var(--accent-color);
    font-weight: 500;
}

.help-item a:hover {
    color: var(--primary-color);
}



/* ===== 常见问题样式 ===== */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-medium);
}

.faq-item:hover {
    box-shadow: 0 5px 15px var(--shadow-light);
}

.faq-question {
    padding: 1.5rem;
    background: var(--background-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--shadow-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-question i {
    color: var(--accent-color);
    transition: var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-medium);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ===== 底部样式 ===== */
.footer {
    background: var(--dark-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo h3 {
    color: var(--accent-color);
    font-family: var(--font-accent);
    margin: 0;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cccccc;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    text-align: center;
}

.footer-info {
    color: #999999;
}

.footer-info a {
    color: var(--accent-color);
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 5px 15px var(--shadow-medium);
    transition: var(--transition-medium);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-heavy);
}

.back-to-top.visible {
    display: flex;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .help-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .version-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .version-meta {
        align-items: flex-start;
    }
    
    .help-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition-medium);
        box-shadow: 0 10px 27px var(--shadow-medium);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .feature {
        flex: 0 0 calc(33.333% - 0.6rem);
        justify-content: center;
        font-size: 13px;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .version-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .version-meta {
        align-items: flex-start;
    }
    
    .download-help {
        padding: 2rem;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item,
    .version-item,
    .faq-item {
        margin: 0 -5px;
    }
    
    .download-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .download-text {
        font-size: 16px;
    }
    
    .download-details {
        font-size: 12px;
    }
    
    /* 下载中心移动端适配 */
    .version-item {
        padding: 1.5rem;
    }
    
    .version-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .download-help {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .download-help h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .help-item {
        padding: 1rem;
        text-align: left;
    }
    
    .feature {
        font-size: 12px;
        flex: 0 0 calc(33.333% - 0.5rem);
    }
    
    .help-item h4 {
        justify-content: flex-start;
        font-size: 1rem;
    }
    

} 