/* ==========================================================================
   Guangzhou Guoyi Photonics (gyphotonics) — Independent Site
   Design system inspired by NLIR (nlir.com) — clean, product-focused, photonics
   Pure HTML/CSS/JS. English-first. No framework.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand — graphite navy (muted dark blue ink) */
  --brand: #183058;
  --brand-dark: #122441;
  --brand-deeper: #0C1A30;
  --brand-soft: #EAF0F8;
  --brand-ring: rgba(24, 48, 88, 0.28);
  /* Slightly darker than --brand — used for "primary" button hover variants
     (e.g. .knowledge-pdf:hover). If this is undefined, the hover rule's
     background resolves to transparent and the button shows the white
     page underneath, which looks like an overlay covering it. */
  --brand-strong: #122441;

  /* Ink (matches NLIR's #383838 body text) */
  --ink: #1E293B;
  --ink-strong: #1a1a1a;
  --ink-soft: #334155;
  --muted: #64748B;
  --muted-light: #94A3B8;

  /* Surfaces */
  --white: #ffffff;
  --bg-soft: #FAFBFC;
  --bg-softer: #E8ECF1;
  --line: #E8ECF1;
  --line-strong: #CBD5E1;

  /* Dark sections (navy) */
  --navy: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-pad: 18px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 300ms;
  --t-slow: 500ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 30, 60, 0.06);
  --shadow: 0 8px 24px rgba(10, 30, 60, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 30, 60, 0.14);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { color: var(--ink-strong); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: var(--brand); color: #fff; }

/* ---------- 3. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: var(--section-pad) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #c8d3e2; }
.section--tight { padding: 64px 0; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
/* Wide variant — head copy spans the full container width (merged-page intros) */
.section-head--wide { max-width: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section--navy .section-title { color: #fff; }
.section--navy .section-sub { color: #aebacd; }
.section--navy .eyebrow { color: #6ea4ff; }
.section--navy .eyebrow::before, .section--navy .eyebrow::after { background: #6ea4ff; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px var(--brand-ring); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px var(--brand-ring); }

.btn--ghost { background: transparent; color: var(--ink-strong); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(24, 48, 88, 0.12); }

.btn--ghost-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn--ghost-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn .icon { width: 18px; height: 18px; flex: none; }

/* Arrow link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--brand);
  transition: gap var(--t-fast) var(--ease);
}
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: #fff;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 94px;
  transition: height var(--t-med) var(--ease);
}
.site-header.is-scrolled .header-inner { height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { height: 62px; width: auto; }
.logo-text { display: none; }
.logo-word { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.logo-word-name {
  font-size: 18px; line-height: 1; letter-spacing: 0.08em;
  white-space: nowrap; font-weight: 300;
  /* 艺术字标：品牌紫→蓝渐变文字，与 logo 图形同一色板 */
  background: linear-gradient(92deg, #183058 0%, #24406B 48%, #45608D 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #183058;
}
.logo-word-name b { font-weight: 900; letter-spacing: 0.06em; }
.logo-word-tag { font-size: 8.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-light); white-space: nowrap; }
.site-header.is-scrolled .logo-word-name { font-size: 15px; }
.site-header .container { max-width: 1520px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li { position: relative; }
.nav > li > a {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  padding: 9px 11px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav > li > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-med) var(--ease);
}
.nav > li > a:hover { color: var(--brand); transform: translateY(-2px); }
.nav > li > a:hover::after, .nav > li > a.is-active::after { transform: scaleX(1); }
.nav > li > a.is-active { font-weight: 700; color: var(--brand); }
.nav > li.has-dropdown > a .caret { width: 12px; height: 12px; transition: transform var(--t-fast) var(--ease); }
.nav > li.has-dropdown:hover > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
}
.nav > li.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  border-radius: 9px;
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); transform: translateX(3px); }
.dropdown a .count { font-size: 12px; color: var(--muted-light); }

/* 产品分类下拉：单列一级分类（已按要求去掉二级标签列） */
.nav-col { display: flex; flex-direction: column; min-width: 0; }
.nav-col--parents { min-width: 220px; flex: 0 0 auto; align-items: flex-start; padding: 4px 0; }
.nav-parent { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; padding: 8px 14px; width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Header top utility bar — single-line contact strip above the nav,
   brand-purple gradient background; stays visible while scrolling (同导航栏常驻) */
.header-topbar {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-height: 44px;
}
.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 34px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
  transition: color var(--t-fast) var(--ease);
}
.topbar-item:hover { color: var(--brand); }
.topbar-ico { display: inline-flex; align-items: center; width: 13px; height: 13px; color: var(--brand); flex: 0 0 auto; }
.topbar-ico svg { width: 13px; height: 13px; }
.topbar-k {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar-v { font-weight: 600; }
.topbar-sep { width: 1px; height: 12px; background: var(--line-strong); flex: 0 0 auto; }
.header-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.header-contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.header-contact-ico svg { width: 16px; height: 16px; }
.header-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.header-contact-k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-contact-v {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.lang-switch {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px; font-size: 12.5px; font-weight: 600;
}
.lang-switch a { padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.lang-switch a.active { background: var(--ink-strong); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-strong); border-radius: 2px; transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease); }

/* ---------- 5b. Header refinement (2026-09-30) — editorial premium look ---------- */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 12px 32px rgba(10, 30, 60, 0.07);
}
.logo img { height: 62px; transition: height var(--t-med) var(--ease); }
.site-header.is-scrolled .logo img { height: 52px; }

/* Nav — quiet type, hairline active marker (no jump on hover) */
.nav { gap: 0; }
.nav > li > a {
  padding: 7px 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav > li > a::after {
  left: 50%; right: auto; bottom: 2px;
  width: 18px; height: 2px; margin-left: -9px;
}
.nav > li > a:hover { color: var(--ink-strong); transform: none; }
.nav > li > a.is-active { font-weight: 600; color: var(--ink-strong); }
.nav > li.has-dropdown > a .caret { width: 11px; height: 11px; color: var(--muted-light); }
.nav > li.has-dropdown:hover > a .caret { color: var(--brand); }

/* Dropdown — floating card: hover bridge + brand tick + softer entrance */
.dropdown {
  top: calc(100% + 14px);
  padding: 12px;
  border-radius: 16px;
  border-color: rgba(203, 213, 225, 0.45);
  box-shadow: 0 24px 64px rgba(10, 30, 60, 0.14), 0 2px 8px rgba(10, 30, 60, 0.05);
  transform: translateY(8px);
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown::after {
  content: ""; position: absolute; top: -1px; left: 24px;
  width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(24, 48, 88, 0));
}
.dropdown a { padding: 10px 14px; font-size: 13.5px; border-radius: 10px; }
.dropdown a:hover { transform: none; }

.nav-col--parents::before {
  content: "Product Categories";
  padding: 2px 14px 8px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-light);
}
.nav-parent { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }

/* Header actions — full-height flush CTA (KLA style) */
.header-actions { gap: 12px; align-self: stretch; }
/* 桌面版 .header-contact 已迁移至顶部联系条 .header-topbar；
   .header-contact-row/-ico/-k/-v 仍被移动端 .header-contact-mobile 复用 */
.header-contact-row { font-size: 12px; }
.header-contact-ico { width: 15px; height: 15px; color: var(--muted-light); }
.header-contact-ico svg { width: 15px; height: 15px; }
.header-contact-k { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted-light); }
.header-contact-v { font-size: 12px; font-weight: 600; color: var(--ink); }
.header-actions .btn--primary {
  /* Get a Quote：填充块与导航栏上下边框留出间隙（随滚动 94↔76px 自适应） */
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  margin: 12px 0;
  padding: 0 30px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: #fff;
  padding: calc(104px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu nav a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--ink-strong); border-bottom: 1px solid var(--line); }
.mobile-menu .sub { padding-left: 12px; }
.mobile-menu .sub a { font-size: 15px; font-weight: 500; color: var(--muted); }
.mobile-menu .cta { margin-top: 24px; }

.header-contact-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 10px;
  border-right: 1px solid var(--line);
  line-height: 1.15;
  min-width: 0;
}
.header-contact-mobile .header-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.header-contact-mobile .header-contact-ico {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.header-contact-mobile .header-contact-ico svg { width: 12px; height: 12px; }
.header-contact-mobile .header-contact-text { flex-direction: row; gap: 5px; align-items: baseline; }
.header-contact-mobile .header-contact-k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-contact-mobile .header-contact-v {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .header-contact-mobile { display: flex; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--ink-strong);
  padding: calc(130px + env(safe-area-inset-top)) 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10, 30, 60, 0.12);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); border-radius: 2px; }

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink-strong);
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--brand); }
.typewriter { display: inline-block; min-width: 15ch; white-space: nowrap; color: var(--brand); }
.typewriter::after { content: ""; display: inline-block; width: 3px; height: 0.85em; margin-left: 5px; vertical-align: -0.08em; background: currentColor; animation: typingCaret 0.85s steps(1) infinite; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes typingCaret { 50% { opacity: 0; } }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 48px;
}
.hero-stat .num { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-stat .num span { color: #6ea4ff; }
.hero-stat .label { font-size: 14px; color: #aebacd; margin-top: 2px; }

/* ---------- 6b. Video hero (film thickness tester) ---------- */
.hero-video {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--ink-strong);
  padding: calc(104px + env(safe-area-inset-top)) 0 64px;
}
.hero-video-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 12px;
}
.hero-video-bg img {
  width: 100%; height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(10, 30, 60, 0.14);
}
.hero-video-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.35) 68%, rgba(255, 255, 255, 0.06) 100%);
}
.hero-video-grid { position: relative; z-index: 1; }
.hero-video-inner { max-width: 640px; }
.hero-video-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px;
  animation: heroVideoFade 0.6s var(--ease) both;
}
.hero-video-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.hero-video-title {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: 26px;
  animation: heroVideoFade 0.9s var(--ease) 0.1s both;
}
.hero-video-title .hero-video-accent { color: var(--brand); }
.hero-video-divider {
  display: block; width: 76px; height: 4px; border-radius: 2px;
  background: var(--brand); margin-bottom: 26px;
  transform-origin: left center;
  animation: heroVideoDraw 0.65s var(--ease) 0.28s both;
}
.hero-video-sub {
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.65; color: var(--muted); max-width: 560px;
  animation: heroVideoFade 0.9s var(--ease) 0.4s both;
}
.hero-video-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 34px;
}
.hv-feature { display: flex; align-items: flex-start; gap: 12px; animation: heroVideoFade 0.7s var(--ease) both; }
.hv-feature:nth-child(1) { animation-delay: 0.5s; }
.hv-feature:nth-child(2) { animation-delay: 0.6s; }
.hv-feature:nth-child(3) { animation-delay: 0.7s; }
.hv-feature:nth-child(4) { animation-delay: 0.8s; }
.hv-ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-ring);
}
.hv-ico svg { width: 20px; height: 20px; }
.hv-text { display: flex; flex-direction: column; gap: 2px; }
.hv-text strong { font-size: 14.5px; font-weight: 700; color: var(--ink-strong); }
.hv-text small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

