/* Global Styles - Dark Gaming Website Color Scheme */
:root {
    /* 主色调 - 鲜艳游戏蓝色 */
    --primary-color: #4299e1;
    --primary-light: #63b3ed;
    --primary-dark: #3182ce;

    /* 辅助色 - 游戏绿色 */
    --secondary-color: #48bb78;
    --secondary-light: #68d391;
    --secondary-dark: #38a169;

    /* 强调色 - 游戏橙色 */
    --accent-color: #ed8936;
    --accent-light: #f6ad55;
    --accent-dark: #dd6b20;

    /* 错误色 */
    --error-color: #f56565;
    --error-light: #fc8181;
    --error-dark: #e53e3e;

    /* 深色背景色系 */
    --dark-bg: #0f1419;
    --darker-bg: #1a202c;
    --card-bg: #2d3748;
    --soft-bg: #4a5568;
    --hover-bg: #2d3748;
    --light-bg: #ffffff;
    --dark-section-bg: #1a202c;

    /* 边框和分割线 */
    --border-color: #4a5568;
    --border-light: #2d3748;
    --border-medium: #718096;
    --border-dark: #1a202c;

    /* 文字色系 */
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-light: #cbd5e0;
    --text-muted: #a0aec0;
    --text-white: #ffffff;
    --text-dark: #2d3748;

    /* 阴影效果 - 深色主题 */
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.4);
    --shadow-game: rgba(66, 153, 225, 0.3);
    --shadow-glow: rgba(66, 153, 225, 0.5);

    /* 渐变色 - 深色游戏风格 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    --gradient-card: linear-gradient(145deg, var(--card-bg) 0%, var(--darker-bg) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 32, 44, 0.9) 70%);
    --gradient-iframe-glow: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(72, 187, 120, 0.1) 100%);

    /* 兼容旧版本 */
    --light-text: var(--text-primary);
    --gray-text: var(--text-secondary);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-weight: 400;
}

.game-bg {
    background: var(--gradient-dark);
}

/* Typography - 更专业的字体设计 */
.fancy-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: none;
    letter-spacing: -0.025em;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Content Wrapper - 深色主题设计 */
.content-wrapper {
    background: var(--gradient-card);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    max-width: 1400px;
    margin: 0 auto;
    margin-top: -1rem;
    position: relative;
    z-index: 2;
}

/* Section Styles */
.content-section {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.section-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
}

/* Flex Container */
.flex-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.text-section {
    flex: 1;
}

.image-section {
    flex-shrink: 0;
    width: 33.333333%;
}

