:root {
    --color-primary: #e7e8eb;
    --color-tertiary: #bcbdc2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* user-select: none; */
}




body {
    font-size: 16px;
    background: #fff;
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

@keyframes neonGlow {
    0% {
        text-shadow: rgba(227, 206, 3, 0.3) 0px 0px 8px, rgba(228, 133, 2, 0.2) 0px 0px 16px, rgba(233, 66, 1, 0.15) 0px 0px 24px;
    }

    100% {
        text-shadow: rgba(227, 206, 3, 0.6) 0px 0px 14px, rgba(228, 133, 2, 0.4) 0px 0px 28px, rgba(233, 66, 1, 0.3) 0px 0px 42px;
    }
}

@keyframes colorShift {
    0% {
        color: #ffffff;
    }

    50% {
        color: #fff5e0;
        /* 非常淡的米黄色 */
    }

    100% {
        color: #ffffff;
    }
}


.banner-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    border-radius: 0px;
}

.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner-container:hover .banner {
    transform: scale(1.02);
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
    line-height: 1.2;
    width: 80%;
    transition: transform 0.3s ease;
}

.banner-container:hover .banner-text {
    transform: translate(-50%, -50%) scale(1.03);
}

.banner-text .main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 144, 255, 0.8), 0 0 20px rgba(255, 140, 0, 0.6), 0 0 30px rgba(255, 69, 0, 0.6);
    animation: neonGlow 1.5s infinite alternate, colorShift 6s infinite;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.banner-text .sub-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background: #FFA500;
    width: 266px;
    border-radius: 25px;
    margin-top: 0px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0px 8px;
}

.datetime-display {
    background-color: #c0392b;
    color: white;
    padding: 8px 11px;
    margin: 15px 0;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
}

.datetime-display span {
    margin-right: 7px;
}

.lottery {
    background: #fff;
    border-radius: 8px;
    margin: 5px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lottery-tabs {
    display: flex;
    background: #FFA500;
    padding: 0;
    margin: 0;
}

.lottery-tab {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    cursor: pointer;
}

.lottery-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.lottery-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #87CEFA;
    border-radius: 3px 3px 0 0;
}

.lottery-container {
    padding: 15px;
    background: #f8f9fa;
}

.lottery-body {
    font-size: 16px;
    height: 130px;
    box-sizing: border-box;
    color: #333;
    padding: 8px;
    background: #fff;
}

.lottery-info {
    display: flex;
    align-items: center;
    height: 17px;
    line-height: 17px;
    font-size: 17px;
    font-family: 'PingFang SC', 'microsoft yahei', arial, 'helvetica neue', 'hiragino sans gb', sans-serif;
}

.lottery-info .red{
    color: #f00;
}

.lottery-info-2{
        flex: 1;
        text-align: center;
        font-weight: bold;
    }

.lottery-balls {
    display: flex;
    margin: 8px 0;
}

.lottery-balls .ball {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 61px;
    text-align: center;
    border-radius: 4px;
    margin-right: 6px;
    box-sizing: border-box;
    flex-direction: column;
}

.ball-red{
    background-color: #e71607;
}

.ball-green {
    background-color: #1fb61d;
}

.ball-blue {
    background-color: #2389e9;
}

.ball-shaking {
    background-color: #666666;
}

.ball-num {
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 24px;
    font-size: 28px;
    font-weight: 900;
    font-family: Tahoma, Geneva, sans-serif;
}

.ball-text {
    display: inline-block;
    height: 19px;
    line-height: 19px;
    margin-top: 6px;
    padding: 0 6px;
    border-radius: 2px;
    color: #333;
    font-size: 14px;
    background: #fff;
}

.ball-add {
    display: flex;
    align-items: center;
    margin-right: 8px;
    font-size: 32px;
    font-weight: bold;
}

.lottery-next {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-family: 'PingFang SC', 'microsoft yahei', arial, 'helvetica neue', 'hiragino sans gb', sans-serif;
}

