:root {
  --ground: #f6f3eb;
  --paper: #fffef8;
  --green: #184938;
  --ink: #203c31;
  --muted: #50665a;
  --mint: #dfe9d9;
  --gold: #b88c4a;
  --line: #d5d9cc;
  --danger: #802f29;
  --serif: "Noto Serif CJK SC", "Noto Serif CJK", "Songti SC", SimSun, serif;
  font-family: "Noto Sans CJK SC", "Noto Sans CJK", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-size: 15px;
  line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.28; overflow-wrap: anywhere; }
h1 { font-size: 38px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
img { max-width: 100%; display: block; }
p, dd { overflow-wrap: anywhere; }
strong, .strong { color: var(--green); font-weight: 750; }
.muted, small { color: var(--muted); }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.secondary { margin-inline-start: 12px; display: inline-block; }
.container { width: 90%; max-width: 1280px; margin-inline: auto; }
.site-header {
  display: grid;
  grid-template-columns: minmax(140px, 25%) 1fr auto;
  align-items: center;
  height: 68px;
  padding-inline: 3% 2%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; font-size: 23px; font-weight: 800; color: var(--green); }
.desktop-nav { display: flex; flex-wrap: wrap; column-gap: 27px; color: var(--muted); }
.desktop-nav a:hover, .mobile-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.desktop-orders, .mobile-nav { font-size: 14px; }
.mobile-nav { display: none; }
main.container { padding-top: 31px; }
.breadcrumb { display: flex; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.breadcrumb a:hover { text-decoration: underline; }
.heading { margin-bottom: 26px; }
.heading p { color: var(--muted); margin-top: 14px; }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); margin-top: 30px; padding-block: 12px 20px; font-size: 14px; }
.site-footer small { font-size: 12px; }
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 12px;
  padding: 8px 15px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: var(--paper);
  font-weight: 750;
  text-align: center;
}
.button::after { content: "→" / ""; font-weight: 500; font-size: 18px; line-height: 1; }
.button:hover { color: var(--paper); }
.button:active { background: #27624e; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 302px; padding: 14px; border-radius: 20px; background: var(--mint); }
.hero-copy { align-self: center; padding: 17px 21px; }
.hero h1 { font-size: 42px; line-height: 1.34; color: var(--green); }
.hero p { margin: 10px 0 13px; color: var(--muted); font-size: 16px; }
.hero-art { min-height: 175px; overflow: hidden; border-radius: 12px; background: #c9ddd0; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.browse { margin-top: 29px; }
.browse h2 { margin-bottom: 16px; }
.search { display: flex; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.browse .search { min-height: 44px; }
.search input { flex: 1; min-width: 0; border: 0; padding: 7px 14px; background: none; border-radius: 8px; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; background: none; color: var(--green); padding-inline: 18px; font-weight: 750; }
.search button span { margin-inline-start: 4px; }
.pills { display: flex; gap: 7px; flex-wrap: wrap; margin-block: 16px; }
.browse .pills { margin-block: 11px; }
.pills a { display: flex; align-items: center; min-height: 34px; padding: 3px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: var(--paper); font-size: 14px; }
.pills a:hover { border-color: var(--green); }
.pills [aria-current] { background: var(--green); color: var(--paper); border-color: var(--green); }
.clear-filter { display: inline-block; margin: -3px 0 12px; font-size: 14px; }
#shelf { scroll-margin-top: 15px; }
#shelf h2 { margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.service-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.service-card > a { display: flex; flex-direction: column; padding: 6px; min-height: 100%; border-radius: inherit; }
.cover { position: relative; overflow: hidden; height: 155px; border-radius: 10px; background: var(--mint); }
.cover img, .product-cover img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 1px 10px; border-radius: 5px; background: var(--paper); color: var(--green); font-weight: 750; font-size: 12px; }
.card-copy { padding: 6px 9px 9px; display: flex; flex: 1; flex-direction: column; }
.card-copy p { color: var(--muted); margin-block: 4px 6px; font-size: 14px; }
.card-bottom { display: flex; gap: 2px 12px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-top: auto; }
.card-bottom strong { font-size: 18px; }
.card-bottom > span { font-size: 13px; color: var(--muted); }
.card-bottom > span span:first-child { margin-inline: 4px; }
.service-card a:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.product-cover { height: clamp(175px, 22vw, 320px); border-radius: 11px; overflow: hidden; margin-bottom: 22px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.receipt-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.stack { display: grid; gap: 16px; }
.panel { padding: 15px 23px 19px; }
.panel h2 { font-size: 20px; display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.panel h2::before { content: ""; background: var(--gold); flex: 0 0 4px; height: .86em; align-self: center; border-radius: 2px; }
.panel p { margin-block: 9px 12px; }
.rows > div { padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.rows > div:first-child { padding-top: 0; }
.rows dt, .field label { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.rows + .button, .rows + form, .rows + p { margin-top: 9px; }
.home-steps { margin-block: 16px 12px; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px; background: #f7f7ef; }
.field textarea { display: block; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select { appearance: none; padding-inline-end: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat; }
.field input[type=file] { padding: 4px 8px; }
.field input::file-selector-button { font: inherit; border: 0; background: var(--mint); color: var(--green); padding: 3px 8px; border-radius: 4px; margin-inline-end: 7px; }
.field small { display: block; margin-top: 4px; }
.notice { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--mint); }
.panel.notice { padding: 15px 23px 19px; }
.warning { background: #fff3ed; color: var(--danger); border-color: #deb5a7; }
.warning strong, .warning a, .warning-text, .errorlist { color: var(--danger); }
.errorlist { padding-inline-start: 20px; margin: 4px 0; font-size: 14px; }
.form-feedback { margin-bottom: 14px; }
.form-feedback ul { margin: 5px 0 0; padding-inline-start: 22px; }
.field [aria-invalid=true] { border-color: var(--danger); }
.amount { display: grid; gap: 4px; border-radius: 16px; background: var(--mint); padding: 20px 23px; color: var(--muted); margin-bottom: 13px; }
.amount strong { font-size: clamp(34px, 4vw, 44px); line-height: 1.25; margin-bottom: 5px; }
.amount + p { margin-bottom: 14px; }
.order-summary { width: min(100%, 810px); }
.order-number { overflow-wrap: anywhere; }
.inline-button { color: var(--green); font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.inline-button:active { background: var(--mint); }
.copy-status { display: block; font-size: 13px; }
.success-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin-bottom: 10px; }
.success-mark::after { content: ""; width: 23px; height: 13px; border: solid var(--paper); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.lookup-again { margin-top: 16px; }
.empty { margin-bottom: 12px; }
[data-spotlight]:active, a:focus-visible [data-spotlight] { outline: 2px solid var(--green); outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes shelf-reveal { from { opacity: .83; } to { opacity: 1; } }
  #shelf.reveal .cards { animation: shelf-reveal 420ms ease-out; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-button { overflow: hidden; }
  .hero-button.sweep::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 2px solid #dfe9d975; border-radius: inherit; mask-image: linear-gradient(110deg, transparent 38%, #000 50%, transparent 62%); mask-size: 300% 100%; animation: edge-sweep 560ms ease-out both; }
  @keyframes edge-sweep { from { mask-position: 100% 0; } to { mask-position: 0 0; } }
  [data-spotlight].lit::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 82px at var(--pointer-x) var(--pointer-y), #fff9e74d, transparent); }
}
@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .desktop-nav, .desktop-orders { display: none; }
  .mobile-nav { display: flex; gap: 10px; align-items: center; }
  .mobile-nav details { position: relative; }
  .mobile-nav summary { list-style: none; padding: 10px 6px; color: var(--green); font-weight: 750; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; z-index: 2; right: 0; top: 100%; width: max-content; min-width: 150px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: grid; padding: 5px 12px; }
  .mobile-nav nav a { padding: 7px 3px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  main.container { padding-top: 18px; }
  .breadcrumb { margin-bottom: 16px; }
  h1 { font-size: 31px; }
  h2 { font-size: 22px; }
  .hero { display: block; min-height: 0; padding: 12px; }
  .hero-copy { padding: 5px 7px 18px; }
  .hero h1 { font-size: clamp(27px, 8.8vw, 35px); line-height: 1.27; }
  .hero p { margin-top: 13px; }
  .hero-art { height: clamp(175px, 49vw, 240px); }
  .browse { margin-top: 26px; }
  .browse h2 { margin-bottom: 13px; }
  .cards, .columns, .receipt-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cover { height: clamp(112px, 32.5vw, 173px); }
  .card-copy { padding-bottom: 10px; }
  .panel { padding: 14px 17px 17px; }
  .heading { margin-bottom: 20px; }
  .heading p { margin-top: 10px; }
  .site-footer { margin-top: 20px; }
  .mobile-nav > a { display: flex; min-height: 44px; align-items: center; }
  .field input, .field textarea, .field select, .search input { font-size: 16px; }
}