@keyframes heroVideoFade {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroVideoDraw {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

/* Hero carousel — swipe-driven horizontal track */
.hero-carousel {
  position: relative;
  overflow: hidden;
  /* clear the fixed header (34px topbar + 94px nav) so banner art is never covered */
  margin-top: 128px;
  background: #fff;
  color: var(--ink-strong);
  cursor: grab;
  height: clamp(300px, 41.66vw, 800px);   /* matches the 1920x800 banner ratio exactly — slides display in full, no cropping (viewport ≥720px); below 720px the 300px floor cover-crops the sides */
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.hero-carousel.is-dragging { cursor: grabbing; }

.hero-carousel-track {
  display: flex;
  width: auto;
  height: 100%;                 /* anchor the height:100% chain for slides → images */
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.hero-carousel-track.is-dragging { transition: none; }

/* Phones: keep the exact 1920x800 banner ratio so slides show in full */
@media (max-width: 720px) {
  .hero-carousel { height: 41.66vw; }
}

.hero-carousel-slide {
  flex-shrink: 0;
  position: relative;
  /* flex-basis is set inline by JS to the carousel's pixel width */
}

/* Inside the carousel, suppress the default per-element entry animations and
   hide children of inactive slides. Re-trigger them only on the active slide. */
.hero-carousel .hero-video-eyebrow,
.hero-carousel .hero-video-title,
.hero-carousel .hero-video-divider,
.hero-carousel .hero-video-sub,
.hero-carousel .hero-stats,
.hero-carousel .hv-feature {
  animation: none;
  opacity: 0;
  will-change: opacity, transform;
}
.hero-carousel-slide.is-active .hero-video-eyebrow { animation: heroVideoFade 0.6s var(--ease) both; }
.hero-carousel-slide.is-active .hero-video-title { animation: heroVideoFade 0.9s var(--ease) 0.1s both; }
.hero-carousel-slide.is-active .hero-video-divider { animation: heroVideoDraw 0.65s var(--ease) 0.28s both; }
.hero-carousel-slide.is-active .hero-video-sub { animation: heroVideoFade 0.9s var(--ease) 0.4s both; }
.hero-carousel-slide.is-active .hero-stats { animation: heroVideoFade 0.7s var(--ease) 0.55s both; }
.hero-carousel-slide.is-active .hero-video-features .hv-feature:nth-child(1) { animation: heroVideoFade 0.7s var(--ease) 0.75s both; }
.hero-carousel-slide.is-active .hero-video-features .hv-feature:nth-child(2) { animation: heroVideoFade 0.7s var(--ease) 0.85s both; }
.hero-carousel-slide.is-active .hero-video-features .hv-feature:nth-child(3) { animation: heroVideoFade 0.7s var(--ease) 0.95s both; }
.hero-carousel-slide.is-active .hero-video-features .hv-feature:nth-child(4) { animation: heroVideoFade 0.7s var(--ease) 1.05s both; }

/* Image-only slide (the carousel now hosts single photos per slide instead
   of the earlier text/feature hero). Keeps the carousel height & visual
   treatment (centered image, soft shadow, rounded corners) but strips all
   the text content. */
.hero-carousel-slide.hero-image-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
}
.hero-carousel-slide.hero-image-slide img {
  position: absolute;           /* absolute fill — % heights on flex-cross-axis children are unreliable */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pagination dots */
.hc-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.hc-dot {
  width: 28px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(10, 30, 60, 0.35);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.hc-dot:hover { background: rgba(255, 255, 255, 0.8); }
.hc-dot.is-active {
  background: #fff;
  width: 44px;
}
.hc-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Hero stats row — count-up numbers + labels */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 30, 60, 0.06);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.06);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-stat-num {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .hero-video { min-height: auto; padding-top: calc(96px + env(safe-area-inset-top)); padding-bottom: 56px; }
  .hero-video-bg { padding: 16px 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 16px; }
  .hc-dots { bottom: 14px; }

  /* Image-only carousel: full-bleed cover on every breakpoint —
     the dots float over the photo, no separate lane below. */
  .hero-carousel-slide.hero-image-slide {
    min-height: 0;
    padding: 0;
  }
}
@media (max-width: 480px) {
  .hero-video-features { grid-template-columns: 1fr; }
  .hero-video-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.5) 100%); }
  .hero-stats { padding: 12px 14px; gap: 10px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 10.5px; }

  .hero-carousel-slide.hero-image-slide {
    padding: calc(56px + env(safe-area-inset-top)) 6px 40px;
  }
}

/* ---------- 7. Category / product cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Asymmetric bento layout: one tall card + two stacked horizontal cards ---- */
.bento-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .bento-services { grid-template-columns: 1fr; }
}

/* ---- bento-services: compact overrides for tighter cards ---- */
.bento-services .app-card-heading { gap: 10px; }
.bento-services .icon { width: 38px; height: 38px; border-radius: 10px; font-size: 11.5px; }
.bento-services .app-card-heading .icon { width: 38px; height: 38px; }
.bento-services .app-card h3 { font-size: 16px; line-height: 1.2; }
.bento-services .app-card p { font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.bento-services .app-card .link { font-size: 12.5px; padding: 0 0 2px; margin-top: 4px; }

.bento-services .pillar h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.25; }
.bento-services .pillar p { font-size: 13px; line-height: 1.5; }

/* ---- app-card: tall variant (image on top, content below) — kept for compat ---- */
.app-card--tall {
  display: flex; flex-direction: column; gap: 0;
  padding: 0; overflow: hidden;
}
.app-card--tall .app-card-image {
  aspect-ratio: 16 / 7;
  overflow: hidden; line-height: 0; flex: none;
  border-bottom: 1px solid rgba(10, 30, 60, 0.08);
}
.app-card--tall .app-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.app-card--tall:hover .app-card-image img { transform: scale(1.04); }
.app-card--tall .app-card-body {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px 14px;
}

/* ---- app-card: wide/horizontal variant (image on left, content on right) ---- */
.app-card--wide {
  display: flex; flex-direction: row; align-items: stretch; gap: 0;
  padding: 0; overflow: hidden;
}
.app-card--wide .app-card-image {
  flex: 0 0 44%;
  overflow: hidden; line-height: 0;
  border-right: 1px solid rgba(10, 30, 60, 0.08);
}
.app-card--wide .app-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.app-card--wide:hover .app-card-image img { transform: scale(1.04); }
.app-card--wide .app-card-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 12px 16px 12px; gap: 2px; min-width: 0;
}
@media (max-width: 600px) {
  .app-card--wide { flex-direction: column; }
  .app-card--wide .app-card-image { flex: 0 0 auto; aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid rgba(10, 30, 60, 0.08); }
}

/* ---- pillar: tall variant (image on top, content below) — kept for compat ---- */
.pillar--tall {
  display: flex; flex-direction: column; gap: 0;
  padding: 0; overflow: hidden;
}
.pillar--tall .pillar-image {
  aspect-ratio: 16 / 7; overflow: hidden; line-height: 0; flex: none;
  border-bottom: 1px solid rgba(10, 30, 60, 0.08);
}
.pillar--tall .pillar-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.pillar--tall:hover .pillar-image img { transform: scale(1.04); }
.pillar--tall .pillar-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 18px 24px 20px;
}

/* ---- pillar: wide/horizontal variant ---- */
.pillar--wide {
  display: flex; flex-direction: row; align-items: stretch; gap: 0;
  padding: 0; overflow: hidden;
}
.pillar--wide .pillar-image {
  flex: 0 0 44%; overflow: hidden; line-height: 0;
  border-right: 1px solid rgba(10, 30, 60, 0.08);
}
.pillar--wide .pillar-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.pillar--wide:hover .pillar-image img { transform: scale(1.04); }
.pillar--wide .pillar-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 14px 20px; min-width: 0;
}
@media (max-width: 600px) {
  .pillar--wide { flex-direction: column; }
  .pillar--wide .pillar-image { flex: 0 0 auto; aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid rgba(10, 30, 60, 0.08); }
}

/* ---- bento-services: further tighten on phones ---- */
@media (max-width: 600px) {
  .bento-services { gap: 12px; }
  .bento-services .icon { width: 32px; height: 32px; border-radius: 8px; }
  .bento-services .app-card-heading { gap: 8px; }
  .bento-services .app-card h3 { font-size: 14px; }
  .bento-services .app-card p { font-size: 11.5px; line-height: 1.4; }
  .bento-services .app-card .link { font-size: 11.5px; }

  .bento-services .pillar h3 { font-size: 15px; margin: 0 0 4px; }
  .bento-services .pillar p { font-size: 12px; line-height: 1.45; }

  .app-card--tall .app-card-body { padding: 12px 16px 12px; }
  .app-card--wide .app-card-body { padding: 10px 14px 10px; }
  .pillar--tall .pillar-body { padding: 14px 18px 16px; }
  .pillar--wide .pillar-body { padding: 12px 18px; }
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.category-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.category-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-slow) var(--ease); }
.category-card:hover .thumb img { transform: scale(1.06); }
.category-card .body { padding: 20px 22px; }
.category-card h3 { font-size: 19px; margin-bottom: 6px; }
.category-card p { font-size: 14.5px; color: var(--muted); }
.category-card .go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand);
}
.category-card .go svg { width: 15px; height: 15px; }

