:root {
  color-scheme: light;
  --ink: #17221c;
  --muted: #526157;
  --paper: #f5f6f0;
  --line: #dfe4d9;
  --leaf: #214b36;
  --highlight: #e9f0d8;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .section-head, .total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-inner { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .08em; }
.badge { display: inline-flex; background: var(--highlight); color: var(--leaf); border-radius: 100px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.intro { margin-top: 32px; border-radius: 26px; padding: clamp(24px, 5vw, 52px); color: #fff; background: radial-gradient(ellipse at 100% 0%, #446e50, #1f3c2c 64%); }
.eyebrow { font-size: 13px; color: #dbe8b9; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 12px 0; font-size: clamp(27px, 5vw, 49px); letter-spacing: -.035em; }
.intro p { line-height: 1.65; }
.notice { display: inline-block; margin-top: 20px; border-radius: 10px; padding: 9px 12px; background: #fff2; color: #f2f7e7; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 28px; }
.steps a { padding: 13px 8px; text-align: center; color: var(--leaf); background: #fff; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; font-weight: 700; }
.steps a:hover, .steps a:focus-visible { background: var(--highlight); }
.steps b { color: var(--muted); font-size: 12px; margin-right: 4px; }
.commerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, .47fr); gap: 18px; align-items: start; }
section { scroll-margin: 20px; }
h2 { font-size: 20px; }
.section-head > span:not(.badge) { font-size: 13px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.product, .panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.product { overflow: hidden; display: flex; flex-direction: column; }
.product img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #f7f8f3; }
.product div { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px; }
.product p { color: var(--muted); font-size: 12px; }
.product h3 { font-size: 15px; flex: 1; }
.product strong { color: var(--leaf); }
button, input, textarea { min-height: 42px; font: inherit; }
button { cursor: pointer; border-radius: 9px; padding: 8px 12px; font-size: 14px; font-weight: 700; }
button:disabled { cursor: default; opacity: .52; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #8c6800; outline-offset: 2px; }
.primary { color: #fff; background: var(--leaf); border: 1px solid var(--leaf); }
.primary:hover:not(:disabled) { background: #173625; }
.secondary { color: var(--leaf); background: var(--highlight); border: 1px solid #d9e4c5; }
.secondary:hover:not(:disabled) { background: #dbe8c6; }
.panel { padding: 17px; }
.empty { color: var(--muted); padding: 16px 0; font-size: 14px; }
.cart-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row strong { font-size: 14px; }
.quantity { display: flex; align-items: center; gap: 10px; }
.quantity button { min-width: 42px; }
.quantity span { min-width: 2ch; text-align: center; }
.total { margin: 14px 0; color: var(--leaf); }
#place-order { width: 100%; }
.message, .link { margin-top: 10px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.message:empty { display: none; }
.link { color: var(--leaf); font-weight: 700; display: inline-block; }
.orders { margin-top: 22px; padding: clamp(16px, 3vw, 30px); }
.orders > p, .result > p { color: var(--muted); line-height: 1.65; margin-top: 8px; font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.catalog-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.catalog-controls input { flex: 1 1 150px; min-width: 0; }
input:not([type="checkbox"]), textarea { padding: 8px 10px; border: 1px solid #aebcaf; border-radius: 9px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
#checkout-fields { border: 0; min-width: 0; padding: 0; margin: 18px 0 0; }
#checkout-fields legend { font-size: 16px; font-weight: 700; padding: 0; margin-bottom: 10px; }
#checkout-fields input:not([type="checkbox"]), #checkout-fields textarea { display: block; width: 100%; margin-bottom: 12px; }
#checkout-fields:disabled label { color: var(--muted); }
.consent { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; line-height: 1.5; font-weight: 500; }
.consent input { flex: none; margin: 0; width: 20px; min-height: 20px; accent-color: var(--leaf); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.result { margin-top: 16px; padding: 15px; background: #f9faf6; border: 1px solid var(--line); border-radius: 12px; }
.result h3 { font-size: 16px; overflow-wrap: anywhere; }
footer { padding: 24px 0; font-size: 13px; color: var(--muted); }
footer span { margin-left: 7px; }
@media (max-width: 790px) { .commerce { grid-template-columns: 1fr; } }
@media (max-width: 470px) {
  .wrap { width: min(1120px, 100% - 24px); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps a { font-size: 12px; }
  .steps b { margin-right: 1px; }
}
