:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #172522;
  background: #fafbf9;
  --green: #087455;
  --muted: #53645e;
  --line: #dce6df;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #137b5c; outline-offset: 4px; }
section { scroll-margin-top: 96px; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; transform: translateY(-150%); padding: 12px; background: white; }
.skip:focus { transform: none; }
.wrap { width: min(100% - 64px, 1200px); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top-inner { min-height: 76px; }
.brand { display: inline-flex; gap: 12px; align-items: center; flex: none; }
.brand img { object-fit: cover; object-position: right center; border-radius: 4px; }
.brand strong { font: 800 22px/1.1 system-ui, sans-serif; display: block; }
.brand small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
nav { display: flex; align-items: center; gap: clamp(15px, 2.4vw, 36px); font-weight: 650; font-size: 14px; }
nav a { padding: 10px 0; }
nav a:hover, .contact-links a:hover { color: var(--green); }
.button { display: inline-flex; min-height: 46px; gap: 10px; padding: 10px 17px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 700; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #075d45; }
.secondary { background: #fff; border-color: #a9bbb2; color: #263e35; }
.secondary:hover { background: #eef5ef; }
.hero { color: #fff; background: #10251f url("./hero.jpg") center 53% / cover no-repeat; position: relative; isolation: isolate; }
.hero::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #0a1d18f5, #0b2019d9 29%, #0b20194f 67%, #0b201927); }
.hero-inner { position: relative; min-height: 478px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 58px 72px; }
.hero-label, .kicker, .steps li > span, .sku { font: 750 12px/1.4 ui-monospace, Consolas, monospace; }
.hero-label { display: flex; align-items: center; gap: 9px; color: #bef5ad; margin-bottom: 22px; }
.hero-label span { width: 8px; height: 8px; border: 2px solid #bef5ad; }
h1 { font-size: 64px; line-height: 1.12; font-weight: 850; }
.hero-copy { max-width: 415px; color: #e3eee8; font-size: 16px; line-height: 1.85; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home-links { margin-top: 16px; }
.hero .actions { margin-top: 30px; }
.hero .primary { background: #b9f491; color: #10261d; }
.hero .primary:hover { background: #d5ffc0; }
.ghost { border-color: #a8c7b9; color: #fff; background: #122b2373; }
.ghost:hover { background: #223f35; }
.hero :focus-visible { outline-color: #b9f491; }
.image-credit { position: absolute; bottom: 17px; right: 0; color: #fff; font-size: 11px; background: #11271ee6; padding: 4px 8px; border-radius: 3px; }
.section { padding-block: 58px; }
.kicker { color: var(--green); margin-bottom: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { font-size: 34px; line-height: 1.2; font-weight: 820; }
h3 { font-size: 21px; line-height: 1.3; }
.filters { display: inline-flex; padding: 3px; gap: 3px; background: #edf1ed; border: 1px solid #e3ebe5; border-radius: 6px; }
.filters button { border: 1px solid transparent; border-radius: 4px; padding: 7px 12px; min-height: 36px; background: transparent; color: #455750; font-size: 13px; font-weight: 650; }
.filters button[aria-pressed="true"] { background: white; color: #075c44; border-color: var(--line); }
.filters button:hover { color: #075c44; }
.catalog, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.item { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 20px; border: 1px solid var(--line); background: #fff; border-radius: 6px; min-height: 200px; overflow-wrap: anywhere; }
.item-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item-icon { width: 43px; height: 43px; display: grid; place-items: center; background: #e4f1e8; border-radius: 5px; color: #086249; }
.item-icon .icon { width: 23px; height: 23px; }
.tag { border: 1px solid #d4e5d8; color: #345e4e; background: #eff7f0; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.warm { background: #f8f3e6; border-color: #ede3cc; color: #674f23; }
.item p, .steps p, .contact p:not(.kicker) { color: var(--muted); line-height: 1.75; font-size: 14px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; background: transparent; color: #07644b; font-weight: 750; font-size: 14px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.item > .text-button, .product .actions { margin-top: auto; }
.product-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f2f5f2; border-radius: 4px; }
.item .price { color: #0c523d; font-weight: 750; }
.directory-toolbar { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin: 0 0 20px; }
.directory-toolbar label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; }
.directory-toolbar select { max-width: 100%; padding: 8px 12px; border: 1px solid #a9bbb2; border-radius: 4px; background: #fff; color: #172522; font-size: 16px; }
#directory-count, .section-note { color: var(--muted); font-size: 13px; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.directory-item { min-height: 0; padding: 16px; }
.directory-item h3 { font-size: 17px; }
.directory-product a { color: #164e3d; text-decoration: underline; text-underline-offset: 3px; }
.directory-image-link { display: block; width: 100%; }
.directory-image-link img { display: block; background: #fff; }
.directory-image-link:hover img { outline: 1px solid var(--line); }
.directory-item .actions { margin-top: auto; }
.directory-item .text-button { font-size: 13px; }
.factory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 16px; }
.factory-grid figure { margin: 0; }
.factory-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 5px; background: #dce6df; }
.factory-image img { position: absolute; top: 0; left: 0; width: var(--zoom); max-width: none; height: auto; transform: translate(var(--x), var(--y)); }
.factory-grid figcaption { font-size: 15px; font-weight: 700; margin-top: 8px; }
.section-note + .text-button { margin-top: 8px; }
.band { background: #eff5ef; border-block: 1px solid var(--line); }
.steps { margin: 27px 0 0; padding: 0; list-style: none; gap: 28px; }
.steps li { border-top: 1px solid #aec5b7; padding-top: 16px; }
.steps li > span { color: var(--green); }
.steps h3 { margin: 10px 0 6px; }
.contact { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.contact h2 { margin-bottom: 9px; }
.contact-links { display: grid; gap: 12px; }
.contact-links a { display: inline-flex; align-items: center; gap: 9px; color: #164e3d; font-weight: 700; overflow-wrap: anywhere; }
footer { padding-block: 20px; background: #172923; color: #e2eee7; }
.footer-inner p, .footer-inner > span { font-size: 13px; color: #b5ccc0; }
.footer-inner .brand strong { font-size: 17px; }

dialog { border: 1px solid var(--line); border-radius: 8px; padding: 24px; width: min(100% - 28px, 610px); max-height: calc(100% - 28px); color: #172522; }
dialog::backdrop { background: #0c1e18aa; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-head h2 { font-size: 24px; }
.icon-button { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #f5f8f5; color: #172522; }
.icon-button:hover { background: #e4f1e8; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid :is(input, select, textarea) { width: 100%; min-width: 0; padding: 10px; color: inherit; border: 1px solid #a9bbb2; border-radius: 4px; background: #fff; font-size: 16px; font-weight: 400; }
.form-grid textarea { resize: vertical; }
.form-note, #inquiry-status { color: var(--muted); font-size: 13px; line-height: 1.6; margin-block: 12px; overflow-wrap: anywhere; }
#inquiry-status:empty { display: none; }
#inquiry-copy { display: block; margin-top: 10px; width: 100%; min-height: 110px; }

@media (max-width: 960px) {
  .top-inner { flex-wrap: wrap; gap: 6px 12px; padding-block: 9px; }
  .top-inner nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 7px; flex-wrap: wrap; }
  .top-inner nav a { padding-block: 5px; font-size: 13px; }
  section { scroll-margin-top: 105px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .top-quote { min-height: 40px; padding-inline: 11px; }
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  .hero { background-position: 60% center; }
  .hero::before { background: linear-gradient(90deg, #0a1d18f5, #0a1d18b8 62%, #0a1d1859); }
  .hero-inner { min-height: 395px; padding-block: 44px 56px; }
  .section { padding-block: 36px; }
  .catalog, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-grid, .factory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact, .footer-inner { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .catalog, .steps, .form-grid { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: 1fr; }
  .factory-grid { gap: 12px; }
  section { scroll-margin-top: 128px; }
  .top-inner nav a { font-size: 12px; }
  .item { min-height: 170px; }
  .hero-copy { font-size: 15px; }
  dialog { padding: 16px; }
}

@media (min-width: 761px) and (max-height: 650px) {
  .hero-inner { min-height: 365px; padding-block: 32px; }
  .hero h1 { font-size: 52px; }
  .hero-label { margin-bottom: 14px; }
  .hero-copy { margin-block: 14px 0; }
  .hero .actions { margin-top: 20px; }
  #products { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