/* ---------- 8. Product card (list) ---------- */
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .thumb { aspect-ratio: 6 / 5; overflow: hidden; background: #fff; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-slow) var(--ease); }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag { font-size: 12px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.product-card-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.product-card .body h3 + .product-card-icons,
.product-card .body .model + .product-card-icons { margin-top: -2px; }
.lucide-chip-row { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lucide-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.lucide-chip:hover { transform: translateY(-1px); background: #d9e6f9; }
.lucide-chip svg { width: 16px; height: 16px; display: block; }
.lucide-chip--pending {
  background: var(--bg-softer);
  animation: lucideChipPulse 1.1s ease-in-out infinite;
}
@keyframes lucideChipPulse {
  0%,100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
.product-card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.product-card .model { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.product-card p {
  height: 44px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 22px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---------- 8b. Product category filter tabs ---------- */
/* Blog category filter tabs */
.blog-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  margin: 0 0 32px;
}
.blog-tab {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.blog-tab:hover { color: var(--brand); }
.blog-tab.is-active { background: var(--brand); color: #fff; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.cat-tab {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.cat-tab:hover { border-color: var(--brand); color: var(--brand); }
.cat-tab.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-section { scroll-margin-top: 112px; }
.cat-section-products .cat-section-head--sub { display: none; }

/* ---------- 9. Applications / industries ---------- */
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 22px 28px 16px;
  border-radius: var(--radius);
  background: transparent; border: 1px solid rgba(10, 30, 60, 0.14);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.app-card .icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand);
}
.app-card .icon svg { width: 26px; height: 26px; }
.app-card--image {
  min-height: 0;
  padding-bottom: 0;
  transition-delay: var(--app-delay, 0s);
}
.app-card-content { display: flex; flex-direction: column; }
.app-card-heading { display: flex; align-items: center; gap: 14px; }
.app-card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}
.app-card p {
  max-width: 29ch;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: #354153;
  margin-top: 4px;
}
.app-card .link {
  align-self: flex-end;
  margin-top: 6px;
  padding: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.app-card .link svg { width: 16px; height: 16px; flex: none; }
.app-card-media {
  flex: none;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  line-height: 0;
  margin: 0 -28px -1px;
  border-top: 0px solid rgba(10, 30, 60, 0.1);
}
.app-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-card-media { transform: translateY(10px); opacity: 0.8; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); transition-delay: calc(var(--app-delay, 0s) + 0.14s); }
.app-card.is-visible .app-card-media { transform: none; opacity: 1; }
.app-card:hover .app-card-media img { transform: scale(1.04); transition: transform var(--t-slow) var(--ease); }

/* Application industry intro card (market page) — PNG used as card background */
.market-intro {
  background-color: #fff;
  background-image: linear-gradient(150deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.90) 50%, rgba(255,255,255,0.66) 100%), var(--market-bg, none);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.market-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

/* Solution library: grouped content that can grow with new categories. */
.solution-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px;
  padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  position: sticky; top: 76px; z-index: 50;
  box-shadow: 0 6px 14px -8px rgba(16, 42, 67, .12);
  transition: box-shadow var(--t-med) var(--ease);
}
.site-header:not(.is-scrolled) ~ .page .solution-tabs { top: 94px; }
.solution-tab {
  padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px;
  white-space: nowrap; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.solution-tab:hover, .solution-tab.is-active { color: #fff; background: var(--brand); }
.solution-group { margin-bottom: 64px; scroll-margin-top: 112px; }
.solution-group.is-hidden { display: none; }

/* ---------- 博客卡片（每个 application 显示为一篇文章） ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(16,42,67,.18); border-color: #cdd6e2; }
.blog-card-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef3f9; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-thumb--placeholder { background: linear-gradient(135deg, #E2E8F0, #f1f6fb); position: relative; }
.blog-card-thumb--placeholder::before { content: "📄"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; opacity: .35; }
.blog-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card-tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: #F5EFFC; padding: 4px 10px; border-radius: 999px; }
.blog-card-title { font-size: 19px; line-height: 1.32; color: #1e3448; margin: 0; font-weight: 700; }
.blog-card-summary { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px dashed #e5ebf2; font-size: 12px; color: var(--muted); }
.blog-card-meta time { font-variant-numeric: tabular-nums; }
.blog-card-arrow { font-size: 16px; color: var(--brand); transition: transform var(--t-fast) var(--ease); }
.blog-card:hover .blog-card-arrow { transform: translateX(4px); }
.solution-empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.solution-group > .container > .section-head { margin-bottom: 24px; }
.solution-group > .container > .section-head .section-title { margin-top: 6px; }
.solution-card { margin-bottom: 20px; }
.solution-card .market-intro { height: 100%; }
.solution-card.section--soft { padding: 20px 0; background: var(--bg-soft); }
.solution-empty { padding: 28px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; }

/* ---------- 9c. Honors ---------- */
.section--honors { background: #fff; color: var(--ink); }
.section--honors .section-title { color: var(--ink-strong); }
.section--honors .eyebrow { color: var(--brand); }
.section--honors .eyebrow::before, .section--honors .eyebrow::after { background: var(--brand); }
.honors-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.honor-card {
  min-height: 154px;
  padding: 22px 18px 18px;
  background: #f7faff;
  border: 1px solid #E8ECF1;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.honor-card:hover { transform: translateY(-5px); border-color: var(--brand-ring); box-shadow: var(--shadow); }
.honor-icon { width: 38px; height: 38px; margin-bottom: 14px; padding: 8px; border-radius: 10px; background: var(--brand-soft); }
.honor-icon img { width: 100%; height: 100%; object-fit: contain; }
.honor-card h3 { font-size: 16px; line-height: 1.35; }
.honors-carousel { position: relative; margin: 32px auto 0; aspect-ratio: 1920 / 900; overflow: hidden; border: 1px solid #E8ECF1; border-radius: var(--radius); background: #101828; box-shadow: var(--shadow); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.honors-slides { display: flex; height: 100%; will-change: transform; transition: transform 0.55s var(--ease); cursor: grab; }
.honors-slides.is-dragging { cursor: grabbing; }
.honors-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; transform: scale(1.025); transition: transform 5.2s linear; -webkit-user-drag: none; }
.honors-slide.is-active { transform: scale(1); }
.honors-control { display: none; }
.honors-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.honors-dot { width: 8px; height: 8px; border-radius: 50%; background: #b7c6d8; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.honors-dot.is-active { background: var(--brand); transform: scale(1.35); }


/* ---------- 9b. Partners — KLA-style split card (intro 1/3 + logo grid 2/3) ---------- */
.partners-band { padding: 40px 0 48px; background: var(--bg-soft); }
/* 卡片横向向两侧延展：与顶部导航同宽的加宽容器 */
.partners-band .container { max-width: 1520px; }
.partner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  /* 与分区背景融合：无卡片底色、无阴影，仅靠内部留白与分隔线组织版式 */
  background: transparent;
  box-shadow: none;
  padding: 44px 0;
}
.partner-intro { display: flex; flex-direction: column; align-items: flex-start; }
.partner-intro-title {
  margin: 0 0 12px;
  font-size: 24px; font-weight: 800; letter-spacing: 0.01em;
  color: var(--brand);
}
.partner-intro p {
  margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.75;
  color: var(--ink-soft);
}
.partner-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto;
  font-size: 14px; font-weight: 700;
  color: var(--brand);
  transition: color var(--t-fast) var(--ease);
}
.partner-more svg { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.partner-more:hover { color: var(--brand-dark); }
.partner-more:hover svg { transform: translateX(3px); }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 20px 28px;
  border-left: 1px solid var(--line);
  padding-left: 48px;
}
.partner-logo {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 8px 12px;
  transition: transform var(--t-fast) var(--ease);
}
.partner-logo:hover { transform: translateY(-2px); }
.partner-logo img { width: 100%; max-width: 170px; height: 58px; object-fit: contain; }
.partner-logo:nth-child(n + 6) { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- 10. Feature pillars ("Why different") ---------- */
.pillar {
  padding: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .idx { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.1em; }
.pillar h3 { font-size: 21px; margin: 14px 0 10px; }
.pillar p { font-size: 15px; color: var(--muted); }

/* ---------- 10b. Service process flow ---------- */
.process-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1120px; margin: 0 auto; }
.process-step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 18px; transition-delay: var(--process-delay, 0s); }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px; left: calc(50% + 29px); right: calc(50% + 29px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0 0, #E8ECF1 0);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.8s var(--ease);
}
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 24px; right: calc(50% + 20px);
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #E8ECF1;
  transition: border-left-color 0.5s var(--ease);
  transition-delay: var(--process-delay, 0s);
}
.process-step.is-visible:not(:last-child)::after { background-size: 100% 100%; }
.process-step.is-visible:not(:last-child)::before { border-left-color: var(--brand); }
.process-node {
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 0 0 7px var(--brand-soft);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.process-step.is-visible .process-node { animation: processNodeIn 0.7s var(--ease) both; }
.process-step:hover .process-node { background: var(--brand); color: #fff; transform: scale(1.08); }
.process-copy { padding: 24px 0 0; text-align: center; }
.process-copy h3 { font-size: 19px; margin-bottom: 8px; }
.process-copy p { max-width: 220px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@keyframes processNodeIn { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: scale(1); } }

/* ---------- 12. Testimonials ---------- */
.testimonial {
  max-width: 780px;
}
.testimonial blockquote {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.testimonial .who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.testimonial .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 18px;
}
.testimonial .name { font-weight: 700; font-size: 16px; color: var(--ink-strong); }
.testimonial .role { font-size: 14px; color: var(--muted); }

/* ---------- 13. News cards ---------- */
.news-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.news-card:hover { transform: translateY(-6px); border-color: var(--brand-ring); box-shadow: var(--shadow-lg); }
.news-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.news-card .meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted-light); margin-bottom: 8px; }
.news-card .cat { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.news-card h3 { color: var(--ink-strong); font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.news-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.news-card .link { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.news-card .link svg { width: 16px; height: 16px; flex: none; }
.section--news { padding: 64px 0; background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.section--news .section-title { color: var(--ink-strong); }
.section--news .section-sub { color: var(--muted); }
.section--news .eyebrow { color: var(--brand); }
.section--news .eyebrow::before, .section--news .eyebrow::after { background: var(--brand); }

/* ---------- 14. Contact / CTA ---------- */
.section--contact { padding: 64px 0; background: #f6f9fc; color: var(--ink); border-top: 1px solid var(--line); }
.section--contact .section-title { color: var(--ink-strong); }
.section--contact .eyebrow { color: var(--brand); }
.section--contact .eyebrow::before, .section--contact .eyebrow::after { background: var(--brand); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; transition: transform var(--t-fast) var(--ease); }
a.contact-item:hover { transform: translateX(2px); }
a.contact-item:hover .ico { background: var(--brand); color: #fff; border-color: var(--brand); }
.contact-item .ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-ring); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item .v { font-size: 16px; font-weight: 600; color: var(--ink-strong); }
.contact-intro { margin-top: 12px; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-light); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.field textarea { resize: vertical; min-height: 96px; }

/* ---------- 15. Footer ---------- */
/* Light footer: white base + world-network tech background, dark text.
   ::before adds a frosted white veil (gradient + backdrop blur) so the
   map artwork stays subtle and dark text remains readable. */
.site-footer {
  position: relative;
  background: #f2f5f7 url("../images/company/footer-world.jpg") center / cover no-repeat;
  color: #4a5a6e;
  padding: 72px 0 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Lighter veil (map shows through) + soft fade on left/right edges */
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.80) 0%, rgba(247, 250, 252, 0) 17%, rgba(247, 250, 252, 0) 83%, rgba(247, 250, 252, 0.80) 100%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.28) 0%, rgba(247, 250, 252, 0.52) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 2.4fr 1fr 1.6fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; max-width: 300px; }
.footer-col h4 { color: #0f1f33; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: #4a5a6e; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--brand); }

/* Footer Products · 单列一级分类列表（已按要求去掉二级标签与括号连线） */
.footer-products {
  position: relative;
  padding-top: 0;
}
.footer-products-title {
  color: #0f1f33;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 10px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.footer-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.footer-products-parents {
  display: flex;
  flex-direction: column;
}
.footer-products-parent {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #16283e;
  line-height: 1.35;
  position: relative;
}
.footer-products-parent:hover { color: var(--brand); }
/* Copyright band: full-bleed dark strip across the page (outside .container) */
.footer-bottom-band {
  position: relative;
  z-index: 1;
  background: #0F172A;
  color: #fff;
}
.footer-bottom {
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: 13.5px;
}
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.78); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 16. Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(190px + env(safe-area-inset-top)) 0 80px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(0,124,198,0.35), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.page-hero p { color: #c3cede; font-size: 18px; max-width: 640px; }
/* Breadcrumbs sit on light page headers site-wide — keep them readable:
   muted slate base, brand-navy hover (white hover was invisible on white). */
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { color: #94a3b8; }

.page-hero--market,
.page-hero--blog,
.page-hero--service,
.page-hero--solutions,
.page-hero--knowledge {
  padding: calc(150px + env(safe-area-inset-top)) 0 52px;   /* 128px fixed header + 22px breathing room — keeps breadcrumbs clear of the nav */
  background: #fff;
  color: var(--ink-strong);
}
.page-hero--market + .section,
.page-hero--blog + .section,
.page-hero--service + .section,
.page-hero--solutions + .section,
.page-hero--knowledge + .section { padding-top: 52px; }
.page-hero--market::after,
.page-hero--blog::after,
.page-hero--service::after,
.page-hero--solutions::after,
.page-hero--knowledge::after {
  display: block;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero--market::after,
.page-hero--solutions::after { background-image: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.52) 62%, rgba(255,255,255,0.08) 86%, rgba(255,255,255,0) 100%), url("../images/hero_background/market-hero.jpg"); }
.page-hero--blog::after { background-image: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.52) 62%, rgba(255,255,255,0.08) 86%, rgba(255,255,255,0) 100%), url("../images/hero_background/newsroom-hero.webp"); }
.page-hero--service::after { background-image: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.52) 62%, rgba(255,255,255,0.08) 86%, rgba(255,255,255,0) 100%), url("../images/hero_background/service-hero-v2.webp"); }
.page-hero--knowledge::after { background-image: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.52) 62%, rgba(255,255,255,0.08) 86%, rgba(255,255,255,0) 100%), url("../images/hero_background/knowledge-hero.jpg"); }
.page-hero--market h1,
.page-hero--blog h1,
.page-hero--service h1,
.page-hero--solutions h1,
.page-hero--knowledge h1 { color: var(--ink-strong); }
.page-hero--market p,
.page-hero--blog p,
.page-hero--service p,
.page-hero--solutions p,
.page-hero--knowledge p { color: var(--muted); }
.page-hero--market .breadcrumbs,
.page-hero--blog .breadcrumbs,
.page-hero--service .breadcrumbs,
.page-hero--solutions .breadcrumbs,
.page-hero--knowledge .breadcrumbs { color: var(--muted); }
.page-hero--market .breadcrumbs a,
.page-hero--blog .breadcrumbs a,
.page-hero--service .breadcrumbs a,
.page-hero--solutions .breadcrumbs a,
.page-hero--knowledge .breadcrumbs a { color: var(--ink); }
.page-hero--market .breadcrumbs a:hover,
.page-hero--blog .breadcrumbs a:hover,
.page-hero--service .breadcrumbs a:hover,
.page-hero--solutions .breadcrumbs a:hover,
.page-hero--knowledge .breadcrumbs a:hover { color: var(--brand); }
.page-hero--market .breadcrumbs .sep,
.page-hero--blog .breadcrumbs .sep,
.page-hero--service .breadcrumbs .sep,
.page-hero--solutions .breadcrumbs .sep,
.page-hero--knowledge .breadcrumbs .sep { color: var(--line-strong); }

.service-manufacturing {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.service-manufacturing .section-head { margin-bottom: 32px; }
.service-manufacturing .pillar {
  position: relative;
  overflow: hidden;
  background: #f8fbff;
  border-color: #E8ECF1;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.service-manufacturing .pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.service-manufacturing .pillar:hover { transform: translateY(-6px); border-color: var(--brand-ring); box-shadow: var(--shadow-lg); }
.service-manufacturing .pillar:hover::before { transform: scaleX(1); }
.service-manufacturing .pillar h3 { color: var(--ink-strong); }
.service-manufacturing .pillar p { color: var(--muted); }

@media (max-width: 600px) {
  .page-hero--market,
  .page-hero--blog,
  .page-hero--service,
  .page-hero--knowledge { padding: calc(92px + env(safe-area-inset-top)) 0 36px; }
  .page-hero--market + .section,
  .page-hero--blog + .section,
  .page-hero--service + .section,
  .page-hero--knowledge + .section { padding-top: 40px; }
  .page-hero--market::after { background-image: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.42) 82%, rgba(255,255,255,0) 100%), url("../images/hero_background/market-hero.jpg"); }
  .page-hero--blog::after { background-image: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.42) 82%, rgba(255,255,255,0) 100%), url("../images/hero_background/News.jpg"); }
  .page-hero--service::after { background-image: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.42) 82%, rgba(255,255,255,0) 100%), url("../images/hero_background/service-hero.jpg"); }
  .page-hero--knowledge::after { background-image: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.42) 82%, rgba(255,255,255,0) 100%), url("../images/hero_background/knowledge-hero.jpg"); }
}

