/*
 * 网站4首页/资料子页面共用开奖框样式。
 * 旧浏览器先使用固定 px；新浏览器再用 clamp() 连续自适应。
 * 彩种按钮不使用 flex-gap / CSS Grid，兼容旧版 Android WebView。
 */
.site4-shared-lottery-card {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 3px;
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: #fff;
}

.site4-shared-lottery-card .tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    width: auto;
    gap: 0;
    margin: 0 -1px 15px;
    padding: 0;
    overflow: hidden;
}

.site4-shared-lottery-card .tab {
    display: block;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0%;
    flex: 1 1 0%;
    width: 25%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 1px;
    padding: 8px 1px;
    border: 0;
    border-radius: 20px;
    outline: 0;
    background: #f3f3f3;
    color: #666;
    font-family: inherit;
    font-size: 12px;
    font-weight: normal;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.site4-shared-lottery-card .tab.active {
    background: #26b918;
    color: #fff;
}

@supports (font-size: clamp(10px, 3vw, 13px)) {
    .site4-shared-lottery-card .tab {
        font-size: clamp(11px, 3.05vw, 13px);
    }
}

.site4-shared-lottery-card .lottery-top-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    column-gap: 0;
    width: 100%;
    margin-bottom: 8px;
}

.site4-shared-lottery-card .lottery-top-row > * + * {
    margin-left: 12px;
}

@supports (display: grid) {
    .site4-shared-lottery-card .lottery-top-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        column-gap: 12px;
    }

    .site4-shared-lottery-card .lottery-top-row > * + * {
        margin-left: 0;
    }
}

.site4-shared-lottery-card .issue {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #333;
    font-size: 16px;
    font-size: var(--lottery-head-font-size, 16px);
    font-weight: normal;
    font-weight: var(--lottery-head-font-weight, normal);
    line-height: 24px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site4-shared-lottery-card .lottery-countdown {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 0;
    color: #111;
    font-size: 16px;
    font-size: var(--lottery-head-font-size, 16px);
    font-weight: bold;
    font-weight: var(--lottery-head-font-weight, bold);
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
}

.site4-shared-lottery-card .history-link {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: inline-block;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f44336;
    font-family: inherit;
    font-size: 16px;
    font-size: var(--lottery-head-font-size, 16px);
    font-weight: normal;
    font-weight: var(--lottery-head-font-weight, normal);
    line-height: 24px;
    text-align: right;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.site4-shared-lottery-card .lottery-bottom-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

@supports (display: grid) {
    .site4-shared-lottery-card .lottery-bottom-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.site4-shared-lottery-card .lottery-next-info {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    font-size: 14px;
    font-size: var(--lottery-sub-font-size, 14px);
    font-weight: normal;
    font-weight: var(--lottery-sub-font-weight, normal);
    line-height: 22px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site4-shared-lottery-card .lottery-refresh-btn {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    min-width: 42px;
    height: 24px;
    padding: 0 7px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    outline: 0;
    background: #ff9800;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-size: var(--lottery-sub-font-size, 14px);
    font-weight: normal;
    font-weight: var(--lottery-sub-font-weight, normal);
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.site4-shared-lottery-card .lottery-refresh-btn:active {
    opacity: .7;
}

@media (max-width: 380px) {
    .site4-shared-lottery-card .tab {
        padding-left: 0;
        padding-right: 0;
        font-size: 11px;
    }

    .site4-shared-lottery-card .issue,
    .site4-shared-lottery-card .lottery-countdown,
    .site4-shared-lottery-card .history-link {
        font-size: 13px;
    }

    .site4-shared-lottery-card .lottery-next-info,
    .site4-shared-lottery-card .lottery-refresh-btn {
        font-size: 12px;
    }

    .site4-shared-lottery-card .lottery-refresh-btn {
        min-width: 38px;
        padding-left: 5px;
        padding-right: 5px;
    }
}
