:root {
    --spring: #7C3AED;
    --summer: #3B82F6;
    --hot: #FF6A33;
    --ok: #14B8A6;
    --ink: #172033;
    --muted: #7B8496;
    --line: #E6EAF2;
    --soft: #F6F8FC;
    --theme: var(--spring);
    --theme-soft: #F2ECFF;
    --theme-shadow: rgba(124, 58, 237, .16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #F7F9FD;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #F7F9FD;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
}

body.theme-summer {
    --theme: var(--summer);
    --theme-soft: #EAF2FF;
    --theme-shadow: rgba(59, 130, 246, .16);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.page {
    width: min(625px, 100%);
    margin: 0 auto;
    padding: 8px 0 38px;
}

.top-title {
    padding: 18px 8px 14px;
    border: 1px solid #DADDE5;
    border-radius: 12px 12px 0 0;
    background: #fff;
}

.top-title h1 {
    margin: 0 0 10px;
    color: #111827;
    text-align: center;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
}

.top-title p {
    margin: 0;
    color: #8C8F98;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
}

.top-title strong {
    color: #FF0000;
}

.hero {
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-top: 5px solid var(--theme);
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--theme);
    background: var(--theme-soft);
    font-size: 13px;
    font-weight: 900;
}

.hero__tag span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hot);
    box-shadow: 0 0 0 4px rgba(255, 106, 51, .16);
}

.hero h1 {
    margin: 13px 0 8px;
    color: #111827;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 900;
}

.hero p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 700;
}

.hero strong {
    color: var(--hot);
}

.query-panel {
    margin-top: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
}

.exam-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.exam-tab {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #596275;
    background: #fff;
    font-size: 15px;
    font-weight: 900;
}

.exam-tab small {
    display: block;
    margin-top: 1px;
    color: #9AA3B2;
    font-size: 10px;
    font-weight: 800;
}

.exam-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--theme);
    box-shadow: 0 8px 18px var(--theme-shadow);
}

.exam-tab.is-active small {
    color: rgba(255, 255, 255, .78);
}

#queryForm {
    padding: 10px 8px 14px;
}

.form-group {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.form-group label {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 0 13px;
    border-bottom: 1px solid #F0F2F6;
}

.form-group label:last-child {
    border-bottom: 0;
}

.form-group span {
    flex: 0 0 106px;
    color: #354157;
    font-size: 15px;
    font-weight: 900;
}

.form-group input,
.form-group select {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    color: #263143;
    background: transparent;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
}

.form-group select {
    appearance: none;
    padding-right: 22px;
    background-image: linear-gradient(45deg, transparent 50%, #B8C0CF 50%), linear-gradient(135deg, #B8C0CF 50%, transparent 50%);
    background-position: calc(100% - 10px) 18px, calc(100% - 4px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-group input::placeholder {
    color: #8B94A5;
}

.search-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--theme);
    box-shadow: 0 10px 22px var(--theme-shadow);
    font-size: 18px;
    font-weight: 900;
}

.records {
    margin-top: 20px;
}

.records__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.records h2 {
    margin: 0;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

.records__head button {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #6B7280;
    background: #fff;
    font-weight: 800;
}

.result-list {
    display: grid;
    gap: 10px;
}

.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    border: 1px dashed #D8DEEA;
    border-radius: 16px;
    color: #9AA3B2;
    background: #fff;
    font-weight: 800;
}

.result-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .04);
}

.result-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 15px 11px;
    border-bottom: 1px solid #EEF1F6;
}

.school {
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.status {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--hot);
    background: #FFF0EA;
    font-size: 14px;
    font-weight: 900;
}

.status.is-ok {
    color: var(--ok);
    background: #E8FAF7;
}

.result-card__body {
    padding: 12px 15px 15px;
}

.info-line {
    color: #2B3548;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 800;
}

.info-line span {
    color: #7B8496;
}

.score-table {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    border-spacing: 0;
}

.score-table th,
.score-table td {
    padding: 9px 10px;
    border-right: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

.score-table th:last-child,
.score-table td:last-child {
    border-right: 0;
}

.score-table th {
    color: #5A6170;
    background: var(--theme-soft);
    font-weight: 900;
}

.score-table td {
    color: #111827;
    background: #fff;
    font-weight: 900;
}

.time-line {
    margin-top: 10px;
    color: #A0A8B7;
    text-align: right;
    font-size: 13px;
    font-weight: 800;
}

.is-hidden {
    display: none !important;
}

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(31, 41, 55, .72);
}

.modal-mask.is-show {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(420px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 22px 18px 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .22);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #667085;
    background: #F2F4F7;
    font-size: 26px;
    line-height: 1;
}

.modal-kicker {
    color: var(--hot);
    font-size: 14px;
    font-weight: 900;
}

.modal-card h3 {
    margin: 8px 0 5px;
    color: #111827;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.modal-card p {
    margin: 0 0 14px;
    color: #8A93A3;
    font-size: 14px;
    font-weight: 700;
}

.activate-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.activate-row input {
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    border: 2px solid #18C6B6;
    border-radius: 12px;
    outline: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.activate-row button,
.consult-btn {
    height: 50px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #16B8AA;
    font-size: 16px;
    font-weight: 900;
}

.qr-box {
    display: flex;
    justify-content: center;
    margin: 14px auto 10px;
}

.qr-image {
    display: block;
    width: min(230px, 70vw);
    max-height: 32vh;
    object-fit: contain;
}

.modal-tip {
    color: #7B8496;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.consult-card .consult-btn {
    width: 100%;
    margin-top: 4px;
}

.admit-card .modal-kicker,
.admit-card h3 {
    color: var(--hot);
}

.admit-detail {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 12px;
    border-radius: 12px;
    background: #FFF4EF;
    text-align: left;
}

.admit-detail div {
    color: #111827;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 900;
    word-break: break-word;
}

.admit-detail span {
    display: block;
    color: var(--hot);
    font-size: 14px;
}

.admit-detail strong {
    display: block;
    color: #111827;
    font-size: 16px;
}

.admit-card .consult-btn {
    width: 100%;
    margin-top: 4px;
    background: var(--hot);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 90;
    transform: translate(-50%, 12px);
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, .92);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    font-size: 14px;
    font-weight: 800;
}

.toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 520px) {
    .page {
        padding: 0 0 28px;
    }

    .top-title {
        border-radius: 0;
        padding: 18px 8px 14px;
    }

    .top-title h1 {
        font-size: 23px;
    }

    .top-title p {
        font-size: 10px;
    }

    .hero {
        padding: 18px 15px;
        border-radius: 15px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .form-group label {
        min-height: 56px;
        padding: 0 11px;
    }

    .form-group span {
        flex-basis: 92px;
        font-size: 14px;
    }

    .modal-card {
        padding: 20px 16px 16px;
    }

    .modal-card h3 {
        font-size: 24px;
    }

    .qr-image {
        width: min(190px, 64vw);
        max-height: 28vh;
    }
}