/* Company page hero — white base with banner image */
.page-hero--company {
  background: var(--white);
  color: var(--ink-strong);
}
.page-hero--company::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 36%, rgba(255, 255, 255, 0.42) 66%, rgba(255, 255, 255, 0.06) 100%),
    url("../images/company/company-lab.jpg") center / cover no-repeat;
}
.page-hero--company h1 { color: var(--ink-strong); }
.page-hero--company p { color: var(--muted); }
.page-hero--company .breadcrumbs { color: var(--muted-light); }
.page-hero--company .breadcrumbs a { color: var(--ink); }
.page-hero--company .breadcrumbs a:hover { color: var(--brand); }
.page-hero--company .breadcrumbs .sep { color: var(--line-strong); }

/* Products page hero — whole lab photo, contained (never zoomed/cropped) */
.page-hero--products {
  background: var(--white);
  color: var(--ink-strong);
  padding: calc(150px + env(safe-area-inset-top)) 0 0;
  /* Full-bleed background WITHOUT zoom: the hero height always follows the
     pre-cropped photo's aspect (1920x645 = 2.977), so cover fits the photo
     EXACTLY at every screen width — scale never exceeds 100% below 1920px
     viewports and the products are never cropped. (No max-cap here on
     purpose: capping the height is what forced the zoom on wide screens.) */
  min-height: calc(100vw / 2.977);
  overflow: visible;
}
.page-hero--products::after {
  /* Full-bleed photo + a white wash fading out to the right so the headline
     block stays readable over the bench. Overrides the navy radial glow of
     the base .page-hero::after (inset back to 0). */
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.74) 32%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0) 100%),
    url("../images/hero/product-bg1.webp") center bottom / cover no-repeat;
}
.pt-subnav { position: relative; z-index: 1; }   /* keep tabs above the hero art */
.page-hero--products h1 { color: var(--ink-strong); }
.page-hero--products p { color: var(--muted); }
.page-hero--products .breadcrumbs { color: var(--muted-light); }
.page-hero--products .breadcrumbs a { color: var(--ink); }
.page-hero--products .breadcrumbs a:hover { color: var(--brand); }
.page-hero--products .breadcrumbs .sep { color: var(--line-strong); }

/* Products catalog — tighter spacing below the hero */
.section--catalog { padding-top: 40px; }

/* ---------- 18. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .typewriter::after { display: none; }
  .app-card-media { opacity: 1; transform: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 64px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-contact { display: none; }
}

@media (max-width: 1359px) {
  .nav > li > a { padding: 7px 7px; font-size: 12.5px; }
  .header-inner { gap: 14px; }
  .logo-word-name { font-size: 16px; }
  .site-header.is-scrolled .logo-word-name { font-size: 14px; }
  .logo-word-tag { display: none; }
}

/* 缩放自适应（浏览器放大 = 逻辑视口变窄）：
   分级收缩导航与字标，保证 logo 区（图形 + GUOYI PHOTONICS 艺术字）完整展示 */
@media (max-width: 1280px) {
  .nav > li > a { padding: 7px 6px; font-size: 12px; }
  .header-inner { gap: 12px; }
  .logo img { height: 56px; }
  .logo-word-name { font-size: 15.5px; }
  .site-header.is-scrolled .logo-word-name { font-size: 13.5px; }
  .header-actions .btn--primary { padding: 0 22px; font-size: 12.5px; }
}
@media (max-width: 1140px) {
  .nav > li > a { padding: 7px 5px; font-size: 11.5px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .logo { gap: 9px; }
  .logo img { height: 52px; }
  .logo-word-name { font-size: 14.5px; }
  .header-actions .btn--primary { padding: 0 16px; font-size: 12px; letter-spacing: 0.01em; }
}
@media (max-width: 768px) {
  :root { --section-pad: 48px; --gutter: 20px; }
  .header-topbar { display: none; }
  .logo-word { display: none; }
  body { font-size: 16px; }
  .nav, .header-actions .lang-switch { display: none; }
  .header-actions .btn--primary { display: none; }
  .nav-toggle { display: flex; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; gap: 24px; }
  .process-step { min-height: 82px; padding: 0; }
  .process-step:not(:last-child)::after {
    top: 58px; left: 28px; right: auto;
    width: 2px; height: calc(100% - 34px);
    background: linear-gradient(180deg, var(--brand) 0 0, #E8ECF1 0);
    background-size: 100% 0%;
  }
  .process-step:not(:last-child)::before {
    top: auto; bottom: -2px; left: 22px; right: auto;
    border-top: 8px solid #E8ECF1;
    border-right: 6px solid transparent;
    border-bottom: 0;
    border-left: 6px solid transparent;
  }
  .process-step.is-visible:not(:last-child)::before { border-top-color: var(--brand); border-left-color: transparent; }
  .process-step.is-visible:not(:last-child)::after { background-size: 100% 100%; }
  .process-copy { padding: 14px 0 0 78px; }
  .hero { min-height: 68vh; padding-top: calc(88px + env(safe-area-inset-top)); padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media img { max-height: 320px; }
  .hero-stats { gap: 24px; }
  .section--news { padding: 40px 0; }
  .section--contact { padding: 48px 0; }
  .honors-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .honors-grid::-webkit-scrollbar { display: none; }
  .honor-card { flex: 0 0 190px; }
  .partners-band { padding: 20px 0 26px; }
  .partner-card { grid-template-columns: 1fr; gap: 22px; padding: 24px 0; }
  .partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }
  .partner-logo { min-height: 56px; padding: 6px 8px; }
  .partner-logo img { height: 44px; }
  .partner-logo:nth-child(n + 5) { border-top: 1px solid var(--line); padding-top: 10px; }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-title { font-size: 28px; }
  .page-hero--company::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.55) 100%),
      url("../images/company/company-banner.jpg") center / cover no-repeat;
  }
}

/* ==========================================================================
   Dedicated article page (article.html) — Western editorial layout
   Kicker → headline → deck → byline → cover figure → 700px body column.
   ========================================================================== */

.article-hero {
  /* 150px = 128px fixed header + 22px breathing room — keeps the breadcrumbs
     clear of the nav (120px put them underneath it). */
  padding: calc(150px + env(safe-area-inset-top)) 0 36px;
  background: #fff;
}
.article-hero .breadcrumbs { margin-bottom: 36px; }

