:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f3eee2;
  color: #20263a;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f3eee2; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #b8872e; outline-offset: 3px; }
.page-shell { width: min(100% - 48px, 1180px); min-height: 100vh; margin: 0 auto; padding: 30px 0 22px; display: flex; flex-direction: column; }
.site-header { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: 0 4px 19px; border-bottom: 1px solid #bd9c58; }
.wordmark { display: grid; gap: 4px; color: #1e2b51; text-decoration: none; }
.wordmark-kicker { color: #ae342e; font-family: Georgia, "Times New Roman", serif; font-size: 14px; font-weight: 700; line-height: 1; }
.wordmark-title { font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 28px; font-weight: 700; line-height: 1.1; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { color: #49557a; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #a72d2b; border-bottom: 2px solid #a72d2b; padding-bottom: 5px; }
.portal-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 456px); align-items: center; gap: clamp(42px, 7vw, 108px); padding: 42px 0 32px; }
.character-stage { position: relative; min-height: min(65vh, 610px); overflow: hidden; border-left: 1px solid #bd9c58; border-bottom: 1px solid #bd9c58; }
.character-stage::after { position: absolute; inset: 18px 18px auto auto; width: 42px; height: 42px; border-top: 1px solid #bd9c58; border-right: 1px solid #bd9c58; content: ""; z-index: 2; }
.character-copy { position: relative; z-index: 2; width: min(44%, 270px); padding: 30px 0 0 30px; color: #1e2b51; }
.chapter-mark { margin: 0 0 14px; color: #a72d2b; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-weight: 700; }
.character-greeting { margin: 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 31px; font-weight: 700; line-height: 1.36; }
.character-note { margin: 14px 0 0; color: #59627a; font-size: 14px; line-height: 1.8; }
.character-portrait { position: absolute; inset: 0; margin: 0; pointer-events: none; z-index: 1; }
.character-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 50%; filter: drop-shadow(0 12px 26px rgb(60 46 26 / 26%)); }
.redeem-panel { position: relative; padding: 35px; border: 1px solid #c8b07d; border-top: 5px solid #a72d2b; background: #fffdf8; box-shadow: 0 18px 34px rgb(38 37 32 / 12%); }
.redeem-panel::before { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-top: 1px solid #bd9c58; border-right: 1px solid #bd9c58; content: ""; }
.panel-heading { margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: #a72d2b; font-size: 13px; font-weight: 700; }
h1 { margin: 0; color: #1e2b51; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 29px; line-height: 1.3; }
.panel-heading > p:last-child { margin: 10px 0 0; color: #5e6574; font-size: 15px; line-height: 1.68; }
form { display: grid; gap: 20px; }
.field-group { display: grid; gap: 7px; min-width: 0; }
label { color: #263352; font-size: 15px; font-weight: 700; }
input { width: 100%; min-height: 49px; border: 1px solid #b6ad9a; border-radius: 2px; padding: 11px 12px; background: #fffefa; color: #20263a; line-height: 1.4; }
input::placeholder { color: #9b958a; }
input:hover { border-color: #777d92; }
input:focus { border-color: #31446f; }
input:disabled { cursor: not-allowed; opacity: .72; }
.field-hint, .account-link { margin: 0; color: #727170; font-size: 13px; line-height: 1.55; }
button { width: 100%; min-height: 50px; border: 1px solid #972c2c; border-radius: 2px; padding: 10px 16px; background: #a72d2b; color: #fffaf0; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
button:hover:not(:disabled) { border-color: #812421; background: #812421; }
button:disabled { cursor: wait; opacity: .68; }
.form-status { margin: 22px 0 0; border-left: 3px solid #65708f; padding: 11px 12px; background: #f1efe9; color: #3e475f; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.form-status.is-success { border-color: #537557; background: #edf3e9; color: #35583b; }
.form-status.is-error { border-color: #a72d2b; background: #f9e9e5; color: #822523; }
.reward-details { margin-top: 22px; border-top: 1px solid #d8c9a9; border-bottom: 1px solid #d8c9a9; color: #626779; font-size: 13px; line-height: 1.65; }
.reward-details summary { padding: 13px 1px; color: #273d70; cursor: pointer; font-weight: 700; }
.reward-details p { margin: 0; padding: 0 1px 14px; }
.account-link { margin-top: 22px; }
a { color: #273d70; font-weight: 700; }
.site-footer { margin-top: 8px; color: #827560; font-family: Georgia, "Times New Roman", serif; font-size: 13px; text-align: center; }
@media (max-width: 820px) { .page-shell { width: min(100% - 32px, 680px); padding-top: 23px; } .portal-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 26px; } .character-stage { min-height: 238px; } .character-copy { width: 55%; padding: 23px 0 0 24px; } .character-greeting { font-size: 27px; } .character-note { font-size: 13px; line-height: 1.65; } .character-portrait img { object-position: 62% 43%; } .redeem-panel { width: min(100%, 500px); justify-self: center; } }
@media (max-width: 480px) { .page-shell { width: min(100% - 24px, 680px); } .site-header { align-items: start; gap: 16px; padding-bottom: 15px; } .wordmark-title { font-size: 24px; } .site-nav { gap: 12px; font-size: 13px; text-align: right; } .character-stage { min-height: 212px; } .character-stage::after { inset: 12px 12px auto auto; width: 30px; height: 30px; } .character-copy { width: 58%; padding: 19px 0 0 18px; } .chapter-mark { margin-bottom: 9px; font-size: 11px; } .character-greeting { font-size: 23px; } .character-note { margin-top: 8px; font-size: 12px; line-height: 1.55; } .redeem-panel { padding: 27px 20px; } h1 { font-size: 27px; } }
@media (max-width: 360px) { .site-nav { gap: 9px; } .site-nav a { max-width: 64px; } .character-copy { width: 61%; } .redeem-panel { padding: 24px 16px; } }
@media (max-width: 820px) { .character-copy { width: 46%; } .character-portrait { left: 35%; right: -22%; } .character-portrait img { object-position: 55% 30%; } }
