/* 游戏页面基础样式 - 通用样式 */
:root { 
    --primary-color: #9b59b6; 
    --accent-color: #ff7b54; 
    --text-color: #2d3748;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.06);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ec 100%); 
    color: var(--text-color); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden; 
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* 主要内容区域 */
.main-content { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    flex: 1; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.breadcrumb { 
    margin-bottom: 20px; 
    font-size: 0.9rem; 
}

.breadcrumb a { 
    color: var(--primary-color); 
    text-decoration: none; 
}

.breadcrumb a:hover { 
    text-decoration: underline; 
}

/* 游戏头部基础样式 */
.game-header { 
    background: var(--white); 
    border-radius: 16px; 
    box-shadow: 0 4px 20px var(--shadow-light); 
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

/* 游戏图标大样式 */
.game-icon-large { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 20px; 
    font-size: 3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-details { 
    flex: 1;
}

.game-details h1 { 
    color: var(--text-color); 
    font-weight: 700; 
    margin-bottom: 10px;
}

.play-btn { 
    background: var(--accent-color); 
    color: var(--white); 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    border: none; 
    cursor: pointer; 
    padding: 12px 24px;
    font-size: 1rem;
}

.play-btn:hover { 
    background: #ff6a3c; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(255, 123, 84, 0.3);
}

/* 游戏框架容器基础样式 */
.game-frame-container { 
    background: var(--white); 
    border-radius: 16px; 
    box-shadow: 0 4px 20px var(--shadow-light); 
}

.game-frame { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

/* 游戏信息区域基础样式 */
.game-info-section { 
    background: var(--white); 
    border-radius: 16px; 
    box-shadow: 0 4px 20px var(--shadow-light); 
}

.info-card { 
    background: var(--light-bg); 
    border-radius: 12px; 
}

.info-card h3 { 
    color: var(--primary-color); 
}

/* ============================
   注入的游戏正文内容样式
   ============================ */
.game-content h2,
.faq-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 24px 0 12px;
}

.game-content h2:first-child {
    margin-top: 0;
}

.game-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 20px 0 8px;
}

.game-content p,
.faq-section p {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 12px;
}

.game-features,
.related-games {
    padding-left: 20px;
    margin: 8px 0 16px;
}

.game-features li,
.related-games li {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 6px;
}

.related-games li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.related-games li a:hover {
    text-decoration: underline;
}

.faq-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.faq-section h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin: 16px 0 6px;
}

.last-updated {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #a0aec0;
    text-align: right;
}

/* ============================
   广告样式 - 从 styles.css 同步
   ============================ */

/* 广告容器基本样式 */
.ad-section {
    margin: 25px auto;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    min-height: 10px;
    background: transparent;
    border: none;
}

/* 广告标签样式 */
.ad-label {
    display: inline-block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 2px 6px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    font-weight: 400;
    opacity: 0.7;
}

/* 顶部横幅广告特定样式 */
#ad-top-banner {
    margin: 15px auto 25px auto;
    padding: 15px;
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* 底部横幅广告特定样式 */
#ad-bottom-banner {
    margin: 30px auto;
    padding: 20px;
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* 响应式广告容器 */
.adsbygoogle {
    display: block;
    margin: 0 auto;
}

/* 广告样式修正 */
.adsbygoogle[data-ad-format="auto"] {
    width: 100%;
    height: auto;
    min-height: 90px;
}

/* 特定广告槽 */
.adsbygoogle[data-ad-slot="7804819814"] {
    width: 100%;
    height: auto;
    min-height: 90px;
    max-width: 100%;
}

.adsbygoogle[data-ad-slot="1659048015"] {
    width: 100%;
    height: auto;
    min-height: 90px;
    max-width: 100%;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .ad-section {
        margin: 20px auto;
        padding: 12px;
    }
    
    #ad-bottom-banner {
        margin: 25px auto;
        padding: 15px;
    }
    
    #ad-top-banner {
        margin: 10px auto 20px auto;
        padding: 12px;
    }
    
    .adsbygoogle[data-ad-slot="7804819814"],
    .adsbygoogle[data-ad-slot="1659048015"] {
        height: auto;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .ad-section {
        margin: 15px auto;
        padding: 10px;
    }
    
    #ad-bottom-banner {
        margin: 20px auto;
        padding: 12px;
        background-color: transparent;
        border: none;
    }
    
    #ad-top-banner {
        margin: 8px auto 15px auto;
        padding: 10px;
        background-color: transparent;
        border: none;
    }
    
    /* 移动设备上隐藏广告标签或简化 */
    .ad-label {
        font-size: 10px;
        padding: 2px 6px;
        margin-bottom: 8px;
        opacity: 0.6;
    }
    
    /* 响应式调整 */
    .adsbygoogle[data-ad-slot="7804819814"] {
        height: auto;
        min-height: 60px;
    }
    
    .adsbygoogle[data-ad-slot="1659048015"] {
        height: auto;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .ad-section {
        margin: 12px auto;
        padding: 8px;
    }
    
    #ad-bottom-banner {
        margin: 15px auto;
        padding: 10px;
    }
    
    #ad-top-banner {
        margin: 5px auto 12px auto;
        padding: 8px;
    }
    
    .adsbygoogle[data-ad-slot="7804819814"] {
        height: auto;
        min-height: 60px;
    }
    
    .adsbygoogle[data-ad-slot="1659048015"] {
        height: auto;
        min-height: 50px;
    }
    
    .ad-label {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* 广告状态指示器 */
.adsbygoogle[data-ad-status="unfilled"] {
    min-height: 0;
    height: 0;
    overflow: hidden;
}

/* 广告容器悬停效果 */
.ad-section:hover {
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* ============================
   原有样式继续保留
   ============================ */

/* 移动端优化 - 保留原有部分 */
@media (max-width: 768px) {
    /* 确保广告不超出屏幕 */
    .adsbygoogle {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* 推荐游戏基础样式 */
.recommended-games-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
}

.recommended-game-card {
    background: var(--light-bg);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.recommended-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.recommended-game-icon {
    color: var(--primary-color);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 2px 10px var(--shadow-medium);
}

/* 页脚基础样式 */
footer {
    text-align: center;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}