/* Header block shares the body's 720px column — left-aligned, magazine style */
.article-head {
  max-width: 720px;
  margin: 0 auto 36px;
}
.article-kicker {
  display: inline-block;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.article-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--ink-strong);
  text-wrap: balance;
}
/* Deck / standfirst — the summary line under the headline */
.article-deck {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px;
  text-wrap: pretty;
}
/* Byline row: publication avatar · author · date · reading time */
.article-byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.article-byline .byline-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}
.article-byline .byline-author { color: var(--ink-strong); font-weight: 600; }
.article-byline .dot { color: var(--muted-light); }
.article-byline time { font-variant-numeric: tabular-nums; }

.article-cover {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-softer);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.article-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.article-section { padding: 44px 0 24px; background: #fff; }
.article-body {
  font-size: 17px; line-height: 1.75; color: var(--ink);
  max-width: 700px; margin: 0 auto;
  overflow-wrap: break-word;
}
/* Lead paragraph — slightly larger opener, classic magazine opener */
.article-body > p:first-child { font-size: 19px; line-height: 1.65; color: var(--ink-soft); }
.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child  { margin-bottom: 0; }
.article-body h2 { font-size: 26px; line-height: 1.25; margin: 2.1em 0 0.65em; color: var(--ink-strong); font-weight: 700; letter-spacing: -0.018em; scroll-margin-top: 110px; overflow-wrap: break-word; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 19.5px; line-height: 1.3; margin: 1.7em 0 0.55em; color: var(--ink-strong); font-weight: 700; letter-spacing: -0.01em; scroll-margin-top: 110px; }
.article-body h4 { font-size: 17.5px; margin: 1.5em 0 0.5em; color: var(--ink-strong); font-weight: 700; }
.article-body p { margin: 0 0 1.25em; text-wrap: pretty; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.5em; color: var(--ink); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.45em; line-height: 1.7; }
.article-body li > ul, .article-body li > ol { margin: 0.45em 0 0.15em; }
.article-body li::marker { color: var(--brand); }
.article-body strong { color: var(--ink-strong); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article-body figure { margin: 1.9em 0; }
.article-body figure img { margin: 0; }
/* AI-generated / pasted data tables inside article bodies (knowledge,
   articles, solutions). Styled like a clean spec sheet. */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: table;
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.55;
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:first-child td {
  background: #eaf1f9;
  color: var(--ink-strong);
  font-weight: 600;
  border-bottom: 1px solid #d5e2ef;
}
.article-body th {
  padding: 10px 14px;
  background: #eaf1f9;
  color: var(--ink-strong);
  font-weight: 600;
  border-bottom: 1px solid #d5e2ef;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
}
.article-body tr:nth-child(even) td { background: var(--bg-softer); }
.article-body td strong { color: var(--ink-strong); }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--ink-strong); }
.article-body pre {
  margin: 0 0 22px; padding: 16px 20px;
  background: #16283a; color: #eaf4fb;
  border-radius: 10px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.65;
}
/* Rich-text inserted media (admin editor uploads): never overflow the column */
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body video { max-width: 100%; width: 100%; height: auto; border-radius: 8px; background: #000; margin: 0 0 22px; }
@media (max-width: 640px) {
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}
.article-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--brand);
  font-style: italic; color: var(--ink-soft);
  font-size: 17.5px; line-height: 1.65;
}
.article-body blockquote p { margin: 0 0 0.6em; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figcaption {
  margin-top: 10px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--muted);
}
.article-body .callout {
  margin: 26px 0; padding: 18px 22px;
  background: #fff8e6; border: 1px solid #f5d77a; border-radius: 12px;
  color: #5a4400; font-size: 15px; line-height: 1.7;
}
.article-body .callout strong { color: #5a4400; }

.article-back {
  background: #fff;
  padding-top: 24px;
  padding-bottom: 56px;
  text-align: center;
}

.section--related { padding-top: 64px; padding-bottom: 80px; }

/* ==========================================================================
   Knowledge page (knowledge.html?id=N)
   Re-uses article-hero / article-cover / article-body primitives; adds a
   2-column layout (body + linked-product sidebar) and the PDF action row.
   ========================================================================== */

.knowledge-hero {
  padding: calc(148px + env(safe-area-inset-top)) 0 16px;
  background: #fff;
}
.knowledge-hero .breadcrumbs { margin-bottom: 22px; }
.knowledge-cover {
  max-width: 880px;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.knowledge-cover img { width: 100%; height: auto; display: block; }

.knowledge-meta-strip {
  max-width: 880px;
  margin: 0 auto 16px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.knowledge-meta-strip .dot { color: var(--muted-light); }
.knowledge-cat {
  display: inline-flex; align-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}

.knowledge-title {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink-strong);
  text-wrap: balance;
}
.knowledge-summary {
  max-width: 880px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.knowledge-actions {
  max-width: 880px;
  margin: 26px auto 0;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.knowledge-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.knowledge-pdf:hover { background: var(--brand-strong); transform: translateY(-1px); }
.knowledge-pdf svg { flex: none; }

/* Two-column layout: article body + linked-product sidebar. On narrow
   screens the sidebar drops below the body. */
.knowledge-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.knowledge-body { max-width: none; margin: 0; }
/* 正文统一欧美 block 段落风：段落不缩进，以段间距分隔（2026-09-29 移除
   早前的中文 2em 首行缩进规则，与 .article-body 及全站编辑风保持一致）。 */

.knowledge-product-card {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.knowledge-product-card .thumb {
  aspect-ratio: 16 / 10;
  background: #fff;
  overflow: hidden;
}
.knowledge-product-card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.knowledge-product-card .body { padding: 18px 18px 20px; }
.knowledge-product-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}
.knowledge-product-card h3 { font-size: 17px; font-weight: 700; color: var(--ink-strong); margin: 0 0 6px; line-height: 1.3; }
.knowledge-product-card .model { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.knowledge-product-card p { font-size: 14px; color: var(--ink); margin: 0 0 14px; line-height: 1.6; }
.knowledge-product-card .product-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.knowledge-product-card .product-card-actions > .cart-ctrl { flex: 1.4 1 0; min-width: 0; }
.knowledge-product-card .product-card-actions > .btn { flex: .9 1 0; min-width: 0; }
.knowledge-product-card .product-card-actions .btn { flex: 1 1 auto; padding: 9px 14px; font-size: 13.5px; }
.knowledge-product-card .product-card-actions > .cart-ctrl { flex: 1.4 1 0; min-width: 0; }
.knowledge-product-card .product-card-actions > .btn { flex: .9 1 0; min-width: 0; }

/* YouTube video card mounted from the admin console — sits directly under
   the "Add to Quote / View product page" actions (or as a standalone card
   when the knowledge article has no linked product). Styled after
   YouTube's own video card: 16:9 thumbnail, red play badge, title caption. */
.knowledge-youtube-card {
  display: block;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-softer);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.knowledge-youtube-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 0, 0, 0.35);
}
.knowledge-youtube-card .yt-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.knowledge-youtube-card .yt-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--t-fast) var(--ease);
}
.knowledge-youtube-card:hover .yt-thumb img { transform: scale(1.04); }
/* Broken thumbnail (e.g. no network): fall back to a dark placeholder. */
.knowledge-youtube-card.yt-broken .yt-thumb img { display: none; }
.knowledge-youtube-card .yt-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.knowledge-youtube-card .yt-play svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform var(--t-fast) var(--ease);
}
.knowledge-youtube-card:hover .yt-play svg { transform: scale(1.1); }
.knowledge-youtube-card .yt-caption {
  display: block;
  padding: 10px 12px 12px;
}
.knowledge-youtube-card .yt-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-strong);
}
.knowledge-youtube-card .yt-source {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f00;
}
/* Standalone card (article without linked product): normalise padding. */
.knowledge-youtube-only .body { padding: 14px 14px 4px; }
.knowledge-youtube-only .knowledge-youtube-card { margin-top: 0; }

/* Knowledge card on the catalog listing — looks like an article card with
   a brand-coloured PDF download pill. */
.product-card--knowledge {
  display: flex; flex-direction: column;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  text-decoration: none;
  color: inherit;
}
.product-card--knowledge:active { transform: translateY(-2px); }
.product-card--knowledge .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.product-card--knowledge .read-more svg { width: 16px; height: 16px; flex: none; transition: transform var(--t-fast) var(--ease); }
.product-card--knowledge:hover .read-more svg { transform: translateX(3px); }

.product-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 14px;
}
.knowledge-pdf-pill {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.knowledge-pdf-pill:hover { background: #d6e6f7; border-color: var(--brand-ring); }

@media (max-width: 900px) {
  .knowledge-layout { grid-template-columns: 1fr; gap: 36px; }
  .knowledge-product-card { position: static; }
}

/* Sub-category header inside a parent section. Slightly tighter than the
   parent header so the visual hierarchy reads correctly. */
.cat-section-head--sub { padding: 12px 0 14px; }
.cat-section-head--sub .cat-section-thumb { width: 56px; height: 56px; }
.cat-section-head--sub .cat-section-title { font-size: 18px; }
.cat-section-head--sub .cat-section-desc { font-size: 13.5px; }
.cat-section-empty { color: var(--muted-light); font-size: 14px; padding: 8px 0 12px; }

/* Sub-category filter chip row — matches the parent category tabs. */
.sub-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.sub-filter-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.sub-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.sub-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 48, 88, 0.18);
}
.sub-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.sub-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(13, 36, 56, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.sub-chip.is-active .sub-chip-count {
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 768px) {
  .sub-filter { margin: 0 0 12px; gap: 6px; }
  .sub-chip { padding: 7px 12px; font-size: 11.5px; }
  .sub-chip-count { min-width: 20px; height: 18px; font-size: 11px; }
}

/* Article card on blog list — looks like a clickable card */
.product-card--article {
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.product-card--article:active { transform: translateY(-2px); }
.product-card--article .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.product-card--article .read-more svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform var(--t-fast) var(--ease);
}
.product-card--article:hover .read-more svg { transform: translateX(3px); }

/* ==========================================================================
   Footer "Follow Us" social links + dock menu separator
   ========================================================================== */

.footer-col:has(> .footer-social) { text-align: center; }

/* Footer 内嵌子分组：例如 Contact 列下方的 Follow Us */
.footer-col-sub {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 40, 62, 0.12);
}
.footer-col-sub .footer-col-sub-h {
  color: #0f1f33;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* 子分组内的社交链接保持左对齐（不被 .footer-col:has(.footer-social) 的居中规则影响） */
.footer-col-sub .footer-social { display: flex; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  color: #4a5a6e;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer-social:hover { color: var(--brand); transform: translateX(2px); }
.footer-social .social-ic {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease);
}
.footer-social:hover .social-ic { opacity: 1; }

.dock-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* ---------- Solution detail page (blog/article 详情页) ---------- */
/* ==========================================================================
   Solution detail page (solution.html) — shares the article editorial
   primitives (.article-hero/.article-head/.article-body). Layout: centered
   700px body column, optional sticky "On this page" TOC rail.
   ========================================================================== */

.solution-hero {
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
  /* Top cover was removed — tighten the hero→body seam (was ~116px of
     stacked margins/paddings that made hero and body look like two pages). */
  padding-bottom: 16px;
}
.solution-hero .article-head { margin-bottom: 4px; }
.solution-hero + .article-section { padding-top: 22px; }
.solution-hero .container { max-width: 880px; }
/* Guide layout spans the full container — hero (breadcrumbs, headline, deck,
   cover) widens to match the body column so the page has one aligned width. */
.solution-hero--wide .container { max-width: var(--container); }
.solution-hero--wide .article-head { max-width: none; }
.solution-hero--wide .solution-cover { max-width: none; }
.solution-cover {
  max-width: 880px;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 460px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 22px 60px -28px rgba(16, 42, 67, .35);
  margin: 0 auto;
  background: #eef3f9;
}
.solution-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body + optional TOC rail, centered as a group */
.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px);
  justify-content: center;
  gap: 56px;
  align-items: start;
  padding: 8px 0 24px;
}
.solution-layout--toc {
  grid-template-columns: minmax(0, 700px) 240px;
}
.solution-layout--plain {
  grid-template-columns: minmax(0, 700px);
}