.image-wrapper {
    background: var(--soft-bg);
    border-radius: 1rem;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Steps List */
.steps-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.steps-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-box {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* FAQ Section Styles */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1.1rem;
}

.faq-button:hover {
    background: var(--hover-bg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--soft-bg);
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.chevron-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-button[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.video-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.video-preview {
    aspect-ratio: 16/9;
}

.video-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h3 {
    padding: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Comments Grid */
.comments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.comment-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-info {
    flex-grow: 1;
}

.comment-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 0.125rem;
}

.comment-role {
    font-size: 0.75rem;
    color: var(--gray-text);
}

.comment-text {
    color: var(--gray-text);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }
    
    .image-section {
        width: 100%;
    }
    
    .features-grid,
    .videos-grid,
    .comments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .comment-card {
        padding: 0.75rem;
    }
    
    .comment-avatar {
        width: 2rem;
        height: 2rem;
    }
    
    .comment-name {
        font-size: 0.8125rem;
    }
    
    .comment-role {
        font-size: 0.6875rem;
    }
    
    .comment-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .videos-grid,
    .comments-grid {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
}

/* Navigation - 深色游戏网站导航 */
.navbar {
    background-color: rgba(26, 32, 44, 0.95);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px var(--shadow-medium);
    backdrop-filter: blur(15px);
}

.navbar.scrolled {
    background-color: rgba(26, 32, 44, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px var(--shadow-strong);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    border-radius: 6px;
}

.navbar-brand:hover {
    color: var(--primary-light) !important;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-light) !important;
    background-color: var(--hover-bg);
    text-shadow: 0 0 10px var(--shadow-glow);
}

.nav-link.active {
    color: var(--primary-light) !important;
    background-color: var(--soft-bg);
    text-shadow: 0 0 10px var(--shadow-glow);
}

/* 移动端菜单按钮样式 */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: var(--primary-light) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25) !important;
    border-color: var(--primary-light) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.2em !important;
    height: 1.2em !important;
}

/* 移动端导航栏样式 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 32px !important;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .navbar-brand span {
        font-size: 0.85rem;
    }
    
    .navbar-brand img {
        height: 28px !important;
    }
}

/* Hero Section - 深色主题 */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content {
    flex: 2.5;
    min-width: 0;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(ellipse at center, rgba(66, 153, 225, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: spotlight 4s ease-in-out infinite;
}

@keyframes spotlight {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Hero Games Sidebar - 深色主题设计 */
.hero-games-sidebar {
    flex: 1.5;
    min-width: 300px;
    max-width: 380px;
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    height: fit-content;
    position: relative;
    z-index: 10;
}

.hero-games-sidebar .sidebar-title {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
    letter-spacing: -0.025em;
    text-shadow: 0 0 10px var(--shadow-glow);
}

.hero-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.hero-game-card {
    background: var(--gradient-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    cursor: pointer;
}

.hero-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px var(--shadow-glow), 0 8px 25px var(--shadow-strong);
}

.hero-game-card .game-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--soft-bg);
    position: relative;
}

.hero-game-card .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-game-card:hover .game-image img {
    transform: scale(1.05);
}

.hero-game-card .game-info {
    padding: 0.75rem 0.5rem;
    text-align: center;
    background: var(--card-bg);
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
}

.hero-game-card .game-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
    position: relative;
    z-index: 3;
    letter-spacing: -0.01em;
}

/* Custom scrollbar for hero games grid */
.hero-games-grid::-webkit-scrollbar {
    width: 4px;
}

.hero-games-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.hero-games-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
}

