/* ============================================================
   样式分组标注 - 按前端组件区域
   ============================================================ */

/* ============================================================
   区域1：全局重置 & 基础样式（全站通用，无特定组件）
   ============================================================ */
:root {
    /* 主色 */
      --ss: #c13a3e;     /* 主色，深 */
     --qs: #f0ffff; /* 选项卡未选中时，尽量暗点， */
     
      --ss2: #8b0000; /* 选项卡未选中时，尽量暗点， */
      --qs2:#ffffff;

}


* {
    box-sizing: border-box;
}


body {
    margin: 0 auto;
    max-width: 380px;
    background: var(--ss);
    text-align: center;
    font-family: "HongLeiXingShu", "KaiTi", cursive;
}




/* ============================================================
   区域16：响应式微调（媒体查询，影响多个区域）
   ============================================================ */
@media (max-width: 380px) {
    .tbl td {                   /* 对照表 */
        padding: 4px 2px;
        font-size: 11px;
    }
    .tbl .hd td {
        font-size: 12px;
        padding: 6px;
    }
    .ball-num {                 /* 开奖球数字 */
        font-size: 18px;
    }
}



/* ============================================================
   区域2：头部 LOGO（<div class="logo">）
   ============================================================ */
.logo {
    width: 100%;
    padding: 5px 5px;
    background: var(--qs);
    display: flex;
    align-items: flex-end;      /* 所有子元素都靠底部 */
    border-radius: 4px;
    
}

.logo-img {
    width: 100px;
    border-radius: 4px;
}

.logo-span {
    color: var(--ss);
    font-size: 20px;
    margin-left: 4px;
    font-weight: 900;
    text-shadow: 
        0 1px 0 #999,
        0 2px 0 #aaa,
        0 3px 6px rgba(0, 0, 0, 0.2);
}

.logo-img-r {
    margin-left: auto;          /* 推到最右边 */
    width: 50px;
}

.all-a {
    margin-top:2px;
    width: 100%;
    display: flex;
    flex-direction: column;     /* 纵向排列 */
    align-items: center;        /* 水平居中（对 flex 子元素） */
    text-align: center;         /* 文本居中（备用） */

}


.all-dt {
    width: 100%;
    padding: 8px 6px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;     /* 纵向排列 */
    align-items: center;        /* 水平居中（对 flex 子元素） */
    text-align: center;         /* 文本居中（备用） */
    margin-top:3px;
    background: #fff;
    color: var(--ss);
    font-weight: 900;
    font-size: 16px;
}

.all-domains {
    width: 100%;
    padding: 8px 6px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;     /* 纵向排列 */
    align-items: center;        /* 水平居中（对 flex 子元素） */
    text-align: center;         /* 文本居中（备用） */
    margin-top:3px;
    background: #fff;
    color: var(--ss);;
    font-weight: 900;
    font-size: 20px;
    
}




.all-border{
    width: 100%;
    display: flex;
    flex-direction: column;     /* 纵向排列 */
    align-items: center;        /* 水平居中（对 flex 子元素） */
    text-align: center;         /* 文本居中（备用） */
    margin-top:3px;
    border-radius: 4px;
    border:solid 1px var(--ss);
    
}

.span-domains{
    background: #fff;
    width: 80%;
    margin-bottom: 3px;
   
    padding: 4px 4px;
    background: linear-gradient(135deg, #fffacd, #ffe4c4, #fff05f, #fff68f);
    background-size: 300% 300%;
    animation: tMove 4s ease-in-out infinite alternate;
    
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    
    
}

@keyframes tMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



.gif{
    width: 100%;
}



/* ===== 按钮容器 ===== */
#btn {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 2px;
    justify-content: flex-start;
}


/* ===== 按钮样式（用类名） ===== */
.btn-mokuai {
    border: none;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: var(--ss);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}



/* 容器 */
.zd-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

/* 单个按钮 - 宽度自适应 */
.btn-url {
    width: auto;              /* 宽度根据内容自适应 */
    padding: 5px 16px;        /* 左右内边距 */
    background: var(--ss);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* ============================================================
   区域15：底部按钮组（<div class="all-btn"> / .btn-all / .btn-all1 / .btn-url）
   ============================================================ */

/* 按钮行容器（网格布局） */
.btn-all {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    background: var(--ss5);
}





/* ============================================================
   区域3："多多彩热门资讯站点" 跑马灯文字（<span class="sd">）
   ============================================================ */
.sd {
    display: inline-block;
    font-weight: bold;
    padding: 4px 8px;
    animation: colorFlash 0.2s ease-in-out infinite;
}

@keyframes colorFlash {
    0% { color: #ff0000; }
    20% { color: #ff4500; }
    40% { color: #ffff00; }
    50% { color: #00ff00; }
    60% { color: #1e90ff; }
    80% { color: #8b00ff; }
    100% { color: #ff0000; }
}

/* ============================================================
   区域4：装饰箭头（<img class="jt">）
   ============================================================ */
.jt {
    width: 30px;
    height: auto;
    transform: rotate(90deg);
}


/* ============================================================
   区域13：弹窗（.modal-overlay / .modal-box）
   对应：<div id="modalOverlay"> + <div id="modalBox">
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-box {
    
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 380px;
    background: var(--qs2);
    border-radius: 16px;
    z-index: 10000;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {                 /* 弹窗头部 */
    padding: 12px 16px;
    font-weight: bold;
    color: #fff;
    font-size: 18px;
    position: relative;
    background: var(--ss);
}

.modal-close {                  /* 关闭按钮 × */
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}

.modal-body {                   /* 弹窗主体 */
    padding: 10px;
    text-align: center;
}

.section-title {                /* 板块标题（金派六肖、黄金16码等） */
    font-size: 16px;
    font-weight: bold;
    color: var(--ss);
    padding: 6px 0;
    letter-spacing: 2px;
}

.section-title-fff{                /* 板块标题（金派六肖、黄金16码等） */
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    padding: 6px 0;
    letter-spacing: 2px;
}




.six-number {                   /* 六肖显示 */
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 6px;
    font-size: 22px;
    font-weight: bold;
    color: var(--ss);
}

.number-grid {                  /* 16码网格容器 */
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 5px;
}

.number-row {                   /* 16码行（每行8个） */
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.number-item {                  /* 16码单个数字 */
    background: #fff;
    color: var(--ss);
    font-size: 14px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ss);
}

.divider {                      /* 分割线 */
    height: 1px;
    background: var(--ss);
    margin: 8px 16px;
}

.hx-section {                   /* 挂牌黑肖区域 */
    background: var(--ss);
    border-radius: 12px;
    margin: 8px;
    padding: 8px;
}

.hx-text {                      /* 黑肖文字（三个生肖） */
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 6px;
    margin: 8px 0;
}

.img-hx {                       /* 黑肖图片 <img class="img-hx"> */
    border-radius: 12px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-top: 6px;
}




