/* ==========================================================================
   GRATECH 官网 · styles.css
   Design tokens: brand #0B4F8A / deep #08365C / accent #E4572E
   Layout: 1200px content, 16px base, desktop-first, usable below 768px.
   ========================================================================== */

/* ---------- 1. Reset & tokens ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --brand: #0B4F8A;
  --brand-600: #0E5C9E;
  --brand-deep: #08365C;
  --brand-ink: #062741;
  --accent: #E4572E;
  --accent-strong: #C1431F;
  --accent-soft: #FDEDE8;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #EDF2F7;
  --text: #1F2933;
  --text-2: #46586A;
  --muted: #67798B;
  --line: #DDE5EE;
  --line-2: #C7D4E1;
  --success: #1E7A4B;
  --danger: #B3261E;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(8, 54, 92, .06), 0 2px 8px rgba(8, 54, 92, .05);
  --shadow: 0 12px 34px rgba(8, 54, 92, .12);
  --container: 1200px;
  --header-sticky: 110px;
  --font: "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; min-height: 55vh; }
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, dt, figure { margin: 0; }
table { border-collapse: collapse; }

::selection { background: rgba(228, 87, 46, .22); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent-strong);
  color: #fff;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.ico {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 2. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--accent { background: var(--accent-strong); color: #fff; }
.btn--accent:hover { background: #A2371A; }
.btn--ghost { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn--light {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.btn--light:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .7); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}
.link-arrow .ico { width: 15px; height: 15px; transition: transform .16s ease; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .78);
  font-size: 12.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
}
.topbar__contact { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 0;
  color: rgba(255, 255, 255, .82);
  transition: color .16s ease;
}
.topbar__item:hover { color: #fff; }
.topbar__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__item .ico { width: 14px; height: 14px; opacity: .8; }
.topbar__right { display: flex; align-items: center; gap: 22px; flex: none; }
.topbar__tag {
  color: rgba(255, 255, 255, .42);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .8);
}
.lang .ico { width: 15px; height: 15px; opacity: .8; }
.lang__select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 22px 5px 8px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .75) 50%),
                    linear-gradient(135deg, rgba(255, 255, 255, .75) 50%, transparent 50%);
  background-position: calc(100% - 12px) 9px, calc(100% - 8px) 9px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.lang__select:hover { border-color: rgba(255, 255, 255, .5); }
.lang__select option { color: var(--text); background: #fff; }

.header-main { background: #fff; }
.header-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(230px, 310px) auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 38px; height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  background: var(--brand-deep);
  border-radius: 3px;
}
.brand__mark i {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  transform: skewX(-26deg);
  border-radius: 1px;
}
.brand__mark i:nth-child(2) { width: 72%; background: var(--accent); }
.brand__mark i:nth-child(3) { width: 88%; }
.brand__mark i:nth-child(4) { width: 56%; background: rgba(255, 255, 255, .55); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .11em;
  color: var(--brand-deep);
}
.brand__text small {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 30px; min-width: 0; }
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 78px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .16s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand-deep); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-search { position: relative; min-width: 0; }
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-form__input {
  width: 100%;
  height: 42px;
  padding: 0 46px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #F7F9FC;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.search-form__input::placeholder { color: #8A9AAB; }
.search-form__input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 79, 138, .1);
}
.search-form__btn {
  position: absolute;
  right: 4px; top: 4px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--brand);
  transition: background .16s ease, color .16s ease;
}
.search-form__btn:hover { background: var(--brand); color: #fff; }
.search-form__btn .ico { width: 17px; height: 17px; }

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  min-width: 300px;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 70;
}
.search-panel[hidden] { display: none; }
.search-panel__title {
  padding: 4px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-suggest {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 8px;
  border-radius: 3px;
  text-align: left;
  font-size: 14px;
  color: var(--text-2);
}
.search-suggest .ico { width: 15px; height: 15px; color: var(--muted); }
.search-suggest:hover, .search-suggest.is-active { background: #EDF4FA; color: var(--brand); }
.search-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 8px; }
.search-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--text-2);
}
.search-chip:hover { border-color: var(--brand); color: var(--brand); }
.search-empty { padding: 14px 10px 16px; font-size: 13px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-quote { align-self: center; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand-deep);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 39, 65, .52);
  backdrop-filter: blur(1px);
}
.drawer-backdrop[hidden] { display: none; }
.drawer {
  position: fixed;
  left: 0; top: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(330px, 88vw);
  height: 100dvh;
  padding: 18px 22px 26px;
  background: #fff;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .24s ease, visibility .24s ease;
  overflow-y: auto;
}
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.drawer__brand { font-size: 20px; font-weight: 800; letter-spacing: .12em; color: var(--brand-deep); }
.drawer__close {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-2);
}
.drawer__close:hover { color: var(--brand); border-color: var(--brand); }
.drawer__nav { display: flex; flex-direction: column; margin-top: 6px; }
.drawer__nav a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.drawer__nav a[aria-current="page"] { color: var(--brand); }
.drawer__foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.drawer__contact { font-size: 13.5px; color: var(--text-2); word-break: break-all; }
.lang--drawer {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  color: var(--text-2);
}
.lang--drawer .lang__select {
  border-color: var(--line-2);
  background-color: #fff;
  color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  font-size: 13px;
  padding: 6px 24px 6px 10px;
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  background: var(--brand-deep);
  color: #fff;
  overflow: hidden;
}
.hero__viewport { position: relative; height: clamp(470px, 46vw, 590px); }
.hero__track {
  display: flex;
  height: 100%;
  transition: transform .62s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(228, 87, 46, .22), transparent 42%),
    linear-gradient(118deg, #062741 0%, #08365C 48%, #0B4F8A 100%);
}
.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .48;
  transform: scale(1.04);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 39, 65, .96) 0%, rgba(7, 46, 78, .82) 46%, rgba(8, 54, 92, .24) 100%);
  z-index: 1;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .7), transparent 68%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .7), transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: 48px;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 84px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--accent);
}
.hero__title {
  max-width: 760px;
  font-size: clamp(34px, 4.1vw, 56px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.015em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .18);
}
.hero__desc {
  max-width: 580px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta {
  justify-self: end;
  align-self: end;
  padding-bottom: 6px;
  text-align: right;
  font-family: var(--mono);
  color: rgba(255, 255, 255, .55);
}
.hero__meta strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.04em;
  color: #fff;
}
.hero__meta span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .18em; }
.hero__meta ul { margin-top: 20px; display: grid; gap: 6px; font-size: 10px; letter-spacing: .12em; }
.hero__meta li { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.hero__meta li::before { content: ""; width: 14px; height: 1px; background: var(--accent); }

.hero__controls {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  z-index: 3;
}
.hero__controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot {
  width: 30px; height: 3px;
  background: rgba(255, 255, 255, .28);
  border-radius: 2px;
  transition: background .2s ease, width .2s ease;
}
.hero-dot.is-active { width: 46px; background: var(--accent); }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  color: #fff;
  transition: background .16s ease, border-color .16s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); }
.hero-arrow .ico { width: 18px; height: 18px; }
.hero-arrow[disabled] { opacity: .35; cursor: default; }

/* ---------- 5. Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.section--flush-top { padding-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}
.section-head__main { min-width: 0; }
.section-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.section-head__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.section-head h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--brand-deep);
}
.section-head p { margin-top: 8px; max-width: 620px; color: var(--muted); font-size: 14.5px; }
.section-head__link { flex: none; padding-bottom: 4px; }

.page-head {
  position: relative;
  overflow: hidden;
  padding: 42px 0 46px;
  background: linear-gradient(112deg, #062741 0%, #08365C 55%, #0B4F8A 100%);
  color: #fff;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85), transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85), transparent 80%);
  pointer-events: none;
}
.page-head__inner { position: relative; z-index: 1; }
.page-head .eyebrow { color: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.page-head h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.page-head p {
  max-width: 680px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
  line-height: 1.8;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { width: 12px; height: 12px; opacity: .6; }
.crumbs span[aria-current] { color: var(--text-2); }

/* ---------- 6. Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(204px, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 158px;
  padding: 20px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: #AFC3D8;
  box-shadow: var(--shadow-sm);
}
.cat-card__no {
  position: absolute;
  right: 13px; top: 8px;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #E8EEF5;
  transition: color .18s ease;
}
.cat-card:hover .cat-card__no { color: #DCE8F4; }
.cat-card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #EDF3F9;
  color: var(--brand);
  transition: background .18s ease, color .18s ease;
}
.cat-card:hover .cat-card__icon { background: var(--brand); color: #fff; }
.cat-card__icon .ico { width: 24px; height: 24px; }
.cat-card h3 { font-size: 16px; line-height: 1.4; color: var(--text); }
.cat-card small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cat-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}
.cat-card__foot .ico { width: 13px; height: 13px; transition: transform .16s ease; }
.cat-card:hover .cat-card__foot .ico { transform: translateX(3px); }

/* ---------- 7. Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: #B5C8DA;
  box-shadow: var(--shadow-sm);
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #E9EFF6, #DCE6F0);
}
.media__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  background: #fff;
}
.product-card:hover .media__img { transform: scale(1.045); }
.media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #7B93AA;
  background:
    linear-gradient(135deg, #EDF2F7 0%, #DFE8F1 55%, #EDF2F7 100%);
  z-index: 0;
}
.media__fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 79, 138, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 138, .055) 1px, transparent 1px);
  background-size: 22px 22px;
}
.media__fallback span { position: relative; z-index: 1; }
.media__img { z-index: 1; }
.media__img.is-failed { display: none; }
.badges {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  display: flex;
  gap: 5px;
}
.badge {
  padding: 4px 7px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  color: #fff;
}
.badge--new { background: var(--brand); }
.badge--hot { background: var(--accent-strong); }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 16px; }
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 11.5px;
  color: var(--muted);
}
.product-card__model {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--brand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .16s ease;
}
.product-card:hover h3 { color: var(--brand); }
.product-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}
.product-card__foot .ico { width: 14px; height: 14px; transition: transform .16s ease; }
.product-card:hover .product-card__foot .ico { transform: translateX(3px); }

/* compact list-style product row (home new arrivals) */
.product-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.product-row:hover { border-color: #B5C8DA; box-shadow: var(--shadow-sm); }
.product-row__media { position: relative; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden; background: #EDF2F7; }
.product-row__body { min-width: 0; }
.product-row__body .product-card__meta { margin-bottom: 4px; }
.product-row h3 {
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-row:hover h3 { color: var(--brand); }

/* ---------- 8. Catalog ---------- */
.catalog { padding: 38px 0 76px; }
.catalog__grid {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.sidebar { position: sticky; top: 128px; }
.sidebar__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  margin-bottom: 16px;
}
.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.sidebar__head h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.sidebar__head .ico { width: 16px; height: 16px; color: var(--accent); }
.sidebar-toggle { display: none; }

.cat-list { list-style: none; }
.cat-row { display: flex; align-items: center; gap: 2px; }
.cat-link {
  flex: 1;
  min-width: 0;
  padding: 8px 7px;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.cat-link:hover { color: var(--brand); background: #F2F7FC; }
.cat-node.is-active > .cat-row > .cat-link {
  color: var(--brand);
  font-weight: 700;
  border-left-color: var(--accent);
  background: #EDF4FA;
}
.cat-toggle {
  width: 28px; height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 3px;
}
.cat-toggle:hover { color: var(--brand); background: #F2F7FC; }
.cat-toggle .ico { width: 13px; height: 13px; transition: transform .18s ease; }
.cat-toggle[aria-expanded="false"] .ico { transform: rotate(-90deg); }
.cat-list--l1 { padding-left: 10px; }
.cat-list--l2 { margin-left: 9px; padding-left: 8px; border-left: 1px dashed var(--line); }
.cat-children[hidden] { display: none; }

.sidebar__hot { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 4px; }
.hot-word {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  background: #fff;
}
.hot-word:hover { border-color: var(--brand); color: var(--brand); }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 11px 14px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--text-2);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.is-active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.select {
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--text);
  font-size: 13.5px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 15px, calc(100% - 10px) 15px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.catalog-meta strong { color: var(--text); font-weight: 700; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #C9DDF0;
  border-radius: 999px;
  background: #EDF4FA;
  color: var(--brand);
  font-size: 12.5px;
}
.chip button { display: grid; place-items: center; color: var(--brand); }
.chip .ico { width: 12px; height: 12px; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13.5px;
  color: var(--text-2);
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.page-btn:hover:not(:disabled):not(.is-current) { border-color: var(--brand); color: var(--brand); }
.page-btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.page-gap { padding: 0 2px; color: var(--muted); }
.page-total { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------- 9. Detail ---------- */
.detail { padding: 26px 0 84px; }
.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 50px;
}
.gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(11, 79, 138, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 138, .045) 1px, transparent 1px),
    #F3F6FA;
  background-size: 26px 26px, 26px 26px, auto;
}
.gallery__main .media__img { object-fit: contain; }
.gallery__main .media__fallback { background: transparent; }
.gallery__thumbs { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb {
  position: relative;
  flex: none;
  width: 82px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #F3F6FA;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--brand); }
.gallery__thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.detail-info { min-width: 0; }
.detail-info .badges { position: static; margin-bottom: 12px; }
.detail-info__model {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--brand);
}
.detail-info__model span { color: var(--line-2); }
.detail-info h1 {
  margin: 8px 0 13px;
  font-size: clamp(26px, 2.9vw, 36px);
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--brand-ink);
}
.detail-info__summary {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}
.meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.meta-list > div { padding: 9px 12px; background: #fff; }
.meta-list dt {
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-list dd { font-size: 13.5px; font-weight: 600; color: var(--text); word-break: break-word; }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.app-tag {
  padding: 4px 9px;
  border-radius: 3px;
  background: #EDF3F9;
  color: var(--brand-deep);
  font-size: 12.5px;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 48px;
  align-items: start;
}
.detail-aside {
  position: sticky;
  top: 128px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  background: #FBFCFE;
}
.panel__head h2, .panel__head h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--brand-deep);
}
.panel__head .ico { width: 16px; height: 16px; color: var(--accent); }
.panel__body { padding: 16px 17px; }
.panel__body--flush { padding: 4px 17px 12px; }

.detail-section { margin-bottom: 42px; scroll-margin-top: 132px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section > h2 {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--brand-deep);
}
.detail-section > h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 2px;
  background: var(--accent);
}
.spec-group { margin-bottom: 20px; }
.spec-group:last-child { margin-bottom: 0; }
.spec-group h3 {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.spec-table { width: 100%; border: 1px solid var(--line); font-size: 13.5px; }
.spec-table tr:nth-child(odd) { background: #F8FAFC; }
.spec-table th {
  width: 38%;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: var(--text-2);
}
.spec-table td {
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--text);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table .unit { margin-left: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }

.rich { font-size: 15px; line-height: 1.95; color: var(--text-2); }
.rich > *:first-child { margin-top: 0; }
.rich p { margin: 0 0 14px; }
.rich h2, .rich h3, .rich h4 { margin: 24px 0 10px; color: var(--brand-deep); line-height: 1.4; }
.rich h2 { font-size: 20px; }
.rich h3 { font-size: 17px; }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 6px; }
.rich img { margin: 16px 0; border-radius: 4px; }
.rich table { width: 100%; margin: 16px 0; border: 1px solid var(--line); font-size: 13.5px; }
.rich th, .rich td { padding: 8px 11px; border: 1px solid var(--line); text-align: left; }
.rich th { background: #F3F7FB; }
.rich a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.rich blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: #F8FAFC;
  color: var(--text-2);
}

.video-grid { display: grid; gap: 16px; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.video-card video { display: block; width: 100%; max-height: 480px; background: #000; }
.video-card__caption { padding: 9px 12px; background: #fff; font-size: 12.5px; color: var(--muted); }

.att-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.att-item:first-child { padding-top: 4px; }
.att-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.att-type {
  flex: none;
  width: 38px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #EDF3F9;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.att-main { flex: 1; min-width: 0; }
.att-name { font-size: 12.5px; font-weight: 600; line-height: 1.45; word-break: break-word; }
.att-meta { margin-top: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.att-access { margin-top: 3px; font-size: 10.5px; color: var(--accent-strong); }
.att-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.att-download .ico { width: 13px; height: 13px; }
.att-download:hover { color: var(--accent-strong); }

.mobile-cta { display: none; }

/* ---------- 10. Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.req { color: var(--accent-strong); }
.opt { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.input, .textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  color: var(--text);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.input::placeholder, .textarea::placeholder { color: #93A2B1; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 79, 138, .1);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); background: #FFF9F8; }
.field-error { display: block; font-size: 11.5px; line-height: 1.4; color: var(--danger); }
.field-error[hidden] { display: none; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 11.5px; color: var(--muted); }
.form-success {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #BFE3CE;
  border-radius: var(--radius-sm);
  background: #F0F9F4;
  color: #175E3A;
  font-size: 13.5px;
}
.form-success[hidden] { display: none; }
.form-success .ico { width: 18px; height: 18px; color: var(--success); margin-top: 1px; }
.inquiry-form__product {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: #F3F7FB;
  border-left: 2px solid var(--brand);
  font-size: 12.5px;
  color: var(--text-2);
}
.inquiry-form__product strong { color: var(--brand-deep); }
.form-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-card__head { margin-bottom: 18px; }
.form-card__head h2 { font-size: 20px; color: var(--brand-deep); }
.form-card__head p { margin-top: 5px; font-size: 13px; color: var(--muted); }

/* ---------- 11. News / article ---------- */
.news-wrap { padding: 34px 0 76px; }
.news-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.news-tab {
  flex: none;
  padding: 12px 18px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 14.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.news-tab:hover { color: var(--brand); }
.news-tab.is-active { color: var(--brand); border-bottom-color: var(--accent); font-weight: 700; }
.news-list { list-style: none; }
.news-item { border-bottom: 1px solid var(--line); }
.news-item > a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 24px 4px;
  transition: background .16s ease;
}
.news-item > a:hover { background: rgba(255, 255, 255, .7); }
.news-date { text-align: center; padding-top: 2px; }
.news-date strong {
  display: block;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
}
.news-date span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.news-item__body { min-width: 0; }
.news-item h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  transition: color .14s ease;
}
.news-item a:hover h3 { color: var(--brand); }
.news-item p {
  max-width: 820px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-item__meta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .03em;
  color: #8A9AAB;
}
.news-arrow {
  align-self: center;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.news-item a:hover .news-arrow { border-color: var(--brand); color: #fff; background: var(--brand); }

.article { padding: 30px 0 80px; }
.article__shell { max-width: 860px; margin-inline: auto; }
.article__head { margin-bottom: 26px; }
.article__head h1 {
  margin: 10px 0 14px;
  font-size: clamp(27px, 3.3vw, 39px);
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--brand-ink);
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
}
.article__cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin: 26px 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #E9EFF6, #DCE6F0);
}
.article__body { font-size: 16px; line-height: 1.95; color: #33414F; }
.article__body p { margin: 0 0 18px; }
.article__body h2, .article__body h3 { margin: 30px 0 12px; color: var(--brand-deep); line-height: 1.4; }
.article__body h2 { font-size: 22px; }
.article__body h3 { font-size: 18px; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: 7px; }
.article__body img { margin: 20px 0; border-radius: var(--radius); }
.article__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article__body table { width: 100%; margin: 18px 0; border: 1px solid var(--line); }
.article__body th, .article__body td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.article__body th { background: #F3F7FB; }
.article__back { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- 12. About / contact / CTA ---------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 56px;
  align-items: start;
}
.about-copy h2 { margin-bottom: 16px; font-size: clamp(24px, 2.6vw, 31px); color: var(--brand-deep); }
.about-copy p { margin-bottom: 14px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.about-copy .rich { margin-top: 10px; }
.about-facts {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
}
.about-facts h3 {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-facts dl { display: grid; gap: 12px; }
.about-facts dt { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.about-facts dd { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; word-break: break-word; }

.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cap-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
}
.cap-card__no { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent-strong); }
.cap-card__icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  margin-top: 14px;
  border-radius: 4px;
  background: #EDF3F9;
  color: var(--brand);
}
.cap-card__icon .ico { width: 23px; height: 23px; }
.cap-card h3 { margin: 13px 0 7px; font-size: 17px; color: var(--text); }
.cap-card p { color: var(--muted); font-size: 13.5px; line-height: 1.75; }

.intro-list { border-top: 1px solid var(--line); }
.intro-article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.intro-article h3 { margin-bottom: 10px; font-size: 19px; color: var(--brand-deep); }
.intro-article .rich { color: var(--text-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.info-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h2 { margin-bottom: 16px; font-size: 19px; color: var(--brand-deep); }
.info-list { display: grid; gap: 0; }
.info-list li { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list li:first-child { padding-top: 2px; }
.info-icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #EDF3F9;
  color: var(--brand);
}
.info-icon .ico { width: 18px; height: 18px; }
.info-text { min-width: 0; }
.info-text dt {
  margin-bottom: 1px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-text dd { font-size: 14px; line-height: 1.55; color: var(--text); word-break: break-word; }
.info-text dd a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.info-icp {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 46px 0;
  background: linear-gradient(112deg, #062741, #08365C 55%, #0B4F8A);
  color: #fff;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .8), transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .8), transparent 75%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.3; }
.cta-band p { max-width: 620px; margin-top: 7px; color: rgba(255, 255, 255, .76); font-size: 14.5px; line-height: 1.75; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--brand-ink); color: rgba(255, 255, 255, .7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .72fr 1fr 1.05fr;
  gap: 44px;
  padding-top: 54px;
  padding-bottom: 48px;
}
.footer-brand .brand__text strong { color: #fff; }
.footer-brand .brand__text small { color: rgba(255, 255, 255, .42); }
.footer-brand .brand__mark { background: rgba(255, 255, 255, .08); }
.footer-brand__desc { max-width: 320px; margin-top: 18px; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .58); }
.footer-brand__addr { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.footer-col h3 {
  margin-bottom: 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13.5px; color: rgba(255, 255, 255, .6); transition: color .14s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact li {
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .6);
  word-break: break-word;
}
.footer-col--cta p { margin-bottom: 14px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .58); }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 17px;
  padding-bottom: 17px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .4);
}
.footer-icp { font-family: var(--mono); font-size: 10.5px; }

/* ---------- 14. Dialog, toast, states, skeleton ---------- */
.dlg {
  width: min(580px, calc(100vw - 36px));
  max-width: 580px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
}
.dlg::backdrop { background: rgba(6, 39, 65, .58); backdrop-filter: blur(2px); }
.dlg__panel {
  position: relative;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px 32px 26px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(6, 39, 65, .34);
}
.dlg__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--muted);
}
.dlg__close:hover { background: var(--surface-2); color: var(--text); }
.dlg__panel h2 { padding-right: 36px; font-size: 22px; line-height: 1.35; color: var(--brand-deep); }
.dl-file { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }
.dl-intro { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.dl-steps { counter-reset: step; display: grid; gap: 10px; margin: 18px 0; }
.dl-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.dl-steps li::before {
  content: counter(step);
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #EDF3F9;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.dl-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 14px;
  background: #F5F8FB;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.dl-meta dt { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dl-meta dd { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.dl-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.dl-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  background: #FDF6F3;
  font-size: 12px;
  line-height: 1.6;
  color: #7A4A38;
}
.dl-hint .ico { width: 15px; height: 15px; color: var(--accent-strong); margin-top: 2px; }

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  border-left: 4px solid var(--brand);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  pointer-events: auto;
  animation: toast-in .22s ease-out;
}
.toast .ico { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--brand); }
.toast--error { border-left-color: var(--danger); }
.toast--error .ico { color: var(--danger); }
.toast--success { border-left-color: var(--success); }
.toast--success .ico { color: var(--success); }
.toast__text { flex: 1; min-width: 0; word-break: break-word; }
.toast__close { color: var(--muted); width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.toast__close:hover { color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
}
.state__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #EDF3F9;
  color: var(--brand);
}
.state__icon .ico { width: 26px; height: 26px; }
.state h3 { margin-bottom: 6px; font-size: 17px; color: var(--text); }
.state p { max-width: 460px; font-size: 13.5px; line-height: 1.7; }
.state .btn { margin-top: 18px; }
.state--error .state__icon { background: #FBEDEC; color: var(--danger); }

.sk {
  border-radius: 4px;
  background: linear-gradient(90deg, #E9EEF4 25%, #F5F8FB 37%, #E9EEF4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-hero { height: clamp(470px, 46vw, 590px); }
.sk-pagehead { height: 190px; margin-bottom: 32px; }
.sk-row { display: grid; grid-template-columns: 258px 1fr; gap: 30px; }
.sk-line { height: 13px; margin-bottom: 10px; }
.sk-card { height: 300px; }
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1120px) {
  .header-grid { gap: 20px; grid-template-columns: auto minmax(0, 1fr) minmax(210px, 260px) auto; }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 14px; }
  .topbar__tag { display: none; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; }
  .detail-top { gap: 34px; }
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sk-grid { grid-template-columns: repeat(3, 1fr); }
  .about-intro { gap: 36px; }
  .contact-grid { grid-template-columns: 330px minmax(0, 1fr); gap: 32px; }
  .footer-grid { gap: 30px; }
  .header-quote { display: none; }
}

@media (max-width: 900px) {
  :root { --header-sticky: 152px; }
  .topbar__contact .topbar__item:nth-child(2) { display: none; }
  .header-grid {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand . actions"
      "search search search";
    gap: 0 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand { grid-area: brand; }
  .main-nav { display: none; }
  .header-search { grid-area: search; margin-top: 10px; }
  .header-actions { grid-area: actions; }
  .nav-toggle { display: flex; }
  .header-grid { min-height: 0; }

  .hero__inner { grid-template-columns: 1fr; padding-bottom: 78px; }
  .hero__meta { display: none; }

  .catalog__grid { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { position: static; }
  .sidebar__panel--cats { display: none; }
  .sidebar.is-open .sidebar__panel--cats { display: block; }
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-deep);
  }
  .sidebar-toggle .ico { width: 16px; height: 16px; }
  .sidebar-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }

  .detail-top { grid-template-columns: 1fr; gap: 28px; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-aside { position: static; }
  .detail-info h1 { font-size: 28px; }
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(8, 54, 92, .1);
  }
  .mobile-cta .btn { flex: 1; min-height: 44px; }
  .detail { padding-bottom: 96px; }

  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .cap-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; gap: 32px 26px; }
  .footer-col--cta { grid-column: 1 / -1; }
  .sk-row { grid-template-columns: 1fr; }
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .section { padding: 50px 0; }
  .section--tight { padding: 42px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .section-head__link { padding-bottom: 0; }
  .page-head { padding: 30px 0 34px; }
  .hero__viewport { height: auto; min-height: 520px; }
  .hero__inner { padding-top: 40px; padding-bottom: 76px; }
  .hero__title { font-size: clamp(30px, 7vw, 40px); }
  .hero__desc { font-size: 14.5px; line-height: 1.8; }
  .hero__actions .btn { min-height: 44px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { min-height: 146px; padding: 16px 14px; }
  .cat-card h3 { font-size: 14.5px; }
  .cat-card__no { font-size: 26px; }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card__body { padding: 12px 12px 13px; }
  .product-card h3 { font-size: 14px; }
  .product-card__meta { font-size: 10.5px; }
  .product-card__model { font-size: 10.5px; }
  .product-card__foot { font-size: 11.5px; padding-top: 10px; }
  .product-strip { grid-template-columns: 1fr; }
  .catalog { padding-top: 24px; }
  .catalog-toolbar { padding: 10px; }
  .sort { width: 100%; justify-content: space-between; }
  .page-total { width: 100%; margin-left: 0; margin-top: 4px; }
  .news-wrap { padding-top: 24px; }
  .news-item > a { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 18px 2px; }
  .news-date strong { font-size: 20px; }
  .news-date span { font-size: 9.5px; }
  .news-arrow { display: none; }
  .news-item h3 { font-size: 15.5px; }
  .news-item p { -webkit-line-clamp: 3; }
  .article { padding-top: 22px; }
  .article__body { font-size: 15px; line-height: 1.9; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .about-facts { padding: 20px; }
  .info-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; padding-bottom: 34px; }
  .footer-col--cta { grid-column: auto; }
  .footer-brand__desc { max-width: none; }
  .dlg__panel { padding: 24px 20px 20px; }
  .dlg__panel h2 { font-size: 19px; }
  .dl-meta { grid-template-columns: 1fr; }
  .toasts { right: 12px; bottom: 12px; }
  .detail-info h1 { font-size: 24px; }
  .detail-actions .btn { flex: 1; }
  .cta-band { padding: 36px 0; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }
}

@media (max-width: 460px) {
  .topbar__inner { min-height: 34px; }
  .topbar__contact .topbar__item span { font-size: 11.5px; }
  .brand__text strong { font-size: 18px; }
  .brand__text small { font-size: 7.5px; letter-spacing: .18em; }
  .brand__mark { width: 34px; height: 34px; }
  .product-grid, .product-grid--3 { grid-template-columns: 1fr; }
  .product-card__media { aspect-ratio: 16 / 10; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero__controls-inner { align-items: flex-end; }
  .hero-dot { width: 22px; }
  .hero-dot.is-active { width: 34px; }
  .pagination { gap: 5px; }
  .page-btn { min-width: 34px; height: 34px; padding: 0 9px; font-size: 12.5px; }
  .meta-list { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
}

/* ---------- 16. Reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__track { transition: none; }
}

@media print {
  .site-header, .site-footer, .mobile-cta, .toasts, .hero__controls, .catalog-toolbar, .sidebar { display: none !important; }
  body { background: #fff; }
  .detail-aside { position: static; }
}

/* --------------------------------------------------------------------------
   17. 视图补充（app.js 动态生成的结构）
   -------------------------------------------------------------------------- */

.is-failed { display: none !important; }
.text-muted { color: var(--muted); }
.catalog-content { min-width: 0; }
.sidebar__panel--cats > .cat-link { width: 100%; }
.sidebar__panel--cats > .cat-link.is-active { background: #EAF2FA; color: var(--brand); font-weight: 700; }
.about-facts dl > div { display: grid; gap: 2px; }

/* 首页：公告 / 介绍 / 视频 */
.home-insights {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.home-insights--2 { grid-template-columns: 1fr 1fr; }
.home-insights .panel { height: 100%; }
.panel__more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.panel__more:hover { color: var(--accent-strong); }
.insight-list { list-style: none; margin: 0; padding: 0; }
.insight-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 17px;
  border-bottom: 1px dashed var(--line);
}
.insight-list li:last-child .insight-item { border-bottom: 0; }
.insight-date {
  flex: none;
  min-width: 40px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.insight-title {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.insight-item:hover .insight-title { color: var(--brand); }
.insight-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 4px;
  object-fit: cover;
}
.insight-video__caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
}
.cta-band__phone .ico { width: 15px; height: 15px; color: var(--accent); }

.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.article__body img, .rich img { max-width: 100%; height: auto; }

@media (min-width: 1121px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .home-insights { grid-template-columns: 1fr 1fr; }
  .home-insights .insight-video { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .home-insights, .home-insights--2 { grid-template-columns: 1fr; }
  .home-insights .insight-video { grid-column: auto; }
  .insight-item { padding: 10px 14px; }
  .cta-band__phone { font-size: 12px; }
}
