:root {
  --primary: #1677ff;
  --primary-dark: #0f4fbf;
  --accent: #163d76;
  --text: #060e19;
  --muted: #2c3d51;
  --border: rgba(6, 18, 36, 0.28);
  --shadow: 0 24px 48px rgba(3, 12, 25, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(22, 119, 255, 0.18), transparent 30%),
    radial-gradient(circle at left center, rgba(15, 61, 118, 0.16), transparent 34%),
    linear-gradient(180deg, #95a8bb 0%, #6e8399 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(189, 201, 216, 0.95);
  border-bottom: 1px solid rgba(8, 22, 43, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  justify-self: start;
}

.brand picture {
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #0e2a57, var(--primary));
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  gap: 0.45rem;
}

.nav-link {
  padding: 0.7rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(22, 119, 255, 0.1);
  color: var(--primary-dark);
}

.header-cta {
  flex-shrink: 0;
  justify-self: end;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.content-card,
.credential-card,
.case-card,
.detail-shell,
.related-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(203, 216, 230, 0.98), rgba(181, 196, 212, 0.97));
}

.section-heading h2,
.content-card h2,
.detail-header h1 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-text,
.content-card p,
.case-card p,
.spec-list dd {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #0f4fbf, #2f87ff);
  color: #ffffff;
}

.button-secondary {
  background: rgba(22, 119, 255, 0.12);
  color: var(--accent);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(160deg, rgba(22, 119, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(199, 213, 228, 0.98), rgba(177, 193, 210, 0.97));
}

.hero-panel-text h3,
.content-card h3,
.case-card h3,
.related-copy h3 {
  margin: 0 0 0.55rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
}

.section-block {
  margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-note {
  margin: 0;
  color: var(--muted);
}

.catalog-toolbar {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.catalog-filter {
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
}

.catalog-filter span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.catalog-dropdown {
  position: relative;
}

.catalog-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(20, 40, 72, 0.16);
  border-radius: 0.85rem;
  background: rgba(216, 226, 236, 0.96);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.catalog-dropdown-caret {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.catalog-dropdown.is-open .catalog-dropdown-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.catalog-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 12;
  display: none;
  padding: 0.45rem;
  border: 1px solid rgba(20, 40, 72, 0.16);
  border-radius: 0.95rem;
  background: rgba(216, 226, 236, 0.98);
  box-shadow: 0 18px 30px rgba(7, 19, 36, 0.16);
}

.catalog-dropdown.is-open .catalog-dropdown-menu {
  display: grid;
}

.catalog-dropdown-option {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.catalog-dropdown-option:hover,
.catalog-dropdown-option.is-active {
  background: rgba(22, 119, 255, 0.12);
  color: var(--primary-dark);
}

.inventory-scroll-window {
  overflow: hidden;
  width: 100%;
  height: clamp(320px, 42vh, 460px);
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(22, 119, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(203, 216, 230, 0.98), rgba(182, 196, 212, 0.97));
  box-shadow: var(--shadow);
}

body[data-page="inventory"] .inventory-scroll-window {
  aspect-ratio: 4087 / 1280;
  height: auto;
  max-height: none;
}

.inventory-scroll-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.inventory-scroll-card {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: rgba(200, 213, 227, 0.97);
  opacity: 0;
  transform: translate3d(8%, 0, 0);
  transition: transform 700ms ease, opacity 700ms ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

body[data-page="inventory"] .inventory-scroll-card.is-active,
body[data-page="inventory"] .inventory-scroll-card.is-entering {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body[data-page="inventory"] .inventory-scroll-card.is-active {
  z-index: 2;
}

body[data-page="inventory"] .inventory-scroll-card.is-entering {
  z-index: 3;
}

body[data-page="inventory"] .inventory-scroll-card.is-exiting-left {
  opacity: 0;
  transform: translate3d(-8%, 0, 0);
  z-index: 1;
}

.inventory-scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: white;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.inventory-scroll-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-grid {
  display: grid;
  gap: 1rem;
}

.product-grid-inventory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid-inventory .brand-logo-card {
  aspect-ratio: 16 / 15;
  place-items: stretch;
}

.product-grid-inventory .brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-hub-card {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(197, 211, 226, 0.98);
  box-shadow: var(--shadow);
}

.brand-logo-card {
  aspect-ratio: 16 / 10;
  place-items: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.brand-logo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.55);
}

.catalog-list-media,
.catalog-list-copy h3 a {
  display: block;
}

.brand-hub-image {
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: white;
}

.brand-logo-image {
  height: 100%;
  aspect-ratio: auto;
  background: transparent;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(197, 211, 226, 0.98), rgba(173, 190, 208, 0.97));
  box-shadow: var(--shadow);
}

.catalog-hero-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.catalog-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.catalog-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.catalog-hero-stat {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(211, 222, 233, 0.88);
  border: 1px solid rgba(8, 21, 40, 0.16);
}

.catalog-hero-stat strong,
.catalog-list-price {
  display: block;
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.catalog-hero-stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.catalog-hero-media {
  min-height: 100%;
  border-radius: 1.4rem;
  overflow: hidden;
}

.catalog-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;
  object-position: center;
  background: white;
}

.company-catalog-section {
  margin-top: 0;
}

.company-catalog-hero {
  align-items: stretch;
  padding: 0.85rem;
}

.company-catalog-hero .catalog-hero-copy {
  gap: 0.65rem;
}

.company-catalog-hero .catalog-hero-copy h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.company-catalog-hero .hero-text {
  margin: 0;
}

.company-catalog-hero .catalog-hero-stat {
  padding: 0.65rem;
}

.company-catalog-hero .catalog-hero-media img {
  min-height: 225px;
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-list-card {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(197, 211, 226, 0.98);
  box-shadow: var(--shadow);
  min-width: 0;
}

.catalog-list-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0.85rem 0.85rem 0 0;
  min-width: 0;
}

.catalog-list-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: white;
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-list-copy {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  margin: 0 0.5em 0.5em 0.5em;
}

.catalog-list-price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.catalog-list-price-cny {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
}

.catalog-list-copy h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.catalog-list-cta {
  width: fit-content;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
}

.section-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body[data-page="contact"] .section-grid-two {
  grid-template-columns: 1fr;
}

.content-card {
  padding: 1.4rem;
  border-radius: 1.8rem;
  background: rgba(197, 211, 226, 0.97);
}

.advantage-grid,
.case-grid,
.credential-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.advantage-grid,
.case-grid,
.credential-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.credential-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.case-card,
.credential-card {
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(197, 211, 226, 0.97);
}

.credential-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 1.15rem;
  margin: 0;
}

.case-tag {
  display: inline-flex;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.1);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.credential-card img {
  aspect-ratio: 4 / 4.8;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 1rem;
  object-fit: cover;
}

.credential-card figcaption {
  margin-top: 0.8rem;
  font-weight: 700;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(20, 40, 72, 0.16);
  border-radius: 1rem;
  background: #d8e2ec;
  color: var(--text);
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 1px dashed rgba(22, 119, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(15, 61, 118, 0.1)),
    #d8e3ee;
  color: var(--accent);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.qr-placeholder-large {
  width: 176px;
  height: 176px;
  margin: 0 0 1rem;
}

.contact-hero-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.contact-sales-card {
  display: grid;
  gap: 0.9rem;
}

.contact-sales-card h3 {
  margin: 0;
}

.contact-sales-media {
  width: 100%;
  height: 220px;
  grid-template-columns: minmax(0, 1.1fr) minmax(132px, 0.9fr);
  gap: 0.8rem;
  padding: 0.8rem;
  margin: 0;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(20, 40, 72, 0.14);
  background: rgba(216, 226, 236, 0.92);
}

.contact-sales-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.contact-sales-left,
.contact-sales-right,
.contact-sales-right-top,
.contact-sales-right-bottom {
  min-width: 0;
  min-height: 0;
}

.contact-sales-left {
  height: 100%;
}

.contact-sales-right {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  height: 100%;
}

.contact-sales-avatar,
.contact-sales-qr {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 0.9rem;
  object-fit: cover;
  background: white;
}

.contact-form {
  display: grid;
  gap: 1rem;
  scroll-margin-top: 7rem;
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.detail-shell {
  padding: 0.95rem;
  border-radius: 2rem;
  background: rgba(193, 208, 223, 0.98);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
}

.detail-header {
  display: grid;
  gap: 0.8rem;
}

.detail-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.detail-header .hero-text {
  margin: 0;
}

.detail-image-container {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 1.2rem;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  max-width: 100%;
  border-radius: 1.4rem;
  background: white;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: box-shadow 180ms ease;
  min-width: 0;
}

.detail-main-image:hover {
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.3);
}

.thumb-row {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.thumb-row-scrollable {
  gap: 0.25rem;
}

.thumb-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  scroll-behavior: smooth;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
}

.thumb-track::-webkit-scrollbar {
  display: none;
}

.thumb-track .thumb {
  flex: 0 0 calc((100% - 1.5rem) / 4);
  min-width: 0;
}

.thumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(216, 226, 236, 0.96);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 180ms ease, transform 180ms ease;
  padding: 0;
}

.thumb-nav:hover {
  background: rgba(22, 119, 255, 0.15);
  transform: scale(1.1);
}

.thumb-nav:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.thumb-nav:disabled:hover {
  background: rgba(216, 226, 236, 0.96);
  transform: none;
}

.thumb-nav-left {
  margin-right: 0.15rem;
}

.thumb-nav-right {
  margin-left: 0.15rem;
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: white;
}

.thumb.is-active {
  border-color: var(--primary);
}

.detail-overview {
  display: grid;
  gap: 0.8rem;
  max-width: none;
  min-width: 0;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.8rem;
  margin: 0;
}

.spec-list div {
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(22, 119, 255, 0.12);
}

.spec-list dt {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
}

.spec-list dd {
  margin: 0;
  font-size: 0.94rem;
}

.detail-body {
  display: grid;
  gap: 1rem;
  margin-top: 0.9rem;
}

.detail-images {
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(189, 203, 219, 0.96);
  border: 1px solid var(--border);
}

.detail-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  object-fit: contain;
  object-position: center;
  background: white;
  cursor: pointer;
  transition: box-shadow 180ms ease;
}

.detail-image-grid img:hover {
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.3);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(197, 211, 226, 0.98);
  box-shadow: var(--shadow);
}

.related-card-media {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0.85rem 0.85rem 0 0;
}

.related-card-image {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center;
  background: white;
}

.related-copy {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  margin: 0 1em 0.5em 1em;
}

.related-copy h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.related-copy h3 a {
  display: block;
}

.related-card-cta {
  width: fit-content;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
}

.site-footer {
  padding: 2rem 1rem 2.4rem;
  background: linear-gradient(180deg, #08111f 0%, #050b15 100%);
  color: #f1f6fd;
}

.footer-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.2rem;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.55rem;
  color: #d6e2f3;
}

.footer-copy {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  color: #a0b4ce;
}

/* Fullscreen viewer */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.fullscreen-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  transition: background 180ms ease;
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fullscreen-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
  overflow: hidden;
}

.fullscreen-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  transition: none;
}

