/*
Theme Name: fotpro
Author: fot.cc
Version: 2.0
Description: 沉浸式 AI 体育直播主题 - 极速/黑金/盈利导向
*/

/* --- 1. 全局定义与重置 --- */
:root {
    --fot-green: #00ff88;   /* 电光绿 */
    --bg-dark: #0b0e11;     /* 深渊黑 */
    --bg-card: #181a20;     /* 卡片深灰 */
    --text-gray: #848e9c;   /* 次要文字灰 */
    --border-color: #1c2026;
}

body {
    background-color: var(--bg-dark) !important;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* --- 2. Header 顶部导航 (电脑+手机) --- */
header, .header-main {
    background: var(--bg-dark) !important;
    border-bottom: 1px solid var(--border-color) !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Logo 颜色控制 */
.logo-box a { 
    text-decoration: none !important; 
    font-weight: 900 !important; 
    font-size: 26px !important;
    display: flex;
    align-items: center;
    letter-spacing: -1.5px;
}
.fot-part, .fot-text { color: var(--fot-green) !important; }
.cc-part, .cc-text { color: #ffffff !important; }

/* WP 原生菜单样式 */
.nav-container ul, .nav-links { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}
.nav-container li, .nav-links a { 
    margin-left: 25px !important; 
    color: var(--text-gray) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: 0.3s;
}
.nav-container a:hover, .nav-links a:hover { color: var(--fot-green) !important; }

/* 自动将最后一个菜单项设为绿色按钮 (登录按钮) */
.nav-container li:last-child a, .btn-login {
    color: var(--fot-green) !important;
    border: 1px solid var(--fot-green) !important;
    padding: 5px 15px !important;
    border-radius: 4px !important;
}

/* --- 3. 首页沉浸式布局 --- */
.fot-immersive-layout {
    display: flex;
    width: 100vw;
    height: calc(100vh - 60px);
    background: var(--bg-dark);
}

.live-main-theater {
    flex: 1;
    position: relative;
    background: #000;
}

.video-window { width: 100%; height: 100%; position: relative; }
.video-window iframe { width: 100%; height: 100%; display: block; }

/* 侧边栏红单区 */
.bet-side-panel {
    width: 380px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.recommend-scroll-area { flex: 1; overflow-y: auto; padding: 15px; }

/* AI 卡片样式 */
.bet-card {
    background: #22262e;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #2b3039;
    position: relative;
}
.bet-card.highlight { border-left: 4px solid var(--fot-green); }

/* --- 4. 手机端专项优化 (关键修正) --- */
@media (max-width: 1024px) {
    /* 1. Header 压缩，给内容留空间 */
    header, .header-main {
        height: 50px !important;
        padding: 0 10px !important;
    }
    .logo-box a { font-size: 20px !important; }

    /* 2. 直播区域：占手机屏幕高度的 78% (约 80%) */
    .live-main-theater {
        width: 100% !important;
        height: 78vh !important; /* 核心调整：占据绝大部分视野 */
        flex: none !important;
    }

    /* 3. 首页布局转为上下堆叠 */
    .fot-immersive-layout {
        flex-direction: column !important;
        height: auto !important;
    }

    /* 4. 红单区在下方露出顶部 (Peek) */
    .bet-side-panel {
        width: 100% !important;
        border-left: none !important;
        border-top: 2px solid var(--border-color) !important;
        background: var(--bg-dark) !important;
    }

    /* 5. 导航简化：只保留最后两个（如：比分+登录） */
    .nav-container li:not(:last-child):not(:nth-last-child(2)) {
        display: none !important;
    }
    
    /* 切换按钮大小微调 */
    .nav-arrow {
        font-size: 28px !important;
        padding: 15px 5px !important;
    }
}

/* --- 5. Footer 专业黑金底部 (居中) --- */
.bet-footer {
    background: #121418 !important;
    color: #555 !important;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    width: 100%;
    clear: both;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 电脑版彻底居中 */
    text-align: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0.4;
}

.footer-brand-gray {
    font-size: 24px;
    font-weight: 900;
    color: #333 !important; /* 品牌置灰，不抢戏 */
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-legal-centered p {
    font-size: 11px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
    max-width: 800px;
}

.lottery-logo-text {
    border: 1px solid #444;
    padding: 2px 10px;
    font-size: 13px;
    color: #444;
}