/* Sticky "On this page" rail — active section highlighted while scrolling */
.solution-toc {
  position: sticky;
  top: 120px;
  font-size: 13.5px;
}
.solution-toc-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.solution-toc-link {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.45;
  transition: color .15s, border-color .15s;
}
.solution-toc-link:hover { color: var(--ink-strong); border-left-color: var(--muted); }
.solution-toc-link.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

/* Guide layout (Selection & Procurement Guides / Application Cases with a
   layout payload): wider sticky rail that also carries the specs card and
   the commercial CTA widgets. */
.solution-layout--guide { grid-template-columns: minmax(0, 1fr) 300px; }
.solution-specs-card {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 10px;
  box-shadow: 0 10px 26px -20px rgba(16, 42, 67, .25);
}
.solution-specs-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-rows { margin: 0; }
.spec-row { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spec-row dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.solution-cta-card { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.solution-cta-btn { text-align: center; }
.article-deck--sub { color: var(--muted); font-style: italic; }

/* Solution body: unified editorial typography from .article-body; only the
   solution-specific flourishes live here. */
.solution-body img {
  border-radius: 12px;
  box-shadow: 0 12px 30px -16px rgba(16, 42, 67, .18);
}
.solution-body code {
  background: #f1f4f8; padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: .92em;
}
.solution-body pre {
  background: #0f2438; color: #e9eef5; padding: 18px 22px;
  border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.55;
}
.solution-body pre code { background: transparent; padding: 0; color: inherit; }

/* ---------- Delivery & after-sales (service page) ----------
   Merged "lead times by Incoterm" card + shipping/warranty pillars +
   trade-terms contact strip. */
.delivery-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.delivery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}
.delivery-head h3 { font-size: 20px; }
.delivery-note { font-size: 14px; color: var(--muted); }
.delivery-terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.delivery-term {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #f7faff;
  border: 1px solid #E8ECF1;
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.delivery-term:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.term-code {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-ring);
  border-radius: 999px;
}
.delivery-term h4 { margin: 12px 0 4px; font-size: 16px; }
.delivery-term .term-desc {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.term-eta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.term-unit { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.delivery-grid { margin-top: 24px; }
.delivery-grid .pillar { display: flex; flex-direction: column; }
.delivery-grid .pillar-list { margin-top: 4px; }

.delivery-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
  padding: 22px 26px;
  background: #f7faff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
}
.delivery-contact p {
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
}
.delivery-contact a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.delivery-contact a:hover { color: var(--brand-dark); }
.delivery-links { display: flex; flex-wrap: wrap; gap: 12px; }
.delivery-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.delivery-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.delivery-links svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 900px) {
  .delivery-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .delivery-card { padding: 20px; }
  /* Keep two columns on mobile — tighten cards to reduce height */
  .delivery-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .delivery-term { padding: 12px 10px; }
  .term-code { padding: 2px 8px; font-size: 11px; }
  .delivery-term h4 { margin: 8px 0 2px; font-size: 13.5px; line-height: 1.25; }
  .delivery-term .term-desc { font-size: 12px; line-height: 1.4; }
  .term-eta { margin-top: 8px; font-size: 18px; gap: 6px; }
  .term-unit { font-size: 11px; }
  .delivery-contact { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Company page v2 — profile split / navy stats band / value icons /
   pillars / customers / contact CTA (appended; overrides where needed)
   ========================================================================== */

/* Hero CTA buttons */
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Profile: text left / facility image right */
.profile-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
.profile-title { margin-top: 4px; }
.profile-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}
.profile-figure img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4;
  transition: transform var(--t-slow) var(--ease);
}
.profile-figure:hover img { transform: scale(1.03); }
/* Shared value icon chip (concept / pillars / customers) */
.value-icon {
  width: 46px; height: 46px;
  padding: 11px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.value-icon svg { width: 100%; height: 100%; }

/* Pillars — why choose us (image cards, 3-col with 3+2 flow) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); border-color: var(--brand-ring); box-shadow: var(--shadow-lg); }
.pillar-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.pillar-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.pillar-card:hover .pillar-media img { transform: scale(1.05); }
.pillar-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.pillar-body h3 { font-size: 18px; margin-bottom: 8px; }
.pillar-body p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* Responsive */
@media (max-width: 1024px) {
  .profile-split { gap: 32px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .profile-split { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar-media { aspect-ratio: 16 / 9; }
  .pillar-body { padding: 18px 18px 22px; }
}

/* ---------- Index bento pillars (R&D featured 2x2 + four hover cards) ---- */
/* 4-col x 2-row grid: the featured card fills a 2x2 block, the four small
   cards auto-flow into the remaining four cells — no gaps, one screen. */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 12px;
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--brand-ring); box-shadow: var(--shadow-lg); }
.bento-card--main { grid-column: span 2; grid-row: span 2; }
.bento-media { flex: 1; min-height: 0; overflow: hidden; background: var(--bg-soft); }
.bento-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.bento-card:hover .bento-media img { transform: scale(1.04); }
.bento-main-body { padding: 16px 20px 18px; }
.bento-main-body h3 { font-size: 18px; margin-bottom: 6px; }
.bento-main-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.bento-small-title {
  padding: 10px 14px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
}
/* Hover overlay on small cards: full description slides up from below */
.bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(103%);
  transition: transform var(--t-med) var(--ease);
}
.bento-overlay h3 { font-size: 15px; margin-bottom: 6px; }
.bento-overlay p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-card--small:hover .bento-overlay,
.bento-card--small:focus-within .bento-overlay { transform: translateY(0); }
@media (max-width: 1024px) {
  .bento-grid { grid-auto-rows: 150px; }
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .bento-card--main { grid-column: span 2; }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card--main { grid-column: auto; grid-row: auto; }
  .bento-media { min-height: 160px; flex: none; }
  .bento-overlay { position: static; transform: none; padding-top: 0; background: transparent; }
  /* Overlay becomes the permanent (static) body on mobile — hide the small
     title or every card shows its heading twice ("content repeated"). */
  .bento-card--small .bento-small-title { display: none; }
}

/* ---------- 24. Featured — KLA "Advance" editorial card (home) ----------
   White mega-card on the aurora band: brand mark + gradient display title
   left, intro + arrow link right, product articles with a spectrum strip
   on top of the media block and a purple→blue category bar at its foot.
   Palette vars are scoped to #featured so the KLA-flavoured accents never
   leak site-wide. Flat cards by design: no glass, no spotlight tracking. */
#featured {
  --fk-purple: #183058;
  --fk-blue: #4A628F;
  --fk-webblue: #183058;
  --fk-webblue-dark: #122441;
}
#featured .container { max-width: 1360px; }   /* extend the editorial card a bit past the default container */
#featured .fk-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 12px rgba(12, 12, 18, 0.12), 0 24px 60px rgba(12, 12, 18, 0.08);
  padding: clamp(26px, 4.5vw, 60px);
}
#featured .fk-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 52px);
}
#featured .fk-head-brand { display: flex; align-items: center; gap: 18px; }
/* Package icon: product cargo mark in logo colours */
#featured .fk-plus {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-ring); border-radius: 12px;
}
#featured .fk-plus svg { width: 26px; height: 26px; display: block; }
#featured .fk-title {
  margin: 0; line-height: 1.05;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600; letter-spacing: -0.015em;
  color: var(--fk-purple);
  background: linear-gradient(94deg, #183058 8%, #24406B 55%, #4A628F 118%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
#featured .fk-head-desc p {
  margin: 0 0 18px;
  font-size: 16.5px; line-height: 1.75;
  color: var(--ink-soft);
}
#featured .fk-head-desc p strong { color: var(--ink-strong); }
#featured .fk-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  color: var(--fk-webblue); text-decoration: none;
}
#featured .fk-more svg { width: 17px; height: 17px; transition: transform var(--t-fast) var(--ease); }
#featured .fk-more:hover { color: var(--fk-webblue-dark); }
#featured .fk-more:hover svg { transform: translateX(4px); }

#featured .fk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 44px);
}
#featured .fk-card-item { display: flex; flex-direction: column; min-width: 0; }
#featured .fk-media {
  position: relative; overflow: hidden;
  aspect-ratio: 20 / 13;
  background: linear-gradient(180deg, #FBFDFF, #F2F6FA);
}
#featured .fk-media-strip {
  position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 2;
  background: linear-gradient(90deg, #183058, #404C63, #93A0B4, #404C63, #183058);
}
#featured .fk-media-link {
  position: absolute; inset: 0; display: block; width: 100%;
  appearance: none; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer;
}
#featured .fk-media-link img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.5s var(--ease);
}
#featured .fk-card-item:hover .fk-media-link img { transform: scale(1.05); }
#featured .fk-cat {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; min-height: 34px;
  padding: 7px 16px;
  background: linear-gradient(100deg, var(--fk-purple) 0%, #24406B 48%, var(--fk-blue) 135%);
  color: #fff;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
#featured .fk-cat:empty { display: none; }
#featured .fk-body { display: flex; flex-direction: column; flex: 1; padding: 18px 2px 0; }
#featured .fk-name { margin: 0 0 8px; }
#featured .fk-name-link {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  font: inherit; text-align: left; cursor: pointer;
  font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em;
  color: var(--fk-webblue);
  transition: color var(--t-fast) var(--ease);
}
#featured .fk-name-link:hover { color: var(--fk-webblue-dark); text-decoration: underline; text-underline-offset: 3px; }
#featured .fk-model {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: #5A5A64;
}
#featured .fk-excerpt {
  margin: 0 0 16px;
  font-size: 14.5px; line-height: 1.7; color: #3F4753;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
#featured .fk-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: auto; padding-top: 4px;
}
#featured .fk-read {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  color: var(--fk-webblue);
  transition: color var(--t-fast) var(--ease);
}
#featured .fk-read svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
#featured .fk-read:hover { color: var(--fk-webblue-dark); }
#featured .fk-read:hover svg { transform: translateX(3px); }
#featured .fk-actions .btn { padding: 10px 18px; font-size: 13.5px; }

