/* 基础样式保持不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    min-height: 100vh;
    padding: 0; /* 改为 0 或 10px，但不要 15px */
    font-size: 14px;
    line-height: 1.6;

    margin: 0;
    /* 删除下面的 padding: 0; */

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: pan-y;
}

.container {
    max-width: 100%;
    /*width: 800px;*/
    margin: 0 auto;
    padding: 0; /* 改为 0 */
    /*padding: 0 10px;*/
}

.a{
    border: 2px solid #ddd;  /* 边框 */
    border-bottom: none;     /* 移除下边框 */
}

.jxsm {
    display: flex;           /* 使用flex布局 */
    width: 100%;            /* 容器宽度为100% */
    overflow: hidden;        /* 防止子元素溢出 */
}

/* span元素样式 - 各占50%宽度 */
.jxsm span {
    display: flex;           /* 内部也使用flex布局 */
    justify-content: center;  /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    border-bottom: 2px solid #ddd;
    font-family: 微软雅黑;
    width: 50%;             /* 各占50%宽度 */
    height: 40px;          /* 固定高度 */
    box-sizing: border-box;  /* 包含内边距和边框在宽度计算中 */
}

.prediction{
    padding-top: 6px;
    padding-left: 8px;
    font-family: 微软雅黑;
    color:lawngreen;
    height: 40px;          /* 固定高度 */
    border-bottom: 2px solid #ddd;     /* 移除下边框 */
}

.b{
    border: 2px solid #ddd;
    border-top: none;
    border-bottom: none;
}

.c{
    border: 2px solid #ddd;
    background: #FFFFFF;
}

.c ul li{
    color: #000000;
    list-style: none;
    height: auto;
    border-bottom: 1px solid #000000;
    padding-top: 10px;
}

.c ul li a{
    text-decoration: none;
}

.aa{
    font-size: 12px;
    background: #FF0000;
    color: #FFFFFF;
    padding: 3px;
    margin: 5px;
}

.gsbzlname{
    margin: 5px;
    line-height: 1.75;
    font-family: "微软雅黑";
    word-break: break-all;
    word-wrap: break-word;
    font-size: 100%;
    padding: 0;
    font-weight: bold;
    color: #000!important;
}

.d{
    border: 2px solid #ddd;
    border-bottom: none;
}

    /* 注册提示条 */
.register-banner {
    background: linear-gradient(135deg, #1a5276, #2c3e50);
    /*background: linear-gradient(to right, #8B4513, #DAA520);*/
    text-align: center;
    padding: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-size: 20px;
    font-weight: bold;
}

.wz {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}
.register-banner div {
    text-shadow:
            0 0 5px #FFD700,    /* 内发光效果 */
            0 0 10px #FFD700,   /* 黄金色辉光 */
            0 0 15px #FFD700,   /* 增加辉光强度 */
            0 0 20px #FFA500,   /* 橙色外发光 */
            0 0 25px #FFA500,   /* 增强橙色效果 */
            2px 2px 2px rgba(0, 0, 0, 0.5); /* 黑色投影增加深度 */
}

/* 导航菜单 */
.section-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 15px 0;
}

.nav-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.nav-item.highlight {
    background: linear-gradient(135deg, #e74c3c, #d35400);
    font-weight: bold;
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(231, 76, 60, 0.8);
}

/* 广告区域 */
.ad-section {
    background: linear-gradient(45deg, #1a5276, #2c3e50);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.ad-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #3498db, #2980b9, #2c3e50);
    z-index: -1;
    filter: blur(15px);
}

.ad-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.highlight-box {
    background: #e74c3c;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ad-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.ad-item .highlight {
    color: #f1c40f;
    font-size: 13px;
    margin-top: 4px;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.8);
}

/* 网址区域 */
.links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 25px 0;
}

.link-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-item:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: scale(1.05);
}

.link-item .highlight {
    background: #f1c40f;
    color: #2c3e50;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin: 5px auto;
    display: inline-block;
    font-weight: bold;
}

/* 开奖结果区域 */
.lottery-section {
    background: linear-gradient(135deg, #1a5276, #2c3e50);
    border-radius: 0px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid #3498db;
}

.lottery-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px;
}

