:root {
  color-scheme: light;
  --page: #f1f4ef;
  --surface: #fff;
  --ink: #193b2c;
  --muted: #607361;
  --green: #246642;
  --line: #dfe6dc;
  --soft: #eef4e7;
  --error: #a53c32;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #76a56a; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
p { font-size: 13px; line-height: 1.65; color: var(--muted); }
strong { font-size: 14px; font-weight: 600; }
.icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-shell { width: calc(100% - 24px); max-width: 560px; margin: 12px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 6px 24px #254e3510; }
.site-header { height: 58px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.4px; }
.brand img { display: block; width: 32px; height: 32px; object-fit: contain; }
.brand-owl { color: var(--green); font-weight: 700; }
.header-note { font-size: 11px; color: #73846f; }
.deck { display: flex; align-items: stretch; gap: 12px; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 0; overflow-anchor: none; }
.deck::-webkit-scrollbar { display: none; }
.feature { flex: 0 0 100%; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; border: 0; border-radius: 0; background: transparent; scroll-snap-align: start; }
.eyebrow { display: flex; justify-content: space-between; gap: 12px; color: #426349; font-size: 12px; letter-spacing: .3px; }
.eyebrow > span:first-child { display: flex; gap: 6px; align-items: center; }
.count { color: #73836f; font-size: 11px; }
.intro h1, .intro h2 { font-size: 28px; line-height: 1.32; letter-spacing: -1px; font-weight: 600; margin-bottom: 6px; }
.ticket { min-height: 94px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; padding: 10px 15px; border-radius: 13px; background: #eaf2d8; }
.ticket::after { content: ""; position: absolute; width: 112px; height: 112px; border: 1px solid #d3dfb8; border-radius: 50%; right: -32px; top: 5px; box-shadow: 0 0 0 17px #e3edce, 0 0 0 18px #d3dfb8; pointer-events: none; }
.ticket > div { position: relative; z-index: 1; }
.ticket-label, .ticket-side { color: #53713d; font-size: 12px; }
.ticket-side { line-height: 1.8; }
.ticket-side > span { display: block; }
.ticket-value { margin-top: 2px; font-size: 42px; line-height: 1.25; font-weight: 500; letter-spacing: -2px; }
.ticket-value > span { font-size: 18px; letter-spacing: 0; }
.entry, .local-panel { display: flex; flex-direction: column; gap: 8px; flex: 1; margin: 0; min-width: 0; }
.action-zone { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }
label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; }
label > span { font-size: 12px; color: #647762; font-weight: 400; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #dce4dc; border-radius: 10px; padding: 10px 12px; background: #fafcf9; color: var(--ink); font-size: 16px; }
input { min-height: 44px; }
input::placeholder, textarea::placeholder { font-size: 13px; color: #798a76; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
textarea { resize: vertical; line-height: 1.7; }
.primary, .secondary { min-height: 46px; padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; text-decoration: none; }
.primary { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; width: 100%; background: var(--green); color: white; }
.primary:hover:not(:disabled) { background: #194e30; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dce4dc; background: white; color: #315f40; }
.feedback { min-height: 40px; font-size: 12px; color: #647762; line-height: 1.6; overflow-wrap: anywhere; }
.feedback:empty { min-height: 0; }
.feedback.error { color: var(--error); }
.feedback.success { color: var(--green); }
.feature-rules { border-top: 1px solid #edf0ea; padding-top: 10px; font-size: 12px; color: #647762; }
.feature-rules > summary { min-height: 44px; align-content: center; }
.feature-rules > p { margin-top: 8px; }
.share-guide { border: 0; background: transparent; }
.share-guide summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0; gap: 10px; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.share-guide .expand-label { font-size: 12px; font-weight: 400; color: var(--muted); }
.share-guide summary::-webkit-details-marker { display: none; }
.share-guide[open] .expand-label { font-size: 0; }
.share-guide[open] .expand-label::after { content: "收起 ↑"; font-size: 12px; }
.guide-content { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #e0e7da; border-radius: 10px; background: #f8faf5; }
.marker-guide { margin: 0; gap: 6px; }
.marker-guide > div { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; font-size: 12px; }
#share-link { min-height: 96px; }
.status-badge { padding: 2px 6px; border-radius: 5px; background: #edf0eb; color: #647762; font-size: 12px; }
.status-badge[data-state="pending"] { background: #fbf1d9; color: #856421; }
.status-badge[data-state="passed"] { background: #e3f2e4; color: var(--green); }
.draw-outcome, .claim-result { padding: 13px; border-radius: 10px; background: #edf5e7; color: var(--green); }
.draw-outcome.neutral { background: #f1f3ee; color: #596752; }
.draw-outcome > strong { font-size: 18px; }
.draw-outcome p { margin-top: 5px; color: inherit; }
.draw-outcome output { display: block; margin-top: 8px; padding: 10px; background: white; border-radius: 6px; overflow-wrap: anywhere; user-select: all; }
.reward { min-height: 102px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--soft); border-radius: 13px; color: #4b6849; font-size: 12px; }
.reward-value { font-size: 46px; line-height: 1.1; color: var(--ink); letter-spacing: -3px; }
.reward-value > span { font-size: 18px; margin-left: 8px; letter-spacing: 0; }
.invite-stats { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #e8ede3; font-size: 12px; color: #647762; }
.invite-stats strong { display: block; margin-top: 3px; font-size: 16px; color: #35513a; font-variant-numeric: tabular-nums; }
.invite-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; font-size: 12px; }
.invite-code-row output { flex: 1; overflow-wrap: anywhere; font-size: 16px; letter-spacing: 1px; }
.local-tabs { display: flex; gap: 4px; padding: 4px; background: #eef2e9; border-radius: 10px; }
.local-tabs button { min-height: 44px; flex: 1; border: 0; padding: 8px 6px; border-radius: 7px; background: transparent; color: #647762; font-size: 13px; }
.local-tabs button[aria-selected="true"] { background: white; color: #245e3c; box-shadow: 0 2px 5px #2741250c; }
.local-panel { padding-top: 4px; }
.claim-panels { display: grid; flex: 1; min-width: 0; }
.claim-method { grid-area: 1 / 1; display: flex; min-width: 0; }
.claim-method[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.claim-offer { min-height: 112px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 13px; text-align: center; border-radius: 12px; background: #f3f7ec; }
.claim-offer .icon { width: 25px; height: 25px; color: #5e824d; }
.query-result { flex: 1; min-height: 260px; padding: 16px; border: 1px solid #dce7d4; border-radius: 13px; background: var(--soft); }
.query-result > span { font-size: 12px; color: #647762; }
.query-result > strong { display: block; font-size: 25px; color: var(--green); margin-top: 7px; }
dl { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
dl > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.7; }
dt { color: #647762; }
dd { margin: 0; color: #3e593d; overflow-wrap: anywhere; }
.query-result ul { padding-left: 18px; margin: 8px 0; font-size: 12px; color: #647762; }
.query-result li { margin-top: 6px; overflow-wrap: anywhere; }
.query-result ul { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.query-result:not([data-state="active"]) > strong { color: var(--muted); }
.query-updated { margin-top: 10px; font-size: 11px; }
.claim-result { display: flex; flex-direction: column; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.claim-result output { display: block; user-select: all; background: white; padding: 10px; border-radius: 6px; color: var(--ink); }
.service-icon { display: flex; padding: 8px; background: #eff4e9; border-radius: 10px; }
.services .service-region-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.services .service-region-heading h3 { margin: 0; font-size: 13px; font-weight: 600; }
.services .service-region-heading > span { color: var(--muted); font-size: 11px; }
.services .service-option { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf0e9; color: var(--ink); text-decoration: none; }
.services .service-icon { align-self: start; }
.services .service-option-copy { min-width: 0; flex: 1; }
.services .service-option strong { display: block; font-size: 14px; }
.services .service-option small { display: block; margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.services .service-route-caption, .services .service-inline-link { font-size: 12px; color: var(--green); text-decoration: none; }
.services [data-link-state] { margin-left: 4px; white-space: nowrap; font-size: 11px; }
.services .service-route[aria-disabled="true"] { cursor: default; }
.services .service-route[aria-disabled="true"] [data-link-state] { color: var(--muted); }
.services .service-purchase-note { margin-top: 7px; padding-left: 41px; font-size: 11px; line-height: 1.5; }
.bottom-nav { display: flex; justify-content: space-between; gap: 3px; margin: 0 18px; padding: 10px 0 6px; border-top: 1px solid var(--line); overflow-anchor: none; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 7px 2px; border-radius: 10px; text-decoration: none; color: #647762; font-size: 12px; }
.bottom-nav a.active { background: #e2ebda; color: #245e3c; }
.site-footer { display: flex; justify-content: space-between; margin: 4px 20px 14px; font-size: 11px; color: #73846f; }
dialog { width: min(430px, calc(100% - 24px)); max-height: 85dvh; margin: auto; padding: 0; border: 1px solid #d9e3d4; border-radius: 20px; background: white; color: var(--ink); box-shadow: 0 22px 65px #16382340; overscroll-behavior: contain; }
dialog::backdrop { background: #10291c70; }
.service-detail { padding: 22px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: #647762; }
.dialog-heading .secondary { min-height: 44px; }
.service-detail > h2 { font-size: 22px; line-height: 1.4; margin-bottom: 8px; }
.service-detail dl { margin: 20px 0; gap: 12px; }
.service-detail .feedback { min-height: 0; margin-top: 12px; }
.consult-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.contact-link { text-align: center; }
.next-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#experience-dialog .service-detail > p { margin-bottom: 14px; }
.noscript { margin: 10px 20px; }
@media (min-width: 768px) {
  .site-shell { margin-block: 24px; }
  .site-header { height: 68px; }
  .feature { flex-basis: 100%; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.template-types { display: flex; gap: 4px; padding: 3px; background: #eaf0e5; border-radius: 10px; }
.template-types button { flex: 1; min-width: 0; min-height: 44px; padding: 6px 3px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; }
.template-types button[aria-pressed="true"] { background: white; color: var(--green); font-weight: 600; }
#share-copy { height: 164px; min-height: 164px; resize: none; font-size: 13px; }
#template-note { font-size: 11px; }
.template-actions { display: flex; gap: 8px; }
.template-actions > button { flex: 1; }
#copy-feedback { min-height: 20px; }

.step-title { margin: 0; font-size: 13px; font-weight: 600; line-height: normal; }

#share-form > .action-zone { margin-top: 0; padding-top: 0; }

.draw-outcome output { display: block; margin-top: 10px; overflow-wrap: anywhere; user-select: all; }
.draw-outcome .credential-copy { margin-top: 10px; width: 100%; }
.credential-copy-feedback:empty { display: none; }

.invitation-history { min-height: 245px; border-top: 1px solid var(--line); padding-top: 10px; }
.invitation-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.invitation-history h3 { margin: 0; font-size: 13px; font-weight: 600; }
.history-refresh { border: 0; background: transparent; color: var(--green); min-height: 44px; padding: 6px 10px; font-size: 12px; }
#invite-history { list-style: none; margin: 0; padding: 0; height: 190px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#invite-history:empty { display: none; }
#invite-history-empty { padding: 24px 0; font-size: 12px; }
#invite-history li { padding: 10px 0; border-bottom: 1px solid #edf0e9; }
#invite-history li > div { display: flex; justify-content: space-between; gap: 8px; }
#invite-history strong { font-size: 12px; }
#invite-history li span, #invite-history p { font-size: 12px; color: var(--green); }
#invite-history time { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