@media (max-width: 900px) {
  #featured .fk-grid { grid-template-columns: 1fr; gap: 36px; }
  #featured .fk-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  #featured .fk-head { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- 9c. Products & Technology (merged page) — section tabs ---------- */
/* Folder-tab strip: full-width divider with left-aligned tabs hanging from
   it; the active tab's brand-gradient underline merges into the divider so
   the switcher reads as part of the page, not a floating pill group. */
#products,
#technology { scroll-margin-top: 140px; }
.pt-subnav { padding-top: 0; }
.pt-subnav-inner {
  display: flex;
  align-items: stretch;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.pt-subnav-btn {
  appearance: none;
  background: none;
  border: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 22px 13px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.pt-subnav-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pt-subnav-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background var(--t-fast) var(--ease);
}
.pt-subnav-btn:hover { color: var(--ink); }
.pt-subnav-btn.is-active { color: var(--brand); }
.pt-subnav-btn.is-active::after {
  background: linear-gradient(90deg, var(--brand-deeper) 0%, var(--brand) 55%, #24406B 100%);
}
.pt-subnav-btn:focus-visible { outline: 2px solid var(--brand-ring); outline-offset: 2px; }
.pt-subnav-count {
  min-width: 20px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-softer);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pt-subnav-btn.is-active .pt-subnav-count {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- 9d. Newsroom (merged page) — room panels ---------- */
#room-news,
#room-solutions { min-width: 0; }

@media (max-width: 768px) {
  .hero-carousel { margin-top: 76px; }
  .pt-subnav-btn { padding: 12px 12px 11px; font-size: 13.5px; gap: 7px; }
  .pt-subnav-btn svg { width: 15px; height: 15px; }
  .pt-subnav-btn::after { left: 8px; right: 8px; }
  .pt-subnav-count { padding: 3px 6px; font-size: 10.5px; }
}

/* ---------- 3b. KLA-style full-width mega dropdown (merged nav items) ---------- */
/* The two merged nav items (Products & Technology / Newsroom) open a
   viewport-wide panel anchored to the fixed header. Left rail + content
   columns with hairline dividers, KLA newsroom/technology-trends style. */
.nav > li.has-dropdown--mega { position: static; }   /* only the full-width mega panel anchors to the header */
.dropdown--mega {
  left: 0;
  right: 0;
  top: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
}
.mega-grid { display: grid; padding-block: 36px 40px; }
.mega-grid--pt { grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.1fr) minmax(0, 1.25fr); }
.mega-grid--news { grid-template-columns: minmax(170px, 0.62fr) repeat(4, minmax(0, 1fr)); column-gap: 26px; }
.mega-col { min-width: 0; padding: 0 32px; }
.mega-col--rail { padding-left: 0; border-right: 1px solid var(--line); }
.mega-col--feature { border-right: 1px solid var(--line); }
.mega-grid--pt .mega-col--side { padding-right: 0; }
.mega-grid--news .mega-card:last-child { padding-right: 0; }
.mega-eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.mega-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 0;
}
.mega-list a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-list a:hover { background: none; color: var(--brand); transform: none; }
.mega-chevron {
  width: 13px; height: 13px; flex: 0 0 auto;
  color: var(--muted-light);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mega-list a:hover .mega-chevron,
.mega-home:hover .mega-chevron { color: var(--brand); transform: translateX(3px); }
.mega-grid .mega-more { font-weight: 700; color: var(--brand); }
.mega-grid .mega-home {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--brand);
  padding: 0; border-radius: 0;
}
.mega-grid .mega-home:hover { background: none; color: var(--brand); transform: none; }
.mega-grid .mega-feature { display: block; padding: 0; border-radius: 0; }
.mega-grid .mega-feature:hover { background: none; transform: none; }
.mega-feature-media {
  display: block; overflow: hidden; border-radius: 12px;
  aspect-ratio: 16 / 9.5; background: var(--bg-softer);
}
.mega-feature-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-slow) var(--ease);
}
.mega-feature:hover .mega-feature-media img { transform: scale(1.04); }
.mega-feature-copy {
  display: block; margin-top: 14px;
  font-size: 13.5px; line-height: 1.65; color: var(--muted);
}
.mega-grid .mega-thumb { display: block; padding: 0; border-radius: 0; margin-top: 20px; }
.mega-grid .mega-thumb:hover { background: none; transform: none; }
.mega-thumb img {
  display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover;
  border-radius: 10px; background: var(--bg-softer); margin-bottom: 10px;
  transition: transform var(--t-slow) var(--ease);
}
.mega-thumb:hover img { transform: scale(1.03); }
.mega-thumb span { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.mega-grid .mega-card { display: block; min-width: 0; padding: 0; border-radius: 0; }
.mega-grid .mega-card:hover { background: none; transform: none; }
.mega-grid .mega-card h4 {
  margin: 0 0 14px;
  min-height: 42px;              /* 2-line baseline — keeps all card thumbnails top-aligned */
  font-size: 15.5px; font-weight: 700; line-height: 1.35;
  color: var(--brand);
  transition: color var(--t-fast) var(--ease);
}
.mega-grid .mega-card:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.mega-card-media {
  display: block; overflow: hidden; border-radius: 10px;
  aspect-ratio: 16 / 10; background: var(--bg-softer);
}
.mega-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-slow) var(--ease);
}
.mega-card:hover .mega-card-media img { transform: scale(1.05); }
.mega-card-media--empty {
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-softer));
  border: 1px solid var(--line);
}

@media (max-width: 1359px) {
  .mega-grid--pt { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr); }
  .mega-col--feature { display: none; }
  .mega-col { padding: 0 24px; }
}
@media (max-width: 1150px) {
  .mega-grid--news { grid-template-columns: minmax(150px, 0.7fr) repeat(2, minmax(0, 1fr)); }
  .mega-grid .mega-card--sm-hide { display: none; }
  .mega-grid--pt { grid-template-columns: minmax(200px, 1fr) minmax(0, 1.3fr); }
}

/* ---------- 9e. Catalog sidebar layout (products-technology) ---------- */
.catalog-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 30px; align-items: start; }
.catalog-side {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 16px 16px; position: sticky; top: 150px;
}
.side-search {
  display: flex; align-items: center; gap: 8px;
  background: #fbfdff; border: 1px solid #dbe5ee; border-radius: 8px;
  padding: 0 12px; margin-bottom: 18px;
}
.side-search svg { width: 15px; height: 15px; color: var(--muted-light); flex: none; }
.side-search input { border: 0; outline: 0; background: transparent; width: 100%; padding: 10px 0; font-size: 13.5px; color: var(--ink); }
.side-search input::placeholder { color: var(--muted-light); }
.side-title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.side-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-cats li { position: relative; }
.side-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); background: transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.side-cat:hover { background: var(--brand-soft); color: var(--brand); }
.side-cat.is-active { background: var(--brand); color: #fff; }
.side-chev { width: 13px; height: 13px; flex: none; opacity: 0.55; transition: transform var(--t-fast) var(--ease); }
li.open > .side-cat .side-chev { transform: rotate(90deg); }
.side-subs { list-style: none; margin: 2px 0 4px; padding: 0 0 0 10px; }
li.open > .side-subs { display: block; }
@media (hover: hover) {
  li.has-sub:hover > .side-subs { display: block; }
}
.side-cat.side-sub { padding: 7px 10px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
/* Second-level marker: a small elbow arrow prefixes every sub item
   (desktop list + mobile chip cloud) so hierarchy reads at a glance. */
.side-cat.side-sub::before {
  content: "↳";   /* \u21b3 downwards arrow with tip rightwards */
  flex: none;
  font-size: 12px;
  line-height: 1;
  opacity: 0.55;
  margin-right: 4px;
}
.side-cat.side-sub.is-active { background: var(--brand-soft); color: var(--brand); }
.side-filter { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-filter-k { margin: 0 0 3px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); font-weight: 700; }
.side-filter-v { margin: 0; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.catalog-main { min-width: 0; }
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 20px; }
  .catalog-side { position: static; }
}


/* ---------- 9f. Knowledge cards — horizontal, fuller fit ---------- */
.kgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }   /* full-width horizontal article cards */
.catalog-main .product-card--knowledge { flex-direction: row; align-items: stretch; }
.catalog-main .product-card--knowledge .thumb {
  width: 240px; flex: none; aspect-ratio: auto; min-height: 208px;
  background: #fff;                /* letterbox blends with white-bg product art */
  border-right: 1px solid var(--line);
}
.catalog-main .product-card--knowledge .thumb img {
  height: 100%; width: 100%; object-fit: contain;   /* full image, never cropped */
  background: #fff;                  /* auto white fill around smaller art */
}
.catalog-main .product-card--knowledge .body { padding: 18px 20px 16px; }
.catalog-main .product-card--knowledge h3 { font-size: 16.5px; line-height: 1.35; }
.catalog-main .product-card--knowledge .body p {
  height: auto;                       /* drop the fixed 44px box that clipped text mid-line */
  -webkit-line-clamp: 3; line-clamp: 3;
}
.catalog-main .product-card--knowledge .product-card-actions { margin-top: auto; padding-top: 4px; }
.catalog-main .product-card--knowledge .tag { margin-bottom: 6px; }
@media (max-width: 900px) {
  .kgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .catalog-main .product-card--knowledge { flex-direction: column; }
  .catalog-main .product-card--knowledge .thumb { width: 100%; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-main .product-card--knowledge .thumb img { object-fit: contain; background: #fff; }
}


/* ---------- 9g. Product catalog — two fixed-size columns ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pgrid .product-card .thumb {
  background: #fff;                       /* letterbox blends with white product art */
  border-bottom: 1px solid var(--line);
}
.pgrid .product-card .thumb img {
  object-fit: contain; background: #fff;  /* full image shown, never cropped */
}
.pgrid .product-card .body p { height: auto; -webkit-line-clamp: 3; line-clamp: 3; }
.pgrid .product-card .product-card-actions { margin-top: auto; padding-top: 4px; }
/* Phones: KEEP the two-column grid with compact cards; the filter
   sidebar becomes a horizontal chip tray above the grid. */
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }  /* let the chip tray scroll, not push the page wide */
  .catalog-side { min-width: 0; }
  .pgrid { gap: 12px; }
  .pgrid .product-card .thumb { aspect-ratio: 4 / 3; }
  .pgrid .product-card .body { padding: 10px 11px 12px; }
  .pgrid .product-card .tag { font-size: 9.5px; margin-bottom: 4px; letter-spacing: 0.06em; }
  .pgrid .product-card h3 { font-size: 13px; line-height: 1.35; }
  .pgrid .product-card .model { font-size: 11px; margin-bottom: 6px; }
  .pgrid .product-card .body p { font-size: 11.5px; line-height: 1.5; -webkit-line-clamp: 2; }
  .pgrid .product-card .product-card-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 10px; padding-top: 0; }
  .pgrid .product-card .product-card-actions .btn { width: 100%; padding: 7px 8px; font-size: 11px; }
  .pgrid .product-card .cart-stepper { width: 100%; }
  .pgrid .product-card .cart-remove { font-size: 12px; }

  /* --- filter sidebar -> chip tray --- */
  .catalog-side { padding: 12px; border-radius: 12px; }
  .side-search { margin-bottom: 10px; }
  .side-search input { padding: 8px 0; font-size: 13px; }
  .side-title { margin-bottom: 8px; }
  .side-cats {
    flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 8px;
  }
  .side-cats > li, .side-subs > li { display: contents; }
  .side-cat {
    flex: 0 0 auto; white-space: nowrap;
    padding: 7px 13px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 12.5px;
  }
  .side-cat.is-active { border-color: var(--brand); }
  .side-chev { width: 11px; height: 11px; }
  /* Sub chips read as second level: soft tint, no border, smaller. */
  .side-cat.side-sub {
    padding: 5px 11px; font-size: 11.5px; font-weight: 500;
    background: var(--brand-soft); border-color: transparent;
    color: var(--ink);
  }
  .side-cat.side-sub.is-active {
    /* active sub = tinted + outline, clearly weaker than the solid parent */
    background: var(--brand-soft); border-color: var(--brand); color: var(--brand);
  }
  /* Open subs join the same wrapped chip row. NOTE: hover must also keep
     them visible — a touch tap fires synthetic :hover on the parent li,
     and hiding the subs mid-tap swallows the click (the chip vanishes
     under the finger before the click lands). */
  .side-cats li.has-sub:hover > .side-subs,
  .side-cats li.open > .side-subs { display: contents; }
  .side-filter { margin-top: 10px; padding-top: 10px; }
}

