* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    overflow: hidden;
}

.kj-bar {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #11bca7;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.KJ-TabBox.kj-bar {
    height: 200px;
}

.kj-tabs {
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    margin: 0;
    list-style: none;
    background: #f5f5f5;
}

.kj-tabs li {
    flex: 1;
    height: 36px;
    line-height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #efe7dd 0%, #d3b594 100%);
    color: #7d5531;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.kj-tabs li.cur {
    background: #fff;
    color: #e60012;
    box-shadow: inset 0 0 0 1px #eadfce;
}

.KJ-TabBox .KJ-IFRAME {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

.kj-panel {
    height: 100%;
    padding: 0;
    font-size: 12px;
    color: #333;
    background: #fff;
}

.kj-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px 4px;
    font-size: 12px;
    background: #fff;
    border-bottom: 1px solid #efefef;
    white-space: nowrap;
}

.kj-headline .issue {
    color: #333;
}

.kj-headline .issue em,
.kj-nextline em {
    font-style: normal;
    font-weight: 700;
}

.kj-headline .countdown {
    flex: 1;
    text-align: center;
    color: #e60012;
    font-weight: 700;
}

.kj-headline .history {
    color: #12a061;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.kj-balls-wrap {
    position: relative;
    overflow: hidden;
    background: #f3f3f3;
    padding: 4px 6px 6px;
}

.kj-reveal-bar {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: #e5e5e5;
    transform: translateX(0);
    transition: transform 0.55s ease-in;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.kj-reveal-bar.is-visible {
    opacity: 1;
    visibility: visible;
}

.kj-reveal-bar.is-leaving {
    transform: translateX(-110%);
}

.kj-draw-countdown {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(243, 243, 243, 0.96);
    text-align: center;
    pointer-events: none;
}

.kj-draw-countdown.is-visible {
    display: flex;
}

.kj-draw-countdown .kj-cd-title,
.kj-draw-countdown .kj-cd-num {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #e60012;
    line-height: 1;
    letter-spacing: 1px;
    font-family: Tahoma, Geneva, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.kj-draw-countdown .kj-cd-num {
    display: inline-block;
    min-width: 2ch;
    width: 2ch;
    text-align: right;
    white-space: pre;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    font-family: Consolas, "Courier New", Tahoma, monospace;
}

.kj-balls-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 68px;
    transform: translateX(0);
    will-change: transform;
}

.kj-balls-row.is-slide-out-left {
    transition: transform 0.5s ease-in;
    transform: translateX(-110%);
}

.kj-balls-row.is-slide-in-from-right {
    transition: none;
    transform: translateX(110%);
}

.kj-balls-row.is-slide-in-right {
    transition: transform 0.5s ease-out;
    transform: translateX(0);
}

.kj-ball {
    flex: 0 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transform-origin: center bottom;
}

.kj-ball.is-hidden,
.kj-add.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.2);
}

.kj-ball.is-pop,
.kj-add.is-pop {
    animation: kj-ball-pop 0.45s ease-out both;
}

.kj-ball.is-reveal {
    animation: kj-ball-reveal 0.45s ease-out both;
}

.kj-ball h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 37px;
    margin: 0 auto 3px;
    padding: 0;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 37px;
    font-family: Tahoma, Geneva, sans-serif;
    background: 0 0 no-repeat;
    background-size: 100% 100%;
}

.kj-ball h2.ball-red {
    background-image: url(/skin/images/kj-ball-red.png);
}

.kj-ball h2.ball-blue {
    background-image: url(/skin/images/kj-ball-blue.png);
}

.kj-ball h2.ball-green {
    background-image: url(/skin/images/kj-ball-green.png);
}

.kj-ball h2.ball-gray {
    background-image: url(/skin/images/kj-ball-gray.png);
}

.kj-ball .whsx {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.15;
    color: #666;
    background: transparent;
    padding: 0;
    border-radius: 0;
    height: auto;
}

.kj-add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    padding-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin: 0 !important;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transform-origin: center center;
}

@keyframes kj-ball-pop {
    0% {
        opacity: 0;
        visibility: visible;
        transform: scale(0.2);
    }
    70% {
        opacity: 1;
        visibility: visible;
        transform: scale(1.12);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
}

@keyframes kj-ball-reveal {
    0% {
        opacity: 0.35;
        transform: scale(0.72);
    }
    55% {
        opacity: 1;
        transform: scale(1.12);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.kj-nextline {
    padding: 7px 8px 8px;
    color: #e60012;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    border-top: 1px solid #efefef;
}

.kj-nextline .time {
    color: #e60012;
}

.kj-refresh {
    display: inline-block;
    padding: 2px 8px;
    color: #12a061;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.kj-font-red {
    color: #e60012 !important;
}

@media screen and (max-width: 380px) {
    .kj-balls-row {
        gap: 2px;
        padding: 0 2px;
    }

    .kj-ball {
        flex-basis: 31px;
    }

    .kj-ball h2 {
        width: 31px;
        height: 34px;
        font-size: 15px;
        line-height: 34px;
    }

    .kj-ball .whsx {
        font-size: 10px;
    }

    .kj-tabs li {
        font-size: 13px;
    }

    .kj-headline {
        gap: 6px;
        font-size: 11px;
    }
}

.domain-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    min-height: 40px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #fffdf4 0%, #f8e6a3 100%);
    border-top: 1px solid #11bca7;
    border-bottom: 1px solid #d3b594;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.domain-banner-mark {
    color: #782d09;
}

.domain-banner-num {
    font-size: 16px;
}

.domain-banner-red {
    color: #e60012;
}

.domain-banner-blue {
    color: #0000ff;
}

.domain-banner-green {
    color: #008000;
}

.domain-notice {
    display: flex;
    overflow: hidden;
    border: 1px solid #11bca7;
    border-radius: 6px;
    background: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.domain-notice-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 66px;
    padding: 6px 4px;
    color: #fff5cf;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(180deg, #917843 0%, #b88a27 100%);
    flex: 0 0 52px;
}

.domain-notice-body {
    flex: 1;
    min-width: 0;
}

.domain-notice-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    min-height: 33px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.domain-notice-line-title {
    background: linear-gradient(180deg, #fffdf4 0%, #f8e6a3 100%);
    border-bottom: 1px solid #efefef;
}

.domain-notice-line:last-child {
    background: #fff;
}

.domain-notice-arrow {
    max-width: 18px;
    height: auto;
    margin-right: 4px;
}
