@font-face { font-family: Scoopic Rounded; src: url('./assets/SF-Pro-Rounded-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Scoopic Rounded; src: url('./assets/SF-Pro-Rounded-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Scoopic Rounded; src: url('./assets/SF-Pro-Rounded-Heavy.woff2') format('woff2'); font-weight: 900; font-display: swap; }
:root { color-scheme: dark; --bg: #0b0c0a; --surface: #191b17; --green: #c1ff33; --pink: #fc72d0; --text: #f6f7f0; --muted: #afb2a7; --line: #34372e; --radius: 30px; font-family: Scoopic Rounded, ui-rounded, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; overflow-anchor: none; }
button, select, textarea, input { font: inherit; }
button { cursor: pointer; }
button, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .42; }
[hidden] { display: none !important; }
.page-shell { max-width: 1320px; margin: auto; padding: max(22px, env(safe-area-inset-top)) 56px 100px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid #ffffff12; }
.brand { display: block; object-fit: contain; width: 140px; height: 46px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.layout { display: grid; grid-template-columns: 1fr minmax(380px, 452px); gap: 72px; align-items: start; min-height: min(760px, calc(100svh - 180px)); padding: 60px 20px 48px; }
.hero { position: relative; }
h1 { font-size: clamp(46px, 5.5vw, 72px); font-weight: 900; line-height: 1.04; letter-spacing: -3px; margin: 0; }
h1 span { display: inline-block; color: var(--green); position: relative; }
h1 span::after { content: ''; display: block; height: 5px; width: 92%; background: var(--green); border-radius: 50%; transform: rotate(-3deg); margin-top: 5px; opacity: .85; }
.scene { width: 420px; max-width: 100%; height: 230px; position: relative; margin: 20px 0 0 -22px; }
.orbit { position: absolute; width: 100%; bottom: -8px; left: 0; fill: none; stroke: #424c2e; stroke-width: 1; stroke-dasharray: 4 7; }
.dog-shadow { position: absolute; width: 235px; height: 24px; border-radius: 50%; background: #000; bottom: 29px; left: 75px; filter: blur(9px); }
.dog { position: absolute; object-fit: contain; transform-origin: bottom center; }
.dog-green { width: 192px; height: auto; left: 55px; bottom: 32px; transform: rotate(-8deg); animation: hello 700ms 80ms both; }
.dog-pink { width: 112px; height: auto; left: 228px; bottom: 30px; transform: rotate(10deg); animation: hello 700ms 160ms both; }
.spark { position: absolute; color: var(--green); font-size: 31px; }.spark-one { left: 15px; top: 64px; transform: rotate(18deg); }.spark-two { right: 28px; bottom: 34px; color: var(--pink); font-size: 39px; }
.account-card { background: var(--surface); border: 1px solid #ffffff0c; border-radius: 34px; padding: 28px 30px 30px; box-shadow: 0 24px 70px #0003; min-width: 0; }
.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; color: #a6ad97; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.card-mark { font-size: 21px; color: var(--green); font-weight: 400; line-height: 1; }
/* 只在加载时预留接近首屏内容的空间，正常页面不靠固定高度撑出空白。 */
#screen:has(.loading-message) { min-height: 360px; }
#screen:focus { outline: none; }
.loading-message { display: flex; align-items: center; gap: 10px; margin: 0; padding-top: 8px; color: var(--muted); font-size: 14px; }
.screen-content { animation: appear 220ms ease-out both; }
h2 { font-size: 34px; line-height: 1.07; letter-spacing: -1.1px; margin: 0 0 13px; font-weight: 900; }
.lede { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 23px; }
.facts { margin: 0 0 23px; display: grid; gap: 18px; }
.fact { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.fact-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #c1ff3310; color: var(--green); font-weight: 900; font-size: 15px; }
.fact-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fact strong { display: block; font-size: 14px; margin: 0 0 3px; line-height: 1.3; }
.fact p { margin: 0; color: #a4aa99; font-size: 12px; line-height: 1.45; }
.field-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 9px; font-weight: 700; }
.optional { color: #a5ac99; font-size: 12px; font-weight: 400; }
.select-wrap { position: relative; }.select-wrap::after { content: '⌄'; position: absolute; right: 16px; top: 10px; pointer-events: none; color: #b2b9a4; }
select, textarea { width: 100%; color: var(--text); background: #22251f; border: 1px solid #3a3f33; border-radius: 13px; padding: 13px 16px; font-size: 14px; }
select { appearance: none; min-height: 47px; padding-right: 35px; }
textarea { resize: vertical; min-height: 82px; margin-top: 10px; line-height: 1.4; }
textarea::placeholder { color: #a2a895; }
.actions { display: grid; gap: 9px; margin-top: 23px; }
.button { border-radius: 999px; min-height: 50px; padding: 13px 20px; border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.35; text-align: center; transition: background 140ms, transform 140ms; }
.button:hover:not(:disabled) { transform: translateY(-1px); }.button:active:not(:disabled) { transform: translateY(0); }
.button-primary { background: var(--green); color: #192000; }.button-primary:hover { background: #ceff66; }
.button-secondary { background: transparent; color: #e1e5d9; border-color: #454c3a; }.button-secondary:hover { background: #ffffff06; }
.button-delete { color: #2f0623; background: var(--pink); }.button-delete:hover { background: #ff98df; }
.button-text { color: #bdc3b2; background: none; border: 0; min-height: 44px; font-size: 14px; }
.reassurance { color: #929b85; font-size: 11px; text-align: center; margin: 14px 0 0; line-height: 1.45; }
.receipt { border: 1px solid #3b4430; border-radius: 21px; overflow: hidden; margin: 22px 0; background: #20271a; }
.receipt-head { padding: 18px 20px; border-bottom: 1px dashed #4a573b; position: relative; }
.receipt-head::before, .receipt-head::after { content: ''; position: absolute; bottom: -8px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 1px solid #3b4430; }.receipt-head::before { left: -9px; }.receipt-head::after { right: -9px; }
.receipt-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #bbc4a7; margin: 0 0 8px; }
.countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; color: var(--green); font-variant-numeric: tabular-nums; }
.countdown strong { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -2px; }.countdown span { font-size: 19px; font-weight: 700; }.countdown small { color: #b9c8a1; font-size: 13px; margin-left: auto; }
.day-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin-top: 17px; }.day-track span { height: 4px; background: var(--green); border-radius: 2px; }.day-track span.elapsed { background: #4b5836; }
.receipt-bottom { padding: 16px 20px; }.receipt-bottom p { margin: 0; font-size: 12px; line-height: 1.55; color: #b0bba0; }.receipt-bottom time { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-top: 3px; }
.timeline { margin: 23px 0; padding: 0; list-style: none; }.timeline li { padding: 0 0 21px 24px; border-left: 1px solid #4b543f; position: relative; margin-left: 4px; }.timeline li:last-child { padding-bottom: 0; border-color: transparent; }.timeline li::before { content: ''; position: absolute; top: 4px; left: -4px; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }.timeline li:last-child::before { background: var(--pink); }.timeline strong { font-size: 14px; }.timeline p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.check-row { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #d2d8c8; padding: 16px; border-radius: 14px; background: #22251e; cursor: pointer; }
.check-row input { accent-color: var(--green); width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; }
.success-symbol { width: 59px; height: 59px; border-radius: 19px; display: grid; place-items: center; background: var(--green); color: #24350b; font-size: 30px; margin: 3px 0 24px; transform: rotate(-6deg); }
.success-symbol.waiting { background: #30372a; color: var(--green); }.success-symbol.unavailable { background: #392c36; color: var(--pink); }
.status-banner { border: 1px solid #39492b; border-radius: 15px; padding: 16px; background: #c1ff3308; color: #d7e8bd; font-size: 14px; line-height: 1.5; margin: 22px 0; }
.fine-print { font-size: 12px; line-height: 1.55; color: #a5ad99; margin: 18px 0 0; }
.error { background: #fc72d014; border: 1px solid #fc72d040; color: #ffbde9; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; margin-top: 15px; }
.site-footer { display: flex; justify-content: space-between; border-top: 1px solid #ffffff12; padding: 22px 0 0; font-size: 11px; color: #848c79; }.site-footer span:last-child { font-weight: 700; color: #b6bea7; }.site-footer span span { color: var(--green) !important; margin-left: 9px; }
.preview-dock { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #262920f5; border: 1px solid #50563f; border-radius: 15px; box-shadow: 0 8px 35px #0008; width: min(420px, calc(100% - 28px)); z-index: 5; backdrop-filter: blur(15px); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 10px 8px 14px; font-size: 11px; color: #e0e7d0; }
.preview-dot { display: inline-block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; vertical-align: 1px; margin-right: 6px; }.preview-note { color: #adb59d; }
.preview-toolbar button { min-height: 32px; background: #3b4231; color: #e4edd4; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 11px; }.preview-toolbar button span { margin-left: 5px; }
.preview-states { padding: 5px 12px 12px; border-top: 1px solid #424b35; }.preview-states p { margin: 9px 0; font-size: 11px; color: #b5bea4; }.state-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }.state-options button { min-height: 37px; border: 1px solid #4c573c; background: #303728; color: #e5eed7; border-radius: 8px; font-size: 12px; }.state-options button:hover { background: #485a30; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); padding: 13px 19px; border-radius: 14px; border: 1px solid #536139; background: #252e1c; color: #e1eccf; z-index: 6; font-size: 13px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes hello { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 1440px) { .layout { min-height: 750px; } }
@media (max-width: 1050px) { .page-shell { padding-left: 30px; padding-right: 30px; }.layout { gap: 32px; padding-left: 0; padding-right: 0; }.scene { width: 350px; }.dog-green { left: 25px; }.dog-pink { left: 196px; }}
@media (max-width: 900px) {
  .page-shell { max-width: 460px; padding: max(12px, env(safe-area-inset-top)) 20px 100px; }
  .site-header { padding-bottom: 9px; border: 0; }.brand { width: 100px; height: 32px; }
  .layout { display: block; min-height: 0; padding: 12px 0 24px; }
  /* 保留标题和小狗的视觉风格，缩短顶部占位，让规则和按钮优先出现在首屏。 */
  .hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  h1 { font-size: 28px; line-height: 1.02; letter-spacing: -1px; }h1 span::after { height: 3px; margin-top: 3px; }
  .scene { width: 105px; height: 70px; margin: 0; }.dog-green { width: 68px; left: 4px; bottom: 9px; }.dog-pink { width: 40px; left: 58px; bottom: 0; }.orbit, .dog-shadow { display: none; }.spark-one { font-size: 15px; left: 0; top: 0; }.spark-two { font-size: 16px; right: 0; bottom: 37px; }
  .card-topline { display: none; }
  .account-card { padding: 20px; border-radius: 24px; }h2 { font-size: 28px; margin-bottom: 20px; }.lede { font-size: 14px; margin-bottom: 20px; }.facts { gap: 14px; margin-bottom: 20px; }.fact strong { font-size: 13px; }.fact p { font-size: 12px; }
  .actions { margin-top: 18px; }.button { font-size: 15px; min-height: 48px; }.reassurance { font-size: 10px; }.site-footer { padding-top: 18px; font-size: 10px; }
  .countdown strong { font-size: 49px; }.countdown small { font-size: 11px; }.receipt-head, .receipt-bottom { padding-left: 17px; padding-right: 17px; }
  /* iOS 聚焦小于 16px 的输入框会自动放大，影响页面返回后的尺寸。 */
  select, textarea { font-size: 16px; }
}
@media (min-width: 761px) and (max-width: 900px) { .page-shell { max-width: 560px; }.account-card { padding: 30px; } }
@media (max-width: 360px) { .page-shell { padding-top: max(8px, env(safe-area-inset-top)); padding-left: 15px; padding-right: 15px; }.layout { padding-top: 8px; }.hero { margin-bottom: 12px; }.account-card { padding: 18px 19px; }.preview-note { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
