﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #333;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.kj-font-red {
    color: #e60000 !important;
}

/* 主容器 */
.new-KJ-TabBox-box {
    width: 100%;
    padding: 6px 10px 8px;
}

/* 顶部 */
.new-KJ-TabBox-box-tit {
    display: flex;
    align-items: center;
    min-height: 32px;
    line-height: 32px;
    font-size: 19px;
}

.new-KJ-TabBox-box-tit-l {
    white-space: nowrap;
}

.new-KJ-TabBox-box-tit-m {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.new-KJ-TabBox-box-tit-r {
    white-space: nowrap;
}

/* 球区域 */
.new-KJ-TabBox-box-con {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 6px;
}

/* 外层 */
.ball-wrap {
    flex: 1;
    min-width: 0;
}

/* 球+生肖 */
.kj-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 球 */
.kj-ball {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.2),
        inset 0 -6px 10px rgba(0,0,0,.15);
}

/* 白心 */
.kj-ball::before {
    content: "";
    position: absolute;
    width: 68%;
    height: 68%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #f5f5f5 70%, #eaeaea 100%);
    z-index: 2;
}

/* 切面 */
.kj-ball::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 25% at 20% 20%, rgba(255,255,255,.35) 0%, transparent 60%),
        radial-gradient(ellipse 40% 25% at 80% 20%, rgba(255,255,255,.35) 0%, transparent 60%);
}

/* 数字 */
.ball-num {
    position: relative;
    z-index: 3;
    font-size: 30px;
    font-weight: 900;
    color: #000;
}

/* 生肖 */
.ball-bottom {
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

/* 球颜色 */
.redball { background: linear-gradient(#ff6b6b, #e60000); }
.blueball { background: linear-gradient(#7ea7ff, #2c5fe2); }
.greenball { background: linear-gradient(#52e38a, #10a63f); }
.waitingball { background: linear-gradient(#555, #111); }

/* +号 */
.kj-add {
    flex: 0 0 18px;
    width: 18px;
    text-align: center;
    font-size: 30px;
    color: #999;
    padding-top: 10px;
}

/* ⭐ 底部（关键修复） */
.new-KJ-TabBox-box-foot {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ⭐固定左右 */
    font-size: 17px;
}

.new-KJ-TabBox-box-foot-l {
    flex: 1;
    min-width: 0;
    line-height: 24px;
}

.new-KJ-TabBox-box-foot-r {
    flex-shrink: 0;
}

/* ⭐ 刷新按钮 */
.new-KJ-TabBox-box-foot-r-sx {
    display: inline-block;
    min-width: 46px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    color: #fff;
    border-radius: 6px;
    background: linear-gradient(to bottom, #ffb347, #ff7a00);
    box-shadow:
        0 2px 4px rgba(0,0,0,.2),
        inset 0 1px 0 rgba(255,255,255,.4);
    font-size: 14px;
    padding: 0 10px;
    transition: all .2s;
}

.new-KJ-TabBox-box-foot-r-sx:active {
    transform: translateY(1px);
}

/* ================= 手机 ================= */
@media (max-width: 480px) {

    .new-KJ-TabBox-box {
        padding: 4px 4px 6px;
    }

    .new-KJ-TabBox-box-tit {
        font-size: 15px;
        min-height: 22px;
        line-height: 22px;
    }

    .new-KJ-TabBox-box-con {
        gap: 3px;
        margin: 2px 0 5px;
    }

    .ball-num {
        font-size: 22px;
    }

    .ball-bottom {
        font-size: 13px;
        margin-top: 3px;
    }

    .kj-add {
        flex-basis: 12px;
        width: 12px;
        font-size: 20px;
        padding-top: 8px;
    }

    .new-KJ-TabBox-box-foot {
        font-size: 14px;
    }

    .new-KJ-TabBox-box-foot-r-sx {
        min-width: 42px;
        height: 24px;
        line-height: 24px;
        font-size: 13px;
    }
}