/* CSS Variables for Theme Colors */
:root {
    --primary-color: #9c9d9e;
    --secondary-color: #c0978b;
    --accent-color: #83574c;
    --dark-color: #1e1512;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--dark-color));
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Noto Sans SC', sans-serif;
    --font-title: 'Orbitron', 'Noto Sans SC', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

/* Section Title */
.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(156, 157, 158, 0.1);
    z-index: 1001;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .navbar {
    padding: 0.8rem 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-family: var(--font-title);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

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

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

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

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

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

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

/* Hero Section */
.hero {
    min-height: 75vh;
    background: linear-gradient(135deg, 
        rgba(156, 157, 158, 0.05) 0%, 
        rgba(192, 151, 139, 0.05) 50%, 
        rgba(131, 87, 76, 0.05) 100%);
    display: flex;
    align-items: center;
    padding: 60px 0 40px;
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(156,157,158,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

/* 渐变光效 */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(192, 151, 139, 0.15) 0%, 
        rgba(192, 151, 139, 0.08) 30%, 
        transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: -1;
}

/* 浮动光点效果 */
.hero-floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(192, 151, 139, 0.6);
    border-radius: 50%;
    animation: float 15s linear infinite;
    box-shadow: 0 0 12px rgba(192, 151, 139, 0.4);
}

.hero-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.hero-particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 16s;
    width: 4px;
    height: 4px;
}

.hero-particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.hero-particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 18s;
    width: 8px;
    height: 8px;
}