.lottery-tab {
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.lottery-tab.active {
    background: #f1c40f;
    color: #2c3e50;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.lottery-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.lottery-period {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

/* 开奖结果容器 - 关键优化 */
.results-container {
    display: flex;
    justify-content: space-between; /* 改为space-between，让所有项均匀分布 */
    align-items: center;
    flex-wrap: nowrap; /* 强制不换行 */
    margin: 15px 0;
    width: 100%; /* 确保占满整个宽度 */
}

/* 具体开奖 */
.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1px; /* 开奖边距 */
    min-width: auto; /* 去掉固定最小宽度 */
    flex: 1; /* 每个项平均分配空间 */
    max-width: 12%; /* 限制最大宽度 */
}

.result-number {
    width: 40px; /* 桌面端大小 */
    height: 40px; /* 桌面端大小 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

/* 号码球颜色样式 */
.result-number.ball-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.result-number.ball-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.result-number.ball-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.result-zodiac {
    font-size: 14px;
    text-align: center;
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap; /* 防止生肖/五行换行 */
}

.plus-sign {
    font-size: 16px;
    font-weight: bold;
    color: #f1c40f;
    margin: 0 3px;
    align-self: center; /* 垂直居中 */
    flex-shrink: 0; /* 防止加号被压缩 */
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: nowrap; /* 确保不换行 */
}

.next-draw {
    font-size: 14px;
    color: #f1c40f;
    text-align: left;
    flex: 1;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px; /* 与历史链接的间距 */
}

.history-link {
    font-size: 14px;
    color: #f1c40f;
    cursor: pointer;
    text-decoration: none;
    text-align: right;
    white-space: nowrap; /* 防止文字换行 */
    flex-shrink: 0; /* 防止被压缩 */
}

.history-link:hover {
    color: #2980b9;
}

.maliao {
    width: 100%;
}

/* 在您的 css 文件中添加 */
.maliao img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 版权信息 */
.copyright {
    text-align: center;
    margin: 30px 0 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 - 手机端优化 */
@media (max-width: 768px) {
    body {
        padding: 0; /* 确保手机端也是 0 */
    }

    /*body {*/
    /*    padding: 10px;*/
    /*    font-size: 15px;*/
    /*}*/

    /* 导航菜单 - 确保三个元素在一行 */
    .section-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin: 10px 0;
    }

    .nav-item {
        padding: 8px 4px;
        font-size: 14px;
    }

    /* 广告区域 */
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* 网址区域 */
    .links-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 20px 0;
    }

    .link-item {
        padding: 12px 8px;
        font-size: 15px;
    }

    /* 开奖结果区域 - 关键优化 */
    .lottery-section {
        padding: 15px;
    }

    .lottery-tabs {
        flex-direction: row; /* 确保标签在一行 */
        overflow-x: auto;
        padding: 3px;
    }

    .lottery-tab {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 80px; /* 设置最小宽度 */
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .lottery-period {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* 开奖结果容器 - 确保7个号码在一行显示，无需水平滚动 */
    .results-container {
        display: flex;
        justify-content: space-between; /* 均匀分布所有项 */
        align-items: center;
        flex-wrap: nowrap; /* 强制不换行 */
        width: 100%; /* 占满整个宽度 */
        margin: 10px 0;
        padding: 0; /* 移除内边距 */
    }

    /* 每个开奖项 - 使用更紧凑的布局 */
    .result-item {
        margin: 0 1px; /* 最小边距 */
        flex: 1; /* 每个项平均分配空间 */
        min-width: 0; /* 允许缩小 */
        max-width: calc(100% / 8); /* 假设有8个项（6个平码+1个加号+1个特码） */
    }

    /* 号码球 - 使用更小的尺寸 */
    .result-number {
        width: 40px; /* 手机端更小尺寸 */
        height: 40px; /* 手机端更小尺寸 */
        font-size: 18px; /* 手机端字体更小 */
    }

    .result-zodiac {
        font-size: 14px; /* 手机端字体更小 */
        white-space: normal; /* 允许文字换行 */
        line-height: 1.1;
        word-break: keep-all; /* 防止中文字符被截断 */
    }

    .plus-sign {
        font-size: 20px; /* 手机端加号字体更小 */
        margin: 0 1px; /* 减少边距 */
    }

    /* 结果页脚 - 确保在一行 */
    .result-footer {
        flex-direction: row; /* 保持在一行 */
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 8px;
    }

    .next-draw {
        font-size: 16px;
        margin-right: 10px;
        text-align: left;
    }

    .history-link {
        font-size: 16px;
        text-align: right;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    body {
        padding: 0; /* 确保手机端也是 0 */
    }


    .section-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-item {
        font-size: 15px;
        padding: 6px 3px;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .lottery-tab {
        padding: 8px 15px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }


    /* 进一步减小开奖号码的尺寸 */
    .result-item {
        margin: 0 0.2px; /* 更小的边距 */
    }

    .result-number {
        width: 35px; /* 更小的尺寸 */
        height: 35px; /* 更小的尺寸 */
        font-size: 18px; /* 更小的字体 */
    }

    .result-zodiac {
        font-size: 14px; /* 更小的字体 */
    }

    .plus-sign {
        font-size: 18px; /* 更小的加号字体 */
    }

    .next-draw, .history-link {
        font-size: 11px;
    }
}

/* 超小屏幕手机优化（如iPhone SE等） */
@media (max-width: 375px) {
    body {
        padding: 0; /* 确保手机端也是 0 */
    }


    .prediction{
        font-size: 13px;
    }
    /* 进一步压缩开奖号码的显示 */
    .result-item {
        margin: 0 0.5px; /* 极小的边距 */
    }

    .lottery-tab {
        padding: 8px 15px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 11px;
        flex: 1;
        text-align: center;
    }

    .result-number {
        width: 32px; /* 极小的尺寸 */
        height: 32px; /* 极小的尺寸 */
        font-size: 15px; /* 极小的字体 */
    }

    .result-zodiac {
        font-size: 13px; /* 极小的字体 */
    }

    .plus-sign {
        font-size: 16px; /* 极小的加号字体 */
    }

    .next-draw, .history-link {
        font-size: 11px;
    }
}

.hidden {
    display: none;
}