:root {
    color-scheme: light;
    --ink: #17181b;
    --muted: #565a63;
    --line: #dce0e6;
    --brand: #b82d25;
    --brand-dark: #99231c;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #f4f5f7;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:is(a, button, input):focus-visible { outline: 3px solid #2764d3; outline-offset: 3px; }
.shell { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: white; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 72px; }
.brand, .home-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; white-space: nowrap; }
.brand { font-size: .92rem; font-weight: 700; }
.brand img { width: 105px; height: auto; }
.home-link { padding: 0 13px; border: 1px solid #e8c9c5; border-radius: 7px; color: var(--brand-dark); font-size: .9rem; font-weight: 650; }
.home-link:hover { background: #fff3f1; }

main.shell { width: min(960px, calc(100% - 64px)); padding-block: clamp(52px, 9vh, 104px) 34px; }
.verification {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 56px #17181b0b;
}
.intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(36px, 5vw, 58px);
    background: radial-gradient(ellipse at 9% 105%, #49272a, transparent 65%), #1c1f27;
    color: #fff;
}
.english-title { margin-bottom: 12px; color: #ffc0b9; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 4.1vw, 3.1rem); line-height: 1.13; letter-spacing: -.04em; }
.intro-copy { max-width: 18em; margin-top: 23px; color: #f0edf0; font-size: 1.04rem; line-height: 1.75; }
.intro-english { max-width: 25em; margin-top: 11px; color: #d1ccd3; font-size: .87rem; line-height: 1.6; }
.language-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 20px; color: #ffc0b9; font-size: .89rem; }
.language-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro a:focus-visible { outline-color: #a9c6ff; }

.query { min-width: 0; padding: clamp(33px, 5vw, 57px); }
form { display: grid; gap: 24px; }
.field label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 9px; font-weight: 700; }
.field label span { color: var(--muted); font-size: .77rem; font-weight: 500; }
.field input { display: block; width: 100%; min-width: 0; height: 50px; padding: 0 13px; border: 1px solid #aeb4bd; border-radius: 8px; background: #fafbfc; color: var(--ink); font-size: 1rem; }
.field input:focus { border-color: #2764d3; background: #fff; }
.hint { margin-top: 8px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.captcha-button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f5f6f8; color: #393b40; }
.captcha-button:hover { border-color: #9399a4; background: #ecedf0; }
.captcha-button img { display: block; width: 90px; height: 28px; object-fit: contain; }
.captcha-button span { font-size: 1.1rem; line-height: 1; }
.captcha-button:disabled { cursor: wait; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--brand); color: white; font-weight: 700; }
.submit-button span { font-size: .81rem; font-weight: 500; }
.submit-button:hover { background: var(--brand-dark); }
.submit-button:disabled { opacity: .7; cursor: wait; }

.result:not(:empty) { margin-top: 19px; padding: 12px 14px; border: 1px solid #e8b8b2; border-radius: 8px; background: #fff6f4; color: #7a211a; font-size: .88rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.result[data-tone="success"] { border-color: #acd5b7; background: #edf8ef; color: #20572d; }
.result[data-tone="warning"] { border-color: #edcc91; background: #fff8e9; color: #684511; }
.site-footer { padding-block: 16px 28px; text-align: center; color: var(--muted); }

@media (max-width: 700px) {
    .shell, main.shell { width: min(470px, calc(100% - 32px)); }
    .header-inner { min-height: 62px; }
    main.shell { padding-block: 23px 18px; }
    .verification { grid-template-columns: 1fr; border-radius: 15px; }
    .intro { padding: 25px 24px 12px; }
    .intro-copy { max-width: none; margin-top: 13px; font-size: .93rem; }
    .intro-english { margin-top: 6px; }
    .language-link { margin-top: 3px; }
    .query { padding: 24px; }
    form { gap: 19px; }
}

@media (max-width: 370px) {
    .brand { gap: 6px; font-size: .75rem; }
    .brand img { width: 84px; }
    .home-link { gap: 6px; padding-inline: 9px; }
    .intro, .query { padding-inline: 17px; }
}