.hero-particle:nth-child(5) {
    left: 60%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.hero-particle:nth-child(6) {
    left: 70%;
    animation-delay: 5s;
    animation-duration: 15s;
    width: 5px;
    height: 5px;
}

.hero-particle:nth-child(7) {
    left: 80%;
    animation-delay: 6s;
    animation-duration: 17s;
}

.hero-particle:nth-child(8) {
    left: 90%;
    animation-delay: 7s;
    animation-duration: 11s;
    width: 3px;
    height: 3px;
}

/* 动画定义 */
@keyframes heroGlow {
    0% {
        transform: translateX(-10px) translateY(-10px) scale(1);
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(10px) translateY(10px) scale(1.05);
        opacity: 0.2;
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes titleGlow {
    0% {
        opacity: 0.2;
        filter: blur(8px);
    }
    100% {
        opacity: 0.4;
        filter: blur(12px);
    }
}

@keyframes downloadPulse {
    0%, 100% {
        box-shadow: 0 8px 25px var(--shadow), 
                    0 0 0 0 rgba(192, 151, 139, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px var(--shadow), 
                    0 0 0 10px rgba(192, 151, 139, 0);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.hero-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px var(--shadow);
    animation: titlePulse 4s ease-in-out infinite;
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.hero-info {
    margin-bottom: 1.8rem;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.version, .release-date {
    background: rgba(156, 157, 158, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.game-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 151, 139, 0.1);
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 500;
    color: var(--accent-color);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(192, 151, 139, 0.2);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 151, 139, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-2px);
    background: rgba(192, 151, 139, 0.15);
    border-color: rgba(192, 151, 139, 0.4);
    box-shadow: 0 4px 15px rgba(192, 151, 139, 0.2);
}

.feature i {
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.download-section {
    margin-top: 1.5rem;
}

.download-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 10px 40px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 25px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: downloadPulse 3s ease-in-out infinite;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover::after {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-hover), 
                0 0 25px rgba(192, 151, 139, 0.4);
    animation-play-state: paused;
}

.download-btn i,
.download-btn span {
    position: relative;
    z-index: 2;
}

.download-info {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* News Section */
.news {
    padding: 5rem 0;
    background: var(--light-gray);
}

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

.news-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

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

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

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

.news-link {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

.news-link:hover {
    text-decoration-color: var(--secondary-color);
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
}

.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);
}

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

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

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

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

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

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

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: var(--light-gray);
}

/* 评价概览 */
.reviews-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow);
}

.rating-summary {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.rating-main {
    text-align: center;
    min-width: 150px;
}

.rating-score {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.rating-stars {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.8rem;
}

.rating-count {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
}

/* 评分分布 */
.rating-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.star-label {
    min-width: 30px;
    color: var(--dark-color);
    font-weight: 500;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: rgba(156, 157, 158, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 1s ease-out;
    border-radius: 4px;
}

.rating-percentage {
    min-width: 35px;
    text-align: right;
    color: var(--primary-color);
    font-weight: 500;
}

/* 用户标签 */
.user-tags-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tags-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.user-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.tag.hot {
    background: var(--gradient-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 评价过滤器 */
.reviews-filters {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-buttons {
    display: inline-flex;
    background: var(--white);
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 2px 10px var(--shadow);
    gap: 2px;
}

.filter-btn {
    padding: 12px 20px;
    border-radius: 20px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(156, 157, 158, 0.1);
    color: var(--dark-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
}

/* 评价轮播 */
.reviews-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow);
    display: none;
    text-align: left;
    border-left: 4px solid var(--gradient-primary);
    transition: var(--transition);
}

.review-card.active {
    display: block;
    animation: slideInReview 0.6s ease-out;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

/* 评价头部 */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.author-avatar {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.author-info {
    flex: 1;
}

.author-info h4 {
    font-family: var(--font-title);
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.author-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.play-time, .review-date {
    background: rgba(156, 157, 158, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.review-rating {
    color: #ffd700;
    font-size: 1.2rem;
    display: flex;
    gap: 2px;
}

/* 评价内容 */
.review-text {
    color: var(--accent-color);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.review-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--secondary-color);
    font-family: serif;
}

.review-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    font-family: serif;
}

/* 评价底部 */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(156, 157, 158, 0.1);
    padding-top: 1rem;
}

.review-helpful {
    display: flex;
    gap: 1rem;
}

.helpful-btn, .report-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
}

.helpful-btn {
    background: rgba(192, 151, 139, 0.1);
    color: var(--secondary-color);
}

.helpful-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-1px);
}

.report-btn {
    background: rgba(156, 157, 158, 0.1);
    color: var(--primary-color);
}

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

/* 更多评价按钮 */
.more-reviews {
    text-align: center;
    margin-top: 2rem;
}

.more-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
}

.more-reviews-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

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

/* 轮播控制 */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--gradient-primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px var(--shadow);
}

.carousel-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.dot:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 2px 8px var(--shadow);
}

.dot.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* Versions Section */
.versions {
    padding: 5rem 0;
}

.versions-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.versions-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.version-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.version-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: 4px solid var(--white);
    box-shadow: 0 2px 8px var(--shadow);
}

.version-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.version-content:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

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

.version-number {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.version-date {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.version-size {
    background: rgba(131, 87, 76, 0.1);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.version-platforms {
    margin-bottom: 1rem;
}

.platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(156, 157, 158, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.version-changes {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.version-changes li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    line-height: 1.6;
}

.version-changes li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: -1rem;
}

.version-note {
    background: rgba(192, 151, 139, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.version-note i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.version-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--light-gray);
}

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

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

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

.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: rgba(156, 157, 158, 0.05);
}

.faq-question h3 {
    font-family: var(--font-title);
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

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

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

.faq-answer > div,
.faq-answer > p {
    padding: 0 2rem 1.5rem;
    color: var(--accent-color);
    line-height: 1.7;
}

.system-requirements h4 {
    color: var(--dark-color);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.system-requirements ul {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.system-requirements li {
    position: relative;
    margin-bottom: 0.5rem;
    list-style: none;
}

.system-requirements li::before {
    content: '▸';
    color: var(--secondary-color);
    position: absolute;
    left: -1rem;
}

.controls-info h4 {
    color: var(--dark-color);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.controls-info ul {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.controls-info li {
    position: relative;
    margin-bottom: 0.5rem;
    list-style: none;
}

.controls-info li::before {
    content: '→';
    color: var(--secondary-color);
    position: absolute;
    left: -1rem;
}

code {
    background: rgba(156, 157, 158, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--gradient-accent);
    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 h3 {
    font-family: var(--font-title);
    margin-bottom: 1rem;
    color: var(--white);
}

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

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

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

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-image {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
}

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

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    transform: translateY(-50%);
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        z-index: 1000;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .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 {
        min-height: 70vh;
        padding: 80px 0 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .version-info {
        flex-direction: column;
        gap: 1rem;
    }

    .game-features {
        gap: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* 评价模块响应式 */
    .reviews-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .rating-summary {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

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

    .rating-breakdown {
        gap: 0.3rem;
        width: 100%;
        max-width: 400px;
    }

    .rating-bar-item {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .star-label {
        min-width: 25px;
        font-size: 0.8rem;
    }

    .rating-bar {
        height: 6px;
    }

    .rating-percentage {
        min-width: 28px;
        font-size: 0.8rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .review-card {
        padding: 2rem;
    }

    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .author-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .review-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .carousel-controls {
        gap: 1.5rem;
    }

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

    .version-item {
        padding-left: 60px;
    }

    .versions-timeline::before {
        left: 20px;
    }

    .version-marker {
        left: 10px;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .modal-nav {
        padding: 0 20px;
    }

    .modal-image {
        width: 95%;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .download-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .news-card,
    .version-content {
        padding: 1.5rem;
    }

    /* 评价模块小屏幕适配 */
    .reviews-overview {
        padding: 1.5rem;
    }

    .rating-summary {
        align-items: center;
    }

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

    .rating-score {
        font-size: 2.8rem;
    }

    .rating-breakdown {
        max-width: 350px;
        gap: 0.25rem;
    }

    .rating-bar-item {
        gap: 0.4rem;
        font-size: 0.75rem;
    }

    .star-label {
        min-width: 22px;
        font-size: 0.75rem;
    }

    .rating-bar {
        height: 5px;
    }

    .rating-percentage {
        min-width: 25px;
        font-size: 0.75rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-text {
        font-size: 1rem;
        padding-left: 0.5rem;
    }

    .review-text::before {
        font-size: 1.5rem;
        top: -3px;
    }

    .review-text::after {
        font-size: 1.5rem;
    }

    .helpful-btn, .report-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .more-reviews-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }

    .faq-answer > div,
    .faq-answer > p {
        padding: 0 1.5rem 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .back-to-top,
    .modal {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
} 