* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #efefef;
    color: #536277;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font-family: inherit;
}




.site-container {
    width: 1160px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
}



.top-header {
    margin-top: 20px;
}

.top-menu {
    min-height: 48px;

    display: flex;
    align-items: center;

    background: #f40000;
}

.top-menu a {
    height: 48px;

    padding: 0 22px;

    display: flex;
    align-items: center;

    color: white;

    font-weight: 700;
}

.top-menu a:hover {
    background: #d80000;
}


.branding {
    margin-top: 9px;
}

.branding-inner {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    min-height: 82px;
}

.logo-box,
.header-banner {
    overflow: hidden;
}

.logo-box {
    background: white;
}

.logo-box img {
    width: 100%;
    height: 82px;

    object-fit: contain;
}

.header-banner img {
    width: 100%;
    height: 82px;

    object-fit: cover;
}


.notice-bar {
    min-height: 41px;

    margin-top: 9px;
    margin-bottom: 18px;

    display: flex;
    align-items: stretch;

    background: white;
}

.notice-active {
    padding: 0 14px;

    display: flex;
    align-items: center;

    background: #a70a0a;
    color: white;

    font-weight: 700;
}

.notice-text {
    padding: 0 14px;

    display: flex;
    align-items: center;

    color: #555;
}

.main-grid {
    display: grid;

    grid-template-columns:
        270px
        minmax(0, 560px)
        270px;

    gap: 20px;

    align-items: start;

    padding-bottom: 80px;
}

.sidebar-card,
.result-card,
.quick-card,
.history-card {
    background: #fff;

    box-shadow:
        0 2px 10px
        rgba(0,0,0,0.06);
}

.sidebar-title {
    min-height: 39px;

    padding: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #06265e;
    color: white;

    text-align: center;

    font-size: 12px;
    font-weight: 700;
}


.side-links {
    padding: 8px 10px;
}

.side-links a {
    min-height: 35px;

    padding: 8px 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-bottom: 1px solid #ccc;

    color: #555;

    font-size: 12px;
    line-height: 1.35;
}

.side-links a:last-child {
    border-bottom: 0;
}

.side-links a:hover {
    color: #e10000;
}



.blink-dots {
    min-width: 38px;

    display: inline-flex;
    justify-content: flex-end;
    align-items: center;

    gap: 4px;

    flex-shrink: 0;
}

.blink-dots i {
    width: 8px;
    height: 8px;

    display: inline-block;

    background: #aaa;

    border-radius: 50%;

    opacity: 0.3;

    animation:
        dotBlink
        1.15s
        infinite
        ease-in-out;
}

.blink-dots i:nth-child(1) {
    animation-delay: 0s;
}

.blink-dots i:nth-child(2) {
    animation-delay: 0.18s;
}

.blink-dots i:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes dotBlink {

    0%,
    55%,
    100% {
        opacity: 0.25;

        transform: scale(0.85);

        background: #aaa;
    }

    30% {
        opacity: 1;

        transform: scale(1.15);

        background: #707070;
    }
}



.small-ad img,
.left-big-ad img,
.right-ad img {
    width: 100%;
    height: auto;
}

.left-big-ad {
    margin-top: 20px;
}

.right-card {
    overflow: hidden;
}

.second-ad {
    margin-top: 22px;
}


.result-card {
    margin-bottom: 38px;

    overflow: hidden;

    border-radius: 9px;
}

.lottery-statistics {
    width: 100%;

    overflow-x: auto;
}

.lottery-statistics table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    background: #fff;
}

.lottery-statistics thead td {
    height: 56px;

    padding: 10px;

    text-align: center;

    background:
        linear-gradient(
            90deg,
            #0ca68d,
            #31e26a
        );

    color: white;

    font-size: 14px;
    font-weight: 700;
}

.lottery-statistics tbody td {
    height: 56px;

    padding: 7px 5px;

    border:
        1px solid
        #e4e9ef;

    text-align: center;
    vertical-align: middle;

    color: #52677e;

    font-size: 13px;
    font-weight: 600;
}

.lottery-statistics tbody td:first-child {
    width: 27%;

    background: #fafafa;

    color: #718197;

    font-size: 11px;
    font-weight: 700;
}

.lottery-statistics tbody tr:nth-child(2) {
    background: #fff6f4;
}

.first-prize {
    color: #ee761b !important;

    font-size: 21px !important;
}

