/* CSS变量 - 主题色系 */
:root {
    --primary-color: #64413f;
    --secondary-color: #7397ab;
    --accent-color: #a9b4b8;
    --dark-color: #181d22;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --border-radius: 12px;
    --border-radius-small: 6px;
    --transition: all 0.3s ease;
    --font-primary: 'Noto Sans SC', 'Roboto', sans-serif;
}

/* 基础重置和设置 */
* {
    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(--light-bg);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title i {
    color: var(--secondary-color);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-small);
}

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

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

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

.nav-link i {
    font-size: 0.9rem;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 英雄区 */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 65, 63, 0.9), rgba(115, 151, 171, 0.8));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-title-section {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 0;
}

.game-info-grid {
    display: flex;
    justify-content: center;
}

.version-info-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.info-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.game-description {
    max-width: 700px;
    margin: 0 auto;
}

.game-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-tag i {
    font-size: 1rem;
    color: var(--accent-color);
}

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

.download-btn-main {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.download-btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    color: var(--primary-color);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.btn-content i {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.btn-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-version {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}

.download-notes {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.note-item i {
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* 内容区域通用样式 */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background: var(--white);
}

/* 新闻动态区 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

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

.news-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 媒体画廊区 */
.gallery {
    background: var(--dark-color);
}

.gallery .section-title {
    color: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
}

/* 用户评价区 */
.review-stats {
    text-align: center;
    margin-bottom: 4rem;
}

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

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stars {
    margin: 1rem 0;
    font-size: 1.5rem;
    color: #ffd700;
}

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

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

.tag {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.review-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 0 1rem;
    display: none;
    border-left: 4px solid var(--secondary-color);
}

.review-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reviewer-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #ffd700;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

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

.carousel-btn {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* 版本历史区 */
.version-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.version-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    overflow: hidden;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.version-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.version-header {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.version-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.version-date, .version-size {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
}

.version-content {
    padding: 2rem;
}

.version-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.version-content ul {
    margin-bottom: 1.5rem;
}

.version-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.version-content li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.version-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.platform-support {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.platform-support i {
    color: var(--secondary-color);
}

/* 常见问题区 */
.faq {
    background: var(--light-bg);
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

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

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

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

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 底部信息 */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .hero {
        min-height: 100vh;
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .version-info-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .info-item i {
        font-size: 1.2rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    .game-description p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .game-features {
        gap: 0.6rem;
    }
    
    .feature-tag {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .feature-tag i {
        font-size: 0.9rem;
    }
    
    .download-btn-main {
        padding: 0.9rem 2rem;
    }
    
    .btn-text {
        font-size: 1.1rem;
    }
    
    .btn-version {
        font-size: 0.8rem;
    }
    
    .download-notes {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .note-item {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .version-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .version-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .download-btn {
        text-align: center;
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .review-item {
        margin: 0;
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 30px;
    }
    
    .hero-main {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .version-info-compact {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .info-item {
        gap: 0.3rem;
    }
    
    .info-item i {
        font-size: 1rem;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
    
    .game-description p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .game-features {
        gap: 0.5rem;
    }
    
    .feature-tag {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .feature-tag i {
        font-size: 0.85rem;
    }
    
    .download-btn-main {
        padding: 0.8rem 1.5rem;
    }
    
    .btn-content {
        gap: 0.2rem;
    }
    
    .btn-content i {
        font-size: 1.3rem;
    }
    
    .btn-text {
        font-size: 1rem;
    }
    
    .btn-version {
        font-size: 0.75rem;
    }
    
    .download-notes {
        gap: 0.8rem;
    }
    
    .note-item {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    
    .news-item, .review-item {
        padding: 1.5rem;
    }
    
    .version-content {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
