:root {
  --white: #ffffff;
  --paper: #f6f5f1;
  --ink: #253029;
  --green: #173d31;
  --green-dark: #102e25;
  --green-pale: #eaf1eb;
  --muted: #53615a;
  --line: #dce2db;
  --line-strong: #b7c7bc;
  --radius: 8px;
  --header-height: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 1rem/1.68 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.28; }
h1, h2 { color: var(--green); }
h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
h3 { font-size: 1rem; }
[hidden] { display: none !important; }
::selection { background: #d6e8d7; color: var(--green-dark); }
:focus-visible { outline: 3px solid #689675; outline-offset: 4px; }
.container { width: min(1248px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: clamp(42px, 5vw, 74px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: var(--radius); background: var(--green); color: var(--white); }
.skip-link:focus { top: 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  transition: background .18s, border-color .18s;
}
.button-primary { border-color: var(--green); background: var(--green); color: var(--white); }
.button-primary:hover:not(:disabled) { border-color: var(--green-dark); background: var(--green-dark); }
.button-outline { border-color: var(--line-strong); background: transparent; color: var(--green); }
.button-outline:hover { border-color: var(--green); background: var(--green-pale); }
.button-light { background: var(--white); color: var(--green); }
.button-light:hover { background: var(--green-pale); }
.text-link {
  display: inline-block;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: currentColor; }

#site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 40px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; flex-shrink: 0; }
.brand img { width: 43px; height: 46px; object-fit: contain; }
.brand-text { display: grid; gap: 5px; line-height: 1.12; }
.brand-text strong { color: var(--green); font-size: 1.0625rem; letter-spacing: .035em; }
.brand-text small { color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .22em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.2vw, 34px); }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: var(--header-height); color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.main-nav a[aria-current="page"] { font-weight: 700; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; height: 3px; background: var(--green); left: 0; right: 0; bottom: -1px; }
.header-action { display: flex; align-items: center; gap: 8px; }
.selection-toggle, .nav-toggle {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--green);
}
.selection-toggle { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.selection-toggle:hover, .nav-toggle:hover { background: var(--green-pale); }
.selection-toggle span { min-width: 23px; padding: 2px 3px; border-radius: 4px; background: var(--green-pale); font-size: .8125rem; }
.nav-toggle { display: none; width: 44px; padding: 10px; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.hero { background: var(--paper); padding-block: clamp(30px, 4vw, 56px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(26px, 5.2vw, 76px); align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 4.16vw, 3.85rem); letter-spacing: -.047em; line-height: 1.18; }
.hero-copy p { max-width: 28rem; margin-block: 23px 29px; color: var(--muted); font-size: clamp(1rem, 1.36vw, 1.1875rem); }
.hero-photo { position: relative; min-width: 0; background: var(--green-pale); border-radius: var(--radius); overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.hero-photo figcaption { position: absolute; bottom: 13px; left: 14px; padding: 4px 10px; border-radius: 4px; color: var(--white); background: rgb(16 46 37 / 88%); font-size: .8125rem; }
.process-section { padding-block: 42px 48px; }
.category-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.category-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 92px;
  padding: 13px clamp(10px, 1.3vw, 19px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .18s, background .18s;
}
.category-item:hover { border-color: var(--line-strong); background: var(--green-pale); }
.category-item strong { color: var(--green); font-size: 1.0625rem; }
.category-item span { color: var(--muted); font-size: .875rem; }
.featured-section { background: var(--paper); }
.featured-grid, .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.product-card:hover { border-color: var(--line-strong); }
.product-image, .main-product-image { display: grid; place-items: center; min-width: 0; background: #f4f4f1; }
.product-image { aspect-ratio: 1.32; border-bottom: 1px solid var(--line); }
.product-image img, .main-product-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-placeholder { padding: 20px; text-align: center; color: var(--muted); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.product-topline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 9px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.product-category { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--green-pale); color: var(--green); font-size: .875rem; font-weight: 650; }
a.product-category:hover { background: #d9e9de; }
.product-name { font-size: 1.125rem; line-height: 1.45; overflow-wrap: anywhere; }
.product-name a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.product-description { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: auto; padding-top: 15px; }
.product-add { min-height: 36px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--white); color: var(--green); font-size: .875rem; }
.product-add:hover, .product-add[aria-pressed="true"] { border-color: var(--green); background: var(--green-pale); }

.page-intro { padding-block: 23px clamp(26px, 4vw, 46px); background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; padding-block: 4px; color: var(--muted); font-size: .875rem; }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; margin-top: 18px; }
.page-subtitle { margin-top: 9px; color: var(--muted); }
.catalog-section, .contact-section, .about-section { padding-top: clamp(26px, 3.5vw, 52px); }
.catalog-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 28px; }
.filter-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-panel h2 { font-size: 1rem; margin-bottom: 12px; }
.filter-list { display: grid; gap: 5px; }
.filter-list button { display: flex; justify-content: space-between; align-items: center; gap: 7px; width: 100%; min-height: 43px; padding: 6px 9px; border: 1px solid transparent; border-radius: 5px; background: var(--white); color: var(--muted); text-align: left; font-size: .9375rem; }
.filter-list button:hover { background: var(--green-pale); color: var(--green); }
.filter-list button[aria-pressed="true"] { border-color: var(--line-strong); background: var(--green-pale); color: var(--green); font-weight: 650; }
.filter-list button span:last-child { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.catalog-help { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-heading h2 { font-size: 1.4rem; }
.product-count { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.search-field { position: relative; width: min(100%, 325px); }
.search-field::before { content: ""; position: absolute; left: 15px; top: 15px; width: 12px; height: 12px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-field::after { content: ""; position: absolute; left: 24px; top: 26px; width: 6px; height: 1.5px; transform: rotate(45deg); background: var(--muted); pointer-events: none; }
.search-field input { width: 100%; height: 48px; padding: 0 10px 0 40px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); color: var(--ink); font-size: .9375rem; }
.empty-state { grid-column: 1 / -1; padding: clamp(22px, 4vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state p { margin-block: 8px 16px; color: var(--muted); }

body[data-page="product"] main > .container:first-child { padding-top: 18px; }
.detail-section { padding-top: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(24px, 5vw, 68px); align-items: start; }
.main-product-image { aspect-ratio: 1.17; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thumb-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumb-button { width: 64px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.thumb-button img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumb-button[aria-pressed="true"], .thumb-button:hover { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.detail-title { margin-top: 9px; font-size: clamp(1.72rem, 3.05vw, 2.65rem); overflow-wrap: anywhere; }
.detail-description { margin-top: 12px; color: var(--muted); }
.spec-list { margin-block: 19px; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: .875rem; }
.spec-list dd { font-size: .9375rem; font-weight: 600; }
.notice { padding: 13px 16px; border-left: 3px solid #578267; background: var(--green-pale); color: var(--muted); border-radius: 0 6px 6px 0; }
.notice h2, .notice strong { color: var(--green); font-size: 1rem; font-weight: 700; }
.notice p { margin-top: 4px; }
.detail-actions { margin-block: 18px 12px; }

.about-story, .about-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(19px, 4vw, 54px); }
.about-photo { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.about-photo figcaption { padding: 10px 15px; color: var(--muted); font-size: .9375rem; }
.about-copy p { margin-top: 13px; color: var(--muted); }
.about-copy .button { margin-top: 20px; }
.about-section + .section { padding-top: 4px; }
.contact-strip, .site-footer { background: var(--green-dark); color: var(--white); }
.contact-strip .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 28px; }
.contact-strip h2 { color: var(--white); font-size: 1.35rem; }
.contact-strip + .site-footer { border-top: 1px solid #46695a; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-phone { display: inline-block; margin-block: 6px 14px; color: var(--green); font-size: clamp(1.55rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.contact-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.contact-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { color: var(--green); }
.contact-card p, .contact-card strong { display: block; margin-block: 6px; font-size: .9375rem; }
.contact-form { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-form .notice { margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.form-hint { margin-block: 6px 13px; color: var(--muted); font-size: .9375rem; }
.form-hint:empty { display: none; }
.field { display: grid; gap: 6px; margin-block: 0 13px; color: var(--green); font-size: .9375rem; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 45px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--white); color: var(--ink); font-size: 1rem; font-weight: 400; }
.field textarea { resize: vertical; }
.field select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.contact-output { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-strong); }

.faq-layout { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(18px, 5vw, 70px); }
.faq-layout .text-link { margin-top: 9px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; color: var(--green); font-weight: 650; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding-bottom: 15px; color: var(--muted); }

.footer-main { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: start; gap: 22px 45px; padding-block: 33px; }
.footer-main strong { font-size: 1.125rem; }
.footer-main p, .footer-main a, .footer-main button { color: #dce8e0; font-size: .9375rem; }
.footer-main nav, .footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; }
.footer-main button { border: 0; padding: 0; background: transparent; }
.footer-main a:hover, .footer-main button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.inquiry-panel { width: min(580px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: clamp(15px, 4vw, 27px); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); }
.inquiry-panel::backdrop { background: rgb(15 36 28 / 60%); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-close { width: 41px; height: 41px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--green); font-size: 1.35rem; }
.dialog-close:hover { background: var(--green-pale); }
.inquiry-list { margin-block: 15px; }
.empty-list { padding: 10px 0; color: var(--muted); }
.empty-list a, .empty-state p a { text-decoration: underline; text-underline-offset: 4px; }
.inquiry-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 8px; border-top: 1px solid var(--line); }
.inquiry-item img { width: 64px; height: 64px; object-fit: contain; background: var(--paper); }
.inquiry-item a { color: var(--green); font-weight: 600; }
.quantity-field { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .875rem; }
.quantity-field input { width: 60px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 3px; }
.clipboard-field { position: fixed; left: -100vw; top: 0; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 18px; width: max-content; max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 6px; background: var(--green-dark); color: var(--white); box-shadow: 0 4px 16px #12271d38; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .16s, transform .16s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
body:has(dialog[open]) .toast { visibility: hidden; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr auto; }
  .footer-contact { grid-column: 2; }
}

@media (max-width: 780px) {
  :root { --header-height: 65px; }
  .container { width: calc(100% - 36px); }
  .header-inner { gap: 10px; }
  .brand img { width: 34px; height: 36px; }
  .brand-text strong { font-size: .9375rem; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 6px 18px 14px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 8px 12px #102e2510; }
  .main-nav.open { display: grid; justify-content: stretch; gap: 0; }
  .main-nav a { min-height: 45px; margin: 0; padding-inline: 8px; }
  .main-nav a[aria-current="page"]::after { width: 3px; height: 22px; bottom: auto; border-radius: 2px; left: -4px; right: auto; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .hero-copy h1 { font-size: clamp(2rem, 7.7vw, 3.25rem); }
  .hero-copy p { margin-block: 13px 18px; }
  .desktop-break { display: none; }
  .hero-photo { max-width: 620px; }
  .process-section { padding-block: 31px 37px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .filter-panel { padding: 10px; }
  .filter-panel h2 { margin-bottom: 7px; }
  .filter-list { grid-template-columns: repeat(auto-fit, minmax(103px, 1fr)); gap: 4px; }
  .filter-list button { padding-inline: 6px; font-size: .875rem; }
  .catalog-help { display: none; }
  .detail-layout, .contact-grid, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .main-product-image { aspect-ratio: 1.33; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 510px) {
  .brand { gap: 7px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading .text-link { font-size: .875rem; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-item { min-height: 73px; gap: 3px; }
  .featured-grid, .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .search-field { width: 100%; }
  .product-image { aspect-ratio: 1.34; }
  .about-story, .about-gallery, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { gap: 0; }
  .button { min-height: 46px; padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
