:root { font: 16px/1.55 system-ui, "Microsoft YaHei", sans-serif; color: #253b34; background: #f7f4ed; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 32px, 480px); margin: clamp(24px, 7vh, 80px) auto; }
.offer { padding: 26px 28px; color: #f8f4e9; background: #174e45; border-radius: 16px 16px 0 0; }
.brand { color: #d4e2d9; font-size: .85rem; }
h1 { font: 600 2rem/1.25 Georgia, "Songti SC", SimSun, serif; margin: 12px 0; }
h2 { font-size: 1.28rem; margin: 0 0 18px; }
h3 { font-size: 1.05rem; }
.price { font: 500 3rem/1.2 Georgia, serif; }
.price small { font-size: 1.25rem; }
.price span { font: 1rem system-ui, sans-serif; }
.offer p { margin-bottom: 0; }
.panel { background: #fff; border: 1px solid #d9d7c9; border-radius: 0 0 16px 16px; padding: 24px 28px; }
label { display: block; margin-bottom: 12px; }
input { width: 100%; padding: 11px; font: inherit; border: 1px solid #91a69d; border-radius: 6px; }
button,.button { display: inline-block; text-align: center; cursor: pointer; border: 0; border-radius: 7px; padding: 11px 18px; background: #176858; color: #fff; font: inherit; text-decoration: none; }
.panel form > button:not(.link),.button { width: 100%; margin: 6px 0 12px; }
a,.link { color: #175e50; text-underline-offset: 3px; }
.link { padding: 4px; background: transparent; text-decoration: underline; }
.secondary { background: #e6f0ec; color: #194f42; }
.row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.code { font: bold 1.1rem monospace; user-select: all; }
.qr { display: block; width: 100%; height: auto; }
.channels { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(126px,100%),1fr)); gap: 10px; }
.channels figure { margin: 0; padding: 5px; border: 1px solid #c0cec8; border-radius: 8px; }
.channels figcaption { text-align: center; font-weight: 600; padding: 5px; }
hr { border: 0; border-top: 1px solid #ddd; margin: 18px 0; }
footer { text-align: center; padding: 16px; }
[role=alert] { color: #982e27; }
.results [data-paipan-storage] .primary:disabled { display:none; }
.offer-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.offer-top a { color: #fff; font-size: .9rem; padding-block: 4px; }
.membership .hint { color: #4d6159; margin: -8px 0 14px; }
.membership .button.secondary { margin-top: 0; }
.membership #login { scroll-margin-top: 16px; }
.membership :focus-visible { outline: 3px solid #a76418; outline-offset: 3px; }
@media (max-width: 390px) {
  .membership { width: calc(100% - 24px); margin-block: 16px; }
  .membership .offer,.membership .panel { padding: 20px; }
}