@media (max-width: 1024px) {
  .site-header,
  .hero,
  .section-grid-two,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    display: grid;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-hero,
  .catalog-list-card,
  .catalog-list-copy,
  .detail-image-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1025px) {
  .product-grid-inventory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell,
  .footer-grid,
  .footer-copy {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    padding-inline: 0.85rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-toolbar {
    width: 100%;
    justify-items: stretch;
  }

  .product-grid-inventory,
  .detail-image-grid,
  .spec-list {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-hero-stats {
    grid-template-columns: 1fr;
  }

  .inventory-scroll-window {
    height: clamp(280px, 38vh, 360px);
  }

  body[data-page="inventory"] .inventory-scroll-window {
    height: auto;
  }

  .inventory-scroll-card {
    width: 100%;
    min-width: 0;
  }

  .thumb-track .thumb {
    flex: 0 0 calc((100% - 1.5rem) / 4);
  }
}

@media (max-width: 560px) {
  .section-grid-two,
  .detail-image-grid,
  .credential-grid,
  .advantage-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .contact-sales-media {
    grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.9fr);
    height: 220px;
  }

  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-list-card,
  .catalog-list-copy,
  .catalog-hero-stats {
    grid-template-columns: 1fr;
  }

  .nav-link,
  .button,
  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .detail-actions {
    flex-wrap: nowrap;
  }

  .detail-actions .button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .thumb-track .thumb {
    flex: 0 0 calc((100% - 1.5rem) / 4);
  }

  .related-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .catalog-list {
    grid-template-columns: 1fr;
  }
}

.floating-contact-dock {
  position: fixed;
  z-index: 1000;
  top: 300px;
  right: 16px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(10, 22, 38, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.floating-contact-button,
.floating-contact-bar {
  appearance: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 0;
  background: #0f1827;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.floating-contact-button {
  position: static;
}

.floating-contact-bar {
  position: fixed;
  z-index: 1000;
  top: 300px;
  right: 16px;
  width: 98px;
  min-height: 52px;
  padding: 10px 8px;
  border-radius: 18px;
  background: #f4b73f;
  box-shadow: 0 18px 38px rgba(10, 22, 38, 0.26);
  color: #0a1626;
}

.floating-contact-button-secondary {
  background: #0f1827;
  color: #ffffff;
}

.floating-contact-button-main {
  width: 132px;
  padding-inline: 16px;
  background: linear-gradient(135deg, #f6c65b, #eea72f);
  color: #0a1626;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.floating-contact-button-video {
  background: #1677ff;
  color: #ffffff;
}

.floating-contact-button-icon {
  flex: 0 0 64px;
}

.floating-contact-button + .floating-contact-button {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12);
}

.floating-contact-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.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;
}

.floating-contact-button:hover,
.floating-contact-bar:hover {
  transform: translateY(-1px);
}

.floating-contact-button:focus-visible,
.floating-contact-bar:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
}

.floating-contact-modal[hidden] {
  display: none;
}

.floating-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 22, 0.64);
}

