/* Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1e1e2f;
    --secondary-color: #4361ee;
    --accent-color: #00f2ff;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1e1e2f, #2d4059);
    --gradient-secondary: linear-gradient(135deg, #4361ee, #3f37c9);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 70px; /* 为固定导航栏留出空间 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar Styles */
.navbar {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
}

/* Banner Styles */
.hero-banner {
    background: var(--gradient-secondary);
    padding: 4rem 0;
    margin-bottom: 2rem;
    color: white;
}

.banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Categories Section */
.categories-section {
    padding: 3rem 0;
    background: white;
    margin: 2rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.category-count {
    font-size: 0.9rem;
    color: #666;
    position: relative;
    z-index: 2;
}

/* Games Section */
.games-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .search-container {
        width: 200px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .banner-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 在现有样式后添加游戏卡片样式 */
.game-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.game-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-platform {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
}

.game-platform span {
    color: white;
    font-size: 0.9rem;
}

.game-info {
    padding: 1rem;
}

.game-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffc107;
}

.game-category {
    font-size: 0.9rem;
    color: #666;
    padding: 0.2rem 0.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
}

.game-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.btn-download {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* 添加响应式样式 */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* 更新响应式样式 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 0 0;
    }

    .footer-section {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon {
        font-size: 1.8rem;
    }
}

/* 添加游戏卡片链接样式 */
.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card-link:hover {
    text-decoration: none;
}

/* 修改游戏卡片按钮样式，防止点击冒泡 */
.game-card .btn-download {
    position: relative;
    z-index: 2;
}

.game-card .btn-download:hover {
    background: var(--accent-color);
}

/* 添加当前页面导航链接高亮样式 */
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

/* 更新按钮样式，支持链接形式 */
.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* 更新查看更多链接样式 */
.view-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: var(--accent-color);
}

.view-more i {
    transition: transform 0.3s ease;
}

.view-more:hover i {
    transform: translateX(5px);
}

/* 新游预约区域样式 */
.upcoming-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.view-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: var(--accent-color);
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.upcoming-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.upcoming-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.upcoming-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upcoming-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.release-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.reservation-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.upcoming-info {
    padding: 1rem;
}

.upcoming-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 游戏资讯区域样式 */
.news-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-tag {
    padding: 0.2rem 0.8rem;
    background: var(--secondary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.news-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-views i {
    color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card img {
        height: 180px;
    }
}

/* 热门话题区域样式 */
.topics-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.topic-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.topic-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.topic-meta {
    flex: 1;
}

.username {
    font-weight: 500;
    color: var(--text-color);
}

.topic-time {
    font-size: 0.9rem;
    color: #666;
}

.topic-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.topic-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.topic-images img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.topic-stats {
    display: flex;
    gap: 1rem;
    color: #666;
}

/* 玩家评测区域样式 */
.reviews-section {
    padding: 3rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.review-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-info .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.reviewer-meta {
    flex: 1;
}

.reviewer-name {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.review-time {
    font-size: 0.9rem;
    color: #666;
}

.review-rating {
    color: var(--secondary-color);
}

.review-content h3 {
    margin-bottom: 0.5rem;
}

.review-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: #666;
}

/* 社区精选区域样式 */
.community-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.community-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-meta {
    flex: 1;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-images {
    margin: 1rem 0;
}

.post-images img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-stats {
    display: flex;
    gap: 1rem;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .upcoming-grid,
    .topics-grid,
    .reviews-grid,
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .upcoming-grid,
    .news-grid,
    .topics-grid,
    .reviews-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        height: 200px;
    }

    .topic-images {
        grid-template-columns: 1fr;
    }
} 