/* News filter tabs reuse the Solutions tab bar style (button variant). */
button.solution-tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- 12b. Contact section redesign (AI lab visual + card form) ---------- */
.contact-media {
  margin: 20px 0 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(16, 42, 67, 0.3);
  position: relative;
}
.contact-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.contact-media figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(15, 23, 42, 0.72); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 13px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.contact-list .contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px;
}
a.contact-item:hover { transform: translateY(-2px); border-color: var(--brand-ring); box-shadow: 0 10px 20px -14px rgba(24, 48, 88, 0.35); }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 16px 34px -20px rgba(16, 42, 67, 0.3);
}
@media (max-width: 768px) {
  .form-card { padding: 18px 16px; }
  .contact-media { margin: 16px 0 20px; }
}

/* ---------- 12c. Contact card layout — one white card, map, decor backdrop ---------- */
.section--contact { position: relative; overflow: hidden; }
.section--contact::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(560px 420px at 10% 16%, rgba(24, 48, 88, 0.09), transparent 62%),
    radial-gradient(520px 400px at 90% 20%, rgba(74, 80, 91, 0.09), transparent 62%),
    radial-gradient(540px 440px at 78% 88%, rgba(24, 48, 88, 0.07), transparent 65%);
  pointer-events: none;
}
.contact-card {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 34px 70px -38px rgba(16, 42, 67, 0.35);
}
.contact-card .contact-list .contact-item { background: transparent; border: 0; padding: 0; }
.contact-card a.contact-item:hover { transform: translateX(2px); border-color: transparent; box-shadow: none; }
.contact-map {
  margin-top: 24px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -20px rgba(16, 42, 67, 0.3);
  position: relative;
}
.contact-map iframe { display: block; width: 100%; height: 260px; border: 0; }
.contact-map-link {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--brand);
  font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 14px -6px rgba(16, 42, 67, 0.25);
}
@media (max-width: 900px) {
  .contact-card { padding: 22px 18px; }
  .contact-map iframe { height: 220px; }
}

/* ---------- 12d. Contact v2 — form card left, direct approach + map right ---------- */
.contact-head { max-width: 780px; margin-bottom: 30px; }
.contact-head .section-title { font-size: clamp(28px, 4vw, 40px); }
.contact-v2 { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 34px; align-items: start; }
.contact-form-card {
  background: #F7F9FB; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 26px 24px;
}
.contact-form-title, .contact-direct-title {
  margin: 0 0 18px; font-size: 20px; font-weight: 800; color: var(--ink-strong);
}
.contact-v2 .form-row { display: block; }
.contact-v2 .form { gap: 12px; }
.contact-v2 #contact-form button[type=submit] { width: 100%; margin-top: 16px; }
.contact-v2 #form-status { display: block; margin: 10px 0 0; }
.contact-map { margin-top: 20px; border: 0; border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(16, 42, 67, 0.35); }
.contact-map iframe { height: 330px; }
.contact-map-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 12px 26px -14px rgba(16, 42, 67, 0.4);
}
.contact-map-overlay h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; color: var(--ink-strong); }
.contact-map-overlay p {
  margin: 0 0 10px; display: flex; gap: 6px; align-items: flex-start;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.contact-map-overlay p svg { width: 14px; height: 14px; flex: none; color: var(--brand); margin-top: 1px; }
.contact-direction {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--ink-strong); text-decoration: none;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.contact-direction:hover { border-color: var(--brand); color: var(--brand); }
.contact-direction svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .contact-v2 { grid-template-columns: 1fr; gap: 22px; }
  .contact-map iframe { height: 280px; }
}

/* ---------- 12e. Multi-accent system — white base + varied accents ---------- */
:root {
  --accent-blue: #183058;        /* primary interactive — logo color */
  --accent-green: #183058;       /* quote / cart actions — logo color */
  --accent-terracotta: #183058;  /* news & editorial — logo color */
  --accent-gold: #183058;        /* highlights — logo color */
  --accent-indigo: #5B5EA6;      /* knowledge & technology */
}

/* Product cards: Add to Quote — logo color; View Details = terracotta */
.btn.btn--primary.cart-add { background: var(--accent-green); }
.btn.btn--primary.cart-add:hover { background: #122441; }
#featured .fk-read { color: var(--accent-terracotta); }
#featured .fk-read:hover { color: #122441; }
#featured .fk-read svg { color: var(--accent-terracotta); }

/* Featured heading plus-mark: gold-to-terracotta */

/* Hero CTAs: indigo primary, pine glass hover */
a.btn3d--primary, button.btn3d--primary {
  background: linear-gradient(135deg, #5B5EA6, #43468A);
  box-shadow: 0 10px 30px rgba(91, 94, 166, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
a.btn3d--primary:hover, button.btn3d--primary:hover {
  box-shadow: 0 16px 40px rgba(91, 94, 166, 0.5);
}
.btn3d--glass:hover { border-color: var(--accent-green); color: var(--accent-green); }

/* Newsroom rooms: News active = terracotta, Solutions active = indigo */
#blog-tabs .solution-tab.is-active { background: var(--accent-terracotta); }
#room-solutions .solution-tab.is-active { background: var(--accent-indigo); }

/* Catalog sidebars: products — logo color; knowledge = indigo */
#catalog-side .side-cat.is-active { background: var(--accent-green); border-color: var(--accent-green); }
#kside .side-cat.is-active { background: var(--accent-indigo); border-color: var(--accent-indigo); }
/* Active SUB-category stays soft: the ID rules above would otherwise give
   it a solid accent background with the dark --brand text color from the
   base .side-sub rules → dark-on-dark, text invisible. NOTE the selector
   shape: .side-sub sits on the SAME button element as .side-cat, not an
   ancestor (.side-sub .side-cat.is-active never matches anything). ID
   prefixes are required to out-rank the two ID rules above. */
#catalog-side .side-cat.side-sub.is-active,
#kside .side-cat.side-sub.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* Carousel dots: one accent per slide */
#hero-track ~ .hc-dots .hc-dot:nth-child(1), .hc-dots .hc-dot:nth-child(1) { background: rgba(24, 48, 88, 0.55); }
.hc-dots .hc-dot:nth-child(2) { background: rgba(24, 48, 88, 0.55); }
.hc-dots .hc-dot:nth-child(3) { background: rgba(91, 94, 166, 0.55); }
.hc-dots .hc-dot.is-active { background: #fff; }

/* Featured spectrum strip: muted multi-accent */
#featured .fk-media-strip, .fk-media-strip {
  background: linear-gradient(90deg, #183058, #24406B, #5B5EA6) !important;
}

/* Contact direction link: gold hover */
.contact-direction:hover { border-color: var(--accent-gold); color: var(--accent-gold); }


/* --- catalog side filters (synced from HXGD 2026-10-22) --- */
/* ---------- 15. Products page: filter sidebar + catalog ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-side {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.filter-head-k {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.filter-clear {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-deeper);
}
.filter-clear:hover { text-decoration: underline; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: none; }
.filter-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-check:hover { background: var(--bg-soft); color: var(--ink-strong); }
.filter-check input {
  width: 15px; height: 15px;
  accent-color: var(--brand);
  cursor: pointer;
  flex: 0 0 auto;
}
.filter-check.is-active { color: var(--navy); font-weight: 600; }
.filter-check .filter-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted-light);
  font-weight: 600;
}
.filter-apply { margin-top: 16px; }
.filter-apply .btn { width: 100%; }
.side-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #fff;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.side-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.side-search svg { width: 15px; height: 15px; color: var(--muted-light); flex: 0 0 auto; }
.side-search input {
  border: 0;
  outline: 0;
  padding: 9px 0;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-strong);
  width: 100%;
  background: transparent;
}
.side-search input::placeholder { color: var(--muted-light); }
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.catalog-count { font-size: 13.5px; color: var(--muted); }
.catalog-count strong { color: var(--ink-strong); }
.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.catalog-sort select {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
  background: #fff;
}
.pm-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.pm-eyebrow .pm-amber { color: var(--brand-deeper); }
.pm-eyebrow .pm-slash { color: var(--line-strong, #c9c9c9); }
.pm-eyebrow span:last-child { color: var(--navy); }
.pm-title {
  margin-top: 14px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.pm-facts { display: flex; align-items: center; gap: 26px; margin-top: 26px; }
.pm-fact-sep { width: 1px; height: 52px; background: var(--line); }
.pm-fact-num { font-size: 26px; font-weight: 800; letter-spacing: 0.02em; }
.pm-fact-num--amber { color: #b98a3c; }
.pm-fact-num--blue { color: #1d5d92; }
.pm-fact-label { margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pm-lead { margin-top: 26px; font-size: 15.5px; font-weight: 700; color: var(--ink, #232323); line-height: 1.65; }
.pm-p { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.pm-photo {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}
.pm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.pm-cert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef3f8;
  border: 1px solid #dde7f0;
}
.pm-cert-ico { flex: none; width: 34px; height: 34px; }
.pm-cert-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pm-cert span { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.pm-topline { display: none; }

/* sub-category rows inside the catalog side filter (always expanded) */
.filter-subs { margin: 2px 0 8px 4px; padding: 0 0 0 6px; border-left: 2px solid var(--line, #e5eaf0); }
.filter-check--sub span:first-of-type { font-size: 13px; font-weight: 500; }