.floating-contact-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(10, 22, 38, 0.22);
}

.floating-contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #0a1626;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.floating-contact-dialog .contact-sales-card {
  margin: 0;
}

.floating-contact-message {
  margin: 20px 0 0;
  color: #425466;
  line-height: 1.6;
}

.floating-contact-message a {
  color: #1677ff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 767px) {
  .floating-contact-dock {
    top: auto;
    right: auto;
    bottom: 12px;
    left: 50%;
    width: min(calc(100% - 24px), 420px);
    justify-content: center;
    transform: translateX(-50%);
    border-radius: 20px;
  }

  .floating-contact-button,
  .floating-contact-bar {
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: auto;
    min-height: 0;
    padding: 12px 18px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: normal;
  }

  .floating-contact-button-icon {
    flex: 0 0 60px;
    padding-inline: 0;
  }

  .floating-contact-button-main {
    flex: 1.8 1 0;
    min-width: 0;
    font-size: 1.02rem;
    padding-inline: 20px;
  }

  .floating-contact-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .floating-contact-dialog {
    width: 100%;
    max-height: 82vh;
    border-radius: 24px 24px 18px 18px;
  }

  .floating-contact-bar {
    bottom: 12px;
    left: 50%;
    width: min(calc(100% - 24px), 360px);
    padding: 12px 18px;
    transform: translateX(-50%);
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    line-height: normal;
  }
}
