/* ==========================================================================
   Wisasta Machinery - front-end stylesheet (English site)
   Structure mirrors the reference layout: top bar, header, banner, product
   grid, about, services, news, case wall, footer.
   ========================================================================== */

:root {
  /* ---- Brand palette (industrial: deep navy + steel blue + safety amber) ---- */
  --brand:        #0f5fa8;
  --brand-600:    #0d5296;
  --brand-dark:   #0a3f74;
  --brand-light:  #eaf2fb;
  --brand-ring:   rgba(15, 95, 168, .16);
  --accent:       #e8862a;
  --accent-dark:  #cf7318;
  --accent-light: #fdf2e5;

  /* ---- Ink ---- */
  --ink:          #16202c;
  --ink-soft:     #46525f;
  --ink-muted:    #78848f;
  --ink-faint:    #a3adb8;

  /* ---- Surfaces ---- */
  --line:         #e4e9ef;
  --line-strong:  #d3dbe4;
  --bg:           #ffffff;
  --bg-soft:      #f6f8fb;
  --bg-sand:      #f1f4f8;
  --bg-dark:      #131d28;
  --bg-dark-2:    #1b2836;

  /* ---- Geometry ---- */
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    22px;

  /* ---- Elevation ---- */
  --shadow-xs:    0 1px 2px rgba(18, 28, 42, .05);
  --shadow-sm:    0 2px 10px rgba(18, 28, 42, .06);
  --shadow-md:    0 10px 30px rgba(18, 28, 42, .10);
  --shadow-lg:    0 22px 60px rgba(18, 28, 42, .16);

  /* ---- Motion ---- */
  --ease:         cubic-bezier(.22, .61, .36, 1);
  --dur:          .22s;

  /* ---- Layout ---- */
  --container:    1260px;
  --header-h:     76px;
  --gutter:       20px;

  /* ---- Typography scale ---- */
  --fs-display:   46px;
  --fs-h1:        34px;
  --fs-h2:        29px;
  --fs-h3:        19px;
  --fs-body:      15px;
  --fs-sm:        13.5px;
  --fs-xs:        12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  /* Guards against any single wide element introducing a horizontal scrollbar,
     which on mobile would shift the whole layout. */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0 0 .6em; color: var(--ink); line-height: 1.32; font-weight: 700; }
h1 { font-size: 34px; }
h2 { font-size: 27px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p  { margin: 0 0 1em; }
a  { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); min-width: 0; margin: 0 auto; padding: 0 20px; }

/* Absolutely-positioned carousel slides shrink-to-fit, which would stop the
   inner .container from filling the viewport and drop its side gutter. */
