/* ===== header.php 专属样式 ===== */

/* 用户栏：个人中心 */
.header-user .user-profile {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: 0.2s;
}
.header-user .user-profile:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 强制覆盖搜索框样式，使其变短 */
.header-search {
    max-width: 120px !important;
    flex: 0 0 auto !important;
}
.header-search input {
    width: 90px !important;
    min-width: 60px !important;
    font-size: 13px !important;
    padding: 4px 6px !important;
}
.header-search .search-count {
    display: none !important;
}

/* 用户栏样式 */
.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.header-user .user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.header-user .user-login,
.header-user .user-register,
.header-user .user-logout {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
}
.header-user .user-login:hover,
.header-user .user-register:hover,
.header-user .user-logout:hover {
    background: rgba(255, 255, 255, 0.25);
}
.header-user .user-logout {
    background: #e74c3c;
}
.header-user .user-logout:hover {
    background: #c0392b;
}

/* ===== header-sub：切换胶囊 + 微信号 ===== */
.header-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
.header-wechat {
    font-size: 11px;
    opacity: 0.65;
}

/* ===== 北单/竞彩切换胶囊 ===== */
.switch-pill {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 3px;
    position: relative;
}
.switch-pill .switch-item {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.25s ease;
    line-height: 1.4;
    white-space: nowrap;
}
.switch-pill .switch-item:hover {
    color: #fff;
}
.switch-pill .switch-item.active {
    background: #ffd700;
    color: #152f52;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.35);
}

/* ===== 今日推荐 / 赛事直播 / 开奖结果 按钮组 ===== */
.recommend-btn-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 10px 12px 0;
}
.recommend-btn-wrap .btn {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
}
.recommend-btn-wrap .btn-live {
    background: #e74c3c;
    color: #fff;
}
.recommend-btn-wrap .btn-results {
    background: #27ae60;
    color: #fff;
}

/* ===== 登录/注册模态框 ===== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 16px;
    max-width: 360px;
    width: 90%;
    position: relative;
}
.auth-content .close {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}
.auth-content input {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}
.auth-content button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}
#authSwitchLink {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: #888;
}
#authSwitchLink a {
    color: #152f52;
    font-weight: 600;
    text-decoration: none;
}
#authMessage {
    color: #e74c3c;
    margin-top: 8px;
    text-align: center;
}

/* ===== 小屏手机适配 ===== */
@media screen and (max-width: 600px) {
    .calculator {
        max-height: 75vh !important;
        padding: 12px 10px 16px !important;
        height: auto !important;
        overflow-y: auto !important;
    }
    .calc-row {
        gap: 6px !important;
        margin-top: 4px !important;
    }
    .calc-label {
        font-size: 15px !important;
    }
    .calc-odds-display {
        font-size: 15px !important;
        padding: 6px 12px !important;
        min-width: 70px !important;
    }
    .calc-input-group input {
        width: 70px !important;
        font-size: 16px !important;
        padding: 6px 8px !important;
    }
    .btn {
        font-size: 14px !important;
        padding: 6px 14px !important;
    }
    .calc-result {
        font-size: 18px !important;
        min-width: 80px !important;
    }
    .bet-amount-display {
        font-size: 15px !important;
    }
    .selected-header {
        font-size: 14px !important;
        padding: 6px 8px !important;
    }
    .selected-list {
        font-size: 14px !important;
        padding: 4px 8px !important;
    }
    .selected-item {
        font-size: 14px !important;
        padding: 4px 0 !important;
    }
    .selected-item .results {
        font-size: 18px !important;
    }
    .selected-item .del::before {
        content: '✕' !important;
        font-size: 18px !important;
    }
    .selected-item .del {
        font-size: 0 !important;
    }
    .mode-dropdown {
        min-width: 180px !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .mode-dropdown .mode-item {
        font-size: 13px !important;
        padding: 6px 4px !important;
    }
    /* 手机端用户栏适当缩小 */
    .header-user .user-name {
        font-size: 12px;
    }
    .header-user .user-login,
    .header-user .user-register,
    .header-user .user-logout {
        font-size: 11px;
        padding: 2px 10px;
    }
    /* 手机端切换胶囊缩小 */
    .switch-pill .switch-item {
        padding: 3px 12px;
        font-size: 12px;
    }
}