:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  color: #232d4d;
  background: #f7f8fc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 80% 0, #e5ebfc 0, transparent 55%); }
.portal { max-width: 37rem; margin: 0 auto; padding: clamp(1.25rem, 7vw, 4rem) 1.25rem; }
.product { margin-bottom: 1.5rem; }
.brand { margin: 0 0 .6rem; color: #394d80; font-size: .95rem; font-weight: 700; }
h1, h2 { margin: 0; line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
h2 { font-size: 1.3rem; }
p { color: #536185; line-height: 1.6; }
.product p:last-child { margin: .65rem 0 0; }
.card { background: #fff; border: 1px solid #dfe5f1; border-radius: 1rem; padding: clamp(1.1rem, 5vw, 2rem); box-shadow: 0 .75rem 2.5rem #2d385011; }
.switch { display: flex; gap: .25rem; border-bottom: 1px solid #e3e8f3; margin-bottom: 1.3rem; }
.switch button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding-inline: .85rem; }
.switch button[aria-pressed="true"] { border-color: #4a5fb0; color: #34468e; font-weight: 700; }
form { display: grid; gap: .48rem; margin-top: 1.05rem; }
label { margin-top: .55rem; font-size: .92rem; font-weight: 600; }
input, button, .primary { font: inherit; border-radius: .55rem; }
input { min-width: 0; width: 100%; border: 1px solid #c8d2e8; padding: .7rem .8rem; color: inherit; background: #fff; }
input::placeholder { color: #657597; }
button, .primary { padding: .68rem .82rem; cursor: pointer; color: #34468e; background: #eff2fc; border: 1px solid #dce3f4; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 2px solid #536bbd; outline-offset: 2px; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.rules, .status { margin: 0; font-size: .875rem; }
.status:not(:empty) { margin-top: 1rem; }
.status[data-error="true"] { color: #a02040; }
.primary { display: inline-block; margin-top: .65rem; background: #354b91; border-color: #354b91; color: #fff; text-align: center; text-decoration: none; font-weight: 650; }
.primary:not(:disabled):hover { background: #2c407d; }