.hero-slide-inner { width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; letter-spacing: .3px; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary   { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline   { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light     { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-light); }
.btn-sm        { padding: 9px 18px; font-size: 13px; }
.btn-lg        { padding: 15px 36px; font-size: 15px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--bg-dark); color: #b9c4d0; font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; min-width: 0; }
.topbar-contact li { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.topbar-contact .ico { color: #6f7f90; text-transform: uppercase; font-size: 11px; letter-spacing: .6px; flex: 0 0 auto; }
.topbar-contact a { color: #dbe3ec; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-contact a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px;
  background: rgba(255, 255, 255, .08); color: #cfd8e3; font-size: 11px; font-weight: 700;
}
.topbar-social a:hover { background: var(--brand); color: #fff; }
.social-text { line-height: 1; }
.lang-switch button {
  display: inline-flex; align-items: center; gap: 6px; background: transparent;
  border: 1px solid rgba(255, 255, 255, .18); color: #dbe3ec; padding: 4px 10px; border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 90; transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo { flex: 0 0 auto; display: flex; align-items: center; }
.logo img { max-height: 52px; width: auto; }
.logo-text { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.logo-text::first-letter { color: var(--brand); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 26px 15px; color: var(--ink); font-weight: 600; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--brand); }
/* (dropdown caret is now a real .caret element; a::after is reserved for the underline) */

/* The mobile sub-menu button must not paint anything on desktop. */
.main-nav .sub-toggle { display: none; border: 0; background: none; padding: 0; }
.sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 245px; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.main-nav > ul > li:hover > .sub-menu,
.main-nav > ul > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 9px 20px; font-size: 14px; color: var(--ink-soft); }
.sub-menu a:hover { background: var(--brand-light); color: var(--brand); }
.sub-toggle { display: none; }
.header-actions { flex: 0 0 auto; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 13.5px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-muted); }
.breadcrumbs .sep { color: #c1c9d3; }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* ---------- Section chrome ---------- */
.section { padding: 62px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 12px; font-size: 30px; }
.section-head.align-left { text-align: left; margin-left: 0; }
.section-head .sub { color: var(--ink-muted); margin: 0; }
.section-head .rule { width: 58px; height: 3px; background: var(--brand); margin: 0 auto 18px; border-radius: 2px; }
.section-head.align-left .rule { margin-left: 0; }

/* ---------- Hero banner ---------- */
.hero { position: relative; background: var(--bg-dark); overflow: hidden; }
.hero-slides { position: relative; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  /* visibility keeps the outgoing slide's text from ghosting through the active
     slide's copy while still allowing the opacity cross-fade. */
  visibility: hidden;
}
.hero-slide.is-active {
  position: relative;
  visibility: visible;
  animation: heroFade .7s ease both;
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 22, 34, .78) 0%, rgba(12, 22, 34, .48) 46%, rgba(12, 22, 34, .12) 100%);
}
.hero-slide-inner {
  position: relative; z-index: 2; display: flex; align-items: center;
  min-height: 540px; padding-top: 70px; padding-bottom: 70px;
}
.hero-copy { max-width: 620px; color: #fff; }
.hero-copy .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #9ec7f0; margin-bottom: 14px;
}
.hero-copy h1, .hero-copy h2 { color: #fff; font-size: 44px; line-height: 1.18; margin-bottom: 16px; }
.hero-copy p { font-size: 17px; color: #d3dde8; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55);
  background: transparent; padding: 0;
}
.hero-dots button.is-active { background: #fff; border-color: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(10, 18, 28, .35); color: #fff; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
}
.hero-arrow:hover { background: var(--brand); border-color: var(--brand); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

/* ---------- Category / product grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { font-size: 16px; margin-bottom: 10px; }
.cat-card h3 a { color: var(--ink); }
.cat-card h3 a:hover { color: var(--brand); }
.cat-card .subcats { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 10px; margin-top: auto; min-height: 82px; }
.cat-card .subcats a { font-size: 12.5px; line-height: 1.65; color: var(--ink-muted); display: block; width: 100%; }
.cat-card .subcats a:hover { color: var(--brand); }
.cat-card .subcats a::before { content: "·"; margin-right: 6px; color: #c1c9d3; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3dde8; }
.product-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--brand);
}
.badge-new  { background: #1e9e63; }
.badge-hot  { background: #d94f3d; }
.badge-year { background: rgba(22, 32, 44, .78); }
.product-card .body { padding: 15px 17px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card h3, .product-card .title {
  font-size: 15px; line-height: 1.45; margin: 0 0 10px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .title a { color: var(--ink); }
.product-card .title a:hover { color: var(--brand); }
.product-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-muted); margin-top: auto; }
.product-card .meta strong { color: var(--ink-soft); font-weight: 600; }
.product-card .price { font-size: 15px; font-weight: 700; color: var(--accent); }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; }
.split-body .lead { font-size: 16px; }
.split-body .prose p:last-child { margin-bottom: 0; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--brand-light);
  display: grid; place-items: center; margin-bottom: 18px; overflow: hidden;
}
.service-card .icon img { width: 38px; height: 38px; object-fit: contain; }
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-muted);
  margin-bottom: 9px; text-transform: uppercase; letter-spacing: .6px;
}
.news-card h3 { font-size: 16px; line-height: 1.45; margin-bottom: 10px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand); }
.news-card .excerpt { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 14px; }
.news-card .more { margin-top: auto; font-size: 13px; font-weight: 600; }

/* ---------- Case wall ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.case-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-item:hover img { transform: scale(1.07); }
.case-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-size: 13px;
  background: linear-gradient(to top, rgba(10, 18, 28, .82), rgba(10, 18, 28, 0));
}
.case-item .cap strong { display: block; font-size: 13.5px; }

/* ---------- Inquiry strip ---------- */
.inquiry-strip { background: var(--brand); color: #fff; padding: 54px 0; }
.inquiry-strip h2 { color: #fff; }
.inquiry-strip .sub { color: #cfe2f6; }
.inquiry-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 92, 171, .12);
}
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #d94f3d; }
.form-note { margin: 12px 0 0; font-size: 13.5px; min-height: 20px; }
.form-note.ok { color: #1e9e63; }
.form-note.err { color: #d94f3d; }
.quick-form .field { margin-bottom: 11px; }
.quick-form input, .quick-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius); background: rgba(255, 255, 255, .1); color: #fff;
}
.quick-form input::placeholder, .quick-form textarea::placeholder { color: #b9cfe6; }
.quick-form input:focus, .quick-form textarea:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .18); }

/* ---------- Page layout with sidebar ---------- */
.page-wrap { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 40px; align-items: start; padding: 46px 0 70px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.side-block { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; background: #fff; }
.side-title {
  background: var(--brand); color: #fff; padding: 14px 18px; font-size: 15px; font-weight: 700;
  letter-spacing: .4px; margin: 0;
}
.side-nav > ul > li { border-bottom: 1px solid var(--line); }
.side-nav > ul > li:last-child { border-bottom: 0; }
.side-nav > ul > li > a {
  display: block; padding: 13px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink);
  position: relative;
}
.side-nav > ul > li > a:hover, .side-nav > ul > li.active > a { background: var(--brand-light); color: var(--brand); }
.side-nav ul ul { padding: 4px 0 10px; background: #fbfcfe; }
.side-nav ul ul a { display: block; padding: 7px 18px 7px 30px; font-size: 13.5px; color: var(--ink-soft); }
.side-nav ul ul a:hover, .side-nav ul ul li.active a { color: var(--brand); }
.side-nav ul ul a::before { content: "›"; margin-right: 7px; color: #b9c4d0; }

/* ---------- Home-page category sidebar (accordion) ---------- */
.side-nav-home > ul > li { border-bottom: 1px solid var(--line); }
.side-nav-home > ul > li:last-child { border-bottom: 0; }

.side-nav-home .cat-row { display: flex; align-items: stretch; }
.side-nav-home .cat-link {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  padding: 13px 4px 13px 18px; font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.side-nav-home .cat-link:hover { color: var(--brand); }

.side-nav-home .cat-toggle {
  flex: 0 0 46px; display: grid; place-items: center;
  border: 0; border-left: 1px solid var(--line); background: transparent;
  color: var(--ink-muted); cursor: pointer; transition: background .18s ease, color .18s ease;
}
.side-nav-home .cat-toggle:hover { background: var(--brand-light); color: var(--brand); }

.side-nav-home .cat-arrow {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .25s ease;
}
.side-nav-home .cat-toggle[aria-expanded="true"] .cat-arrow {
  transform: rotate(225deg) translate(-1px, -1px);
}

/* Collapse / expand animation driven by max-height. */
.side-nav-home .cat-sub {
  max-height: 420px;
  overflow: hidden;
  padding: 5px 0 11px;
  background: #fbfcfe;
  transition: max-height .32s ease, opacity .24s ease, padding .32s ease;
  opacity: 1;
}
.side-nav-home .cat-item.is-collapsed .cat-sub {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.side-nav-home .cat-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 18px 7px 28px; font-size: 13.5px; color: var(--ink-soft);
}
.side-nav-home .cat-sub a:hover { color: var(--brand); }
.side-nav-home .cat-sub a::before { content: "›"; margin-right: 2px; color: #b9c4d0; }
.side-nav-home .cat-sub li.active > a { color: var(--brand); font-weight: 600; }

.side-nav-home .cat-name { flex: 1; min-width: 0; }
.side-nav-home .cat-count {
  flex: 0 0 auto; min-width: 24px; padding: 0 7px; border-radius: 10px;
  background: #eef1f5; color: var(--ink-muted); font-size: 11.5px; font-weight: 600;
  text-align: center; line-height: 18px;
}
.side-nav-home .cat-link:hover .cat-count,
.side-nav-home .cat-sub a:hover .cat-count { background: var(--brand); color: #fff; }

/* Home page: sidebar on the left, product grid on the right. */
.home-catalog { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 34px; align-items: start; }
.home-catalog .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.home-catalog .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-foot { margin-top: 26px; text-align: center; }
.side-banner img { width: 100%; }
.side-contact { padding: 20px 18px; font-size: 14px; }
.side-contact p { margin: 0 0 10px; }

/* ---------- Product detail ---------- */
.detail-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  aspect-ratio: 4 / 3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  border: 2px solid var(--line); border-radius: 6px; overflow: hidden; padding: 0; background: #fff;
  aspect-ratio: 1 / 1;
}
.gallery-thumbs button.is-active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 { font-size: 26px; margin-bottom: 14px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-chip {
  display: inline-block; padding: 4px 11px; border-radius: 20px; background: var(--brand-light);
  color: var(--brand); font-size: 12.5px; font-weight: 600;
}
.spec-list { border-top: 1px solid var(--line); margin-bottom: 22px; }
.spec-list .row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec-list .row .k { flex: 0 0 40%; color: var(--ink-muted); }
.spec-list .row .v { flex: 1; color: var(--ink); font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.block-title { position: relative; padding-bottom: 12px; margin: 0 0 22px; font-size: 21px; }
.block-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--brand); border-radius: 2px; }
.prose { font-size: 15px; }
.prose h3 { margin-top: 1.6em; font-size: 18px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose ol { list-style: decimal; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose table { margin: 1em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.prose blockquote {
  margin: 1em 0; padding: 12px 20px; border-left: 4px solid var(--brand);
  background: var(--brand-light); border-radius: 0 var(--radius) var(--radius) 0;
}

.attr-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.attr-table th, .attr-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.attr-table tr:last-child td { border-bottom: 0; }
.attr-table th { background: var(--bg-soft); width: 38%; font-weight: 600; color: var(--ink-soft); }

/* ---------- Listing toolbar ---------- */
.list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 0 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.list-toolbar .count { font-size: 14px; color: var(--ink-muted); }
.list-toolbar .count strong { color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.chip {
  display: inline-block; padding: 7px 15px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 13.5px; color: var(--ink-soft); background: #fff;
}
.chip:hover, .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 38px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-link {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink-soft); font-size: 14px; font-weight: 600;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-link.disabled { color: #c3cbd5; background: var(--bg-soft); cursor: not-allowed; }
.page-dots { display: inline-grid; place-items: center; min-width: 42px; height: 42px; color: var(--ink-muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 16px; margin-bottom: 10px; }
.contact-card p { margin: 0; font-size: 14.5px; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 34px; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Sitemap ---------- */
.sitemap-section { margin-bottom: 34px; }
.sitemap-section h3 { padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.sitemap-list { columns: 2; column-gap: 34px; }
.sitemap-cat { break-inside: avoid; margin-bottom: 20px; }
.sitemap-cat > a { font-weight: 700; font-size: 15px; }
.sitemap-cat ul { margin-top: 7px; }
.sitemap-cat li { font-size: 13.5px; margin-bottom: 4px; }
.sitemap-cat li a { color: var(--ink-muted); }
.sitemap-cat li a:hover { color: var(--brand); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); background: #fbfcfe; }
.empty-state h3 { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #9fadbb; margin-top: 0; }
.footer-top { padding: 58px 0 42px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.35fr; gap: 40px; }
.footer-col h3 {
  color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
  padding-bottom: 12px; margin-bottom: 18px; position: relative;
}
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--brand); }
.footer-col p { font-size: 14px; margin: 0 0 11px; }
.footer-col .addr { line-height: 1.75; }
.footer-col a { color: #c4cfda; }
.footer-col a:hover { color: #fff; }
.footer-links li { margin-bottom: 9px; font-size: 14px; }
.quick-form .btn { width: 100%; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; }
.copyright { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px;
  background: rgba(255, 255, 255, .08); color: #cfd8e3; font-size: 11px; font-weight: 700;
}
.footer-social a:hover { background: var(--brand); color: #fff; }

/* ---------- Floating controls ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 88px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; padding: 12px 18px; border-radius: 30px;
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-md);
}
.whatsapp-float:hover { background: #1eb257; color: #fff; }
.back-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-md);
  font-size: 18px; display: none; place-items: center;
}
.back-top.is-visible { display: grid; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cat-grid, .product-grid, .service-grid, .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-catalog .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav > ul > li > a { padding: 26px 11px; font-size: 13.5px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { padding: 13px 20px; }
  .main-nav > ul > li.has-children > a::after { display: none; }
  .sub-toggle {
    display: block; position: absolute; right: 12px; top: 8px; width: 34px; height: 34px;
    border: 1px solid var(--line); border-radius: 5px; background: #fff;
  }
  .sub-toggle::after {
    content: ""; display: block; width: 7px; height: 7px; margin: 0 auto;
    border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
    transform: rotate(45deg) translateY(-2px);
  }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; display: none;
  }
  .main-nav > ul > li.is-expanded > .sub-menu { display: block; }
  .header-inner { position: relative; }

  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .home-catalog { grid-template-columns: 1fr; gap: 26px; }
  .home-catalog .sidebar { position: static; }
  .home-catalog .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-top { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .inquiry-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slide-inner { min-height: 420px; }
  .hero-copy h1, .hero-copy h2 { font-size: 32px; }
  .hero-arrow { display: none; }
}

@media (max-width: 720px) {
  .cat-grid, .product-grid, .service-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { gap: 14px; }
  .cat-card .subcats { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .topbar-contact { gap: 4px 14px; font-size: 12px; }
  .topbar-contact li { width: 100%; }
  .topbar-inner { flex-wrap: wrap; padding: 6px 0; min-height: 0; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 24px; }
  .hero-copy h1, .hero-copy h2 { font-size: 26px; }
  .hero-slide-inner { min-height: 340px; padding-top: 44px; padding-bottom: 44px; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sitemap-list { columns: 1; }
  .contact-form-wrap { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .cat-grid, .product-grid, .service-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .whatsapp-float { bottom: 78px; padding: 10px 14px; font-size: 12.5px; }
}

/* ==========================================================================
/*   DESIGN REFINEMENT LAYER
/*   Loaded after the base rules so it wins on equal specificity.
/*   Adds: type scale, card craft, filter bar, sticky buy box, lightbox,
/*         mobile action bar, scroll reveal.
/* ========================================================================== */


/* ---------- 1. Typography & rhythm ---------- */
body {
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  letter-spacing: -.012em;
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); line-height: 1.24; }
h2 { font-size: var(--fs-h2); line-height: 1.28; }
h3 { font-size: var(--fs-h3); line-height: 1.4; }

::selection { background: var(--brand); color: #fff; }

/* Visible keyboard focus everywhere, mouse clicks stay clean. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { padding: 0 var(--gutter); }

.section { padding: 74px 0; }
.section-tight { padding: 48px 0; }

.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(24px, 2.4vw, var(--fs-h2)); margin-bottom: 12px; }
.section-head .sub { font-size: 15.5px; color: var(--ink-muted); }
.section-head .rule {
  width: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin-bottom: 18px;
}

/* Small caps label above headings */
.eyebrow-label {
  display: inline-block; margin-bottom: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--brand);
}

/* ---------- 2. Buttons ---------- */
.btn {
  position: relative;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; letter-spacing: .2px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  box-shadow: 0 2px 8px rgba(15, 95, 168, .22);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-dark));
  box-shadow: 0 6px 18px rgba(15, 95, 168, .28);
  transform: translateY(-1px);
}
.btn-outline { border-width: 1.5px; background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Outline buttons sitting on the dark hero need light ink. */
.hero-actions .btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-accent { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-accent:hover { color: #fff; box-shadow: 0 6px 18px rgba(232, 134, 42, .3); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-block { width: 100%; }

/* ---------- 3. Top bar & header ---------- */
.topbar { background: var(--bg-dark); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.topbar-contact a { font-weight: 500; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header.is-stuck {
  box-shadow: 0 4px 24px rgba(18, 28, 42, .09);
  border-bottom-color: transparent;
}
.logo img { max-height: 46px; }
/* 全大写短品牌名用正字距更像个标志，负字距只适合长名称 */
.logo-text {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  line-height: 1.1;
}

.main-nav > ul > li > a { position: relative; font-size: 14px; letter-spacing: .6px; }
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 18px;
  height: 2px; background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.active > a::after { transform: scaleX(1); }
/* Filled triangle caret. NOTE: the slide-in underline is drawn by
   a::after; the caret must therefore be a real element on a different
   property, never ::after, or the two rules overwrite each other. */
.main-nav > ul > li.has-children > a .caret {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; border-bottom: 0;
  transition: transform var(--dur) var(--ease);
}
.main-nav > ul > li.has-children:hover > a .caret { transform: translateY(1px) rotate(180deg); }

.sub-menu {
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  min-width: 258px;
}
.sub-menu a {
  padding: 10px 20px; font-size: 14px; border-left: 2px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sub-menu a:hover { border-left-color: var(--brand); }

/* ---------- 4. Hero ---------- */
.hero-slide::after {
  background: linear-gradient(100deg, rgba(9, 16, 26, .86) 0%, rgba(9, 16, 26, .58) 42%, rgba(9, 16, 26, .14) 100%);
}
.hero-slide-inner { min-height: 580px; }
.hero-copy .eyebrow {
  font-size: 12px; letter-spacing: 2.6px; color: #8fc0ec;
  padding: 6px 12px; border: 1px solid rgba(143, 192, 236, .32); border-radius: 4px;
  margin-bottom: 20px;
}
.hero-copy h1, .hero-copy h2 {
  font-size: clamp(30px, 3.6vw, var(--fs-display));
  line-height: 1.14; letter-spacing: -.022em; margin-bottom: 18px;
  text-wrap: balance;
}
.hero-copy p { font-size: 17px; color: #cdd9e5; max-width: 56ch; }
.hero-actions { gap: 12px; }
.hero-dots button { width: 30px; height: 4px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, .34); }
.hero-dots button.is-active { background: #fff; width: 44px; }
.hero-arrow { width: 50px; height: 50px; backdrop-filter: blur(4px); }

/* ---------- 5. Product & category cards ---------- */
.cat-card, .product-card, .news-card, .service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.cat-card:hover, .product-card:hover, .news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.product-card .thumb, .cat-card .thumb, .news-card .thumb {
  position: relative;
  background: linear-gradient(135deg, #eef2f7, #e2e8f0);
  overflow: hidden;
}
.product-card .thumb img, .cat-card .thumb img, .news-card .thumb img {
  transition: transform .5s var(--ease);
}
.product-card:hover .thumb img,
.cat-card:hover .thumb img,
.news-card:hover .thumb img { transform: scale(1.06); }

/* Soft inner vignette so photos sit on the card cleanly */
.product-card .thumb::after, .cat-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -40px 50px -30px rgba(16, 26, 38, .25);
  pointer-events: none;
}

.product-card .body { padding: 16px 18px 20px; }
.product-card h3 { font-size: 15px; font-weight: 650; line-height: 1.45; }
.product-card .meta {
  font-size: 12.5px;
  padding-top: 12px; margin-top: auto;
  border-top: 1px dashed var(--line);
  gap: 4px 14px;
}
.product-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.product-card .meta strong { color: var(--ink-faint); font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: .7px; }

.badge {
  border-radius: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .7px;
  padding: 4px 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.badge-new  { background: linear-gradient(180deg, #22aa6c, #178a56); }
.badge-hot  { background: linear-gradient(180deg, #e35b48, #c9453a); }
.badge-year { background: rgba(19, 29, 40, .84); backdrop-filter: blur(2px); }

/* Category card body */
.cat-card .body { padding: 17px 18px 20px; }
.cat-card h3 { font-size: 16px; margin-bottom: 11px; }
.cat-card .subcats a { font-size: 12.5px; line-height: 1.6; }
.cat-card .subcats a::before { content: "›"; margin-right: 6px; color: var(--ink-faint); }

/* Service card */
.service-card { padding: 30px 26px; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.service-card .icon {
  width: 58px; height: 58px;
  background: linear-gradient(145deg, var(--brand-light), #dceaf8);
  border: 1px solid #d3e4f5;
}
.service-card h3 { font-size: 16.5px; }

/* News card */
.news-card .body { padding: 20px 22px 24px; }
.news-card h3 { font-size: 16px; font-weight: 650; }
.news-date { font-size: 11.5px; letter-spacing: .8px; font-weight: 600; color: var(--brand); }
.news-card .more { font-size: 13px; font-weight: 700; color: var(--brand); }

/* Case wall */
.case-item { border-radius: var(--radius); }
.case-item .cap { padding: 34px 15px 14px; }
.case-item .cap strong { font-size: 13.5px; margin-bottom: 2px; }

/* ---------- 6. Trust / feature strip (new) ---------- */
.trust-strip { background: var(--bg-sand); border-block: 1px solid var(--line); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px; background: var(--bg-sand);
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--brand); font-size: 19px; box-shadow: var(--shadow-xs);
}
.trust-body strong { display: block; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.trust-body span { font-size: 12.5px; color: var(--ink-muted); }

/* ---------- 7. Filter bar & listing toolbar (new) ---------- */
.list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 0; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.list-toolbar .count { font-size: 14px; color: var(--ink-muted); }
.list-toolbar .count strong { color: var(--ink); font-weight: 700; }
.toolbar-spacer { flex: 1; }

.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); margin-bottom: 24px; overflow: hidden;
}
.filter-bar-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fbfcfe;
}
.filter-bar-head h3 { margin: 0; font-size: 14.5px; }
.filter-bar-head .reset {
  margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-muted);
}
.filter-bar-head .reset:hover { color: var(--danger, #c9453a); }

.filter-group { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group .fg-label {
  display: block; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-faint);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips a {
  display: inline-block; padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.filter-chips a:hover { border-color: var(--brand); color: var(--brand); }
.filter-chips a.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 95, 168, .25);
}
.filter-chips a .n { opacity: .6; font-size: 11.5px; margin-left: 4px; }

/* Active filter pills above the grid */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.active-filters .af-label { font-size: 12.5px; color: var(--ink-muted); }
.filter-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 8px 5px 12px; border-radius: 20px;
  background: var(--brand-light); color: var(--brand);
  font-size: 12.5px; font-weight: 600;
}
.filter-pill a {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(15, 95, 168, .16); color: var(--brand); font-size: 12px; line-height: 1;
}
.filter-pill a:hover { background: var(--brand); color: #fff; }

/* Sort select + view toggle */
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.sort-select {
  padding: 8px 32px 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2378848f' d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 13px; color: var(--ink-soft); appearance: none; cursor: pointer;
}
.sort-select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }

.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle a {
  display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--ink-muted); background: #fff; font-size: 14px;
}
.view-toggle a + a { border-left: 1px solid var(--line-strong); }
.view-toggle a.is-active { background: var(--brand); color: #fff; }

/* List view of products */
.product-grid.is-list { grid-template-columns: 1fr; gap: 14px; }
.product-grid.is-list .product-card { flex-direction: row; }
.product-grid.is-list .product-card .thumb { flex: 0 0 240px; aspect-ratio: 4 / 3; }
.product-grid.is-list .product-card .body { flex: 1; padding: 18px 22px; }
.product-grid.is-list .product-card h3 {
  font-size: 16.5px; -webkit-line-clamp: 2; margin-bottom: 8px;
}
.product-grid.is-list .product-card .meta { border-top: 0; padding-top: 0; margin-top: 10px; }

/* ---------- 8. Sidebar ---------- */
.side-block { border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.side-title {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: 14.5px; letter-spacing: .5px;
}
.side-nav > ul > li > a { padding: 13px 18px; }
.side-nav ul ul a { padding: 8px 18px 8px 30px; }

/* ---------- 9. Product detail layout (new sticky buy box) ---------- */
.detail-shell { padding: 40px 0 76px; }
.detail-crumbs { margin-bottom: 26px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 46px;
  align-items: start;
}
.detail-media { min-width: 0; }
.gallery-main {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #eef2f7, #e3e9f1);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  position: relative;
}
.gallery-main img { object-fit: cover; }
.gallery-main::after {
  content: "Click to enlarge"; position: absolute; right: 14px; bottom: 14px;
  padding: 5px 11px; border-radius: 4px;
  background: rgba(19, 29, 40, .7); color: #fff; font-size: 11.5px; letter-spacing: .3px;
  opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none;
}
.gallery-main:hover::after { opacity: 1; }

.gallery-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery-thumbs button { border-radius: var(--radius-sm); border: 1px solid var(--line); transition: border-color var(--dur) var(--ease); }
.gallery-thumbs button.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }

.detail-side { min-width: 0; }
.detail-buybox {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.detail-buybox .buybox-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.detail-buybox h1 {
  font-size: clamp(21px, 1.9vw, 25px); line-height: 1.32; margin-bottom: 14px; letter-spacing: -.015em;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 0; }
.tag-chip {
  padding: 4px 11px; border-radius: 5px; font-size: 12px; font-weight: 650;
  background: var(--brand-light); color: var(--brand); border: 1px solid #cfe2f5;
}
.detail-buybox .spec-list { margin: 0; padding: 6px 24px 2px; border-top: 0; }
.spec-list .row { padding: 10px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.spec-list .row:last-child { border-bottom: 0; }
.spec-list .row .k { color: var(--ink-muted); font-size: 13px; }
.spec-list .row .v { font-weight: 650; color: var(--ink); }

.buybox-actions { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.buybox-actions .btn { width: 100%; }
.buybox-actions .btn + .btn { margin-top: 9px; }
.buybox-note {
  margin: 12px 0 0; font-size: 12px; color: var(--ink-muted); text-align: center; line-height: 1.6;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.detail-sections { margin-top: 54px; }
.detail-sections > section + section { margin-top: 46px; }
.block-title {
  font-size: 21px; padding-bottom: 13px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line); position: relative;
}
.block-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 2px;
}

/* Attribute table */
.attr-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.attr-table th {
  background: linear-gradient(180deg, #f8fafc, #f1f4f8);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.attr-table td { font-weight: 600; color: var(--ink); }
.attr-table tbody tr:hover td, .attr-table tbody tr:hover th { background: var(--brand-light); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10, 16, 24, .92);
  display: none; align-items: center; justify-content: center; padding: 40px;
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1200px, 92vw); max-height: 86vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  object-fit: contain;
}
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%; cursor: pointer; transition: background var(--dur) var(--ease);
}
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 24px; }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--brand); border-color: var(--brand); }
.lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: 13px; letter-spacing: 1px;
}

/* ---------- 10. Mobile action bar (new) ---------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(18, 28, 42, .12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
}
.mobile-bar .btn { flex: 1; padding: 12px 10px; font-size: 13.5px; }
.mobile-bar .btn-ghost { flex: 0 0 52px; padding: 12px 0; }
.mobile-bar .btn-ghost .icon { font-size: 16px; }

/* Mobile filter drawer toggle */
.filter-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.filter-toggle:hover { border-color: var(--brand); color: var(--brand); }
.filter-toggle .n {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px;
}

/* ---------- 11. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .product-card, .cat-card, .news-card, .service-card { transition: none; }
}

/* ---------- 12. Responsive additions ---------- */
@media (max-width: 1080px) {
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-buybox { position: static; }
  .trust-strip .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .section { padding: 54px 0; }
  .hero-slide-inner { min-height: 460px; }
  .product-grid.is-list .product-card { flex-direction: column; }
  .product-grid.is-list .product-card .thumb { flex: none; aspect-ratio: 4 / 3; }
  .filter-bar { display: none; }
  .filter-bar.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
  .mobile-bar { display: flex; }
  /* keep content clear of the fixed action bar */
  body { padding-bottom: 68px; }
  .whatsapp-float { bottom: 84px; right: 14px; padding: 11px 15px; font-size: 12.5px; }
  .back-top { bottom: 84px; right: 14px; width: 40px; height: 40px; }
}

@media (max-width: 720px) {
  :root { --fs-h1: 26px; --fs-h2: 23px; --gutter: 16px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 30px; }
  .trust-strip .container { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; padding: 16px 18px; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); }
  .hero-copy p { font-size: 15px; }
  .gallery-main::after { display: none; }
  .detail-shell { padding: 24px 0 40px; }
  .detail-buybox .buybox-head, .detail-buybox .spec-list, .buybox-actions { padding-left: 18px; padding-right: 18px; }
  .list-toolbar { gap: 8px; }
  .view-toggle { display: none; }
}

/* ---------- 13. Detail page extras ---------- */
.share-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.share-row .share-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-faint); margin-right: 4px;
}
.share-btn {
  display: inline-grid; place-items: center; min-width: 42px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-soft);
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.share-btn:hover { border-color: var(--brand); background: var(--brand); color: #fff; }

.lead-text {
  font-size: 16.5px; line-height: 1.8; color: var(--ink-soft);
  padding: 16px 20px; margin: 0 0 24px;
  background: var(--bg-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0;
}

.group-subtitle { font-size: 15px; margin: 24px 0 12px; color: var(--ink-soft); }

.inquiry-panel {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff;
}
.inquiry-panel-aside {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand));
  color: #cddff0; padding: 30px 26px;
}
.inquiry-panel-aside h3 { color: #fff; font-size: 16.5px; margin-bottom: 16px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding-left: 24px; margin-bottom: 12px;
  font-size: 13.5px; line-height: 1.65; color: #d5e4f2;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 7px; border-left: 2px solid #7fc0f5; border-bottom: 2px solid #7fc0f5;
  transform: rotate(-45deg);
}
.inquiry-alt { margin: 20px 0 0; font-size: 13px; color: #a9c6e0; }
.inquiry-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.inquiry-panel-form { padding: 30px 28px; }
.inquiry-submit { margin: 20px 0 0; }

/* Inline copy-link feedback */
.share-btn[data-copied="1"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Lightbox tweaks for narrow screens */
@media (max-width: 720px) {
  .inquiry-panel { grid-template-columns: 1fr; }
  .inquiry-panel-aside { padding: 22px 20px; }
  .inquiry-panel-form { padding: 22px 20px; }
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .empty-state { padding: 40px 16px; }
  .lead-text { font-size: 15px; padding: 14px 16px; }
}

/* ---------- 14. Listing extras ---------- */
.listing-intro { color: var(--ink-muted); font-size: 15px; margin: 0 0 24px; max-width: 76ch; }
.chip-n {
  display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px;
  margin-left: 6px; border-radius: 9px;
  background: var(--bg-sand); color: var(--ink-muted);
  font-size: 11px; font-weight: 700;
}
.chip:hover .chip-n, .chip.is-active .chip-n { background: rgba(255, 255, 255, .22); color: #fff; }

/* Keep long titles readable in 4-column grids */
.product-card h3, .product-card .title {
  -webkit-line-clamp: 3;
  min-height: calc(1.45em * 3);
}
.product-grid.is-list .product-card h3,
.product-grid.is-list .product-card .title {
  min-height: 0;
  -webkit-line-clamp: 2;
}


/* ==========================================================================
   Final overrides (must stay last: these intentionally beat the media queries
   earlier in the file, which set .sub-toggle { display: block } for mobile).
   ========================================================================== */
/* The sub-menu expander is a mobile-only control. */
@media (min-width: 981px) {
  .main-nav .sub-toggle { display: none !important; }
}

/* ---------- 15. Home stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 26px 0 6px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats-grid .stat { background: #fff; padding: 16px 14px; text-align: center; }
.stats-grid .stat strong {
  display: block; font-size: 24px; line-height: 1.2; font-weight: 800;
  color: var(--brand); letter-spacing: -.02em;
}
.stats-grid .stat span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-muted); line-height: 1.4; }

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid .stat strong { font-size: 20px; }
}

/* ---------- 16. Mobile polish ---------- */
/* The breadcrumb's trailing item is a long product title: clamp it so it can
   never push the row wider than the viewport. */
.breadcrumbs { min-width: 0; }
.breadcrumbs .current {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.breadcrumbs a { white-space: nowrap; }

@media (max-width: 980px) {
  /* The fixed action bar already exposes WhatsApp, so hide the float to stop
     it covering the share row on product pages. */
  body.has-mobile-bar .whatsapp-float { display: none; }
  body.has-mobile-bar .back-top { bottom: 84px; }
}

@media (max-width: 720px) {
  .detail-crumbs { gap: 5px; font-size: 12.5px; }
  .detail-crumbs .current { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .share-row { gap: 6px; }
  .share-btn { min-width: 38px; height: 30px; font-size: 10px; padding: 0 8px; }
  .buybox-actions .btn { padding-left: 12px; padding-right: 12px; }
}
/* ==========================================================================
   UPGRADE LAYER — 在 wisastamachinery 原有结构上做视觉升级
   保留全部板块（轮播 / 信任条 / 精选 / 分类 / 关于 / 服务 / 资讯 / 案例 / 询盘）
   只调：配色、字号、留白、卡片形态、装饰噪音
   ========================================================================== */

:root {
  /* 蓝色主色换成近黑：更克制、更大气；机械黄只做点睛 */
  --brand:        #101317;
  --brand-600:    #1b2128;
  --brand-dark:   #000000;
  --brand-light:  #f4f4f2;
  --brand-ring:   rgba(16, 19, 23, .14);

  --accent:       #e8a33c;
  --accent-dark:  #cf8a26;
  --accent-light: #fdf4e4;

  --ink:          #12151a;
  --ink-soft:     #414850;
  --ink-muted:    #6b7278;
  --ink-faint:    #a2a8ad;

  --line:         #e6e5e1;
  --line-strong:  #d3d2cd;
  --bg:           #ffffff;
  --bg-soft:      #f7f6f3;
  --bg-sand:      #f2f1ec;

  /* 直角更显硬朗 */
  --radius-sm:    0px;
  --radius:       0px;
  --radius-lg:    0px;
  --radius-xl:    0px;

  --fs-h2:        40px;
}

body { font-size: 15.5px; line-height: 1.72; color: var(--ink-soft); }

.container { max-width: 1240px; padding: 0 40px; }

/* ---- 板块节奏 --------------------------------------------------------- */
.section { padding: 118px 0; }
.section-tight { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { margin-bottom: 62px; }
.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-head .sub { font-size: 16px; color: var(--ink-muted); }
.section-head .rule { width: 44px; height: 3px; background: var(--accent); margin-bottom: 22px; }

/* ---- 按钮：直角、克制 -------------------------------------------------- */
.btn {
  border-radius: 0;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 14px 30px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2a3138; color: #fff; }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-accent { background: var(--accent); color: #14171b; }
.btn-accent:hover { background: var(--accent-dark); color: #14171b; box-shadow: none; transform: none; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 16px 38px; font-size: 15px; }

/* ---- 顶部条 ----------------------------------------------------------- */
.topbar { background: var(--brand); font-size: 12.5px; }

/* ---- 页头 ------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); }
.logo-text { letter-spacing: .16em; }

.main-nav > ul > li > a {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.main-nav > ul > li > a:hover { color: var(--accent-dark); }

/* ---- 首屏 ------------------------------------------------------------- */
.hero-copy .eyebrow {
  font-size: 11.5px;
  letter-spacing: .18em;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  padding: 8px 16px;
  border-radius: 0;
}
.hero-copy h1, .hero-copy h2 {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero-copy p { font-size: 17px; line-height: 1.7; color: #cdd6e0; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { gap: 16px; }
.hero-arrow { border-radius: 0; border-color: rgba(255,255,255,.3); }
.hero-dots button { border-radius: 0; height: 3px; width: 40px; }

/* ---- 信任条 ----------------------------------------------------------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-item { padding: 30px 24px; }
.trust-icon { width: 34px; height: 34px; border-radius: 0; background: var(--bg-soft); }
.trust-body strong { font-size: 14px; letter-spacing: -.01em; }
.trust-body span { font-size: 12.5px; color: var(--ink-muted); }

/* ---- 卡片：去边框、去阴影、去位移 -------------------------------------- */
.cat-card, .product-card, .news-card, .service-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.cat-card:hover, .product-card:hover, .news-card:hover, .service-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.cat-card .thumb, .product-card .thumb, .news-card .thumb {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}
.cat-card .thumb::after, .product-card .thumb::after { display: none; }
.product-card .thumb img, .cat-card .thumb img, .news-card .thumb img {
  filter: saturate(1.06) brightness(1.1);
}
.product-card:hover .thumb img,
.cat-card:hover .thumb img,
.news-card:hover .thumb img { transform: scale(1.03); }

.cat-card .body, .product-card .body, .news-card .body { padding: 24px 0 0; }

.cat-card h3, .product-card h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.35; }
.cat-card h3 a, .product-card .title a, .news-card h3 a { color: var(--ink); }
.cat-card h3 a:hover, .product-card .title a:hover, .news-card h3 a:hover { color: var(--accent-dark); }

/* 子分类：不再强制高度，行距收紧 */
.cat-card .subcats { min-height: 0; margin-top: 14px; gap: 6px 0; }
.cat-card .subcats a { font-size: 13px; color: var(--ink-muted); width: 100%; }
.cat-card .subcats a::before { content: ""; display: none; }

.product-card .meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }
.product-card .meta strong { font-size: 11px; letter-spacing: .1em; }

/* 徽章只留年份，其余隐藏 */
.product-card .badges .badge:not(.badge-year) { display: none; }
.product-card .badges { top: 12px; left: 12px; }
.badge {
  border-radius: 0;
  background: rgba(16, 19, 23, .82);
  border: 0;
  font-size: 10.5px;
  letter-spacing: .1em;
  padding: 5px 10px;
  backdrop-filter: blur(4px);
}

/* ---- 分类侧栏 --------------------------------------------------------- */
.catalog-side { border: 0; background: transparent; }
.cat-item a, .sidebar-nav a { border-radius: 0; }

/* ---- 服务 ------------------------------------------------------------- */
.service-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: #fff; padding: 40px 34px; }
.service-card .icon { border-radius: 0; background: transparent; width: 40px; height: 40px; }
.service-card .icon img { width: 36px; height: 36px; }
.service-card h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 12px; }
.service-card p { font-size: 14px; line-height: 1.72; color: var(--ink-muted); }

/* ---- 关于 ------------------------------------------------------------- */
.split { gap: 76px; align-items: center; }
.split-media img { border-radius: 0; filter: brightness(1.08) saturate(1.03); }
.stats-grid { border-top: 1px solid var(--line); padding-top: 30px; gap: 0; }
.stat { border-right: 1px solid var(--line); padding: 0 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { font-size: 30px; letter-spacing: -.03em; color: var(--ink); }
.stat span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

/* ---- 资讯 ------------------------------------------------------------- */
.news-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.news-date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.news-card .more { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* ---- 案例图片墙 ------------------------------------------------------- */
.case-grid { gap: 12px; }
.case-item { border-radius: 0; }
.case-item .cap { background: linear-gradient(to top, rgba(10, 13, 17, .92), transparent); }
.case-item .cap strong { font-size: 13px; letter-spacing: .02em; }

/* ---- 询盘条 ----------------------------------------------------------- */
.inquiry-strip { background: var(--brand); padding: 96px 0; }
.inquiry-strip h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.025em; }

/* ---- 页脚 ------------------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.site-footer h4, .site-footer h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent-dark); }
.footer-bottom { border-top: 1px solid var(--line); }

/* ---- 内页（列表 / 详情 / 静态页）-------------------------------------- */
.page-hero { padding: 74px 0 54px; }
.page-hero h1 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; }
.filter-bar, .toolbar { border-radius: 0; border: 0; border-block: 1px solid var(--line); background: transparent; }
.filter-chip, .facet-pill { border-radius: 0; }
.detail-buybox { border-radius: 0; border: 0; border-top: 1px solid var(--line); }
.detail-media, .gallery-main { border-radius: 0; }
.inquiry-panel { border-radius: 0; }

/* ---- 响应式 ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .split { gap: 44px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(32px, 6vw, 46px); }
}

@media (max-width: 700px) {
  .section { padding: 68px 0; }
  .section-head h2 { font-size: 26px; }
  .service-grid { gap: 0; border: 0; background: transparent; }
  .service-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
  .stat { padding: 0 16px; }
  .stat strong { font-size: 24px; }
}

/* ---- 首屏加高、机器让到右侧 ------------------------------------------- */
.hero-slide-inner { min-height: clamp(540px, 72vh, 760px); padding: 120px 0 96px; }
.hero-slide { background-position: 68% center; }
.hero-slide::after {
  background:
    linear-gradient(96deg, rgba(8, 11, 15, .96) 0%, rgba(8, 11, 15, .82) 38%, rgba(8, 11, 15, .34) 70%, rgba(8, 11, 15, .10) 100%);
}
.hero-copy { max-width: 640px; }

/* 卡片图不要提亮，提亮会洗白 */
.product-card .thumb img,
.cat-card .thumb img,
.news-card .thumb img { filter: saturate(1.04) contrast(1.02); }
.split-media img { filter: none; }

/* 信任条图标回到可见 */
.trust-icon { background: var(--brand-light); color: var(--brand); width: 40px; height: 40px; }
.trust-icon svg, .trust-icon img { width: 20px; height: 20px; }

/* 案例图墙在图多时更紧凑 */
.case-item .cap strong { font-size: 12.5px; }

@media (max-width: 700px) {
  .hero-slide-inner { min-height: 460px; padding: 90px 0 70px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(30px, 8.4vw, 40px); }
}

/* ---- 分类卡：子类横排，卡片高度更匀 ----------------------------------- */
.cat-grid { align-items: start; }
.cat-card .subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 12px;
  min-height: 0;
}
.cat-card .subcats a {
  width: auto;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.cat-card .subcats a + a::before {
  content: "·";
  display: inline;
  margin: 0 8px 0 8px;
  color: var(--ink-faint);
}
.cat-card .body { padding-top: 20px; }
.cat-card h3 { margin-bottom: 0; }

/* 首页分类：整宽四列（不再和 Product 页的树形导航重复） */
.home-catalog--wide { display: block; }
.home-catalog--wide .cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
.home-catalog--wide .catalog-foot { margin-top: 64px; }

@media (max-width: 1100px) {
  .home-catalog--wide .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-catalog--wide .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .home-catalog--wide .catalog-foot { margin-top: 40px; }
}
@media (max-width: 460px) {
  .home-catalog--wide .cat-grid { grid-template-columns: 1fr; }
}

/* ---- 关于区统计：去灰底、拉开间距 ------------------------------------- */
.stats-grid {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
  gap: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 20px;
  text-align: left;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ---- 服务：不要空图标框，改成编号 + 线条 ------------------------------ */
.service-grid {
  gap: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-card {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 34px 28px 8px;
}
.service-card:first-child { padding-left: 0; }
.service-card:last-child { border-right: 0; }
.service-card .icon { display: none; }
.service-card h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--ink);
  counter-increment: svc;
}
.service-card h3::before {
  content: counter(svc, decimal-leading-zero);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.service-grid { counter-reset: svc; }
.service-card p { font-size: 13.5px; line-height: 1.75; color: var(--ink-muted); }

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { padding: 28px 24px 8px; }
  .service-card:nth-child(2n) { border-right: 0; padding-right: 0; }
  .service-card:nth-child(odd) { padding-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
}
@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 关于区右栏窄：统计用 2×2，标签才放得下一行 */
.split-body .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
.split-body .stat { padding: 0 16px; }
.split-body .stat:nth-child(2) { border-right: 0; padding-right: 0; }
.split-body .stat:nth-child(3) { padding-left: 0; }
.split-body .stat strong { font-size: 26px; }
.split-body .stat span { font-size: 10px; letter-spacing: .08em; }

/* ---- 案例图注：加深遮罩保证可读 --------------------------------------- */
.case-item .cap {
  padding: 60px 16px 16px;
  background: linear-gradient(to top,
    rgba(8, 11, 15, .94) 0%,
    rgba(8, 11, 15, .72) 46%,
    rgba(8, 11, 15, 0) 100%);
}
.case-item .cap strong { color: #fff; font-size: 13px; letter-spacing: .01em; }
.case-item .cap span { color: rgba(255, 255, 255, .72); font-size: 11.5px; }
.case-grid { gap: 10px; }

/* 首页分类区：侧栏粘性跟随，避免右侧长网格旁边出现大片空白 */
.home-catalog {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.home-catalog > .sidebar { position: sticky; top: 104px; }
.home-catalog .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.home-catalog .catalog-foot { margin-top: 56px; }

@media (max-width: 1100px) {
  .home-catalog { grid-template-columns: 1fr; gap: 36px; }
  .home-catalog > .sidebar { position: static; }
  .home-catalog .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-catalog .cat-grid { grid-template-columns: 1fr; }
}

.cat-card .subcats a.more { color: var(--accent-dark); }
.cat-card .subcats a.more + a::before { content: ""; margin: 0; }

/* 首屏主按钮：深色背景上改用白底黑字，对比更清楚 */
.hero-actions .btn-primary { background: #fff; color: var(--brand); }
.hero-actions .btn-primary:hover { background: var(--accent); color: #14171b; }

/* ==========================================================================
   REAL PHOTOGRAPHY
   ========================================================================== */

/* The opening slide carries a real yard photograph: keep the copy readable
   without flattening the daylight image. */
.hero-slide--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 20, 30, .92) 0%, rgba(12, 20, 30, .74) 42%, rgba(12, 20, 30, .22) 72%, rgba(12, 20, 30, .06) 100%);
  z-index: 0;
}
.hero-slide--photo .hero-slide-inner { position: relative; z-index: 1; }

/* ---- Real machines, real people ---- */
.real-strip { background: var(--bg, #fff); }

.real-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 28px;
}

.real-item { margin: 0; }

.real-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #eef1f4;
}
.real-item:nth-child(1) img { object-position: 54% 68%; }
.real-item:nth-child(2) img { object-position: 50% 40%; aspect-ratio: 1 / 1; }
.real-item:nth-child(3) img { object-position: 50% 45%; aspect-ratio: 1 / 1; }

.real-item figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7681;
}

@media (max-width: 860px) {
  .real-grid { grid-template-columns: 1fr; gap: 20px; }
  .real-item img,
  .real-item:nth-child(2) img,
  .real-item:nth-child(3) img { aspect-ratio: 16 / 10; }
}
