/*
Theme Name:   CTRL Motor
Theme URI:    https://www.ctrl-motor.com/
Description:  Custom theme for CTRL Motor — extreme environment motion solutions (vacuum, high/low temperature motors). Built for speed, SEO and GEO.
Version:      1.9.0
Author:       CTRL Motor
License:      Proprietary
Text Domain:  ctrlmotor
*/

:root {
  --navy-900: #0a1826;
  --navy-800: #0d2137;
  --navy-700: #14304e;
  --navy-100: #e8eef5;
  --orange: #f97316;
  --orange-dark: #d95f0e;
  --brand: #0f3fd8;
  --brand-dark: #0b31a8;
  --brand-bright: #6f8fff;
  --ink: #1c2733;
  --ink-soft: #46586a;
  --line: #dde5ec;
  --bg-soft: #f4f7fa;
  --white: #ffffff;
  --green: #178a4c;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 33, 55, .06), 0 2px 8px rgba(13, 33, 55, .06);
  --shadow-md: 0 4px 12px rgba(13, 33, 55, .10), 0 12px 32px rgba(13, 33, 55, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { --header-height: 110px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-800); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-wrap: balance; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
#main-content:focus { outline: none; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; transform: translateY(-180%); }
.skip-link:focus-visible { transform: translateY(0); color: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: .7rem;
}
.section { padding: 76px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #cdd9e5; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--brand-bright); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .8em 1.6em; border-radius: 6px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  background: var(--orange); color: #fff;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-sm { min-height: 36px; padding: .5em 1.1em; font-size: .88rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #aebfce; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #dce7f0; display: inline-flex; align-items: center; gap: .4em; min-height: 30px; }
.topbar a:hover { color: #fff; }
.topbar-group { display: flex; gap: 22px; align-items: center; }
.topbar-cert { color: #9db2c4; }

/* ---------- Header ---------- */
/* 整条栏目（顶栏+主导航）固定锁定在视口顶部 */
.header-stack {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
}
body { padding-top: var(--header-height); }
.site-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.site-logo { display: flex; align-items: center; flex: none; font-weight: 800; font-size: 1.3rem; color: var(--navy-800); letter-spacing: .02em; }
.site-logo:hover { color: var(--navy-800); }
.site-logo img { display: block; height: 46px; width: auto; border-radius: 6px; }
.site-logo .logo-mark {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: grid; place-items: center; color: #fff;
}
.site-logo .logo-mark svg { width: 22px; height: 22px; }
.site-logo em { font-style: normal; color: var(--orange); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 8px; font-weight: 600; font-size: .9rem;
  color: var(--ink); border-radius: 6px; white-space: nowrap;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 currentColor; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; max-width: 320px; max-height: 70vh; max-height: 70dvh; overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease; z-index: 50;
}
.main-nav .sub-menu li { border-bottom: 1px solid #f1f5f9; }
.main-nav .sub-menu li:last-child { border-bottom: 0; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: 9px 12px; font-weight: 500; white-space: normal; line-height: 1.4; }
.main-nav .sub-menu a.sub-menu-child { padding-left: 26px; font-size: .86rem; }
.main-nav .sub-menu a.sub-menu-child::before { content: "└ "; color: #738498; }
.menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.header-cta { display: flex; align-items: center; flex: none; gap: 12px; }
.header-cta .btn { padding: .65em 1.1em; white-space: nowrap; }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-scrim { position: fixed; inset: 0; z-index: 150; border: 0; padding: 0; background: rgba(10,24,38,.48); backdrop-filter: blur(2px); }
.nav-scrim[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dbe6f0;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(15,63,216,.30), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(20,48,78,.9), transparent 65%),
    linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 55%, #0f2c49 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 500px at 70% 20%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 20px; overflow-wrap: break-word; }
.hero h1 .accent { color: var(--brand-bright); }
.hero-lead { font-size: 1.12rem; color: #b9c9d8; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1.45fr 1.05fr 1fr 1.15fr; gap: 16px; margin-top: 40px; }
.hero-stat { border-left: 2px solid rgba(111,143,255,.75); padding-left: 12px; }
.hero-stat b { display: block; color: #fff; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.1; white-space: nowrap; }
.hero-stat span { display: block; margin-top: 6px; font-size: .78rem; color: #a9bccd; letter-spacing: .02em; }
.hero-panel {
  background: rgba(13,33,55,.55); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 30px; backdrop-filter: blur(6px);
}
.hero-panel h2 { color: #fff; display: flex; align-items: center; gap: .5em; font-size: 1.15rem; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: flex; gap: .7em; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: .94rem; color: #c6d4e1; align-items: flex-start; }
.hero-panel li:last-child { border-bottom: 0; }
.hero-panel .icon { color: var(--brand-bright); margin-top: .18em; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #eef3f8, #dde6ee); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .45em; }
.card-body h3 a { color: var(--navy-800); }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip {
  font-size: .76rem; font-weight: 600; color: var(--navy-700);
  background: var(--navy-100); border-radius: 999px; padding: .32em .85em;
}
.chip-parent { background: var(--navy-700); color: #fff; }
.chip-child { background: #fff; border: 1px solid var(--line); }
.section.dark .chip-child { background: rgba(255,255,255,.08); color: #e8eef5; }
.section.dark .chip { background: rgba(255,255,255,.12); color: #e8eef5; }

.cat-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .2s ease; height: 100%; }
.cat-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; margin-bottom: 16px; }
.cat-icon .icon { width: 26px; height: 26px; }
.cat-card h3 { margin-bottom: .4em; }
.cat-card p { color: var(--ink-soft); font-size: .92rem; margin-bottom: .8em; }
.cat-card .more { font-weight: 600; font-size: .9rem; color: var(--orange); display: inline-flex; align-items: center; gap: .4em; }

/* ---------- Feature / why-us ---------- */
.feature-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .cat-icon { margin-bottom: 0; flex: none; }
.feature-row h3 { margin-bottom: .25em; }
.feature-row p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Case band ---------- */
.case-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.case-band .media { min-height: 340px; background-size: cover; background-position: center; }
.case-band .body { padding: 46px; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.case-band .body p { color: var(--ink-soft); }
.result-list { list-style: none; margin: 6px 0 20px; padding: 0; }
.result-list li { display: flex; gap: .6em; padding: 7px 0; color: var(--ink); font-size: .95rem; }
.result-list .icon { color: var(--green); margin-top: .2em; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; line-height: 1.05; }
.stats-band span { color: #9db2c4; font-size: .86rem; }
.stat-cell { border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 26px 14px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1rem; color: var(--navy-800); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 22px 18px; color: var(--ink-soft); font-size: .95rem; }
.faq-a-inner p { margin: 0; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-soft); font-weight: 600; background: var(--bg-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- Product single layout ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.product-gallery { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg,#eef3f8,#dde6ee); position: sticky; top: calc(var(--header-height) + 18px); }
.product-gallery img { width: 100%; height: auto; }
.breadcrumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { margin: 0 .5em; color: #b6c2cd; }

/* ---------- Inquiry form ---------- */
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .88rem; color: var(--navy-800); }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 6px;
  background: #fbfcfd; transition: border-color .15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--orange); background: #fff; }
.form-field input:focus-visible, .form-field textarea:focus-visible, .form-field select:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.notice-success { background: #e7f6ee; color: var(--green); border: 1px solid #b9e2cb; }
.notice-error { background: #fdeaea; color: #b3261e; border: 1px solid #f2c1c1; }

/* ---------- Contact cards ---------- */
.contact-card { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.contact-card .cat-icon { margin-bottom: 0; width: 46px; height: 46px; }
.contact-card h3 { margin-bottom: .2em; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; word-break: break-word; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 30px 0 10px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(15,63,216,.18); }
.timeline-item b { color: var(--navy-800); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #cdd9e5; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(249,115,22,.18), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { margin: 0; max-width: 46em; color: #a9bccd; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #e85d04 100%); border-radius: 16px; padding: 48px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); }
.cta-band .btn { background: #fff; color: var(--orange-dark); position: relative; z-index: 1; }
.cta-band .btn:hover { background: var(--navy-800); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a8bb; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #aebfce; }
.site-footer a:hover { color: var(--brand); }
.footer-brand p { max-width: 30em; }
.footer-contact li { display: flex; gap: .6em; align-items: flex-start; }
.footer-contact .icon { color: var(--brand-bright); margin-top: .2em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Content typography ---------- */
.entry-content { max-width: 780px; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; padding-top: .4em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; color: var(--ink-soft); }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--orange); background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--ink-soft); }

/* ---------- Pagination / misc ---------- */
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: .5em 1em; border: 1px solid var(--line); border-radius: 6px; margin: 0 3px; font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.archive-count { color: var(--ink-soft); font-size: .9rem; }
.search-box { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box input[type="search"] { font: inherit; padding: .6em .9em; border: 1.5px solid var(--line); border-radius: 6px; min-width: 240px; }
.no-results { text-align: center; padding: 80px 0; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
.product-details-layout { grid-template-columns: 1.2fr .8fr; }
.case-details-layout { grid-template-columns: 1.15fr .85fr; }
.contact-layout { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 1280px) {
  .header-inner { gap: 10px; }
  .main-nav a { padding-left: 6px; padding-right: 6px; font-size: .85rem; }
  .header-cta .btn { font-size: .88rem; }
}
@media (max-width: 1100px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); height: 100vh; height: 100dvh; background: #fff; box-shadow: -12px 0 40px rgba(13,33,55,.18); padding: 90px 24px 24px; transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s ease; z-index: 200; overflow-y: auto; overscroll-behavior: contain; }
  .main-nav.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { min-height: 44px; padding: 12px 10px; font-size: 1rem; }
  .main-nav .sub-menu { position: static; max-height: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 14px; display: none; }
  .main-nav li.open > .sub-menu { display: block; }
  .main-nav .sub-menu a { min-height: 40px; padding: 9px 12px; font-size: .92rem; }
  .main-nav .sub-menu a.sub-menu-child { padding-left: 24px; font-size: .86rem; }
  .nav-toggle { display: block; position: relative; z-index: 300; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
  .header-cta .btn { display: none; }
  .topbar-group.cert-group { display: none; }
}
@media (max-width: 1020px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .case-band { grid-template-columns: 1fr; }
  .case-band .media { min-height: 240px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar .container { padding-left: 16px; padding-right: 16px; }
  .topbar-group { width: 100%; justify-content: space-between; gap: 12px; }
  .topbar-email { display: none !important; }
  .topbar a { white-space: nowrap; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .grid-2, .grid-3, .grid-4, .stats-band, .product-details-layout, .case-details-layout, .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .inquiry-form { padding: 22px 18px; }
  .cta-band { padding: 34px 26px; }
  .section { padding: 56px 0; }
  .case-band .body { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav, .nav-toggle span, .faq-a, .faq-q::after { transition: none; }
  .card, .cat-card, .hpanel, .btn { transition-property: color, background-color, border-color, box-shadow; }
  .card:hover, .cat-card:hover, .hpanel:hover, .btn:hover { transform: none; }
  .hero-parallax { will-change: auto; }
}

/* ================= GSAP 动画系统 ================= */
/* Hero 视差图层（网格纹样移自 ::after，改为真实元素以便 GSAP 驱动） */
.hero { position: relative; }
.hero::after { display: none; }
.hero-parallax {
  position: absolute; inset: -20% 0; pointer-events: none; opacity: .5; will-change: transform;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 500px at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 500px at 70% 20%, #000, transparent 75%);
}

/* 横向滚动区块（桌面端 pin+scrub；移动端降级为纵向） */
.hscroll-section { overflow: hidden; }
.hscroll-viewport { overflow: hidden; }
.hscroll-track { display: flex; gap: 24px; padding: 10px 22px 30px; width: max-content; }
.hpanel {
  flex: none; width: 400px; min-height: 320px; border-radius: 16px; color: #fff; text-decoration: none;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); border: 1px solid rgba(255,255,255,.1);
  display: block; transition: transform .2s ease;
}
.hpanel:hover { transform: translateY(-4px); }
.hpanel-inner { display: flex; flex-direction: column; height: 100%; padding: 30px; position: relative; }
.hpanel-img {
  display: block; height: 150px; border-radius: 16px 16px 0 0;
  background-size: cover; background-position: center;
}
.hpanel:has(.hpanel-img) .hpanel-inner { padding-top: 20px; min-height: 200px; }
.cat-card-img {
  display: block; aspect-ratio: 16/9; border-radius: 8px; margin: -26px -26px 16px;
  background-size: cover; background-position: center;
}
.hpanel-num { font-size: 2.6rem; font-weight: 800; color: rgba(111,143,255,.45); line-height: 1; margin-bottom: 14px; }
.hpanel h3 { color: #fff; margin-bottom: .5em; }
.hpanel p { color: #a9bccd; font-size: .92rem; flex: 1; }
.hpanel .more { font-weight: 600; font-size: .9rem; color: var(--orange); display: inline-flex; align-items: center; gap: .4em; }

@media (max-width: 1023px) {
  .hscroll-track { width: auto; flex-direction: column; padding: 0 22px 20px; }
  .hpanel { width: 100%; min-height: 0; }
  .hpanel-inner { padding: 22px; }
}

/* ---------- 三级可折叠分类树（产品页侧栏） ---------- */
.archive-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.archive-main { min-width: 0; }
.cat-tree { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; position: sticky; top: 130px; }
.cat-tree-title { font-weight: 700; color: var(--navy-800); padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; letter-spacing: .03em; }
.cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree li { border-bottom: 1px solid #f1f5f9; }
.cat-tree li:last-child { border-bottom: 0; }
.cat-tree-row { display: flex; align-items: center; gap: 2px; }
.cat-tree-row a { flex: 1; display: block; padding: 10px 14px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.cat-tree li.current > .cat-tree-row a, .cat-tree li.current > a { color: var(--brand); }
.cat-toggle { background: none; border: 0; cursor: pointer; padding: 10px 4px 10px 12px; color: var(--brand); font-size: .8rem; transition: transform .2s; }
.cat-toggle[aria-expanded="true"] { transform: rotate(90deg); }
.cat-kids { display: none; border-top: 1px dashed var(--line); background: #f8fafc; }
.cat-kids li { border-bottom: 0; }
.cat-kids a { display: block; padding: 8px 14px 8px 34px; font-size: .84rem; color: var(--ink-soft); font-weight: 500; }
.cat-kids li.current a { color: var(--brand); font-weight: 700; }
@media (max-width: 1023px) {
  .archive-layout { grid-template-columns: 1fr; }
  .cat-tree { position: static; margin-bottom: 24px; }
}

/* ---------- Knowledge center / GEO ---------- */
.visually-hidden { position: absolute !important; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }
.knowledge-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.knowledge-toc a { padding: 8px 12px; border-radius: 6px; font-size: .9rem; font-weight: 600; }
.knowledge-toc a:hover { background: #fff; }
.knowledge-section { margin-bottom: 64px; scroll-margin-top: calc(var(--header-height) + 24px); }
.knowledge-section > p { max-width: 850px; }
.knowledge-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 28px 0 0; }
.knowledge-facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.knowledge-facts dt { margin-bottom: 4px; color: var(--ink-soft); font-size: .82rem; font-weight: 600; }
.knowledge-facts dd { margin: 0; color: var(--navy-800); font-weight: 600; overflow-wrap: anywhere; }
.knowledge-table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.knowledge-table { min-width: 780px; }
.knowledge-table caption { padding: 12px 16px; text-align: left; color: var(--ink-soft); font-size: .85rem; background: var(--bg-soft); }
.knowledge-table thead th { width: auto; color: #fff; background: var(--navy-800); }
.knowledge-table tbody th { width: 18%; }
.knowledge-application h3 { margin-top: 0; }
.knowledge-answer { max-width: 900px; padding: 28px 0; border-top: 1px solid var(--line); }
.knowledge-answer .entry-content { max-width: 100%; }
.knowledge-answer .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.knowledge-zh { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.knowledge-zh li { margin-bottom: 10px; }
.knowledge-sources { display: grid; gap: 10px; padding-left: 20px; }
@media (max-width: 760px) {
  .knowledge-facts { grid-template-columns: 1fr; }
  .knowledge-section { margin-bottom: 48px; }
  .knowledge-zh { padding: 22px 18px; }
  .knowledge-toc { gap: 4px; padding: 10px; }
}
