:root {
  color-scheme: light;
  --ink: #252621;
  --muted: #5e6258;
  --paper: #fff;
  --line: #dcded5;
  --action: #294936;
  --ease: cubic-bezier(.2,.8,.2,1);
  --gutter: clamp(16px, 4vw, 64px);
  --nav-height: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); }
body { margin: 0; background: #f7f6f2; color: var(--ink); font: 16px/1.6 "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; }
button:not(:disabled), select { cursor: pointer; }
button, a, select { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #416ad0; outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - var(--gutter) * 2)); margin-inline: auto; min-width: 0; }
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-wrap, .footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav-wrap { min-height: var(--nav-height); }
.nav nav, .footer-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.nav nav a { color: var(--muted); }
.nav nav a[aria-current] { color: var(--action); font-weight: 650; text-decoration: underline; text-underline-offset: 7px; }
.nav nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; min-height: 44px; font-weight: 650; }
.brand { color: var(--ink); font-size: 19px; }
.brand-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.skip-link { position: absolute; top: 10px; left: var(--gutter); z-index: 1; padding: 10px 16px; background: var(--action); color: white; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 7px; white-space: nowrap; font-size: 14px; font-weight: 650; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.btn--primary { background: var(--action); color: white; }
.btn--primary:hover:not(:disabled) { background: #3c5d47; }
.btn--secondary { background: var(--paper); border-color: #c0c7bb; color: var(--action); }
.btn--secondary:hover:not(:disabled) { background: #eef0e9; border-color: #8c9b8d; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { opacity: .52; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
h1 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 46px); line-height: 1.18; letter-spacing: -.035em; font-weight: 700; }
.catalog, .product-page { padding-block: clamp(29px, 5.1vw, 63px) 56px; }
.catalog-head { margin-bottom: 35px; }
.catalog-head p, .product-lead { color: var(--muted); margin-bottom: 0; }
.catalog-count { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 11px; margin-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.catalog-count span:last-child { color: var(--muted); font-weight: 400; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.listing { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); }
.listing-main { display: block; flex: 1; }
.listing-main:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.listing img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #e5e7db; }
.listing-copy { display: flex; flex-direction: column; flex: 1; padding: 15px 15px 12px; }
.listing .category { color: var(--action); font-size: 12px; margin-bottom: 5px; }
.listing h2 { font-size: clamp(16px, 1.65vw, 21px); line-height: 1.35; margin-bottom: 7px; }
.listing p:not(.category) { color: var(--muted); font-size: 14px; margin-bottom: 13px; }
.listing-buy { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-inline: 15px; padding-block: 9px; border-top: 1px solid var(--line); }
.listing-buy .btn { padding-inline: 12px; }
.price { color: var(--ink); font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 64px; border-top: 1px solid var(--line); margin-top: 58px; padding-top: 26px; }
.usage h2, .product-section > h2 { font-size: 22px; margin-bottom: 9px; }
.usage p { color: var(--muted); font-size: 14px; margin-bottom: 4px; max-width: 49ch; }
.text-link, .crumb a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.closing { padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-links { flex-wrap: wrap; gap: 2px 20px; }
.crumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.crumb a, .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.product-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 50px); align-items: center; }
.product-cover { display: block; width: 100%; height: auto; max-width: 620px; }
.product-section { margin-top: 42px; padding-top: 23px; border-top: 1px solid var(--line); }
.sale-state { margin: 22px 0 10px; color: var(--muted); font-weight: 650; }
.sale-state .price { font-size: 26px; margin-right: 7px; }
.product-tools { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.product-tools > p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.tool-badge img { display: block; width: 20px; height: 20px; object-fit: contain; flex: none; }
 .product-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.product-actions .btn--primary { min-width: 96px; }
.checkout { max-width: 560px; }
.checkout-item { display: flex; align-items: center; gap: 14px; margin-top: 25px; }
.checkout-item img { width: min(27%, 120px); height: auto; }
.checkout-item p { margin: 2px 0 0; color: var(--muted); }
.checkout-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.checkout-note { color: var(--muted); }
.checkout-page { max-width: 940px; padding-block: 26px 64px; }
.checkout-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.checkout-back:hover { color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
.checkout-heading { margin: 15px 0 26px; }
.checkout-heading h1 { margin-bottom: 8px; font-size: 30px; letter-spacing: -.025em; }
.checkout-heading > p { margin: 0; font-size: 14px; color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.order-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.order-panel > h2 { margin-bottom: 20px; font-size: 17px; font-weight: 650; }
.order-panel h3 { margin-bottom: 8px; font-size: 14px; }
.order-panel .checkout-item { margin-top: 0; gap: 14px; }
.order-panel .checkout-item img { width: 90px; height: auto; border-radius: 3px; }
.order-panel .checkout-item > div { min-width: 0; }
.order-panel .checkout-item strong { font-size: 16px; }
.order-panel .checkout-item p { font-size: 13px; }
.order-panel .checkout-total { margin: 22px 0; padding-block: 17px; font-size: 14px; }
.order-panel .checkout-total .price { font-size: 26px; }
.field { margin-bottom: 18px; }
.field > label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field > input { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bac2b8; border-radius: 5px; color: var(--ink); background: white; font: inherit; font-size: 16px; }
.field > input[aria-invalid="true"] { border-color: #a3382a; }
.field > input::placeholder { color: #71786f; font-size: 14px; }
.field-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.field-error { margin: 8px 0 0; font-size: 13px; color: #9b362b; overflow-wrap: anywhere; }
.field-error:empty { display: none; }
.order-consent { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 12px; line-height: 1.7; color: var(--muted); }
.order-consent input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--action); }
.order-consent a { color: var(--action); text-decoration: underline; text-underline-offset: 2px; }
.payment-notice { margin: 18px 0; padding: 10px 12px; background: #f3f5f0; border-radius: 4px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.checkout-submit { width: 100%; min-height: 46px; }
.created-order { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }
.created-order > p { margin: 8px 0 3px; font-size: 12px; color: var(--muted); }
.created-order > strong { display: block; font: 13px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; user-select: all; }
.created-order > div { display: flex; align-items: center; gap: 20px; margin-top: 4px; font-size: 13px; }
.state-label { display: inline-flex; padding: 3px 8px; border-radius: 3px; background: #f6eedb; color: #715112; font-size: 12px; white-space: nowrap; }
.recent-orders { padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.recent-orders h3 { margin-bottom: 0; }
.recent-order { display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--action); text-align: left; }
.recent-order:hover { background: #f6f8f3; }
.recent-order small { color: var(--muted); font: 11px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; word-break: break-all; }
.order-empty { margin: 0; padding: 24px 0 34px; font-size: 14px; color: var(--muted); }
.result-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.result-heading h3 { margin: 0; font-size: 17px; }
.order-facts { margin: 18px 0 0; font-size: 13px; }
.order-facts > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-facts dt { margin-bottom: 4px; color: var(--muted); }
.order-facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.legacy-order-link { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.success-page { max-width: 700px; padding-block: 32px 56px; }
.success-preview { margin: 0 0 14px; padding: 9px 12px; border: 1px solid #e3d5ad; border-radius: 5px; background: #faf6e9; color: #715112; font-size: 13px; }
.success-panel { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.success-heading { display: flex; align-items: flex-start; gap: 14px; }
.success-check { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #e9f3eb; color: var(--action); font-size: 24px; }
.success-heading h1 { margin: 1px 0 5px; font-size: 26px; }
.success-heading p, .success-skill p { margin: 0; color: var(--muted); font-size: 13px; }
.success-skill { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 18px 0; border-block: 1px solid var(--line); }
.success-skill img { display: block; width: 72px; height: 54px; flex: none; }
.success-skill > div { flex: 1; min-width: 0; }
.success-skill h2 { margin: 0 0 4px; font-size: 16px; }
.success-skill > strong { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.success-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 22px; font-size: 13px; }
.success-facts dt { margin-bottom: 4px; color: var(--muted); }
.success-facts dd { margin: 0; overflow-wrap: anywhere; }
.success-files, .success-usage { padding-top: 20px; border-top: 1px solid var(--line); }
.success-files h2, .success-usage h2 { margin: 0 0 10px; font-size: 16px; }
.success-files ul { margin: 0 0 18px; padding-left: 18px; font-size: 13px; line-height: 1.9; }
.success-usage { margin-top: 22px; }
.success-usage p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.success-usage-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.success-usage-heading h2 { margin-bottom: 0; }
.success-support strong { color: var(--action); font-weight: 600; font-variant-numeric: tabular-nums; user-select: all; }
.success-links { display: flex; gap: 24px; margin-top: 14px; font-size: 13px; }
@media (max-width: 640px) { .success-panel { padding: 20px; } .success-page { padding-top: 20px; } .success-skill { flex-wrap: wrap; } .success-facts { grid-template-columns: minmax(0, 1fr); } }
 .checkout .text-link { margin-left: 12px; }
+.checkout-receipt { margin: 20px 0; padding: 20px; background: #f7f6f2; border: 1px solid var(--line); border-radius: 8px; }
+.receipt-label { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
+.receipt-value { font-size: 24px; font-family: ui-monospace, "SF Mono", monospace; font-weight: 600; margin-bottom: 20px; }
+.receipt-files, .receipt-checklist { margin-bottom: 16px; }
+.receipt-files h3, .receipt-checklist h3 { font-size: 14px; margin-bottom: 10px; }
+.receipt-files ul, .receipt-checklist ul { margin: 0; padding-left: 20px; }
+.receipt-files li, .receipt-checklist li { margin-bottom: 6px; font-size: 14px; }
.payment-modal { width: min(400px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #e4e7e1; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 18px 60px #17241c29; overflow: auto; overscroll-behavior: contain; }
.payment-modal:not([open]) { display: none; }
.payment-modal::backdrop { background: rgb(21 28 24 / 45%); }
html.payment-open { overflow: hidden; }
.modal-content { padding: 18px 24px 24px; }
.payment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-heading h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 650; }
.payment-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -12px; border: 0; border-radius: 6px; background: transparent; color: #69736b; }
.payment-close:hover { background: #f1f3ef; color: var(--ink); }
.payment-close svg { width: 19px; height: 19px; }
.payment-summary { padding: 16px 0 22px; text-align: center; }
.payment-summary p { margin: 0 0 5px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.payment-amount { display: block; font-size: 34px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.payment-methods { padding: 0; margin: 0; border: 0; min-width: 0; }
.payment-methods legend { padding: 0 0 10px; font-size: 13px; color: var(--muted); }
.payment-method { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px; border: 1px solid #a9c8b2; border-radius: 7px; background: #f5faf6; cursor: pointer; }
.payment-method:hover { background: #edf6ef; }
.payment-method img { width: 30px; height: 30px; flex: none; }
.method-name { flex: 1; font-size: 15px; font-weight: 600; }
.payment-method input { width: 17px; height: 17px; margin: 0; accent-color: #1a8746; }
.payment-availability { margin: 12px 0 18px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.payment-confirm { width: 100%; min-height: 46px; }
.payment-feedback { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #9b362b; overflow-wrap: anywhere; }
.payment-feedback:empty { display: none; }
.payment-order-id { margin: 0 0 16px; font: 12px/1.7 ui-monospace, monospace; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 400px) { .modal-content { padding: 14px 18px 20px; } }
.deliverables { padding-left: 22px; }
.deliverables li { margin-bottom: 6px; }
.sample-image { display: block; width: min(100%, 520px); height: auto; }
.clip-player { display: block; width: min(100%, 440px); height: auto; background: #252621; }
.app-frame { position: relative; background: #f7f8f3; border: 1px solid #bdc6b9; border-radius: 8px; }
.bench-bar, .bench-foot, .pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; }
.bench-bar { min-height: 60px; border-bottom: 1px solid var(--line); }
.bench-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }
.theme-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.theme-control select { min-height: 44px; border: 1px solid #b4c2d7; border-radius: 6px; padding: 0 8px; color: #293a55; background: white; }
.bench-switch { display: none; }
.bench-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: white; }
.source-pane { background: #f8fafc; border-right: 1px solid var(--line); }
.pane-head { min-height: 44px; font-size: 13px; font-weight: 650; border-bottom: 1px solid var(--line); }
.pane-head span span, .pane-head label span, .pane-head > span + span { color: var(--muted); font-weight: 400; }
.pane-head label span { margin-left: 7px; }
.source-pane .pane-head { padding-block: 0; }
.quiet { min-height: 44px; padding: 0; background: none; border: 0; color: #2d53a8; }
.quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
#draft, .preview-scroll { display: block; width: 100%; height: clamp(280px, 38vh, 352px); overflow: auto; padding: 18px 20px; }
#draft { resize: none; border: 0; border-radius: 0; background: transparent; color: #293952; font: 14px/1.75 ui-monospace, "SF Mono", "PingFang SC", monospace; }
#draft:focus-visible, .preview-scroll:focus-visible { outline-offset: -3px; }
.preview-scroll > p { color: var(--muted); }
.bench-foot { min-height: 66px; border-top: 1px solid var(--line); }
.bench-foot p { margin: 0; color: var(--muted); font-size: 13px; }
.bench-foot p span { margin-left: 6px; }
.bench-actions { display: flex; gap: 8px; }
.action-status { margin: 0; padding: 6px 18px 12px; color: var(--muted); font-size: 13px; }
.action-status:empty { padding: 0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:not(:disabled):active { transform: none; } }
@media (max-width: 800px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-wrap { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 640px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .order-panel { padding: 20px; }
  .checkout-page { padding-top: 16px; }
  .checkout-heading { margin-top: 8px; }
  .checkout-heading h1 { font-size: 28px; }
  :root { --nav-height: 60px; }
  .nav-wrap { gap: 10px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 13px; }
  .catalog-page .nav nav a:nth-child(2), .brand-label { display: none; }
  .catalog-head { margin-bottom: 25px; }
  .catalog-head p { font-size: 14px; }
  .shelf { gap: 12px; }
  .listing-copy { padding: 10px; }
  .listing-buy { margin-inline: 10px; }
  .listing p:not(.category) { font-size: 13px; }
  .usage, .product-intro { grid-template-columns: minmax(0, 1fr); }
  .product-intro > div { grid-row: 1; }
  .bench-bar, .bench-foot, .pane-head { padding-inline: 12px; }
  .bench-switch { display: grid; grid-template-columns: 1fr 1fr; background: #edf2fa; }
  .bench-switch button { min-height: 44px; border: 0; border-bottom: 2px solid #d8e0eb; background: transparent; color: #40516c; font-size: 14px; }
  .bench-switch button[aria-pressed="true"] { background: white; color: #254aa9; border-bottom-color: var(--action); font-weight: 650; }
  .bench-switch button:focus-visible { outline-offset: -4px; }
  .bench-grid { display: block; }
  .source-pane { border-right: 0; }
  .bench-grid[data-view="preview"] .source-pane, .bench-grid[data-view="source"] .preview-pane { display: none; }
  .preview-pane .pane-head { display: none; }
  .source-pane .pane-head { justify-content: space-between; }
  #draft { height: max(219px, calc(clamp(265px, 35svh, 315px) - 46px)); }
  .preview-scroll { height: clamp(265px, 35svh, 315px); }
  #draft, .preview-scroll { padding: 13px 14px; }
  .bench-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .bench-foot p { text-align: center; }
  .bench-actions .btn { flex: 1; }
}
@media (max-width: 350px) {
  .bench-foot p span { display: none; }
  .brand { gap: 7px; font-size: 14px; }
  .bench-bar { gap: 6px; }
}
