* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #35445a;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.site-container {
    width: 1120px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
}
.site-header {
    background: #fff;
    height: 86px;
}

.header-inner {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-main {
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
}

.logo-red {
    color: #e31e24;
}

.logo-blue {
    color: #315b92;
}

.logo small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-style: italic;
}

.header-text {
    color: #555;
    font-size: 14px;
}
.main-nav {
    background: #b82d05;
    border-bottom: 3px solid #eee;
}

.nav-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #fff;
    font-weight: 700;
    padding: 17px 11px;
    white-space: nowrap;
}

.main-nav a:hover {
    background: rgba(0, 0, 0, .12);
}

.home-link {
    font-size: 18px;
}
.page-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 610px)
        155px
        minmax(220px, 1fr);

    gap: 18px;

    padding-top: 18px;
    padding-bottom: 80px;
    align-items: start;
}

.main-content {
    min-width: 0;
}
.result-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    margin-bottom: 20px;
}

.result-title {
    background: #b95313;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 13px 10px;
}

.lottery-statistics {
    background: #fff;
}

.lottery-statistics table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.lottery-statistics td {
    border: 1px solid #ddd;
    height: 42px;
    padding: 8px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #394a60;
}

.lottery-statistics .prize-name {
    width: 37%;
    font-weight: 700;
    color: #44536a;
}

.lottery-statistics .red-number {
    color: #f04b45;
}

#resultG1,
#resultG1History,
#resultG7_1,
#resultG7_2,
#resultG7_3,
#resultG7_4,
#resultG7_1History,
#resultG7_2History,
#resultG7_3History,
#resultG7_4History {
    color: #f04b45;
}
.article-card {
    border: 1px solid #e4e4e4;
    border-radius: 9px;
    padding: 14px 16px 18px;
    margin-bottom: 17px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}

.article-card h3 {
    font-size: 14px;
    margin: 0 0 20px;
    color: #15417b;
}

.article-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.article-image {
    width: 195px;
    height: 105px;
    flex: 0 0 195px;
    background: #d20c0c;
    color: #ffe760;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
}

.article-content p {
    margin: 0;
    color: #777;
    line-height: 1.7;
}
.quick-links {
    background: #f5fcfe;
    border: 1px solid #d9eef3;
    border-radius: 8px;
    padding: 11px 12px;
    margin-bottom: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .05);
}

.quick-links a {
    display: block;
    color: #68727c;
    line-height: 1.75;
}
.history-section {
    margin-top: 15px;
}

.history-toolbar {
    width: 100%;
    min-height: 47px;

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

    gap: 15px;

    background: #f5f7f9;
    border: 1px solid #d9dee5;
    border-bottom: 0;

    padding: 7px 8px 7px 14px;
}

.history-heading {
    font-size: 15px;
    font-weight: 700;
    color: #35445a;
}
.date-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    margin-left: auto;
}

.date-control span {
    font-size: 13px;
    color: #68727c;
    white-space: nowrap;
}

#datePickerHistory {
    width: 170px;
    height: 34px;

    padding: 5px 9px;

    border: 1px solid #cbd3dd;
    border-radius: 4px;

    background: #fff;

    color: #58677a;
    font-size: 14px;

    outline: none;
}

#datePickerHistory:focus {
    border-color: #4778a9;
}

.history-table {
    margin-top: 0;
}
.side-box {
    background: #fff;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.side-title {
    background: #486b96;
    color: #e8ff00;
    text-align: center;
    padding: 11px 7px;
    font-size: 16px;
    font-weight: 700;
}

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

.side-links a {
    display: block;
    color: #182dc4;
    line-height: 1.75;
}

.stats-links {
    padding: 8px 11px 12px;
}

.stats-links a {
    position: relative;
    display: block;
    color: #1a2bb7;
    line-height: 1.65;
    padding-left: 15px;
    margin-bottom: 4px;
}

.stats-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;

    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #f53636;
}

.dream-list {
    padding: 10px;
}

.dream-item {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;
}

.dream-thumb {
    width: 92px;
    height: 58px;
    flex: 0 0 92px;

    background: #dbe9e9;

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

    font-size: 22px;
    font-weight: 800;
    color: #547080;
}

.dream-item a {
    color: #2435bd;
    font-size: 12px;
    line-height: 1.35;
}

.loading {
    display: inline-block;

    width: 18px;
    height: 18px;

    border: 3px solid #ddd;
    border-top-color: #b95313;
    border-radius: 50%;

    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footer {
    margin-top: 250px;

    background: #e9e9e9;
    border-bottom: 10px solid #222;

    color: #777;
    text-align: center;

    padding: 16px;
}
@media (max-width: 1000px) {

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

    .sidebar-middle {
        display: none;
    }

    .header-text {
        display: none;
    }
}
@media (max-width: 700px) {

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

    .site-header {
        height: 70px;
    }

    .header-inner {
        height: 70px;
    }

    .main-nav {
        overflow-x: auto;
    }

    .nav-inner {
        width: max-content;
        max-width: none;
    }

    .main-nav a {
        padding: 14px 10px;
        font-size: 13px;
    }

    .page-layout {
        display: block;
        padding-top: 10px;
    }

    .sidebar {
        display: none;
    }

    .lottery-statistics td {
        padding: 6px 3px;
        height: 39px;
        font-size: 12px;
    }

    .lottery-statistics .prize-name {
        width: 34%;
    }

    .article-content {
        display: block;
    }

    .article-image {
        width: 100%;
        margin-bottom: 10px;
    }
    .history-toolbar {
        padding: 6px 7px 6px 10px;
    }

    .history-heading {
        font-size: 13px;
    }

    .date-control span {
        display: none;
    }

    #datePickerHistory {
        width: 145px;
        font-size: 12px;
    }

    footer {
        margin-top: 100px;
    }
}