* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0f1b2b;
    --secondary: #1a2a42;
    --accent: #ff6b00;
    --text: #e0e0e0;
    --text-light: #a0a0b0;
    --card-bg: rgba(15, 27, 43, 0.8);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0ff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    visibility:hidden;
    display:none;
}

.page-title {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 20px 0;
}

/* 游戏详情区域 */
.game-detail-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start; /* 确保元素顶部对齐 */
}

.game-gallery {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

/* 大图区域 */
.main-gallery {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* 缩略图区域 */
.thumbnail-container {
    position: relative;
    padding: 10px 0;
}

.thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border: 2px solid #00cc99;
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 204, 153, 0.5);
}

/* 缩略图导航按钮 */
.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(30, 35, 56, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-nav:hover {
    opacity: 1;
    background: rgba(77, 184, 255, 0.9);
}

.thumbnail-prev {
    left: 10px;
}

.thumbnail-next {
    right: 10px;
}

.thumbnail-nav i {
    pointer-events: none;
}

.game-info {
    flex: 1;
    background: rgba(30, 35, 56, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 移除固定高度，使用flex布局 */
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-tag {
    background: rgba(77, 184, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4db8ff;
}

.game-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    /* 添加换行支持 */
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    /* 确保最小宽度 */
    min-width: 80px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00cc99;
}

.stat-label {
    font-size: 0.9rem;
    color: #a9b7c6;
}

.game-description {
    color: #b8c2cc;
    margin-bottom: 30px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: #00cc99;
    font-size: 1.2rem;
}

/* 开始游戏按钮 */
.play-btn-container {
    text-align: center;
    margin: 40px 0;
}

.play-btn {
    background: linear-gradient(45deg, #00cc99, #00b3e6);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 204, 153, 0.4);
    display: inline-block;
    text-decoration: none;
}

.play-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 204, 153, 0.6);
}

.play-btn i {
    margin-left: 10px;
}

/* 推荐游戏区 */
.recommended-games {
    margin-top: 50px;
    padding-top: 30px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
}

.game-card {
    background: rgba(30, 35, 56, 0.6);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(77, 184, 255, 0.2);
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-card h3 {
    font-size: 1rem;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .game-detail-container {
        flex-direction: column;
    }

    .game-gallery {
        width: 100%;
    }

    .main-gallery {
        height: 350px;
    }

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

    .news-card {
        flex-direction: column;
        height: auto;
    }

    .card-image {
        width: 100%;
        height: 200px;
    }

    .card-link {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.8rem;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .main-gallery {
        height: 250px;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .play-btn {
        padding: 15px 40px;
        font-size: 1.2rem;
        width: 100%;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}



/* 相关资讯 */
.related-news {
    margin-top: 50px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: white;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card .meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-date {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-category {
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    line-height: 1.4;
}

.card-summary {
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    text-decoration: underline;
}

/* 游戏框架容器 */
.game-frame-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.game-frame-container.active {
    opacity: 1;
    visibility: visible;
}

.game-frame-wrapper {
    width: 100vw;
    height: 100vh;
    background: var(--primary);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.game-frame-container.active .game-frame-wrapper {
    transform: scale(1);
}

.expand-frame {
    position: absolute;
    top: 40px;
    left: 10px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.expand-frame:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.close-frame {
    position: absolute;
    top: 40px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-frame:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}