



.main-lottery-section {
   /* position: fixed;*/
    /*top: 0;
    /*left: 50%;
    /*transform: translateX(-50%);  /* 水平居中 */
    width: 100%;
    padding: 2px 0px;
    /*z-index: 9999;*/
    border-radius: 0 0 2px 2px;
   /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);*/
    box-sizing: border-box;
    margin-top:2px;

    
   
}

/* ============================================================
   区域6：Tab 选项卡栏（<div class="tab-row">）
   ============================================================ */
.tab-row {
    background: #f5f5f5;
    padding: 4px 4px 0 4px;    /* 上 右 下 左 → 下边距设为0 */
    display: flex;
    overflow: hidden;
    /*border-top-left-radius: 8px;*/
    /*border-top-right-radius: 8px;*/
}

.tab-item {
    background: #fff;
    flex: 1;
    text-align: center;
    padding: 1px 0px;
    cursor: pointer;
    display: flex;
    flex-direction: column;  /* 纵向排列 */
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--jbs2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 6px;        /* 加这行，右边距产生间隔 */
}

.tab-item:last-child {
    margin-right: 0;          /* 最后一个不要右边距 */
}



.tab-item.active {              /* JS 控制激活状态 */
    background: var(--jbs2);
    color: var(--fff);

}

.tab-item.active * {            /* 所有子元素都继承白色 */
    color: var(--fff);
}





.first-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2e2e2e;
    
}





.dat{font-size:11px;
    color: #c4c4c4;
}


/* ============================================================
   区域7：内容板块切换（.section / #aoda / #xianggang / #aomen）
   ============================================================ */
.section {                      /* <div class="section"> */
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {               /* JS 控制显示当前板块 */
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   区域8：开奖内容容器（<div class="lottery-content">）
   ============================================================ */
.lottery-content {
    border: solid 1px var(--jbs1);
    width: 100%;
    background: var(--fff);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 10px 4px;
    margin-top: -1px;
    text-align: center;

}

/* ============================================================
   区域9：标题行（<div class="title-row">）
   包含：图标、期号、"开奖记录"按钮
   ============================================================ */
.title-row {
    padding: 0 5px;
    text-align: left;
    overflow: hidden;
    margin-bottom: 5px;
}

.img {                          /* <img class="img"> 小图标 */
    width: 26px;
    height: 26px;
    vertical-align: middle;
}

#zb {
    position: relative;             /* 加这一行 */
    background: #000000;
    padding: 0px 20px;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    color: #fff;
    font-size: 14px;
    display: flex;              /* 加 flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#zb.open {
    height: 240px;
    opacity: 1;
    padding: 20px;
}

.zb-img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    z-index: 0;
    pointer-events: none;
}

.zbbtn {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid red;
    color: red;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

/* 加载遮罩 — 默认隐藏 */
.loading-overlay {
    display: none;                  /* 默认隐藏 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* 显示状态 */
.loading-overlay.show {
    display: flex;
}

/* 转圈动画 — 两个圈 */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ff0000;
    border-right: 4px solid #ff6600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



        .tra {
            margin-top:7px;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            
            /*box-shadow: 0 2px 8px rgba(0,0,0,0.06);*/

        }

.trapezoid {
    color: #fff;
    font-size: 13px;
    width: 110px;
    height: 26px;
    line-height: 26px;            /* 等于 height 值，文字垂直居中 */
    text-align: center;           /* 水平居中 */
    background: var(--jbs1);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        80% 100%,
        20% 100%
    );
}









.ball-row2 {
    display: flex;
    align-items: center;
    padding: 0 5px;
    width: 100%;
    padding-bottom: 10px;
}


.qid {
    color: var(--jbs2);
    font-size: 13px;
    margin-right: auto;
    letter-spacing: 0;
    display: inline;          /* 加这一行，取消 flex 影响 */
}

.sp-z {
    color: #000000;
    font-size: 13px;
    display: inline;
    margin: 0;
    padding: 0;
}


.djs-box {
    display: inline-flex;
    align-items: center;
    color: #228b22;
    font-size: 13px;
    margin: 0 auto; /* 居中 */
}

.la-right {
    font-size: 13px;
    margin-left: auto; /* 靠右 */
    color: var(--jbs1);
}




.djs {                          /* <input class="djs"> 时/分/秒输入框 */
    font-size: 13px;
    color: red;
}



.xq-span {                      /* <span class="xq-span"> 期数信息 */
    color: red;
    font-size: 13px;
}

/* ============================================================
   区域10：开奖球区（<div class="ball-row">）
   包含：球、数字、高光、下方文字、加号
   ============================================================ */
.ball-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 5px;
}



.ball-box {                     /* <div class="ball-box"> 球容器 */
    flex: 1;
    aspect-ratio: 1/1;
    background: var(--jbs1);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}






.ball-num {                     /* <div class="ball-num"> 球内数字 */
    position: absolute;
    color: #666666;
    top: 8%;
    left: 6%;
    width: 75%;
    height: 75%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
}

.ball-ring {                    /* <div class="ball-ring"> 高光圆圈 */
    position: absolute;
    right: 10%;
    bottom: 12%;
    width: 29%;
    height: 14%;
    border-radius: 50%;
    background: #ffffff;
    transform: rotate(-45deg);
    opacity: 0.8;
}

.ball-text {                    /* <div class="ball-text"> 五行/生肖 */
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.plus{                         /* <span class="plus"> 加号 */
    width: auto;
    font-size: 20px;
    font-weight: bold;
    padding: 0 2px;
    color: #757575;
    opacity: 0.7;
}


.plus2 {                         /* <span class="plus"> 加号 */
    width: auto;
    font-size: 20px;
    font-weight: bold;
    padding: 0 2px;
    color: #757575;
    opacity: 0;
}




