:root {
    --red: #B32D26;
    --black: #222222;
    --input-bg: #E8E8E8;
    --blue: #448AFF;
    --gray-note: #939597;
    --gray-note2: #9F9F9F;
    --gray-note3: #999999;
    --dark: #231F1F;
    --body: #3B3B3B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: url('../images/background.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
}

.logo {
    position: absolute;
    top: 34px;
    left: 40px;
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.card {
    width: 500px;
    margin-left: 250px;
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 34px 26px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.card-title {
    color: var(--red);
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
}

.input-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--input-bg);
    border-radius: 10px;
    height: 48px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.input-icon {
    width: 20px;
    height: 20px;
    flex: none;
    opacity: .7;
}

.input-box input {
    flex: none;
    field-sizing: content;
    min-width: 90px;
    max-width: 360px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--dark);
    text-align: center;
}

.input-box input::placeholder {
    color: var(--body);
    text-align: center;
}

.query-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--black);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s ease;
}

.query-btn:hover {
    opacity: .85;
}

.sample-divider {
    display: flex;
    align-items: center;
    margin: 30px 0 18px;
    color: var(--gray-note);
    font-size: 14px;
}

.sample-divider::before,
.sample-divider::after {
    content: "";
    flex: 1;
    border-top: 1px dashed #C9C9C9;
}

.sample-divider span {
    padding: 0 14px;
}

.sample-barcode {
    display: block;
    margin: 14px auto;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.notes {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 18px;
    color: var(--gray-note2);
    font-size: 13px;
    line-height: 1.7;
}

.footer-note {
    color: var(--gray-note);
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid #EEEEEE;
    padding-top: 16px;
}

.result-body {
    font-size: 16px;
    color: var(--dark);
    line-height: 1.9;
    margin-bottom: 8px;
}

.result-body p {
    margin-bottom: 12px;
}

.serial-blue {
    color: var(--blue);
    font-weight: 600;
}

.qr-wrap {
    text-align: center;
    margin-top: 18px;
}

.qr-img {
    width: 134px;
    height: 138px;
    display: block;
    margin: 0 auto 8px;
}

.qr-caption {
    color: var(--gray-note3);
    font-size: 13px;
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--red);
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .page {
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 40px;
        background-image: url('../images/background-mobile.png');
    }
    .card {
        margin-left: 0;
        width: calc(100% - 40px);
        max-width: 500px;
    }
}
