/* Base Styles */
:root {
    --primary-color: #6C5CE7; /* 紫色 */
    --primary-hover: #5d51d1; 
    --secondary-color: #10B981; /* 绿色 */
    --background-color: #F9FAFB; /* 浅灰色 */
    --card-background: #ffffff;
    --text-color: #111827; /* 深色文本 */
    --text-secondary: #6B7280; /* 次要文本 */
    --text-light: #F9FAFB; /* 白色文本 */
    --accent-color: #F59E0B; /* 橙色 */
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s ease;
    --game-page-bg: #0d1117; /* 深蓝色背景，夜间游戏模式 */
    --gradient-blue: linear-gradient(135deg, #4F46E5, #3b82f6);
    --bg-dark: #0d1117; /* 深色背景 */
    --bg-darker: rgba(0, 0, 0, 0.3); /* 更深色背景 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

header h1 i {
    margin-right: 0.75rem;
}

header h1 a {
    transition: var(--transition);
}

header h1 a:hover {
    color: var(--primary-hover);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    width: 300px;
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.search-container input {
    border: none;
    background: none;
    flex-grow: 1;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-color);
}

.search-container input::placeholder {
    color: var(--text-secondary);
}

.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-container button:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

/* Main Content Area */
main {
    padding: 2rem 0;
}

/* Tag Filtering Section */
.filters {
    margin-bottom: 2rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.filters h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.filters h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.tag {
    background-color: var(--background-color);
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}

.tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Game Card Grid */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    height: 200px;
}

.game-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.game-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.game-card .thumbnail-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.game-card .game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-thumbnail {
    transform: scale(1.05);
}

/* Game title */
.game-card .game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.game-card:hover .game-title {
    opacity: 1;
}

/* Hot badge */
.hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* VIEW MORE 按钮 */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.load-more-btn.hidden {
    display: none;
}

/* Pagination Controls */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination button {
    background-color: var(--card-background);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:hover:not(.active) {
    background-color: rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

/* Game Detail Page - 截图1样式 */
body.game-page {
    background-color: var(--game-page-bg);
    color: #fff;
}

.game-page header {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 15px 0;
}

.game-page header .container {
    max-width: 1060px;
    padding: 0;
}

.game-page header .logo {
    display: flex;
    align-items: center;
}

.game-page header .logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.game-page header .logo a i {
    font-size: 24px;
}

.game-page header .logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
}

.game-page main {
    padding: 20px 0;
}

.game-buttons {
    width: 1060px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    gap: 8px;
}

.back-button i {
    font-size: 16px;
}

.back-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.fullscreen-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s, background-color 0.2s;
}

.fullscreen-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.game-title {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

/* Game Container Styles */
.game-container {
    width: 1060px;
    height: 650px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

.game-container iframe {
    width: 1060px;
    height: 650px;
    border: none;
    display: block;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.loading i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: white;
    font-size: 16px;
}

.game-details {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.game-details p {
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.game-tags .tag {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.game-page footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
}

.game-page footer p {
    color: #999;
    font-size: 14px;
}

/* 错误信息样式 */
.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    padding: 20px;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.error-message i {
    font-size: 36px;
    color: #EF4444;
    margin-bottom: 10px;
}

.error-message button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.error-message button:hover {
    background-color: var(--primary-hover);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .game-container {
        height: calc((100vw - 30px) * 0.613);
    }
    
    .game-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-buttons .back-button,
    .game-buttons .fullscreen-btn {
        width: 100%;
    }
    
    .game-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .game-container {
        height: 300px;
    }
    
    .game-tags {
        gap: 6px;
    }
    
    .game-tags .tag {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.game-page .loading p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (min-width: 1400px) {
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1800px) {
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 2200px) {
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 992px) {
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 1100px) {
    .game-container,
    .game-container iframe,
    .game-details,
    .game-buttons,
    .game-title {
        width: 100%;
    }
    
    .game-container {
        height: calc((100vw - 40px) * 0.613);
        max-height: 650px;
    }
    
    .game-container iframe {
        height: 100%;
    }
    
    .game-buttons {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .game-card {
        height: 180px;
    }
    
    .filters {
        padding: 1rem;
    }
    
    .tags-container {
        gap: 0.5rem;
    }
    
    .game-detail .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-detail .controls {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .game-card {
        height: 160px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .popular-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .game-card .hover-info .title {
        font-size: 0.9rem;
    }
}

/* Fullscreen Mode */
.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-container iframe {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.exit-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
    opacity: 0.7;
}

.exit-fullscreen:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Game Control Bar */
.game-controls {
    display: none;
}

footer {
    background-color: var(--card-background);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Game Page Styles */
body.game-page {
    background-color: var(--game-page-bg);
    color: #fff;
}

.game-page header {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-page main {
    min-height: calc(100vh - 140px);
}

.game-page footer {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* 游戏页面夜间模式元素调整 */
.game-page .filters {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-page .filters h2 {
    color: #fff;
}

.game-page .tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.game-page .game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.game-page .game-card .title {
    color: #fff;
}

.game-page .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.game-page .pagination button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.game-page .pagination button:hover:not(.active):not(:disabled) {
    background-color: rgba(255, 255, 255, 0.2);
}

.game-page .pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-page .search-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.game-page .search-container input {
    color: #fff;
}

.game-page .search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.game-page .search-container button {
    color: #fff;
}

.game-page .search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.game-page .no-results {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

/* 章节标题样式 */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-left: 0.5rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.game-page .section-title {
    color: #ffffff;
}

/* 最近游玩和所有游戏区域 */
.recently-played, .all-games {
    margin-bottom: 3rem;
}

.recently-played.hidden {
    display: none;
}

/* 游戏详情页样式 */
.game-page {
    background-color: var(--game-page-bg);
}

.game-detail {
    padding: 30px 0;
}

.game-detail h2 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-wrapper {
    position: relative;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-frame {
    width: 100%;
    height: 600px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-spinner {
    text-align: center;
    color: #fff;
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.game-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: block;
}

.game-controls .btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.game-controls .btn:hover {
    background-color: var(--primary-color);
}

.game-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.game-description, .game-tags-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-description h3, .game-tags-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.game-description p {
    color: #e0e0e0;
    line-height: 1.6;
}

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

.game-tags .tag {
    background-color: var(--accent-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

.back-to-home {
    margin-top: 20px;
    text-align: center;
}

.back-to-home .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.back-to-home .btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .game-frame {
        height: 450px;
    }
    
    .game-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-frame {
        height: 300px;
    }
    
    .game-detail h2 {
        font-size: 24px;
    }
}

/* 游戏详情页布局 */
.game-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-container {
    width: 1060px;
    height: 650px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

.game-container iframe {
    width: 1060px;
    height: 650px;
    border: none;
    display: block;
}

/* 游戏详情区域 */
.game-details {
    width: 1060px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-title {
    width: 1060px;
    margin: 20px auto;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.game-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 游戏按钮区域 */
.game-buttons {
    width: 1060px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button, .fullscreen-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.fullscreen-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.2s, background-color 0.2s;
}

.fullscreen-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.back-button:hover, .fullscreen-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .game-container,
    .game-container iframe,
    .game-details,
    .game-buttons,
    .game-title {
        width: 100%;
    }
    
    .game-container {
        height: calc((100vw - 40px) * 0.613);
        max-height: 650px;
    }
    
    .game-container iframe {
        height: 100%;
    }
    
    .game-buttons {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .game-container {
        height: calc((100vw - 30px) * 0.613);
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .game-details {
        padding: 15px;
    }
}