:root {
  color-scheme: light;
  --ink: #1c283c;
  --muted: #526582;
  --blue: #2875e8;
  --cyan: #0eafbd;
  --line: #dfe8f5;
  --surface: #ffffff;
  --background: #f3f7fc;
  --warm-ink: #8c5108;
  --warm-surface: #fffbf4;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background-color: var(--background);
  background-image: linear-gradient(#8aaac908 1px, transparent 1px), linear-gradient(90deg, #8aaac908 1px, transparent 1px);
  background-size: 52px 52px;
  display: flex;
  flex-direction: column;
}
body, button, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button, a { outline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid #1474cb; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: white; color: #124a91; }
.skip-link:focus { width: auto; height: auto; padding: 12px 18px; overflow: visible; clip-path: none; }
.site-header { position: relative; z-index: 20; background: #ffffffdb; border-bottom: 1px solid #e4ebf4; box-shadow: 0 8px 22px #254a7810; }
.nav-inner { max-width: 1440px; min-height: 68px; padding: 10px 32px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; }
.brand-avatar { flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-size: 16px; line-height: 1.5; font-weight: 700; }
.brand-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.desktop-nav { display: flex; align-items: center; gap: 16px; }
.desktop-nav a, .mobile-nav a { min-height: 40px; display: flex; align-items: center; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #415775; border: 1px solid transparent; border-radius: 8px; transition: background-color 160ms ease, color 160ms ease; }
.desktop-nav a:hover, .mobile-nav a:hover { background: #f0f5fa; color: #145db7; }
.desktop-nav .is-current, .mobile-nav .is-current { color: #1764ba; background: #eaf3ff; border-color: #d0e2fa; }
.icon-button { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: white; border-radius: 8px; }
.icon-button:hover { background: #eaf3ff; }
.icon-button:disabled { opacity: .4; }
.menu-button { display: none; }
.mobile-nav { position: absolute; top: 100%; right: 16px; left: 16px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px #254a781f; }
.mobile-nav a + a { margin-top: 4px; }
.page { width: 100%; padding: 50px 16px 72px; flex: 1; outline: none; }
.intro { max-width: 620px; margin: 0 auto 20px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: #236ab6; font-size: 13px; line-height: 1.5; font-weight: 800; }
h1 { margin: 0; font-size: 30px; line-height: 1.4; font-weight: 800; }
.lead { margin: 5px 0 16px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.benefits li { padding: 5px 11px; border: 1px solid #d3e4f8; border-radius: 6px; background: #eaf3ff; color: #2669ae; font-size: 12px; line-height: 1.5; font-weight: 600; }
.steps { width: min(100%, 430px); margin: 0 auto; }
.step { overflow: clip; border: 1px solid #e1e9f6; border-radius: 8px; background: #ffffffef; box-shadow: 0 9px 22px #47689b0d, 0 2px 3px #47689b07; }
.step + .step { margin-top: 12px; }
.step-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.step-toggle { width: 100%; border: 0; padding: 15px 16px; display: flex; align-items: flex-start; gap: 11px; color: var(--ink); background: transparent; text-align: left; }
.step-toggle:hover { background: #f7faff; }
.step-toggle:focus-visible { outline-offset: -4px; }
.step-number { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; font-size: 16px; line-height: 1; font-weight: 800; box-shadow: 0 3px 8px #2189c522; }
.step-copy { display: block; flex: 1; min-width: 0; }
.step-copy strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.step-copy > span { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; line-height: 1.6; font-weight: 400; }
.step-chevron { opacity: .5; margin-top: 8px; flex: 0 0 16px; transform: rotate(-90deg); transition: transform 180ms ease; }
.step-toggle[aria-expanded="true"] .step-chevron { transform: rotate(0); }
.step-panel { padding: 0 16px 16px; }
.notice { padding: 11px 12px; margin: 0 0 14px; background: var(--warm-surface); border: 1px dashed #efcdaa; border-radius: 6px; color: var(--warm-ink); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.notice img { vertical-align: -3px; margin-right: 4px; }
.notice b { color: #236fbe; font-weight: 700; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 11px 16px; border-radius: 8px; font-size: 16px; line-height: 1.5; font-weight: 700; }
.primary-button { position: relative; border: 1px solid #258bc8; background: linear-gradient(105deg, var(--blue), var(--cyan)); color: white; box-shadow: 0 5px 10px #267dda26, inset 0 1px 0 #ffffff30; transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease; }
.primary-button:hover:not(:disabled) { filter: brightness(1.04); box-shadow: 0 7px 16px #267dda2b; transform: translateY(-1px); }
.primary-button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 6px #267dda22; }
.primary-button:disabled { background: #e8f2fc; border-color: #cddfed; color: #406586; box-shadow: none; }
.spinner { display: inline-block; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 850ms linear infinite; }
.status { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #5a8db8; background: #f0f6fc; color: #365e7d; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.status.error { border-color: #d38058; background: #fff5ec; color: #924416; }
.status.success { border-color: #36a282; background: #edf9f3; color: #226746; }
.auth-area { text-align: center; padding: 18px 0 2px; }
.qr-image { width: 210px; height: 210px; display: block; margin: 0 auto 12px; image-rendering: pixelated; }
.auth-label { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.auth-expiry { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; border: 1px solid #cbdff3; border-radius: 6px; color: #1b65aa; background: #eff6ff; font-size: 14px; font-weight: 600; }
.reset-button { min-height: 44px; display: flex; align-items: center; justify-content: center; width: 100%; gap: 7px; margin-top: 9px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reset-button:hover { color: #155eac; background: #f5f9fd; }
.reset-button:disabled { opacity: .6; }
.result-area { margin-top: 18px; }
.result-heading { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.coupon-list { padding: 0; margin: 0; list-style: none; }
.coupon { display: grid; grid-template-columns: 95px minmax(0, 1fr); padding: 12px 0; border-top: 1px dashed #d7e5ef; }
.coupon-amount { align-self: center; padding-right: 10px; color: #b74c2c; font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.coupon-content { border-left: 1px dashed #d7e5ef; padding-left: 12px; min-width: 0; }
.coupon-name { margin: 0; font-size: 13px; line-height: 1.6; font-weight: 700; overflow-wrap: anywhere; }
.coupon-meta, .result-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pagination-controls { display: flex; gap: 8px; }
.merchant-note { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.merchant-link { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.merchant-avatar { border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.merchant-link > span { min-width: 0; }
.merchant-link strong { display: block; font-size: 15px; line-height: 1.5; }
.merchant-link small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.merchant-arrow { margin-left: auto; opacity: .65; }
.secondary-button { color: #1f68af; border: 1px solid #cbdeef; background: #eff6fd; font-size: 14px; transition: background-color 150ms ease; }
.secondary-button:hover { background: #e2effc; }
.completion { display: flex; align-items: flex-start; gap: 10px; padding: 20px 0 0; color: #226746; }
.completion > img { flex-shrink: 0; margin-top: 2px; }
.completion strong { font-size: 15px; line-height: 1.5; }
.completion p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; }
.site-footer { padding: 24px 16px max(24px, env(safe-area-inset-bottom)); text-align: center; color: #64748a; }
.site-footer p { margin: 4px 0; font-size: 12px; line-height: 1.7; }
.noscript-message { text-align: center; padding: 16px; color: #924416; }
.noscript-message a { text-decoration: underline; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { body { min-height: 840px; min-height: max(840px, 100vh); } }
@media (max-width: 640px) {
  .nav-inner { min-height: 66px; padding: 10px 16px; gap: 12px; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .page { padding: 32px 16px 38px; }
  .intro { margin-bottom: 20px; }
  h1 { font-size: 28px; }
  .eyebrow { font-size: 12px; }
  .lead { max-width: 330px; margin: 8px auto 16px; font-size: 13px; }
  .step-toggle { padding: 14px 13px; gap: 9px; }
  .step-panel { padding: 0 13px 14px; }
  .step-copy strong { font-size: 15px; }
  .step-copy > span { font-size: 12px; }
  .step-number { width: 30px; height: 30px; flex-basis: 30px; }
  .notice { font-size: 13px; padding: 10px 11px; }
  .site-footer { padding-top: 16px; }
}
@media (max-width: 360px) {
  .page { padding-inline: 12px; }
  .step-copy strong { font-size: 14px; }
  .step-toggle { padding-inline: 11px; gap: 8px; }
  .step-panel { padding-inline: 11px; }
  .benefits { gap: 6px; }
  .benefits li { padding-inline: 8px; }
  .coupon { grid-template-columns: 80px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
