:root {
    color-scheme: light;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #193833;
    background: #dbe9e5;
}

* { box-sizing: border-box; }
body { margin: 0; }

.page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 40px;
    padding: 36px max(5.5%, calc((100% - 1420px) / 2));
    background: linear-gradient(90deg, #0e302b85, #173e3527 59%, #e6efdc12),
        url("fantasy-background.jpg") center / cover no-repeat;
}

.brand-header {
    align-self: end;
    margin-bottom: 64px;
    color: #fffdf2;
    text-shadow: 0 2px 18px #102c2a, 0 2px 4px #102c2a;
}

.edition {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
}

.seal {
    display: grid;
    place-items: center;
    flex: none;
    width: 54px;
    height: 54px;
    border: 1px solid #f1d9a6;
    border-radius: 10px;
    background: #793c35;
    color: #fff0ce;
    font: 700 34px/1 KaiTi, serif;
    text-shadow: none;
}

h1 {
    margin: 0;
    font: 700 92px/1.12 KaiTi, "Songti SC", SimSun, serif;
}

.brand-motto {
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid #f6dfb6a6;
    width: fit-content;
    color: #fff4d6;
    font-size: 17px;
}

.registration-panel {
    min-width: 0;
    padding: 32px;
    border: 1px solid #fff;
    border-radius: 26px;
    background: #f7faf5f5;
    box-shadow: 0 18px 55px #193d3e40;
}

.panel-header { margin: 0 0 20px; }
h2 { margin: 0; font: 700 31px/1.24 KaiTi, "Songti SC", SimSun, serif; }

form, .field { display: grid; min-width: 0; }
form { gap: 13px; }
.field { gap: 6px; }
.field-pair, .captcha-row { display: grid; gap: 12px; }
.field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.captcha-row { grid-template-columns: minmax(0, 1fr) minmax(86px, 112px); }
label { font-size: 14px; font-weight: 600; }
.optional { margin-left: 6px; color: #586f67; font-weight: 400; font-size: 12px; }

input:not([type="hidden"]) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #b0c3b8;
    border-radius: 11px;
    background: #fff;
    color: #193833;
    font: inherit;
}

input::placeholder { color: #5e7269; font-size: 13px; opacity: 1; }
input:focus { border-color: #246b58; outline: 2px solid #246b5845; outline-offset: 1px; }

.captcha-question {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 4px;
    border: 1px solid #d5c697;
    border-radius: 11px;
    background: #f3eddb;
    color: #5b4827;
    font: 700 16px Consolas, monospace;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    background: #235e4e;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
button:hover { background: #174b3d; }
button:focus-visible { outline: 2px solid #235e4e; outline-offset: 3px; }

.notice {
    margin: 0 0 15px;
    padding: 10px 12px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.notice p { margin: 2px 0; }
.notice-success { background: #e7f2e8; color: #21533d; border-color: #a3c3ad; }
.notice-error { background: #fbede8; color: #792c23; border-color: #e3b3a6; }

@media (max-width: 930px) {
    h1 { font-size: 64px; }
    .page-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; }
}

@media (max-width: 720px) {
    .page-shell {
        grid-template-columns: minmax(0, min(100%, 460px));
        align-content: start;
        justify-content: center;
        gap: 20px;
        padding: 24px 16px;
        background-position: 38% center;
    }
    .brand-header { margin: 0; }
    .edition { margin-bottom: 9px; }
    .seal { width: 40px; height: 40px; font-size: 26px; }
    h1 { font-size: 52px; }
    .brand-motto { margin-top: 8px; padding-top: 6px; font-size: 14px; }
    .registration-panel { padding: 22px; border-radius: 21px; }
    .field-pair { grid-template-columns: minmax(0, 1fr); }
}
