/* ============================================================
   Tab 容器公共样式（澳大利亚 / 香港 / 澳門 六合彩）
   所有页面统一引用本文件，修改一处即可全站生效
   ============================================================ */

/* ===== Tab 导航 ===== */
.tabs {
    --theme: #e60012;
    display: flex;
    gap: 3px;
    position: relative;
    padding-top: 4px;
    margin-top: 6px;
}

.tabs::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--theme);
}

.tab {
    padding: 5px 5px;
    color: #999;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
    position: relative;
    transition: color .2s ease;
    border: none;
    border-right: 1px solid #d9d9d9;
}

.tab::before {
    content: "";
    position: absolute;
    top: 0; left: 4px; right: 0;
    height: 1px;
    background: #d9d9d9;
}

.tab::after {
    content: "";
    position: absolute;
    top: 4px; left: 0; bottom: 0;
    width: 1px;
    background: #d9d9d9;
}

.tab.active {
    border: 1px solid var(--theme);
    border-bottom: none;
    color: var(--theme) !important;
    background: #fff !important;
    font-weight: bold;
    z-index: 1;
}

.tab.active::before,
.tab.active::after {
    display: none;
}

.tab-panel {
    display: none;
    background: #fff;
}

.tab-panel.active {
    display: block;
    background-color: #fff !important;
    color: #000 !important;
}

.tab-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* 隐藏国家标签 */
.country-tags-container {
    display: none !important;
}

/* ===== 香港 / 澳門 开奖区域容器 ===== */
.am-numbers-section,
.hk-numbers-section {
    margin: 0;
    padding: 9px 9px 6px;
    background: transparent;
    border-radius: 0;
    display: block;
    position: relative;
    z-index: 10;
}

.hk-numbers-section .hk-frame,
.am-numbers-section .hk-frame {
    display: block;
    width: 100%;
    height: 160px;
    border: 0;
    background: #fff;
}

/* 手机端：用 transform 等比缩小（兼容性比 zoom 好），避免号码被裁掉 */
@media (max-width: 768px) {
    .hk-numbers-section,
    .am-numbers-section {
        overflow: hidden;
    }

    .hk-numbers-section .hk-frame,
    .am-numbers-section .hk-frame {
        width: 117.6%;
        height: 165px;
        transform: scale(0.85);
        transform-origin: top left;
        margin-bottom: -24.75px;
    }
}
