:root {
  --ink: #102a22;
  --green: #164739;
  --green-dark: #082c23;
  --green-soft: #eef3ea;
  --paper: #fffef9;
  --cream: #f7f7ef;
  --orange: #ef7438;
  --line: #d9ded6;
  --muted: #67746e;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(14, 50, 39, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body:has(#catalog-view:not([hidden])) { background: #fbfcf5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; background: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.topline { background: var(--green-dark); color: #dbe9e3; font-size: 11px; letter-spacing: 0.08em; }
.topline .container { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.site-header { position: sticky; top: 0; z-index: 40; height: 82px; background: rgba(255, 254, 249, 0.96); border-bottom: 1px solid rgba(16, 42, 34, 0.09); backdrop-filter: blur(14px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font: 700 22px Georgia, serif; }
.logo-image { flex: 0 0 auto; width: auto; height: 48px; max-width: none; object-fit: contain; object-position: left center; }
.logo-copy { display: flex; flex-direction: column; }
.logo b { font-size: 14px; letter-spacing: 0.035em; }
.logo small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 0.11em; }
#main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
#category-navigation { display: flex; align-items: center; gap: 4px; max-width: min(58vw, 760px); overflow-x: auto; scrollbar-width: none; }
#category-navigation::-webkit-scrollbar { display: none; }
#main-nav a { padding: 10px 11px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; transition: 160ms ease; }
#main-nav a:hover, #main-nav a.active { color: #fff; background: var(--green); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 750; }

.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: 10px; line-height: 1.2; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow.light { color: #b7d2c7; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
.section { padding: 88px 0; }
.section-heading { max-width: 690px; margin-bottom: 36px; }
.section-heading.compact { margin-bottom: 28px; }
.section-heading h2, .resource-block > h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; }
.section-heading p:last-child { color: var(--muted); max-width: 650px; }
.section-heading.inverse { color: #fff; }
.section-heading.inverse p:last-child { color: #c8dbd4; }

.hero { position: relative; min-height: 610px; display: flex; align-items: center; overflow: hidden; background: var(--green-soft); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-image.is-ready { opacity: 1; }
.hero-copy { position: relative; padding: 80px 0 90px; }
.hero h1 { max-width: 610px; margin: 0; color: #132821; font-size: clamp(52px, 6.5vw, 88px); line-height: 0.96; font-weight: 500; letter-spacing: -0.055em; white-space: pre-line; }
.hero-lead { max-width: 530px; margin: 24px 0; color: #53625d; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; padding: 13px 18px; font-weight: 800; font-size: 12px; cursor: pointer; }
.button.primary { background: var(--green); color: #fff; }
.button.ghost { border-color: #b9c4be; background: rgba(255,255,255,0.66); }

.category-section { background: var(--paper); }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-card { position: relative; min-height: 320px; display: flex; align-items: center; overflow: hidden; border: 1px solid #e1e6de; border-radius: 14px; background: var(--green-soft); isolation: isolate; }
.category-card > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.category-card-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(248,249,239,.97) 0%, rgba(248,249,239,.82) 42%, rgba(248,249,239,.05) 74%); }
.category-card-copy { width: min(48%, 260px); padding: 34px 28px; }
.category-card:hover > img, .category-card:focus-visible > img { transform: scale(1.035); }
.category-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.category-card small { color: var(--orange); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.12em; }
.category-card h3 { margin: 7px 0 10px; font-size: 29px; line-height: 1.05; font-weight: 500; }
.category-card p { color: var(--muted); font-size: 13px; }
.category-card b { display: inline-flex; margin-top: 8px; color: var(--green); font-size: 12px; font-weight: 850; }

.process-section { background: var(--green-soft); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 16px; }
.process-card { position: relative; }
.process-card::before { content: ""; position: absolute; top: 17px; left: 26px; right: -16px; height: 1px; background: #bfc9c2; }
.process-card:nth-child(3n)::before, .process-card:last-child::before { display: none; }
.process-card > span { position: relative; z-index: 1; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--green); background: var(--green-soft); font-size: 10px; font-weight: 850; }
.process-card h3 { margin: 10px 0 12px; font-size: 22px; font-weight: 500; }
.process-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.process-card p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.about-section { background: #fff; }
.about-layout { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 54px; align-items: center; }
.about-layout > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; }
.about-copy h2 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 60px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 28px; border-top: 1px solid var(--line); }
.stat { padding: 20px 18px 18px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 18px; }
.stat b { display: block; font: 500 27px Georgia, serif; }
.stat span { color: var(--muted); font-size: 10px; }
.gallery-heading { max-width: 640px; margin-top: 64px; }
.gallery-heading h2 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 500; }
.gallery-carousel { position: relative; margin-top: 28px; padding: 0 50px; }
.gallery-viewport { overflow: hidden; scroll-snap-type: x mandatory; }
.gallery-track { display: flex; gap: 18px; }
.gallery-track figure { flex: 0 0 calc((100% - 36px) / 3); margin: 0; scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.gallery-track figcaption { margin-top: 8px; color: var(--muted); text-align: center; font-size: 11px; }
.gallery-arrow { position: absolute; z-index: 2; top: calc(50% - 24px); width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--green); box-shadow: var(--shadow); cursor: pointer; }
.gallery-arrow.previous { left: 0; }
.gallery-arrow.next { right: 0; }
.gallery-dots { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }
.gallery-dots button { width: 7px; height: 7px; border: 0; border-radius: 50%; padding: 0; background: #b8c3bc; cursor: pointer; }
.gallery-dots button.active { width: 22px; border-radius: 999px; background: var(--green); }

.certificate-section { padding: 78px 0; color: #fff; background: linear-gradient(rgba(6,43,34,.88), rgba(6,43,34,.92)), url('/assets/industry-beverage.svg') center/cover; }
.certificate-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding-top: 12px; }
.certificate-grid figure { margin: 0; text-align: center; }
.certificate-grid button { width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.certificate-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; padding: 7px; background: #fff; border: 5px solid #a8794f; box-shadow: 0 16px 30px rgba(0,0,0,.2); transition: transform 180ms ease; }
.certificate-grid button:hover img, .certificate-grid button:focus-visible img { transform: translateY(-5px); }
.certificate-grid figcaption { margin-top: 10px; color: #cde0d8; font-size: 10px; }

.resources-section { background: #fff; }
.resource-block + .resource-block { margin-top: 64px; }
.resource-block > h2 { margin-bottom: 24px; text-transform: uppercase; font-size: 30px; letter-spacing: 0; }
.video-grid, .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { margin: 0; }
.video-card iframe, .video-error { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 12px; background: #e9eee8; }
.video-error { display: grid; place-items: center; color: var(--muted); }
.video-card h3 { margin: 10px 0 0; font-size: 17px; }
.blog-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.blog-card:hover, .blog-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.blog-card > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.blog-body { padding: 18px; }
.blog-card .blog-body { display: block; }
.blog-body small { color: var(--orange); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.blog-body h3 { margin: 7px 0; font-size: 22px; line-height: 1.08; }
.blog-body p { color: var(--muted); font-size: 12px; }
.blog-read { color: var(--green); font-size: 12px; font-weight: 850; }

.blog-detail { padding-top: 76px; padding-bottom: 100px; }
.blog-back { display: inline-flex; margin-bottom: 48px; color: var(--green); font-size: 12px; font-weight: 800; }
.blog-detail-header { max-width: 850px; margin-bottom: 54px; }
.blog-detail-header h1 { margin: 0 0 22px; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.blog-detail-header > p:last-child { max-width: 690px; color: var(--muted); font-size: 17px; }
.blog-content-list { display: grid; gap: 30px; }
.blog-content-section { display: grid; padding: 54px; border-radius: 18px; background: var(--green-soft); }
.blog-content-section.has-image { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.blog-content-section.image-left img { order: -1; }
.blog-content-section.text-only { display: block; }
.blog-content-section.text-only .blog-content-copy { width: 100%; }
.blog-content-copy h2 { margin: 0 0 20px; font-size: 38px; line-height: 1.05; font-weight: 500; }
.blog-content-copy p { white-space: pre-line; color: var(--muted); font-size: 15px; line-height: 1.8; }
.blog-content-section img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }

.catalog-page { min-height: 760px; padding: 58px 0 92px; background: #fbfcf5; scroll-margin-top: 82px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 26px; }
.catalog-heading h1 { margin: 0; font-size: clamp(40px, 5vw, 62px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.search-field { width: min(340px, 100%); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.search-field input { width: 100%; margin-top: 7px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; outline: none; text-transform: none; letter-spacing: 0; }
.search-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,71,57,.1); }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px 0 30px; border-top: 1px solid var(--line); }
.filter-row button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.filter-row button:hover, .filter-row button.active { background: var(--green); color: #fff; border-color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { background: #edf2eb; }
.product-image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.product-category { color: var(--orange); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.product-body h3 { margin: 7px 0 8px; font-size: 21px; line-height: 1.04; font-weight: 500; }
.product-body > p { min-height: 58px; margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.product-facts { display: grid; gap: 3px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0eb; font-size: 10px; }
.product-facts span { color: var(--muted); }
.product-actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 14px; }
.product-actions button { border: 0; padding: 0; background: none; color: var(--green); font-size: 10px; font-weight: 850; cursor: pointer; }
.source-caption { color: var(--muted); font-size: 10px; }
.empty-result { grid-column: 1/-1; padding: 80px 20px; text-align: center; color: var(--muted); }

.contact-section { padding: 90px 0; background: var(--green-dark); color: #fff; scroll-margin-top: 82px; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-copy h2 { margin: 0 0 22px; max-width: 470px; font-size: clamp(44px, 5vw, 66px); line-height: .98; font-weight: 500; letter-spacing: -.045em; }
.contact-copy > p:not(.eyebrow) { max-width: 500px; color: #bfd0ca; }
.contact-details { margin-top: 30px; display: grid; }
.contact-details a, .contact-details p { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #e7f0ec; font-size: 12px; }
.quote-form { padding: 30px; border-radius: 16px; background: #fff; color: var(--ink); }
.form-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.form-title b { font: 500 26px Georgia, serif; }
.form-title span { color: var(--muted); font-size: 9px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: block; margin-bottom: 15px; color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.quote-form input:not([type="checkbox"]), .quote-form select, .quote-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 9px 0; background: transparent; outline: none; color: var(--ink); text-transform: none; letter-spacing: 0; }
.quote-form textarea { min-height: 84px; resize: vertical; }
.quote-form .consent { display: flex; gap: 8px; align-items: center; color: var(--muted); text-transform: none; letter-spacing: 0; }
.form-status { margin: 10px 0 0; color: var(--green); font-size: 12px; }
.form-status.error { color: #b53d27; }

footer { padding: 64px 0 26px; background: #061d18; color: #d9e5e0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid b { color: #fff; font-size: 11px; }
.footer-grid a, .footer-grid p { margin: 0; color: #9db0a9; font-size: 10px; }
.footer-logo b { font-size: 12px; }
.footer-logo .logo-image { width: auto; height: 42px; max-width: none; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #82978f; font-size: 9px; }

dialog { width: min(900px, calc(100% - 34px)); max-height: calc(100vh - 40px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 28px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(4, 20, 16, .7); }
.dialog-close { position: absolute; z-index: 2; right: 14px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); cursor: pointer; }
.dialog-article { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-article > img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; background: var(--green-soft); }
.dialog-article > div { padding: 52px 40px; }
.dialog-article h2 { font-size: 40px; line-height: 1.02; }
.dialog-article p { white-space: pre-line; color: var(--muted); }
.image-dialog { width: min(760px, calc(100% - 34px)); padding: 18px; overflow: visible; background: #fff; }
.image-dialog img { width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.image-dialog p { margin: 12px 0 0; text-align: center; font-weight: 750; }
.image-dialog-close { position: absolute; right: -13px; top: -13px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); cursor: pointer; }

/* 右侧悬浮联系方式：图标在收起状态严格水平和垂直居中。 */
.floating-contacts { position: fixed; z-index: 55; right: 0; top: 36%; display: flex; flex-direction: column; filter: drop-shadow(0 12px 24px rgba(0,0,0,.15)); }
.floating-contact-item { position: relative; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #0c2e26; border-bottom: 1px solid rgba(255,255,255,.25); }
.floating-contact-item > img { position: relative; z-index: 2; width: 32px; height: 32px; object-fit: contain; }
.floating-contact-item > span { position: absolute; z-index: 1; right: 64px; top: 0; height: 64px; width: max-content; max-width: min(330px, calc(100vw - 90px)); display: flex; align-items: center; padding: 0 22px; background: #0c2e26; color: #fff; font-size: 13px; opacity: 0; transform: translateX(18px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.floating-contact-item:hover > span, .floating-contact-item:focus-visible > span { opacity: 1; transform: translateX(0); }

@media (max-width: 980px) {
  .site-header { height: 72px; }
  .menu-toggle { display: block; }
  #main-nav { position: absolute; left: 20px; right: 20px; top: 72px; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  #main-nav.open { display: flex; }
  #main-nav a { text-align: center; }
  #category-navigation { display: contents; }
  .hero { min-height: 560px; }
  .gallery-track figure { flex-basis: calc((100% - 18px) / 2); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .certificate-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .topline .container span:last-child { display: none; }
  .topline .container { justify-content: center; }
  .section { padding: 64px 0; }
  .hero { min-height: 560px; align-items: end; }
  .logo-image { width: auto; height: 40px; max-width: 42vw; }
  .hero-copy { padding: 160px 0 54px; }
  .hero h1 { font-size: 50px; }
  .hero-actions { flex-wrap: wrap; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 280px; }
  .category-card-copy { width: 56%; padding: 28px 22px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-card:nth-child(3n)::before { display: block; }
  .process-card:nth-child(2n)::before { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 34px; }
  .about-layout > img { aspect-ratio: 4/3; }
  .gallery-carousel { padding: 0 38px; }
  .gallery-track figure { flex-basis: 100%; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid, .blog-grid, .product-grid { grid-template-columns: 1fr; }
  .catalog-heading { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1/-1; }
  .dialog-article { grid-template-columns: 1fr; }
  .dialog-article > img { min-height: 280px; }
  .dialog-article > div { padding: 36px 24px; }
  .blog-content-section.has-image { grid-template-columns: 1fr; gap: 28px; }
  .blog-content-section { padding: 28px 20px; }
  .blog-content-section.image-left img { order: 0; }
  .floating-contacts { top: auto; bottom: 18px; right: 12px; flex-direction: row; }
  .floating-contact-item { width: 52px; height: 52px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 0; }
  .floating-contact-item:first-child { border-radius: 10px 0 0 10px; }
  .floating-contact-item:last-child { border-radius: 0 10px 10px 0; }
  .floating-contact-item > img { width: 27px; height: 27px; }
  .floating-contact-item > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
