* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;

    color: #304f6d;
    background: #f3f7fc;
}

body {
    min-height: 100vh;
}


/* =========================
   顶部
========================= */

.site-header {
    height: 70px;
    width: 100%;
    background: linear-gradient(
        135deg,
        #1976e8,
        #1768d8
    );
}

.header-inner {
    width: min(1400px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #fff;
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #fff;
    color: #2768b6;

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

    line-height: 1;

    box-shadow:
        0 3px 10px rgba(0,0,0,.12);
}

.brand-logo span {
    font-size: 12px;
    font-weight: 700;
}

.brand-logo strong {
    margin-top: 2px;
    font-size: 13px;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
}

.brand-subtitle {
    margin-top: 2px;
    font-size: 10px;
    opacity: .85;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.menu-button {
    width: 42px;
    height: 42px;

    border: 0;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    cursor: pointer;
}

.menu-button span {
    width: 100%;
    height: 3px;

    border-radius: 4px;

    background: #fff;
}

.login-button,
.register-button {
    height: 42px;

    padding: 0 20px;

    border-radius: 12px;

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

    text-decoration: none;

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

.login-button {
    color: #fff;
    border: 1px solid rgba(255,255,255,.9);
    background: transparent;
}

.register-button {
    color: #285b8d;
    background: #fff;
}


/* =========================
   页面
========================= */

.page-container {
    width: min(1400px, calc(100% - 48px));

    margin: 22px auto 34px;
}


/* =========================
   倒计时
========================= */

.countdown-card {
    padding: 27px 30px 25px;

    border-radius: 22px;

    border: 1px solid #d9e5f1;

    background:
        linear-gradient(
            135deg,
            #f4faff,
            #edf7ff
        );

    box-shadow:
        0 4px 16px rgba(35,83,130,.045);
}

.countdown-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.countdown-title {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #315879;

    font-size: 25px;
    font-weight: 800;
}

.clock-icon {
    color: #2879dd;
    font-size: 29px;
}

.next-period {
    color: #8493a2;
    font-size: 17px;
    white-space: nowrap;
}

.next-period strong {
    color: #46617a;
    font-size: 19px;
}

.countdown-value {
    margin-top: 20px;

    color: #174a82;

    font-size: clamp(54px, 6vw, 74px);

    line-height: 1;

    font-weight: 800;

    letter-spacing: 1px;
}

.progress-track {
    width: 100%;
    height: 13px;

    margin-top: 27px;

    overflow: hidden;

    border-radius: 20px;

    background: #dce9f7;
}

.progress-bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: #2d7ee3;

    transition: width .5s linear;
}


/* =========================
   最新开奖
========================= */

.latest-card {
    margin-top: 18px;

    padding: 23px 27px;

    border-radius: 22px;

    border: 1px solid #dce5ed;

    background: #fff;

    box-shadow:
        0 4px 16px rgba(35,83,130,.045);
}

.latest-header {
    display: flex;
    align-items: center;

    gap: 16px;
}

.latest-badge {
    padding: 10px 20px;

    border-radius: 12px;

    color: #fff;
    background: #2d7ee3;

    font-size: 19px;
    font-weight: 800;
}

.latest-period {
    color: #526b82;
    font-size: 19px;
}

.latest-period strong {
    color: #3e5c78;
}

.latest-time {
    color: #8b99a6;
    font-size: 18px;
}

.number-line {
    margin-top: 18px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.number-ball,
.sum-ball,
.type-ball {
    width: 68px;
    height: 68px;

    border-radius: 14px;

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

    font-size: 34px;
    font-weight: 800;
}

.number-ball {
    color: #294f74;

    background: #f7fbff;

    border: 1px solid #dce7f1;

    box-shadow:
        0 3px 10px rgba(36,84,130,.05);
}

.sum-ball,
.type-ball {
    color: #fff;
    background: #2d7ee3;
}

.plus,
.equals {
    color: #7e90a2;

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


/* =========================
   最新开奖详情
========================= */

.latest-info {
    margin-top: 18px;
    padding-top: 17px;

    border-top: 1px solid #edf0f3;

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

.info-item {
    min-height: 65px;

    display: flex;
    flex-direction: column;

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

    border-right: 1px solid #edf0f3;
}

.info-item:last-child {
    border-right: 0;
}

.info-label {
    color: #7d8b98;

    font-size: 17px;
}

.info-value {
    margin-top: 6px;

    color: #3b5e7c;

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

.blue-value {
    color: #2875d7;
}


/* 组合：纯文字颜色 */

.combo-text {
    margin-top: 6px;

    display: flex;
    gap: 12px;

    font-size: 19px;
    font-weight: 800;
}

.combo-big,
.combo-double {
    color: #ed4145;
}

.combo-small,
.combo-single {
    color: #286ce0;
}


/* =========================
   通用卡片
========================= */

.omission-card,
.records-card {
    margin-top: 18px;

    background: #fff;

    border: 1px solid #dce5ed;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 4px 16px rgba(35,83,130,.045);
}

.section-header,
.records-header {
    padding: 20px 25px;

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

    border-bottom: 1px solid #edf0f3;
}

.section-title {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #2e5274;

    font-size: 24px;
    font-weight: 800;
}

.section-title small {
    color: #8996a3;

    font-size: 17px;
    font-weight: 500;
}

.section-icon {
    width: 42px;
    height: 42px;

    border-radius: 11px;

    color: #fff;
    background: #2d7de0;

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

    font-size: 21px;
}


/* =========================
   和值遗漏
========================= */

.period-tabs {
    display: flex;
    gap: 6px;
}

.period-tabs button {
    padding: 7px 12px;

    border: 0;
    border-radius: 8px;

    background: #f1f5f9;
    color: #657789;

    cursor: pointer;
}

.period-tabs button.active {
    color: #fff;
    background: #2d7de0;
}

.omission-content {
    padding: 0 25px 22px;
}

.omission-label {
    padding: 11px;

    text-align: center;

    border-radius: 12px;

    background: #edf6ff;

    color: #3b5f80;

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

.sum-omission-grid {
    margin-top: 16px;

    display: grid;

    grid-template-columns:
        repeat(14, minmax(0,1fr));

    gap: 9px 6px;
}

.sum-omission-item {
    min-width: 0;

    text-align: center;
}

.sum-number {
    display: block;

    color: #61768a;

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

.sum-miss {
    display: inline-block;

    margin-top: 4px;

    min-width: 34px;

    padding: 4px 5px;

    border-radius: 7px;

    color: #e84a4f;

    background: #fff1f1;

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

.empty-data {
    grid-column: 1 / -1;

    padding: 20px;

    text-align: center;

    color: #9aa8b5;
}


/* =========================
   开奖记录
========================= */

.table-wrap {
    width: 100%;
    overflow: hidden;
}

.records-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}

.records-table th,
.records-table td {
    padding: 13px 8px;

    text-align: center;

    border-bottom: 1px solid #edf0f3;

    white-space: nowrap;
}

.records-table th {
    color: #63778a;

    background: #f7fafc;

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

.records-table td {
    color: #425f79;

    font-size: 15px;
}

.records-table tbody tr:last-child td {
    border-bottom: 0;
}


/* 期号 */
.records-table th:nth-child(1),
.records-table td:nth-child(1) {
    width: 17%;
}

/* 时间 */
.records-table th:nth-child(2),
.records-table td:nth-child(2) {
    width: 17%;
}

/* 号码 */
.records-table th:nth-child(3),
.records-table td:nth-child(3) {
    width: 33%;
}

/* 组合 */
.records-table th:nth-child(4),
.records-table td:nth-child(4) {
    width: 17%;
}

/* 形态 */
.records-table th:nth-child(5),
.records-table td:nth-child(5) {
    width: 16%;
}


/* 号码 */

.draw-expression {
    display: inline-flex;

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

    gap: 3px;

    color: #1f2e3d;

    font-weight: 700;

    font-size: 15px;
}

.draw-expression .eq {
    color: #8795a3;
}

.draw-expression .sum {
    color: #182a3c;
    font-weight: 800;
}


/* 组合：仍然是纯文字颜色 */

.combo-cell {
    display: inline-flex;

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

    gap: 8px;

    font-size: 16px;
    font-weight: 800;
}

.combo-cell .big,
.combo-cell .double {
    color: #ed4145;
}

.combo-cell .small,
.combo-cell .single {
    color: #286ce0;
}


/* 形态 */

.shape-cell {
    font-weight: 700;
}

.shape-pair {
    color: #d98232;
}

.shape-mixed {
    color: #21966e;
}

.shape-straight {
    color: #2875d7;
}

.shape-triple {
    color: #e13f45;
}

.loading-row {
    padding: 35px !important;

    color: #9aa8b5 !important;
}


/* =========================
   底部
========================= */

.records-footer {
    padding: 16px 25px;

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

    color: #81909f;

    font-size: 14px;
}

.records-footer strong {
    color: #48657f;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination button {
    width: 32px;
    height: 32px;

    border: 1px solid #dce5ed;

    border-radius: 7px;

    background: #fff;
    color: #66798b;
}

.pagination button.current {
    color: #fff;

    background: #2d7de0;

    border-color: #2d7de0;
}


/* =========================
   底部
========================= */

.site-footer {
    padding: 18px;

    text-align: center;

    color: #8b99a6;

    font-size: 13px;
}


/* =====================================================
   手机端
===================================================== */

@media (max-width: 700px) {

    .site-header {
        height: 64px;
    }

    .header-inner {
        width: calc(100% - 22px);
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;
    }

    .brand-logo span {
        font-size: 11px;
    }

    .brand-logo strong {
        font-size: 12px;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .menu-button {
        width: 34px;
        padding: 6px 2px;
    }

    .login-button,
    .register-button {
        height: 38px;

        padding: 0 13px;

        border-radius: 10px;

        font-size: 14px;
    }


    .page-container {
        width: calc(100% - 18px);

        margin: 15px auto 25px;
    }


    /* 倒计时 */

    .countdown-card {
        padding: 20px 19px 19px;

        border-radius: 20px;
    }

    .countdown-top {
        gap: 7px;
    }

    .countdown-title {
        gap: 8px;

        font-size: 20px;

        white-space: nowrap;
    }

    .clock-icon {
        font-size: 23px;
    }

    .next-period {
        font-size: 13px;
    }

    .next-period strong {
        font-size: 15px;
    }

    .countdown-value {
        margin-top: 17px;

        font-size: 48px;

        letter-spacing: 0;
    }

    .progress-track {
        height: 11px;

        margin-top: 22px;
    }


    /* 最新开奖 */

    .latest-card {
        margin-top: 14px;

        padding: 19px 18px;

        border-radius: 20px;
    }

    .latest-header {
        gap: 9px;
    }

    .latest-badge {
        padding: 9px 15px;

        border-radius: 10px;

        font-size: 16px;
    }

    .latest-period {
        font-size: 16px;
    }

    .latest-time {
        font-size: 15px;
    }

    .number-line {
        margin-top: 15px;

        gap: 5px;
    }

    .number-ball,
    .sum-ball {
        width: 52px;
        height: 52px;

        border-radius: 12px;

        font-size: 27px;
    }

    .type-ball {
        width: 48px;
        height: 52px;

        border-radius: 12px;

        font-size: 25px;
    }

    .plus,
    .equals {
        font-size: 20px;
    }

    .latest-info {
        margin-top: 15px;
        padding-top: 12px;
    }

    .info-item {
        min-height: 58px;
    }

    .info-label {
        font-size: 15px;
    }

    .info-value {
        margin-top: 4px;
        font-size: 16px;
    }

    .combo-text {
        margin-top: 4px;

        gap: 9px;

        font-size: 17px;
    }


    /* 通用卡片 */

    .omission-card,
    .records-card {
        margin-top: 14px;

        border-radius: 20px;
    }

    .section-header,
    .records-header {
        padding: 17px 18px;
    }

    .section-title {
        gap: 8px;

        font-size: 21px;
    }

    .section-title small {
        font-size: 14px;
    }

    .section-icon {
        width: 37px;
        height: 37px;

        border-radius: 10px;

        font-size: 19px;
    }


    /* 和值遗漏 */

    .period-tabs {
        display: none;
    }

    .omission-content {
        padding: 0 16px 17px;
    }

    .omission-label {
        padding: 9px;

        border-radius: 10px;

        font-size: 16px;
    }

    .sum-omission-grid {
        margin-top: 13px;

        grid-template-columns:
            repeat(7, minmax(0,1fr));

        gap: 9px 3px;
    }

    .sum-number {
        font-size: 12px;
    }

    .sum-miss {
        min-width: 30px;

        margin-top: 3px;

        padding: 3px 3px;

        border-radius: 6px;

        font-size: 11px;
    }


    /* 开奖记录 */

    .table-wrap {
        overflow: hidden;
    }

    .records-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .records-table th,
    .records-table td {
        padding: 11px 2px;
    }

    .records-table th {
        font-size: 14px;
    }

    .records-table td {
        font-size: 13px;
    }

    .records-table th:nth-child(1),
    .records-table td:nth-child(1) {
        width: 18%;
    }

    .records-table th:nth-child(2),
    .records-table td:nth-child(2) {
        width: 16%;
    }

    .records-table th:nth-child(3),
    .records-table td:nth-child(3) {
        width: 36%;
    }

    .records-table th:nth-child(4),
    .records-table td:nth-child(4) {
        width: 16%;
    }

    .records-table th:nth-child(5),
    .records-table td:nth-child(5) {
        width: 14%;
    }

    .draw-expression {
        gap: 1px;

        font-size: 12px;

        white-space: nowrap;
    }

    .combo-cell {
        gap: 5px;

        font-size: 14px;
    }

    .records-footer {
        padding: 13px 16px;

        font-size: 12px;
    }

    .pagination button {
        width: 28px;
        height: 28px;
    }

    .site-footer {
        padding-bottom: 28px;
    }
}


/* 更窄的手机 */

@media (max-width: 390px) {

    .brand-title {
        font-size: 18px;
    }

    .login-button,
    .register-button {
        padding: 0 10px;
    }

    .countdown-title {
        font-size: 18px;
    }

    .next-period {
        font-size: 12px;
    }

    .next-period strong {
        font-size: 14px;
    }

    .countdown-value {
        font-size: 43px;
    }

    .number-ball,
    .sum-ball {
        width: 48px;
        height: 48px;

        font-size: 25px;
    }

    .type-ball {
        width: 44px;
        height: 48px;

        font-size: 23px;
    }

    .plus,
    .equals {
        font-size: 18px;
    }

    .draw-expression {
        font-size: 11px;
    }

    .records-table th {
        font-size: 13px;
    }

    .records-table td {
        font-size: 12px;
    }
}