:root {
  color-scheme: dark;
  --header-height: 72px;
  --header-compact-height: 52px;
  --bg: #0b0b0b;
  --panel: #191919;
  --border: #343126;
  --text: #f4f1e8;
  --muted: #b9b4a5;
  --header: #080808;
  --gold: #dfc66d;
  --gold-hover: #ccae40;
  --gold-ink: #dfc66d;
  --gold-soft: #282416;
  --gold-border: #70602f;
  --disabled-bg: #2c281a;
  --disabled-text: #c2b282;
  --button-text: #17150f;
  --error: #e9a5a5;
  --font: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 12px); scrollbar-color: var(--gold-border) var(--bg); }
body { margin: 0; padding-top: var(--header-height); color: var(--text); font-family: var(--font); background: var(--bg); font-size: 14px; line-height: 1.65; min-height: 100vh; }
::selection { background: var(--gold); color: var(--button-text); }
button { font: inherit; border: 0; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, a { transition: background-color .2s, color .2s, box-shadow .2s, transform .2s; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 5px; }
.site-header a:focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); border-bottom: 1px solid var(--border); background: var(--header); color: var(--text); transition: height .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease-out; }
.header-inner { width: min(calc(100% - 40px), 1240px); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-compact { height: var(--header-compact-height); box-shadow: 0 8px 24px #00000033; }
.site-header.is-compact .brand img { height: 32px; }
.site-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; white-space: nowrap; }
.site-nav a { font-size: 14px; font-weight: 650; line-height: 1.5; padding: 10px 0; }
.site-nav a:hover { color: var(--gold); }
.header-menu { display: none; position: relative; }
.header-menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border-radius: 9px; color: var(--text); }
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary:hover, .header-menu[open] summary { color: var(--gold); background: var(--gold-soft); }
.header-menu nav { position: absolute; top: calc(100% + 10px); right: 0; width: min(260px, calc(100vw - 40px)); padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); box-shadow: 0 8px 24px #00000033; }
.header-menu nav a { display: block; padding: 11px 14px; border-radius: 7px; font-size: 14px; line-height: 1.6; }
.header-menu nav a:hover { color: var(--gold); background: var(--gold-soft); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: auto; height: 42px; border-radius: 0; transition: height .22s cubic-bezier(.16, 1, .3, 1); }
.activity-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--gold-border); background: transparent; color: var(--gold); font-size: 12px; line-height: 1; font-weight: 650; padding: 9px 12px; border-radius: 100px; white-space: nowrap; }
.activity-pill i { width: 6px; height: 6px; border-radius: 100%; background: currentColor; }
.header-action { display: flex; gap: 7px; align-items: center; border: 1px solid var(--gold); background: var(--gold); color: var(--button-text); font-size: 12px; padding: 8px 12px; border-radius: 9px; }
.header-action:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.lang-switch { position: relative; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; cursor: pointer; list-style: none; user-select: none; color: #fff; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: #1c1e22; }
.lang-flag { width: 22px; height: 15px; display: block; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px #ffffff1f; }
.lang-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #26292e; color: #f4f1e8; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .3px; white-space: nowrap; }
.lang-caret { font-size: 9px; line-height: 1; color: #f4f1e8; margin-left: -1px; transition: transform .18s ease; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; min-width: 112px; padding: 8px 0; border: 1px solid #2e3238; border-radius: 4px; background: #212529; box-shadow: 0 10px 28px #00000080; display: flex; flex-direction: column; z-index: 120; }
.lang-option { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: transparent; color: #fff; text-align: left; }
.lang-option .lang-badge { background: #343a40; color: #fff; transition: background-color .15s, color .15s; }
.lang-option:hover { background: #2c3136; }
.lang-option:hover .lang-badge, .lang-option.is-active .lang-badge { background: var(--gold); color: var(--button-text); }

.page { width: min(100% - 40px, 500px); margin: auto; }
.hero { text-align: center; padding: 56px 0 34px; }
h1, h2, p { margin: 0; }
h1 { font-weight: 850; font-size: 38px; line-height: 1.32; letter-spacing: -1.2px; margin: 23px auto 22px; text-wrap: balance; }
.accent-text { color: var(--gold-ink); }
.hero-copy { font-size: 15px; line-height: 1.9; color: var(--muted); }
.panel { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 23px; box-shadow: 0 16px 40px #00000033; overflow: hidden; }
.query-panel { padding: 26px 28px 23px; }
.claim-panel { border-color: var(--gold-border); }
.panel-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.status { color: var(--gold-ink); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.status i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.text-button { display: inline-flex; align-items: center; justify-content: center; padding: 2px 0; background: transparent; color: var(--gold-ink); font-size: 11px; white-space: nowrap; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; color: var(--text); }
.button { width: 100%; min-height: 54px; border: 1px solid var(--gold-ink); border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 750; line-height: 1.35; padding: 14px 15px; color: var(--button-text); }
.primary { background: var(--gold); }
.primary:hover:not(:disabled) { background: var(--gold-hover); transform: translateY(-1px); }
.primary:active:not(:disabled) { transform: translateY(0); }
.claim-button:disabled { cursor: default; opacity: 1; transform: none; background: var(--disabled-bg); border-color: var(--gold-border); box-shadow: none; color: var(--disabled-text); }

.claim-panel h2 { font-size: 22px; line-height: 1.5; margin: 21px 0 10px; }
.claim-panel .claim-copy { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0 0 24px; }
.claim-highlight { color: #dfc66d; font-size: 1.25em; font-weight: 800; font-variant-numeric: tabular-nums; }
.claim-label { display: block; margin-bottom: 9px; color: var(--text); font-size: 13px; font-weight: 650; }
.claim-input-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 15px; border: 1px solid var(--gold-border); border-radius: 13px; background: var(--bg); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.claim-input-row:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.claim-input-row:has([aria-invalid="true"]) { border-color: var(--error); }
.claim-input-row input { width: 100%; min-width: 0; padding: 16px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; }
.claim-input-row input::placeholder { color: var(--muted); opacity: 1; }
.claim-hint { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.claim-error { margin-top: 8px; color: var(--error); font-size: 12px; }
#claim-form .claim-button { margin-top: 22px; }
.claim-service-note { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.claim-feedback { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--gold-border); border-radius: 9px; background: var(--gold-soft); color: var(--gold); font-size: 13px; line-height: 1.8; }

.claim-result { padding-top: 24px; text-align: center; }
.claim-result-symbol { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border: 1px solid var(--gold-border); border-radius: 13px; background: var(--gold-soft); color: var(--gold); }
.claim-result-symbol .icon { width: 28px; height: 28px; }
.claim-result h2:focus { outline: none; }
.claim-result-copy { color: var(--muted); font-size: 13px; line-height: 1.8; }
.claim-result-address { margin-top: 12px; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.claim-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 220px; margin: 24px 0; padding: 28px 12px; border-block: 1px solid var(--border); }
.claim-spinner { width: 30px; height: 30px; border: 3px solid var(--gold-border); border-top-color: var(--gold); border-radius: 50%; animation: claim-spin .9s linear infinite; }
.claim-wait-message { color: var(--text); font-size: 14px; }
.claim-wait-countdown { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 13px; }
#claim-countdown { color: var(--gold); font-size: 32px; font-weight: 750; line-height: 1.3; font-variant-numeric: tabular-nums; }
@keyframes claim-spin { to { transform: rotate(360deg); } }
.claim-reward { margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--border); }
.claim-qualification { color: var(--gold); font-size: 13px; }
.claim-amount { margin-top: 8px; color: var(--text); font-size: 32px; line-height: 1.4; font-weight: 800; font-variant-numeric: tabular-nums; }
.claim-amount span { color: var(--muted); font-size: 16px; font-weight: 650; }
.claim-edit { min-height: 44px; margin-top: 12px; padding-inline: 12px; font-size: 13px; }

.activity-partner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 21px 0 0; color: var(--muted); font-size: 12px; }
.activity-partner a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); text-underline-offset: 4px; }
.activity-partner a:hover { text-decoration: underline; color: var(--text); }
.activity-partner .icon { width: 14px; height: 14px; }
.activity-help { display: flex; gap: 7px; width: fit-content; margin: 17px auto 0; font-size: 12px; line-height: 1.7; padding: 6px; }
.activity-help .icon { width: 15px; height: 15px; }
.faq { margin-top: 42px; scroll-margin-top: 25px; }
.faq > h2 { font-size: 18px; margin-bottom: 15px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { padding: 16px 24px 16px 0; cursor: pointer; color: var(--text); font-size: 13px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; font-size: 20px; line-height: 1; color: var(--gold-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 12px; color: var(--muted); padding: 0 0 17px; line-height: 1.9; }
.footer { text-align: center; border-top: 1px solid var(--border); padding: 27px 0 34px; margin-top: 45px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; letter-spacing: .5px; }
.footer p { font-size: 11px; color: var(--muted); margin-top: 9px; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); z-index: 200; padding: 10px; background: var(--gold); color: var(--button-text); }
.skip:focus { transform: none; }
.complete-page { padding-top: 85px; }
.complete-panel { padding: 39px 28px; text-align: center; }
.complete-panel h1 { font-size: 30px; letter-spacing: -.6px; margin-bottom: 16px; }
.complete-panel > p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.complete-panel .activity-partner { margin: 23px 0; }
.activity-symbol { width: 58px; height: 58px; border: 1px solid var(--gold-border); border-radius: 17px; background: var(--gold-soft); display: grid; place-items: center; margin: 0 auto 18px; color: var(--gold-ink); }
.activity-symbol .icon { width: 28px; height: 28px; }
.activity-return { margin-top: 23px; }
@keyframes enter { from { filter: blur(3px); transform: translateY(7px); } to { filter: blur(0); transform: translateY(0); } }

@media (min-width: 800px) {
  .page { width: 500px; }
  .hero { padding-top: 54px; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .query-panel { padding: 29px 31px 25px; }
  .complete-page { width: 480px; }
}
@media (max-width: 1050px) {
  .site-nav { display: none; }
  .header-menu { display: block; }
}
@media (max-width: 600px) {
  .header-actions .activity-pill { display: none; }
}
@media (max-width: 480px) {
  :root { --header-height: 64px; }
  .brand img { height: 36px; width: auto; }
  .header-actions { gap: 7px; }
  .header-action { display: none; }
  .lang-switch summary { padding: 5px 6px; gap: 5px; }
  .lang-flag { width: 20px; height: 14px; }
  .lang-badge { font-size: 10px; padding: 2px 5px; }
  .activity-pill { font-size: 10px; padding: 8px 10px; }
  .page { width: calc(100% - 34px); }
  .hero { padding-top: 45px; padding-bottom: 30px; }
  h1 { font-size: 33px; letter-spacing: -1px; margin-top: 23px; margin-bottom: 22px; }
  .hero-copy { font-size: 13px; line-height: 1.95; }
  .query-panel { padding: 24px 23px 20px; border-radius: 21px; }
  .button { font-size: 15px; min-height: 53px; }
  .claim-panel h2 { font-size: 20px; }
  .claim-panel .claim-copy { font-size: 12px; }
  .activity-partner { font-size: 11px; }
  .complete-page { padding-top: 55px; }
  .complete-panel { padding: 33px 23px; }
  .complete-panel h1 { font-size: 27px; }
}
@media (max-width: 350px) {
  .header-inner { width: calc(100% - 28px); }
  .brand img { height: 34px; width: auto; }
  .page { width: calc(100% - 28px); }
  h1 { font-size: 29px; }
  .hero-copy { font-size: 12px; }
  .query-panel { padding: 23px 18px; }
  .header-actions .activity-pill { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 768px) {
  body[data-page="entry"] .page { width: min(calc(100% - 64px), 800px); }
  body[data-page="entry"] .claim-panel { width: min(100%, 520px); margin-inline: auto; }
  .complete-page { width: min(calc(100% - 64px), 680px); }
  .complete-panel { padding: 48px 40px; }
}
@media (min-width: 1024px) {
  body[data-page="entry"] .page { width: min(calc(100% - 80px), 1160px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .85fr); column-gap: clamp(40px, 5vw, 80px); }
  body[data-page="entry"] .page > :not(.hero):not(.claim-panel) { grid-column: 1 / -1; }
  body[data-page="entry"] .hero { padding: 80px 0; text-align: left; }
  body[data-page="entry"] .hero h1 { font-size: clamp(44px, 4.3vw, 60px); line-height: 1.24; margin: 0 0 24px; }
  body[data-page="entry"] .hero-copy { font-size: 17px; line-height: 1.95; }
  body[data-page="entry"] .hero .activity-partner { justify-content: flex-start; font-size: 13px; margin-top: 26px; }
  body[data-page="entry"] .claim-panel { align-self: center; padding: 32px; margin-block: 48px; }
  body[data-page="entry"] .claim-panel h2 { font-size: 24px; }
  body[data-page="entry"] .claim-panel .claim-copy { font-size: 14px; line-height: 1.9; }
  body[data-page="entry"] .footer { margin-top: 56px; }
}
