:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: #16211e;
  background: #f3f5f4;
  font-synthesis: none;
  --ink: #16211e;
  --muted: #68736f;
  --green: #087a55;
  --line: #d5dcda;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1000px, calc(100% - 40px)); min-height: 80px; margin: auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--green); border-radius: 6px; color: white; }
.header-note { color: var(--muted); font-size: 12px; }
main { width: min(680px, calc(100% - 40px)); margin: 64px auto 40px; }
.redeem-panel, .result-panel { padding: 36px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 32px rgba(26, 45, 39, .035); }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
h1 { margin: 0; font-size: clamp(23px, 4.3vw, 30px); line-height: 1.4; letter-spacing: -.5px; }
.intro { margin: 14px 0 30px; color: var(--muted); font-size: 13px; line-height: 1.9; }
label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
input { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 13px 14px; border: 1px solid #bdc9c3; border-radius: 6px; background: #fcfdfc; color: var(--ink); font-size: 16px; }
input::placeholder { color: #89948f; font-size: 13px; }
input:focus { border-color: var(--green); outline: 3px solid #e3f4ed; }
.hint { margin: 10px 0 24px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 11px 15px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; }
.button-primary { width: 100%; min-height: 48px; background: var(--green); color: white; }
.button-primary:hover { background: #056343; }
.button-secondary { border-color: var(--line); background: white; color: var(--ink); }
.button-secondary:hover { background: #f3f5f4; }
.button:disabled { opacity: .6; cursor: wait; }
.button:focus-visible, a:focus-visible { outline: 3px solid #9cd9c2; outline-offset: 3px; }
.form-message { margin: 18px 0 0; padding: 12px 14px; border-radius: 6px; background: #fff5e4; color: #845900; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.result-panel { margin-top: 20px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-heading .eyebrow { margin-bottom: 8px; }
h2 { margin: 0; font-size: 23px; }
.result-summary { margin: 16px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.account-list { display: grid; gap: 12px; }
.account { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fcfdfc; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-header h3 { margin: 0; font-size: 12px; }
.account-header .button { min-height: 30px; padding: 6px 10px; font-size: 11px; }
.account dl { display: grid; gap: 10px; margin: 0; }
.account dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.account dd { margin: 0; }
.account code { font-family: Consolas, monospace; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.delivery-reminder { margin: 24px 0 0; padding: 12px 14px; border-left: 3px solid #a46200; background: #fff7e7; color: #71551b; font-size: 12px; line-height: 1.8; }
.order-reference { margin: 18px 0 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
footer { padding: 24px 8px 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.8; }
footer p { margin: 4px 0; }
.support-link { display: inline-block; margin-top: 8px; color: var(--green); font-weight: 700; text-decoration: none; }
@media (max-width: 520px) {
  .site-header { width: calc(100% - 32px); min-height: 66px; }
  main { width: calc(100% - 32px); margin-top: 32px; }
  .redeem-panel, .result-panel { padding: 24px 20px; }
  .intro { margin-bottom: 26px; }
  .account { padding: 14px; }
}
