/* ⚠️ AI必须从目标站提取配色后替换以下变量 */
/* 禁止直接复制 raaz 或 muskan.uk 的配色 */
/* 底部导航栏 - 桌面端默认隐藏 */
.bottom-nav {
  display: none;
}
:root {
  --primary: #e31e24;
  --primary-dark: #c0191e;
  --bg-page: #ffffff;
  --bg-card: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }

/* ⚠️ AI必须根据目标站布局，在下方补充完整样式 */
/* 包括但不限于：导航、按钮、卡片网格、FAQ、页脚、移动端适配 */

/* ⚠️ 以下所有变量必须由AI从目标站提取后填充 */
:root {
  --primary-hover: #cc1b20;
  --bg-elevated: #ffffff;
  --bg-surface: #ffffff;
  --text-muted: #9ca3af;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --radius-sm: 4px;
  --radius-xl: 12px;
  --shadow-lg: rgba(0, 0, 0, 0.1);
  --header-height: {{70px}};
  --bottom-nav-height: {{60px}};
}

/* ⚠️ AI必须根据目标站补充以下完整样式 */
/* 页头导航样式 */
/* 游戏卡片网格样式 */
/* 新闻卡片样式 */
/* FAQ折叠样式 */
/* 页脚样式 */
/* 移动端底部导航样式 */
/* 按钮样式（primary, secondary, accent, outline） */
/* 语言切换器样式 */
/* 面包屑导航样式 */
/* 中奖信息列表样式 */
/* 排行榜样式 */
/* 模拟评论区样式 */
/* 聚合问答页样式 */
/* CTA卡片样式 */
/* 统计卡片样式 */
/* 合作伙伴支付图标样式 */
/* ============================================
   移动端响应式样式 - 纯血统模板
   ============================================ */

/* 移动端菜单样式 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 移动端导航菜单 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height, 60px);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height, 60px));
        background: var(--bg-elevated);
        flex-direction: column;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.nav-open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-actions {
        flex-direction: column;
        margin-top: 20px;
        gap: 10px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* 移动端侧边栏 */
@media (max-width: 768px) {
    .sidebar-mobile-bottom {
        order: 999;
        margin-top: 30px;
    }
}

/* 移动端网格 */
@media (max-width: 992px) {
    .games-grid.cols-4,
    .articles-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .games-grid.cols-4,
    .articles-grid.cols-3,
    .games-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* 移动端字体 */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
    
    /* 移动端按钮 */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 移动端卡片 */
    .game-card .game-name {
        font-size: 14px;
    }
    
    .game-card .game-desc {
        font-size: 12px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大点击区域 */
    .btn,
    .game-card a,
    .article-card a,
    .nav-list a,
    .footer-links a,
    .social-icon,
    .faq-question,
    .comment-reply-btn,
    .tab-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* 移除悬停效果（触摸屏不需要） */
    .game-card:hover,
    .article-card:hover {
        transform: none;
    }
    
    /* 添加触摸反馈 */
    .btn:active,
    .game-card:active,
    .nav-list a:active {
        opacity: 0.7;
        transition: opacity 0.1s;
    }
}

/* 移动端底部导航栏（可选，APP 式体验） */
@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        display: flex;
        justify-content: space-around;
        padding: 8px 16px;
        border-top: 1px solid var(--border-light);
        z-index: 1000;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: var(--text-secondary);
        text-decoration: none;
        padding: 6px 12px;
        border-radius: var(--radius-md);
    }
    
    .bottom-nav-item.active {
        color: var(--primary);
    }
    
    .bottom-nav-icon {
        font-size: 20px;
    }
    
    /* 为底部导航预留空间 */
    body {
        padding-bottom: 70px;
    }
    
    /* 隐藏桌面端导航中的某些元素 */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--bg-page);
    }
}