.special-prize {
    color: #ef4545 !important;

    font-size: 21px !important;
}




.loading {
    width: 17px;
    height: 17px;

    margin: auto;

    border:
        2px solid
        #d8e7f5;

    border-top-color:
        #408fd6;

    border-radius: 50%;

    animation:
        loaderSpin
        0.7s
        linear
        infinite;
}

@keyframes loaderSpin {

    to {
        transform: rotate(360deg);
    }
}


.quick-card {
    margin-bottom: 28px;
}

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-left:
        1px solid
        #c6ccd2;

    border-top:
        1px solid
        #c6ccd2;
}

.quick-item {
    min-height: 64px;

    padding: 10px 8px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 5px;

    border-right:
        1px solid
        #c6ccd2;

    border-bottom:
        1px solid
        #c6ccd2;

    background: white;

    color: #5b687a;

    font-size: 11px;
    line-height: 1.5;
}

.quick-item:hover {
    background: #f7f7f7;
}

.quick-head {
    display: block;

    font-weight: 700;
}

.quick-head strong {
    display: block;

    margin-bottom: 4px;
}

.quick-head span {
    display: block;
}


.history-card {
    padding:
        22px
        20px
        30px;

    border-radius: 10px;
}

.history-title {
    margin:
        0
        0
        22px;

    text-align: center;

    color: #253246;

    font-size: 22px;
    line-height: 1.25;
}

.filter-container {
    margin-bottom: 20px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    border:
        1px solid
        #d8e1ea;

    border-radius: 7px;

    background: #fafcff;
}

.filter-container label {
    color: #708198;

    font-size: 11px;
    font-weight: 700;
}

.filter-container input {
    width: 260px;
    max-width: 100%;

    height: 39px;

    padding: 0 15px;

    border:
        1px solid
        #b7cada;

    border-radius: 6px;

    background: white;

    color: #56667b;

    text-align: center;

    font-weight: 700;

    outline: none;
}

.history-table {
    overflow: hidden;

    border-radius: 5px;
}

.history-table tbody td {
    height: 53px;

    font-size: 11px;
}



.reward-check {
    padding:
        14px
        12px
        20px;

    text-align: center;
}

.reward-check h3 {
    margin:
        0
        0
        18px;

    color: #293346;

    font-family: Georgia, serif;

    font-size: 21px;
}

.reward-check input {
    width: 100%;

    height: 41px;

    padding: 0 12px;

    border:
        1px solid
        #d1d6dc;

    font-size: 13px;

    outline: none;
}

.reward-check button {
    margin-top: 11px;

    padding:
        9px
        22px;

    border: 0;

    border-radius: 3px;

    background: red;
    color: white;

    cursor: pointer;
}




@media (max-width: 1000px) {

    .main-grid {
        grid-template-columns:
            220px
            minmax(0, 1fr)
            220px;

        gap: 12px;
    }

    .top-menu a {
        padding:
            0
            13px;
    }
}

@media (max-width: 820px) {

    .main-grid {
        grid-template-columns:
            200px
            minmax(0, 1fr);
    }

    .right-sidebar {
        display: none;
    }

    .branding-inner {
        grid-template-columns:
            1fr;
    }

    .header-banner {
        display: none;
    }

    .logo-box img {
        max-height: 90px;
    }
}


@media (max-width: 650px) {

    .site-container {
        max-width:
            calc(100% - 16px);
    }

    .top-header {
        margin-top: 8px;
    }

    .top-menu {
        overflow-x: auto;

        justify-content: flex-start;
    }

    .top-menu a {
        flex-shrink: 0;

        padding:
            0
            14px;

        font-size: 11px;
    }

    .main-grid {
        display: block;
    }

    .left-sidebar,
    .right-sidebar {
        display: none;
    }

    .notice-bar {
        margin-bottom: 10px;
    }

    .result-card {
        margin-bottom: 15px;
    }

    .quick-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .lottery-statistics thead td {
        height: 48px;

        font-size: 12px;
    }

    .lottery-statistics tbody td {
        height: 49px;

        padding:
            5px
            2px;

        font-size: 11px;
    }

    .lottery-statistics tbody td:first-child {
        font-size: 9px;
    }

    .first-prize,
    .special-prize {
        font-size:
            17px !important;
    }

    .history-card {
        padding:
            15px
            7px;
    }

    .history-title {
        font-size: 17px;
    }

    .history-table tbody td {
        font-size: 9px;
    }
}