/* @site-style
style: 工业材料风·产品目录
styleId: industrial-catalog
type: layout
primary: #2caf42
accents: #0d1b12, #f5f8f6
confirmed: 2026-11-17
*/

:root {
  --brand: #2caf42;
  --brand-strong: #1d8a31;
  --brand-dark: #0f5c22;
  --brand-tint: #eaf7ee;
  --brand-tint-2: #d6efdd;
  --ink: #14201a;
  --ink-2: #2c3a32;
  --muted: #5d6b62;
  --line: #dfe6e1;
  --line-strong: #c8d4cc;
  --paper: #ffffff;
  --mist: #f5f8f6;
  --night: #0d1b12;
  --night-2: #12271a;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 14px 34px rgba(13, 27, 18, 0.09);
  --wrap: 1240px;
  --font: "Helvetica Neue", Arial, "Helvetica", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

a:hover { color: var(--brand-strong); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(23px, 2.9vw, 34px); }
h3 { font-size: clamp(18px, 1.7vw, 21px); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--night);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu > li { position: relative; margin: 0; }

.menu > li > a {
  display: block;
  padding: 10px 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
}

.menu > li > a:hover,
.menu > li > a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-tint);
}

.has-sub > a { padding-right: 30px; }

.sub-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
}

.sub-toggle:hover { background: var(--brand-tint); color: var(--brand-strong); }
.sub-toggle svg { width: 11px; height: 11px; transition: transform 220ms ease; }

.submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 216px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  z-index: 90;
}

.submenu li { margin: 0; }

.submenu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
}

.submenu a:hover { background: var(--brand-tint); color: var(--brand-strong); }

.has-sub:hover > .submenu,
.has-sub.is-open > .submenu { display: block; }

.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.header-cta {
  flex: 0 0 auto;
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle:hover { border-color: var(--brand); color: var(--brand-strong); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(44, 175, 66, 0.28); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-tint); }

.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--on-dark:hover { background: #fff; color: var(--night); border-color: #fff; }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- section furniture ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--mist { background: var(--mist); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head--wide { max-width: 900px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  display: block;
}

.section-lead { color: var(--muted); font-size: 16px; margin: 12px 0 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-tint-2);
  box-shadow: var(--shadow);
  color: inherit;
}

.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }

.card-media--plain {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-tint) 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
}

.card-media--plain span {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-strong);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--muted); margin: 0; }

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-tint);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-strong);
}

.link-arrow:hover { gap: 10px; color: var(--brand-dark); }
.link-arrow svg { width: 13px; height: 13px; }

/* ---------- page head (inner pages) ---------- */
.page-head {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 42px;
}

.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 70ch; margin: 0; }

.crumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-strong); }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

.crumbs-top { margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--night);
  color: #b3c2b8;
  font-size: 14px;
}

.footer-top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 34px;
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.6fr;
  gap: 40px;
}

.footer-block h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-block p { margin: 0 0 8px; line-height: 1.7; }
.footer-block a { color: #b3c2b8; }
.footer-block a:hover { color: #fff; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 8px; }
.footer-links a { color: #b3c2b8; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  color: #8b9c90;
}

.footer-bottom a { color: #8b9c90; }
.footer-bottom a:hover { color: #fff; }
.footer-sep { color: #3c5345; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--brand); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(44, 175, 66, 0.14);
  outline: none;
}

.field textarea { min-height: 132px; resize: vertical; }

.form-status { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); min-height: 20px; }
.form-status[data-state="ok"] { color: var(--brand-strong); font-weight: 600; }
.form-status[data-state="error"] { color: #b3261e; font-weight: 600; }

.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- reveal animation (JS progressive) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 380ms ease, transform 380ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- scrollbars for inner scroll areas ---------- */
.scroll-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 107, 98, 0.35) transparent;
}

.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: rgba(93, 107, 98, 0.35); border-radius: 999px; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }

/* ---------- utilities ---------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(13, 27, 18, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  html.nav-open .menu { display: flex; }

  .menu > li > a { padding: 13px 12px; border-radius: var(--radius-sm); }
  .has-sub > a { padding-right: 44px; }
  .sub-toggle { display: flex; right: 8px; }

  .submenu {
    position: static;
    display: none;
    border: 0;
    border-left: 2px solid var(--brand-tint-2);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 8px 10px;
    min-width: 0;
  }

  .has-sub.is-open > .submenu { display: block; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.is-open:hover > .submenu { display: block; }

  .section { padding: 56px 0; }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 24px; }
  .page-head { padding: 26px 0 32px; }
  .section { padding: 48px 0; }
}