.hero-games-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
        margin-bottom: 1rem;
    }
    
    .video-preview-content .game-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .video-preview-content {
        padding: 1.5rem;
    }
    
    .hero-content .video-preview {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .video-preview-content .game-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .video-preview-content {
        padding: 1rem;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(66, 153, 225, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(72, 187, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(237, 137, 54, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content .video-preview {
    position: relative;
    box-shadow: 0 0 30px rgba(111, 63, 251, 0.3);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-content .video-preview img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-content .video-preview:hover img {
    transform: scale(1.02);
}

.video-preview-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    text-align: center;
}

.video-preview-content .game-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(111, 63, 251, 0.5);
    background: linear-gradient(to right, #fff, #b19eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.video-preview-content .btn-download {
    margin-top: 1rem;
    z-index: 3;
    position: relative;
}

.game-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-light);
    text-shadow: 0 0 20px var(--shadow-glow), 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.btn-download {
    background: var(--gradient-primary);
    border: 2px solid var(--primary-light);
    color: var(--text-white);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 0 20px var(--shadow-glow), 0 8px 25px var(--shadow-strong);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px var(--shadow-glow), 0 12px 40px var(--shadow-strong);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: var(--text-white);
    text-decoration: none;
    border-color: var(--secondary-light);
}

.btn-download i {
    font-size: 1rem;
    vertical-align: middle;
}

/* Sections */
section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

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

/* Feature Cards */
.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Reviews Section */
.review-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.review-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.rating {
    color: #ffd700;
}

/* FAQ Section */
.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.accordion-button {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

/* Footer - 深色主题设计 */
.footer {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-white);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    box-shadow: 0 -5px 20px var(--shadow-medium);
}

.footer h5 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links a {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

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

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: darken(var(--primary-color), 10%);
}

main {
    flex: 1;
}

.card {
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.card-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

footer {
    margin-top: auto;
}

/* Codes Grid */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.code-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.code-box h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.code-box code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    color: #fff;
    font-family: monospace;
    margin-top: 1rem;
    user-select: all;
}

/* Download Section */
.download-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--light-text);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 38, 38, 0.6);
}

.download-button i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.download-button span {
    font-size: 1.1rem;
}

.ios-button {
    background: linear-gradient(45deg, #000000, #1a1a1a);
}

.android-button {
    background: linear-gradient(45deg, #3DDC84, #2EAE66);
}

.windows-button {
    background: linear-gradient(45deg, #00A4EF, #0078D4);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    color: var(--light-text);
    text-decoration: none;
}

@media (max-width: 768px) {
    .download-grid {
        max-width: 100%;
    }
    
    .download-button {
        padding: 0.875rem;
    }
    
    .download-button i {
        font-size: 1.25rem;
    }
    
    .download-button span {
        font-size: 1rem;
    }
}

/* System Requirements Section */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.requirements-box {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.requirements-box h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li strong {
    color: var(--light-text);
    margin-right: 0.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .requirements-box {
        padding: 1rem;
    }

    .requirements-list li {
        font-size: 0.85rem;
    }
}

/* Videos Container with Other Games Sidebar */
.videos-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
}

.videos-main {
    flex: 2;
    min-width: 0;
}

.main-video {
    margin-bottom: 1.5rem;
}

.main-video .video-preview {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
}

.main-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.video-grid-small .video-card {
    background: rgba(0, 38, 38, 0.6);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-grid-small .video-card:hover {
    transform: translateY(-2px);
}

.video-grid-small .video-preview {
    aspect-ratio: 16/9;
}

.video-grid-small iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-grid-small h4 {
    padding: 0.75rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Other Games Sidebar */
.other-games-sidebar {
    flex: 1;
    min-width: 280px;
    background: rgba(0, 38, 38, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.other-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.other-game-card {
    background: rgba(0, 20, 20, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.other-game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 5;
}

.game-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--darker-bg);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-info {
    padding: 0.75rem;
}

.game-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--light-text);
    line-height: 1.2;
}

.game-description {
    font-size: 0.7rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .other-games-grid {
        grid-template-columns: 1fr;
    }

    .other-games-sidebar {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .videos-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .other-games-sidebar {
        min-width: auto;
        order: 2;
    }

    .videos-main {
        order: 1;
    }

    .video-grid-small {
        grid-template-columns: 1fr;
    }

    .other-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .sidebar-title {
        font-size: 1.1rem;
    }
}

/* Hero Section Mobile Responsive */
@media (max-width: 1200px) {
    .hero-main-content {
        max-width: 1200px;
        gap: 2rem;
    }

    .hero-games-sidebar {
        min-width: 280px;
        max-width: 350px;
    }
}

@media (max-width: 1024px) {
    .hero-main-content {
        gap: 1.5rem;
        padding: 0 0.75rem;
    }

    .hero-games-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .hero-games-sidebar {
        min-width: 240px;
        max-width: 280px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-main-content {
        flex-direction: column;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }

    .hero-games-sidebar {
        min-width: auto;
        max-width: none;
        order: 2;
    }

    .hero-content {
        order: 1;
    }

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

    .hero-section {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero-games-sidebar .sidebar-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

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

    .hero-game-card .game-title {
        font-size: 0.75rem;
    }

    .hero-games-sidebar {
        padding: 0.75rem;
    }
}

/* Game header styles */
.game-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.game-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.game-subtitle {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
    font-weight: 400;
}

/* Game Preview Card - 突出显示的iframe区域 */
.game-preview-card {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gradient-iframe-glow);
    box-shadow: 0 0 30px var(--shadow-glow), 0 8px 32px var(--shadow-strong);
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

.game-preview-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 50px var(--shadow-glow), 0 15px 60px var(--shadow-strong);
    border-color: var(--primary-light);
}

.game-preview-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 18px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Background image with blur effect for entire card */
.game-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.3);
    z-index: 0;
}

/* Game title */
.game-preview-title {
    position: relative;
    z-index: 6;
    color: var(--text-white);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Game image (not blurred) */
.game-preview-image {
    position: relative;
    z-index: 5;
    width: 300px;
    height: 169px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play button - 突出显示的游戏按钮 */
.play-game-btn {
    position: relative;
    z-index: 7;
    background: var(--gradient-primary);
    border: 2px solid var(--primary-light);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 0 20px var(--shadow-glow), 0 8px 25px var(--shadow-strong);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-game-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px var(--shadow-glow), 0 12px 40px var(--shadow-strong);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: var(--text-white);
    border-color: var(--secondary-light);
}

.play-game-btn i {
    font-size: 1rem;
    animation: playPulse 2s ease-in-out infinite;
}

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

/* Game iframe container - 突出显示 */
.game-iframe-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px var(--shadow-glow), 0 10px 40px var(--shadow-strong);
    background: var(--darker-bg);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.game-iframe-container:hover {
    box-shadow: 0 0 60px var(--shadow-glow), 0 15px 60px var(--shadow-strong);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.game-iframe-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 18px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

.game-iframe-container:hover .iframe-overlay {
    opacity: 0;
    pointer-events: none;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: var(--darker-bg);
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* iframe overlay with play indicator */
.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.play-indicator {
    text-align: center;
    color: var(--light-text);
}

.game-icon {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--shadow-glow);
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.play-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Iframe controls */
.iframe-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-iframe-container:hover .iframe-controls {
    opacity: 1;
}

.back-to-preview-btn,
.refresh-btn,
.fullscreen-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.back-to-preview-btn:hover,
.refresh-btn:hover,
.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 215, 0, 0.6);
    color: white;
}

.right-controls {
    display: flex;
    gap: 0.5rem;
}

/* Loading indicator */
.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--darker-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Download game button */
.download-game-btn {
    position: relative;
    z-index: 7;
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
}

.download-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary-color));
}

.download-game-btn i {
    margin-right: 0.5rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 1200px) {
    .hero-main-content {
        gap: 1.5rem;
    }

    .hero-games-sidebar {
        min-width: 280px;
        max-width: 320px;
    }
}

@media (max-width: 1024px) {
    .hero-games-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .hero-games-sidebar {
        min-width: 240px;
        max-width: 280px;
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-main-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 0.75rem;
    }

    .hero-games-sidebar {
        min-width: auto;
        max-width: none;
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    .game-iframe-container,
    .game-preview-card {
        border-radius: 10px;
        aspect-ratio: 16/10; /* 在中等屏幕上使用稍微更高的比例 */
        min-height: 300px; /* 确保中等屏幕有足够高度 */
    }

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

    .game-subtitle {
        font-size: 0.9rem;
    }

    .game-preview-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .game-preview-image {
        width: 250px;
        height: 141px;
        margin-bottom: 1rem;
    }

    .play-game-btn,
    .download-game-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .hero-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        max-height: 400px;
    }

    .hero-games-sidebar .sidebar-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* 确保iframe在中等屏幕上有足够的高度 */
    .game-iframe {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.5rem;
    }

    .game-preview-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .game-preview-image {
        width: 200px;
        height: 113px;
        margin-bottom: 0.75rem;
    }

    .play-game-btn,
    .download-game-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-height: 350px;
    }

    .hero-game-card .game-title {
        font-size: 0.7rem;
    }

    .hero-games-sidebar {
        padding: 1rem;
    }

    .game-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .play-text {
        font-size: 1rem;
    }

    /* 移动端iframe容器高度优化 */
    .game-iframe-container,
    .game-preview-card {
        aspect-ratio: 4/3; /* 在小屏幕上使用更方形的比例，提供更多高度 */
        min-height: 250px; /* 确保最小高度 */
    }

    /* 确保iframe在小屏幕上有足够的高度 */
    .game-iframe {
        min-height: 250px;
    }
}

/* 超小屏幕优化 (320px - 400px) */
@media (max-width: 400px) {
    .game-iframe-container,
    .game-preview-card {
        aspect-ratio: 1/1; /* 在超小屏幕上使用正方形比例 */
        min-height: 280px; /* 增加最小高度 */
        margin-bottom: 1rem;
    }

    .game-iframe {
        min-height: 280px;
    }

    .hero-section {
        padding: 80px 0 30px; /* 减少上下padding */
    }

    .game-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .game-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}