/* CSS变量定义 */
:root {
    --primary-color: #7d2859;
    --secondary-color: #e26095;
    --accent-color: #e9a513;
    --light-bg: #ebc4b7;
    --text-dark: #2c2c2c;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-bg: linear-gradient(135deg, var(--light-bg), rgba(235, 196, 183, 0.5));
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

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

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

/* 按钮样式 */
.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);
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

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

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav {
    padding: 0;
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

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

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(125, 40, 89, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

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

/* 区块标题 */
.section-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-size: 28px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

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

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.version-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.version-info span {
    padding: 4px 12px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
}

.hero-image {
    text-align: center;
    animation: fadeIn 1s ease 0.3s both;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

/* 新闻动态 */
.news {
    padding: 80px 0;
    background: var(--white);
}

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

.news-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.news-date {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.news-link::after {
    content: '→';
    transition: var(--transition);
}

.news-link:hover::after {
    transform: translateX(5px);
}

/* 游戏截图 */
.gallery {
    padding: 80px 0;
    background: var(--gray-100);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(125, 40, 89, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

/* 用户评价 */
.reviews {
    padding: 80px 0;
    background: var(--white);
}

.reviews-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--gradient-bg);
    border-radius: var(--border-radius-lg);
}

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

.rating-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-stars {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-300);
}

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

.review-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    display: none;
}

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

.review-stars {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    color: var(--text-light);
    font-weight: 500;
}

/* 版本历史 */
.versions {
    padding: 80px 0;
    background: var(--gray-100);
}

.version-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.version-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.version-item:hover {
    box-shadow: var(--shadow-lg);
}

.version-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-number {
    font-size: 20px;
    font-weight: 600;
}

.version-date {
    font-size: 14px;
    opacity: 0.9;
}

.version-details {
    padding: 30px;
}

.version-details h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.version-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.version-details li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
}

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

.version-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.version-info span {
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-light);
}

/* 常见问题 */
.faq {
    padding: 80px 0;
    background: var(--white);
}

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

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    background: var(--white);
}

.faq-question:hover {
    background: var(--gray-100);
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--gray-100);
}

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

.faq-answer p {
    padding: 20px 30px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* 页脚 */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

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

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

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航菜单 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 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);
    }

    /* 英雄区域 */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-features {
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 100%;
    }
    
    .feature-item {
        font-size: 14px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }

    /* 区块标题 */
    .section-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    /* 新闻网格 */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* 游戏截图 */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* 评价统计 */
    .reviews-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .rating-tags {
        justify-content: center;
    }

    /* 版本信息 */
    .version-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .version-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 页脚 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* 容器内边距 */
    .container {
        padding: 0 15px;
    }

    /* 按钮 */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        align-items: center;
    }

    .version-info {
        width: 100%;
    }

    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    /* 进一步优化小屏幕 */
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .news-item,
    .version-details,
    .review-item {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-content: center;
    }
    
    .feature-item {
        font-size: 12px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 2px;
    }
}

/* 懒加载相关样式已移除 */

/* 平滑滚动增强 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    
    .btn-outline {
        border-width: 3px;
    }
}

