/* ============================================================
   McLantis Automation — Post-Press Machinery Site
   Design System: modern industrial, brand blue + cyan
   ============================================================ */

:root {
  /* Brand palette */
  --brand:        #116bc4;   /* primary brand blue  */
  --brand-dark:   #0d549c;
  --brand-light:  #1f8ae0;
  --cyan:         #16c4e7;   /* accent cyan         */
  --cyan-dark:    #0fa8c7;

  /* Neutrals */
  --ink:          #1a1f29;
  --text:         #333a45;
  --text-soft:    #5c6675;
  --muted:        #8a93a3;
  --line:         #e6eaf0;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fa;
  --bg-soft-2:    #eef2f7;
  --dark:         #11202f;   /* footer dark bar     */

  /* Layout */
  --container:    1200px;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow-sm:    0 2px 10px rgba(17,32,47,.06);
  --shadow-md:    0 8px 28px rgba(17,32,47,.10);
  --shadow-lg:    0 18px 50px rgba(17,32,47,.16);

  --nav-h:        74px;
  /* International system-UI font stack: matches the native OS font on every
     platform (SF Pro / Segoe UI / Roboto), the same approach used by Apple,
     Google and Microsoft corporate sites. OS-native CJK/JP/AR fallbacks keep
     all 9 languages rendering with zero webfont download. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Yu Gothic", "Meiryo", "Noto Sans CJK SC", "Noto Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }

/* Skip link: visually hidden until keyboard-focused (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: -2px;
}

/* Keyboard focus indicator (WCAG 2.4.7 Focus Visible). Shown only for
   keyboard navigation (:focus-visible), not on mouse click. Form fields keep
   their own .form-control:focus box-shadow, so they are intentionally excluded. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.lang-switch button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
h1,h2,h3,h4,h5 { color: var(--ink); line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 50px; font-weight: 600;
  font-size: 14px; border: 2px solid var(--brand); cursor: pointer;
  background: var(--brand); color: #fff; transition: all .25s; line-height: 1;
}
.btn:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.btn svg { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -2px; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color:#fff; }
.btn-ghost:hover { background: #fff; color: var(--brand); }

/* ---------- Section helpers ---------- */
.section { padding: 70px 0; }
.section.soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 12px; font-size: 30px; }
.section-title span { color: var(--brand); }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 44px; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--brand); margin: 16px auto 0; border-radius: 3px;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  height: var(--nav-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-img { height: 38px; width: auto; display: block; }
.brand .logo-fallback { display: inline-flex; align-items: center; gap: 12px; }
.brand .logo-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
}
.brand .logo-text { font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: .3px; }
.brand .logo-text small { display:block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }
.factory-figure { margin: 26px 0; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,43,74,.12); }
.factory-figure img { display: block; width: 100%; height: auto; }
.factory-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 30px; }
.factory-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,43,74,.12); }
.factory-gallery img { display: block; width: 100%; height: 200px; object-fit: cover; }
@media (max-width: 991px) { .factory-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .factory-gallery { grid-template-columns: 1fr; } .factory-gallery img { height: 200px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; list-style: none; }
.nav > li > a {
  display: flex; align-items: center; gap: 6px; height: var(--nav-h);
  padding: 0 16px; color: var(--text); font-weight: 600; font-size: 15px;
  position: relative;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: center; transition: transform .25s;
}
.nav > li:hover > a, .nav > li.active > a { color: var(--brand); }
.nav > li:hover > a::after, .nav > li.active > a::after { transform: scaleX(1); }

/* dropdown */
.nav .dropdown { position: absolute; top: var(--nav-h); left: 0; min-width: 230px;
  background: #fff; box-shadow: var(--shadow-md); border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a { display: block; padding: 9px 20px; color: var(--text); font-weight: 500; font-size: 14px; }
.nav .dropdown a:hover { background: var(--bg-soft); color: var(--brand); padding-left: 26px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch > button {
  display: flex; align-items: center; gap: 6px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 50px; padding: 7px 13px;
  font-weight: 600; font-size: 13px; color: var(--text); cursor: pointer;
}
.lang-switch .menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: #fff; box-shadow: var(--shadow-md); border-radius: var(--radius);
  padding: 6px; display: none; z-index: 50;
}
.lang-switch.open .menu { display: block; }
.lang-switch .menu a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; }
.lang-switch .menu a:hover { background: var(--bg-soft); color: var(--brand); }
.lang-switch .menu a.current { color: var(--brand); font-weight: 700; }

/* hamburger / mobile drawer defaults */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.mobile-nav { display: none; }

/* ============================================================
   Hero / Banner
   ============================================================ */
.hero { position: relative; min-height: 560px; display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 70% 20%, rgba(22,196,231,.25), transparent 60%),
              linear-gradient(120deg, #0b2e54 0%, #116bc4 55%, #16c4e7 120%);
  color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%); }