.content-box {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #ccc;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.box-header {
    background: linear-gradient(155deg, #c0392b, #c0392b);
    color: white;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.box-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFD700);
}

.table {
    border: 1px solid #cad9ea;
    color: #333;
    table-layout: fixed;
    empty-cells: show;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 16px;
    width: 100%;
}

tr:nth-child(odd) {
    background-color: #f2f2f2;
}

td {
    height: 28px;
}

.table td,
.table th {
    border: 1px solid #ddd;
    padding: 0 1em 0;
}

.table th {
    background-repeat: repeat-x;
    background: #e1e1e1;
    color: #555;
    height: 25px;
}

.marquee-box {
    background: #FFA500;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.nav2 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 2px;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav2.sticky-active {
    width: 110%;
    max-width: 100vw;
    margin-left: -5%;
    margin-right: -5%;
}

.nav2 ul {
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.nav2 ul li {
    width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
    list-style: none;
}

.nav2 ul li a {
    display: block;
    padding: 3px 0;
    text-align: center;
    color: #fff;
    border-radius: 50px;
    background: #FFA500;
    transition: all 0.3s ease;
    text-decoration: none;
    list-style: none;
}

.nav2 ul li a:hover {
    text-decoration: underline;
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.picks-box{
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.picks-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.picks-box .box-header {
    background: linear-gradient(155deg, #c0392b, #c0392b);
    color: white;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    position: relative;
}


.picks-box .table {
    table-layout: fixed;
    empty-cells: show;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 16px;
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    color: #333;
    line-height: 1.6;
}

.picks-box .table:first-child {
    border-top: none;
}

.picks-box .table a {
    color: #333;
    text-decoration: none;
}

.picks-box .table a:hover {
    color: #f72912;
    text-decoration: underline;
}

.picks-box .table {
    background-color: #f5f5f5;
}

@media screen and (max-width: 650px) {
    .ball-num {
                font-size: 24px;
            }
    .ball-text {
        margin-top: 4px;
        padding: 0 2px;
        font-size: 12px;
    }
}
@media screen and (min-width: 800px) {
    .nav2 {
        padding: 4px;
        font-size: 16px;
    }
    .nav2 ul {
        padding: 2px 0;
    }
    .nav2 ul li {
        padding: 0 4px;
    }
    .nav2 ul li a {
        padding: 6px 0;
        cursor: pointer;
    }
}

@media (max-width: 800px) {
    .nav2.sticky-active {
        width: 100%;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .picks-box .box-header {
        padding: 12px 15px;
        font-size: 16px;
    }
}

.img-container {
    overflow: hidden;
}

.img-container img {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

.clickable-img {
    cursor: pointer;
}

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.footer {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 12px;
    background: white;
    margin-top: 20px;
}

.tip-box{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accurate {
    color: rgb(255, 0, 0);
    background-color: rgb(255, 255, 0);
}



.box-shengxiao {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: start;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.box-shengxiao li {
    width: 100%;
    max-width: 180px;
    list-style: none;
}

.box-shengxiao dl {
    margin: 0;
    padding: 10px;
    text-align: center;
}

.box-shengxiao dt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.box-shengxiao dt img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

.box-shengxiao dd {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}
 
.hint-box span {
    height: 18px;
    line-height: 18px;
    margin: 0 2px;
    padding: 0 2px;
    border-radius: 5px;
    font-size: 14px;
    color: #fff;
    display: inline-block;
}

.hint-box .blue {
    background: #3366ff;
}

.hint-box .green {
    background: #009933;
}

.hint-box .red {
    background: #f00;
}


.hint-box table {
    table-layout: fixed;
    empty-cells: show;
    border-collapse: collapse;
    margin: 0 auto;
}

.hint-box td {
    padding: 5px 0;
    text-align: center;
    border: solid 1px #d8ccb4;
    word-wrap: break-word;
    background: #fff;
}

.top-button {
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    border: solid 3px rgba(255, 255, 255, 0.9);
    background: rgba(255, 165, 0, 0.9);
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.top-button.visible {
    opacity: 1;
    transform: translateY(0);
}