/* ================================
   全局
================================ */

* {
    box-sizing: border-box;
}

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

body {
    font-family:
        Arial,
        "Microsoft YaHei",
        "PingFang SC",
        sans-serif;

    background: #f4f5f7;

    color: #222;
}


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

.wrap {
    width: 100%;

    max-width: 1050px;

    margin: 0 auto;

    padding: 30px 18px 50px;
}


/* ================================
   主卡片
================================ */

.card {
    background: #ffffff;

    border-radius: 16px;

    padding: 32px;

    box-shadow:
        0 8px 35px
        rgba(0, 0, 0, 0.08);
}


/* ================================
   标题
================================ */

.title-area {
    text-align: center;

    margin-bottom: 22px;
}

.title-area h1 {
    margin: 0;

    color: #c40000;

    font-size: 30px;

    font-weight: 700;
}

.subtitle {
    margin-top: 9px;

    color: #777;

    font-size: 15px;
}


/* ================================
   北京时间
================================ */

.clock-box {
    text-align: center;

    background: #fafafa;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    padding: 16px;

    margin-bottom: 26px;
}

.clock-label {
    color: #777;

    font-size: 14px;
}

.clock-time {
    margin-top: 5px;

    color: #222;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: 1px;
}

.status-text {
    margin-top: 7px;

    font-size: 14px;
}

.status-open {
    color: #16803b;
}

.status-closed {
    color: #c40000;

    font-weight: 600;
}

.status-error {
    color: #c40000;
}


/* ================================
   普通输入框
================================ */

.grid {
    display: grid;

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

    gap: 18px;

    margin-bottom: 22px;
}

.field {
    min-width: 0;
}

.field label {
    display: block;

    margin-bottom: 8px;

    color: #222;

    font-size: 15px;

    font-weight: 700;
}

.field input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #d7dbe0;

    border-radius: 9px;

    outline: none;

    background: #fff;

    color: #222;

    font-size: 16px;

    transition: 0.2s;
}

.field input:focus {
    border-color: #c40000;

    box-shadow:
        0 0 0 3px
        rgba(196, 0, 0, 0.08);
}

.field input::placeholder {
    color: #a1a6ad;
}


/* ================================
   正码标题
================================ */

.section-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 11px;
}

.section-title span {
    font-size: 16px;

    font-weight: 700;
}

.section-title small {
    color: #888;

    font-size: 13px;
}


/* ================================
   6个正码
================================ */

.balls {
    display: grid;

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

    gap: 12px;

    margin-bottom: 24px;
}

.ball-field {
    min-width: 0;

    text-align: center;
}

.ball-label {
    margin-bottom: 7px;

    color: #666;

    font-size: 13px;
}

.ball-field input {
    width: 100%;

    height: 52px;

    padding: 0 6px;

    border: 2px solid #e0e3e7;

    border-radius: 26px;

    outline: none;

    background: #fff;

    color: #c40000;

    text-align: center;

    font-size: 18px;

    font-weight: 700;
}

.ball-field input:focus {
    border-color: #d00000;

    box-shadow:
        0 0 0 3px
        rgba(196, 0, 0, 0.08);
}


/* 去掉数字输入框上下按钮 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;

    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}


/* ================================
   蓝球
================================ */

.blue-input:focus {
    border-color: #1769d2 !important;

    box-shadow:
        0 0 0 3px
        rgba(23, 105, 210, 0.08) !important;
}


/* ================================
   注单编号
================================ */

.full-field {
    margin-bottom: 8px;
}


/* ================================
   提交按钮
================================ */

.submit-btn {
    width: 100%;

    height: 52px;

    margin-top: 20px;

    border: 0;

    border-radius: 10px;

    background: #c40000;

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.submit-btn:hover {
    opacity: 0.92;
}

.submit-btn:disabled {
    background: #aaa;

    cursor: not-allowed;
}


/* ================================
   提交结果
================================ */

.message {
    margin-top: 18px;

    padding: 13px 15px;

    border-radius: 8px;

    text-align: center;

    font-size: 15px;
}

.message.success {
    background: #edf9f0;

    border: 1px solid #b9e4c3;

    color: #137333;
}

.message.error {
    background: #fff1f0;

    border: 1px solid #ffc9c5;

    color: #b42318;
}

.hidden {
    display: none !important;
}


/* ================================
   底部说明
================================ */

.bottom-notice {
    margin-top: 24px;

    padding-top: 18px;

    border-top: 1px solid #eeeeee;

    color: #888;

    text-align: center;

    font-size: 13px;

    line-height: 1.9;
}


/* ================================
   封盘弹窗
================================ */

.modal {
    position: fixed;

    z-index: 9999;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.5);
}

.modalbox {
    width: 100%;

    max-width: 450px;

    padding: 30px 25px;

    border-radius: 15px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 15px 50px
        rgba(0, 0, 0, 0.22);
}

.modal-icon {
    margin-bottom: 8px;

    font-size: 40px;
}

.modalbox h2 {
    margin:
        0
        0
        15px;

    color: #c40000;

    font-size: 23px;
}

.modal-message {
    margin-bottom: 22px;

    color: #555;

    font-size: 15px;

    line-height: 1.8;
}

.modalbox button {
    min-width: 130px;

    height: 44px;

    padding: 0 25px;

    border: 0;

    border-radius: 8px;

    background: #c40000;

    color: #fff;

    font-size: 15px;

    cursor: pointer;
}


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

@media
(max-width: 700px) {

    .wrap {
        padding:
            12px
            10px
            30px;
    }

    .card {
        padding:
            22px
            15px;

        border-radius: 11px;
    }

    .title-area h1 {
        font-size: 25px;
    }

    .subtitle {
        font-size: 14px;
    }

    .clock-time {
        font-size: 21px;
    }

    .grid {
        grid-template-columns: 1fr;

        gap: 16px;

        margin-bottom: 18px;
    }

    .balls {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap:
            14px
            10px;
    }

    .ball-field input {
        height: 48px;
    }

    .section-title {
        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }

    .field input {
        height: 47px;
    }

}


/* ================================
   超小手机
================================ */

@media
(max-width: 380px) {

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

}