.hero-inner { position: relative; z-index: 2; padding: 90px 0; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.14); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 46px; line-height: 1.12; margin-bottom: 18px; max-width: 760px; }
.hero p { font-size: 18px; max-width: 620px; color: rgba(255,255,255,.9); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.hero-stats .stat .lbl { font-size: 13px; color: rgba(255,255,255,.8); }
.hero-graphic { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 46%;
  opacity: .9; z-index: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

/* ============================================================
   Cards / Grids
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
/* 产品主图统一为 800x800 方图，容器用 1:1 + contain，避免 cover 裁掉机器上下部分 */
.card-media { aspect-ratio: 1/1; background: #fff; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted);
  background: linear-gradient(135deg, var(--bg-soft-2), #e3e9f1); font-weight: 600; text-align:center; padding: 14px;
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12px; color: var(--cyan-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.card-title { font-size: 16.5px; margin: 6px 0 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }
.card-desc { font-size: 13.5px; color: var(--text-soft); flex: 1; }
.card-foot { margin-top: 14px; }
.card-link { font-weight: 700; font-size: 13.5px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* feature row (home strength) */
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: left; transition: .25s; }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand); transform: translateY(-4px); }
.feature-card .ic { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--cyan)); display: grid; place-items: center; color:#fff; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-soft); margin: 0; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb { background: var(--bg-soft); padding: 16px 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb span.sep { margin: 0 8px; color: var(--line); }
.breadcrumb span.cur { color: var(--brand); font-weight: 600; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { background: linear-gradient(120deg, #0b2e54, #116bc4 70%, #16c4e7);
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: 38px; margin: 0 0 8px; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; max-width: 680px; }

/* ============================================================
   Product detail
   ============================================================ */
.product-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background:#fff; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 14px; }
.gallery-thumbs .th { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--bg-soft-2); }
.gallery-thumbs .th.active { border-color: var(--brand); }
.gallery-thumbs .th img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 30px; margin-bottom: 6px; }
.product-info .cat-tag { color: var(--cyan-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.product-info .lead { font-size: 16px; color: var(--text-soft); margin: 14px 0 22px; }
.feature-list { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(17,107,196,.12); color: var(--brand); display: grid; place-items: center; font-size: 13px; margin-top: 2px; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; text-align: left; }
.spec-table th { background: var(--bg-soft); color: var(--ink); width: 40%; font-weight: 700; }
.spec-table tr:nth-child(even) td { background: #fcfdff; }

/* ============================================================
   About / two-column text
   ============================================================ */
.prose { max-width: 820px; }
.prose p { color: var(--text); }
.prose h3 { margin-top: 1.6em; }
/* Section heading inside prose that is a real h2 but should look like the old h3 */
.prose-sub { margin-top: 1.6em; font-size: 20px; }

/* ------------------------------------------------------------
   Scraped detail HTML: the original site shipped spec tables as
   raw <table width="597" cellpadding="0" valign="top"> markup with
   no CSS. Left alone they render with UA defaults (no borders, no
   padding) and overflow the viewport on phones.
   ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0 30px; }
.product-detail table,
.product-detail .table-wrap > table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
  background: #fff;
}
.product-detail table td,
.product-detail table th {
  border: 1px solid var(--line);
  padding: 11px 14px;
  vertical-align: middle;
  text-align: left;
  color: var(--text);
  /* kill the scraped inline alignment/height attributes */
  height: auto !important;
}
/* scraped detail HTML wraps every cell in <p>, whose UA default margin
   (1em top/bottom) inflated row height and broke vertical centering */
.product-detail table td p,
.product-detail table th p { margin: 0; }
/* header band: the firstRow is always the header */
.product-detail table tr.firstRow td {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}
/* two-level header: when the header row also spans into a 2nd row of
   model codes (rowspan on the label cells), band that row too */
.product-detail table tr.firstRow:has(td[rowspan]) + tr td {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  font-size: 13.5px;
}
/* in two-level-header tables, center the numeric value columns (3+) so
   they sit under the centered model-code header; labels stay left */
.product-detail table:has(tr.firstRow td[rowspan]) tbody tr:not(.firstRow) td:nth-child(n+3) {
  text-align: center;
}
.product-detail table tr:nth-child(even) td { background: #fcfdff; }
.product-detail table img { display: inline-block; max-width: 100%; height: auto; }
@media (max-width: 767px) {
  .product-detail table,
  .product-detail table td,
  .product-detail table th { font-size: 12.5px; }
  .product-detail table td,
  .product-detail table th { padding: 6px 7px; }
}
.tick-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 18px 0; }
.tick-list li { display: flex; gap: 10px; align: flex-start; }
.tick-list li .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color:#fff; display:grid; place-items:center; font-size: 12px; }

/* stats band */
.stat-band { background: var(--dark); color: #fff; padding: 50px 0; }
.stat-band .grid { gap: 20px; }
.stat-band .stat { text-align: center; }
.stat-band .num { font-size: 40px; font-weight: 800; color: #fff; }
.stat-band .num span { color: var(--cyan); }
.stat-band .lbl { color: rgba(255,255,255,.7); font-size: 14px; }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-list { list-style: none; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--bg-soft); color: var(--brand); display: grid; place-items: center; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list .t { font-weight: 700; color: var(--ink); }
.info-list .v { color: var(--text-soft); font-size: 14px; }
.info-list a.v:hover { color: var(--brand); }

.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.form-row label .req { color: #e23b3b; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font); color: var(--text); transition: border-color .2s, box-shadow .2s; background: #fff; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17,107,196,.12); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 575px) { .form-grid-2 { grid-template-columns: 1fr; gap: 0; } }

/* contact form: status message, error state, honeypot */
.form-control.has-error { border-color: #e23b3b; box-shadow: 0 0 0 3px rgba(226,59,59,.12); }
.form-status { margin: 4px 0 12px; font-size: 13.5px; line-height: 1.5; }
.simple-captcha { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.simple-captcha label { margin: 0; flex: none; }
.simple-captcha .captcha-q { display: inline-block; min-width: 76px; padding: 9px 12px; background: #f2f6fb; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--brand); letter-spacing: .5px; user-select: none; }
.simple-captcha input { max-width: 150px; }
.form-status:empty { display: none; }
.form-status.is-err { color: #c62828; background: #fdecec; border: 1px solid #f6c9c9; border-radius: var(--radius-sm); padding: 9px 12px; }
.form-status.is-ok { color: #1b6b3a; background: #eaf7ee; border: 1px solid #c4e6cf; border-radius: var(--radius-sm); padding: 9px 12px; }
.form-status.is-wait { color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 24px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.2); }

/* ============================================================
   News
   ============================================================ */
.news-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; display:flex; gap:0; transition:.25s; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card .thumb { flex:none; width: 168px; align-self:stretch; overflow:hidden; }
.news-card .thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .date { flex:none; width: 76px; background: linear-gradient(160deg, var(--brand), var(--brand-dark)); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.news-card .date .d { font-size: 30px; font-weight: 800; line-height:1; }
.news-card .date .m { font-size: 13px; opacity:.9; }
.news-card .body { padding: 18px 22px; flex:1; }
.news-card .cat { font-size: 12px; color: var(--cyan-dark); font-weight:700; text-transform: uppercase; }
.news-card h3 { font-size: 17px; margin: 6px 0 6px; }
.news-card h3 a { color: var(--ink); }
.news-card p { font-size: 13.5px; color: var(--text-soft); margin: 0; }
.news-detail .lead { font-size: 17px; color: var(--text-soft); }
.news-detail img { border-radius: var(--radius); margin: 22px 0; }
.news-detail .news-cover { width:100%; height:auto; aspect-ratio: 8/5; object-fit:cover; margin: 0 0 20px; display:block; }
.news-detail .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

/* sidebar */
.sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }
.side-widget { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.side-widget h2 { font-size: 16px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--bg-soft); }
.side-widget ul { list-style: none; display: grid; gap: 10px; }
.side-widget ul a { color: var(--text-soft); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.side-widget ul a:hover { color: var(--brand); }
.side-widget ul a .dot { width:6px; height:6px; border-radius:50%; background: var(--cyan); margin-top: 8px; flex:none; }
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* category filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { padding: 8px 18px; border-radius: 50px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-soft); background:#fff; }
.chip:hover, .chip.active { background: var(--brand); color:#fff; border-color: var(--brand); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: #c8d2de; }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand .logo-img.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand .logo-text { color:#fff; font-weight:800; font-size:20px; }
.footer-brand p { font-size: 13.5px; color: #9fb0c2; margin-top: 14px; max-width: 320px; }
.footer-col h2 { color:#fff; font-size: 15px; margin: 0 0 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col ul a { color: #9fb0c2; font-size: 13.5px; }
.footer-col ul a:hover { color: var(--cyan); padding-left: 4px; }
.footer-contact li { display:flex; gap: 10px; font-size: 13.5px; color:#9fb0c2; margin-bottom: 10px; align-items:flex-start; }
.footer-contact .ic { color: var(--cyan); flex:none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; color: #7e8ea0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   Utilities / misc
   ============================================================ */
.center { text-align:center; }
.mt-0 { margin-top: 0; }
.note-box { background: #fff8e6; border: 1px solid #ffe2a8; border-radius: var(--radius); padding: 14px 18px; font-size: 13.5px; color: #8a6400; margin: 18px 0; }
.placeholder-note { font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-actions { gap: 8px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .contact-layout, .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-graphic { display: none; }

  /* mobile drawer — 与汉堡按钮同步 */
  .mobile-nav {
    display: block;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 999; padding: 18px 20px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s; box-shadow: var(--shadow-lg);
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav > a, .mobile-nav .m-group > a { display: block; padding: 13px 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
  .mobile-nav .m-sub { display: block; padding: 10px 6px 10px 18px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-weight: 500; font-size: 14px; }
}
@media (max-width: 767px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .news-card .thumb { width: 132px; }
  .news-card .date { width: 64px; }
  .news-card .date .d { font-size: 24px; }
  .news-card .body { padding: 14px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .tick-list { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-title { font-size: 25px; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat .num { font-size: 27px; }
  .page-hero h1 { font-size: 28px; }
}

/* product detail — original copy scraped from source site */
.product-detail { max-width: 1000px; }
.product-detail p { margin: 0 0 14px; line-height: 1.85; }
.product-detail img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); margin: 14px auto 20px; }

/* product detail inline image galleries (scraped as <img><img><br>caption pairs) */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}
.detail-gallery figure {
  margin: 0;
  text-align: center;
}
.detail-gallery .fig-img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 11;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.detail-gallery img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0; /* override .product-detail img margin */
}
.detail-gallery figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-gallery .fig-img { min-height: 160px; }
}

/* animation */
@keyframes fadeUp { from { opacity:0; transform: translateY(18px);} to {opacity:1; transform:none;} }
.reveal { animation: fadeUp .6s ease both; }
