﻿:root {
  --ink: #1e2328;
  --muted: #667078;
  --line: #e2e6e9;
  --paper: #ffffff;
  --soft: #f6f7f8;
  --charcoal: #20262c;
  --charcoal-2: #15191d;
  --red: #9f3d35;
  --red-dark: #81342e;
  --red-soft: #f5ebe9;
  --shadow: 0 18px 40px rgba(24, 31, 38, 0.1);
  --max: 1600px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 56px);
  border-bottom: 1px solid rgba(32, 38, 44, 0.08);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(24, 31, 38, 0.06);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(32, 38, 44, 0.08);
  box-shadow: 0 10px 28px rgba(24, 31, 38, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  font-weight: 900;
}

.brand-logo {
  width: auto;
  height: 56px;
  max-width: 100px;
  object-fit: contain;
}

.brand-text {
  color: var(--ink);
  font-size: 19px;
  letter-spacing: 0;
  text-shadow: none;
}

.site-header.is-scrolled .brand-text,
.site-header.is-open .brand-text {
  color: var(--ink);
  text-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: inherit;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.9;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover,
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover {
  color: var(--red);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: #f4f6f7;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(246, 247, 248, 0.96) 0%, rgba(246, 247, 248, 0.82) 44%, rgba(246, 247, 248, 0.32) 100%),
    linear-gradient(0deg, rgba(246, 247, 248, 0.9), rgba(246, 247, 248, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 108px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.section .eyebrow {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.12;
}

.hero .eyebrow {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 14px;
  line-height: 1.65;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--red);
  color: #fff;
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  border: 1px solid rgba(32, 38, 44, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
}

.button-secondary:hover {
  background: #fff;
  border-color: rgba(159, 61, 53, 0.38);
  color: var(--red);
}

.band {
  background: #eef1f3;
  color: var(--ink);
}

.section,
.band {
  padding: clamp(68px, 7vw, 104px) 20px;
  scroll-margin-top: 80px;
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.stats {
  padding-top: 34px;
  padding-bottom: 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats-grid div {
  min-height: 118px;
  padding: 22px;
  background: #fff;
}

.stats-grid strong {
  display: block;
  color: var(--red);
  font-size: 28px;
  line-height: 1.1;
}

.stats-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.section-copy {
  color: var(--muted);
  font-size: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.product-section {
  background: linear-gradient(180deg, #fff 0%, #f7f8f9 100%);
}

.product-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 23vw, 270px);
  gap: 18px;
  margin: 0 -4px;
  padding: 2px 4px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-left: 4px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(159, 61, 53, 0.42) rgba(32, 38, 44, 0.08);
  scrollbar-width: thin;
}

.product-grid:focus-visible {
  outline: 2px solid rgba(159, 61, 53, 0.5);
  outline-offset: 6px;
}

.product-grid::-webkit-scrollbar {
  height: 10px;
}

.product-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(32, 38, 44, 0.08);
}

.product-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(159, 61, 53, 0.42);
}

.product-card {
  position: relative;
  display: grid;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 31, 38, 0.05);
  scroll-snap-align: start;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.product-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(159, 61, 53, 0.24);
  border-radius: 999px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 420ms ease, filter 220ms ease;
}

.product-card .card-index,
.product-card h3,
.product-card p,
.product-card strong {
  margin-left: 24px;
  margin-right: 24px;
}

.product-card .card-index {
  margin-top: 24px;
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 22px;
}

.product-card p {
  margin-top: 12px;
  color: var(--muted);
}

.product-card strong {
  align-self: end;
  margin-top: 18px;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 14px;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(159, 61, 53, 0.32);
  box-shadow: 0 24px 48px rgba(24, 31, 38, 0.12);
  transform: translateY(-8px);
}

.product-card:hover img,
.product-card:focus-visible img {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.045);
}

.product-card:hover::after,
.product-card:focus-visible::after {
  background: var(--red);
  color: #fff;
  transform: translateX(4px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.product-card.reveal-on-scroll.is-visible:hover,
.product-card.reveal-on-scroll.is-visible:focus-visible {
  transform: translateY(-8px);
}

.info-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 31, 38, 0.04);
}

.info-card p,
.capability-list p,
.case-panel p,
.service-flow p {
  margin: 14px 0 0;
  color: var(--muted);
}

.card-index {
  display: inline-grid;
  min-width: 44px;
  height: 34px;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 900;
}

.engineering-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  align-items: start;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list article {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.capability-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.case-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.project-cases {
  display: grid;
  gap: 16px;
}

.case-gallery {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: stretch;
}

.project-case {
  display: grid;
  grid-template-columns: minmax(180px, 0.86fr) 1fr;
  gap: 18px;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 31, 38, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-case:hover {
  border-color: rgba(159, 61, 53, 0.28);
  box-shadow: 0 22px 44px rgba(24, 31, 38, 0.11);
  transform: translateY(-3px);
}

.project-case img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.project-case div {
  padding: 22px 22px 22px 0;
}

.project-case span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.project-case p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-case ul {
  margin-top: 18px;
  color: var(--muted);
}

.case-featured {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.case-featured img {
  min-height: 330px;
}

.case-featured div {
  padding: 28px;
}

.service-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-flow article {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -23px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(24, 31, 38, 0.08);
}

.service-flow article:hover,
.service-flow article:focus,
.service-flow article.is-previewing,
.service-flow article:focus-visible {
  z-index: 5;
  border-color: rgba(159, 61, 53, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 900;
}

.service-flow article:first-child {
  border-color: rgba(159, 61, 53, 0.34);
  background: linear-gradient(180deg, #fff 0%, #fff8f7 100%);
}

.service-flow article:first-child span {
  background: var(--red);
}

.service-preview {
  width: 100%;
  max-height: 0;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid rgba(32, 38, 44, 0.12);
  border-radius: 8px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.service-preview img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.service-flow article:hover .service-preview,
.service-flow article:focus .service-preview,
.service-flow article.is-previewing .service-preview,
.service-flow article:focus-visible .service-preview {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}

.about-section {
  background: #f4f6f7;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 42px);
}

.about-section .section-copy {
  max-width: 820px;
  color: var(--muted);
}

.about-section .section-copy + .section-copy {
  margin-top: 14px;
}

.about-intro {
  max-width: 860px;
}

.commitments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.commitments span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.about-contact {
  display: grid;
  gap: 18px;
  padding: clamp(30px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-style: normal;
  box-shadow: 0 20px 46px rgba(24, 31, 38, 0.1);
  font-size: 17px;
}

.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 18px;
}

.contact-details > a,
.contact-details > span {
  max-width: 860px;
}

.contact-details h3 {
  color: var(--ink);
  font-size: 26px;
}

.about-contact a:hover {
  color: var(--red);
}

.map-location {
  position: relative;
  min-height: clamp(360px, 42vw, 520px);
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf1f4;
}

.map-snapshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.map-caption strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.map-caption p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.map-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7f8;
  color: var(--ink);
  font-weight: 800;
}

.map-actions a:hover {
  border-color: rgba(159, 61, 53, 0.35);
  color: var(--red);
  background: #fff;
}

.qr-placeholder {
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  margin-top: 0;
  border: 1px dashed rgba(32, 38, 44, 0.28);
  border-radius: 8px;
  background: #f7f8f9;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer {
  padding: 28px 20px;
  background: #eef1f3;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-page {
  background: var(--soft);
}

.detail-page .site-header {
  color: var(--ink);
}

.detail-page .brand-text {
  color: var(--ink);
  text-shadow: none;
}

.detail-main {
  padding-top: 72px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 560px;
  background: var(--charcoal-2);
  color: #fff;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.detail-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
}

.detail-hero-copy h1 {
  font-size: clamp(40px, 5vw, 64px);
}

.detail-hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.detail-hero-copy .button {
  width: fit-content;
}

.detail-content {
  padding-top: 64px;
}

.detail-gallery-section {
  padding-top: 70px;
  padding-bottom: 26px;
  background: #fff;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 31, 38, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.detail-gallery img {
  width: 100%;
  height: clamp(220px, 18vw, 340px);
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
  transition: filter 180ms ease, transform 220ms ease;
}

.detail-gallery figcaption {
  padding: 14px 16px 16px;
  color: var(--ink);
  font-weight: 800;
}

.detail-gallery figure.is-gallery-trigger {
  cursor: zoom-in;
  outline: none;
}

.detail-gallery figure.is-gallery-trigger::after {
  content: "查看大图";
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(21, 25, 29, 0.72);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.detail-gallery figure.is-gallery-trigger:hover,
.detail-gallery figure.is-gallery-trigger:focus-visible {
  border-color: rgba(159, 61, 53, 0.38);
  box-shadow: 0 20px 42px rgba(24, 31, 38, 0.12);
  transform: translateY(-2px);
}

.detail-gallery figure.is-gallery-trigger:hover img,
.detail-gallery figure.is-gallery-trigger:focus-visible img {
  filter: saturate(1) contrast(1.05);
  transform: scale(1.025);
}

.detail-gallery figure.is-gallery-trigger:hover::after,
.detail-gallery figure.is-gallery-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.gallery-more-button {
  border: 1px solid rgba(159, 61, 53, 0.34);
  color: var(--red);
  background: #fff;
  cursor: pointer;
}

.gallery-more-button:hover,
.gallery-more-button:focus-visible {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.gallery-lightbox-frame {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  margin: 0;
  max-width: min(1440px, calc(100vw - 112px));
}

.gallery-lightbox-frame img {
  width: auto;
  max-width: 100%;
  max-height: min(82vh, 900px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.gallery-lightbox-frame figcaption {
  min-height: 28px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-arrow {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-arrow:hover,
.gallery-lightbox-arrow:focus-visible {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.gallery-lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.gallery-lightbox-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
}

.gallery-lightbox-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 15px;
  height: 15px;
  border-top: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.gallery-lightbox-prev::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.gallery-lightbox-next::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

.gallery-lightbox-prev {
  left: clamp(22px, 4vw, 52px);
}

.gallery-lightbox-next {
  right: clamp(22px, 4vw, 52px);
}

.gallery-lightbox-count {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 30px);
  min-width: 68px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.detail-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 31, 38, 0.04);
}

.detail-grid h2 {
  font-size: 26px;
}

.detail-grid p {
  margin: 14px 0 0;
  color: var(--muted);
}

.equipment-detail-main {
  padding-top: 72px;
}

.equipment-hero {
  position: relative;
  min-height: clamp(520px, 52vw, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef1f3;
}

.equipment-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center center);
  filter: saturate(0.94) contrast(1.02);
}

.equipment-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 249, 0.96) 0%, rgba(247, 248, 249, 0.86) 39%, rgba(247, 248, 249, 0.3) 66%, rgba(247, 248, 249, 0.02) 100%),
    linear-gradient(0deg, rgba(247, 248, 249, 0.86) 0%, rgba(247, 248, 249, 0.08) 38%);
}

.equipment-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(72px, 9vw, 112px);
}

.equipment-hero-copy {
  max-width: 760px;
}

.equipment-hero .eyebrow {
  font-size: 30px;
  line-height: 1.1;
}

.equipment-hero h1 {
  margin: 0;
  font-size: clamp(50px, 6vw, 78px);
  line-height: 1.02;
}

.equipment-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.86;
}

.equipment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.equipment-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -46px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 31, 38, 0.06);
}

.equipment-summary article {
  min-height: 112px;
  padding: 24px 26px;
}

.equipment-summary article:not(:first-child) {
  border-left: 1px solid var(--line);
}

.equipment-summary span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.equipment-summary strong {
  display: block;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.18;
}

.equipment-gallery-section {
  padding-top: clamp(52px, 6vw, 80px);
  padding-bottom: clamp(68px, 7vw, 96px);
  background: #fff;
}

.equipment-capability-section {
  padding-top: clamp(60px, 6vw, 84px);
  padding-bottom: clamp(60px, 6vw, 84px);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.equipment-capability-section .section-heading {
  margin-bottom: 30px;
}

.equipment-capability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  background: #fff;
}

.equipment-capability-strip article {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
}

.equipment-capability-strip article:not(:first-child) {
  border-left: 1px solid var(--line);
}

.equipment-capability-strip h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}

.equipment-capability-strip p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.equipment-contact-band {
  padding-top: 0;
}

.equipment-contact-band .section-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(22px, 4vw, 36px);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
}

.equipment-contact-band strong {
  margin-right: auto;
  font-size: 20px;
}

.equipment-contact-band span {
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.equipment-contact-band .button {
  flex: 0 0 auto;
  background: #fff;
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 18px 32px rgba(24, 31, 38, 0.12);
  }

  .site-header.is-open .site-nav {
    display: grid;
    gap: 14px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(246, 247, 248, 0.96) 0%, rgba(246, 247, 248, 0.78) 58%, rgba(246, 247, 248, 0.36) 100%),
      linear-gradient(0deg, rgba(246, 247, 248, 0.92), rgba(246, 247, 248, 0.22));
  }

  .stats-grid,
  .card-grid,
  .service-flow,
  .engineering-layout {
    grid-template-columns: 1fr 1fr;
  }

  .contact-top {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .qr-placeholder {
    width: 200px;
    height: 200px;
  }

  .service-flow article:not(:last-child)::after {
    display: none;
  }

  .detail-main {
    padding-top: 64px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero img {
    min-height: 320px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .equipment-detail-main {
    padding-top: 64px;
  }

  .equipment-summary {
    grid-template-columns: 1fr 1fr;
  }

  .equipment-summary article:nth-child(odd) {
    border-left: 0;
  }

  .equipment-summary article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .equipment-contact-band .section-inner {
    flex-wrap: wrap;
  }

  .equipment-contact-band strong {
    width: 100%;
  }

  .equipment-capability-strip {
    grid-template-columns: 1fr;
  }

  .equipment-capability-strip article:not(:first-child) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-gallery,
  .detail-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .case-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 46px;
    max-width: 84px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .section-copy {
    font-size: 16px;
  }

  .section .eyebrow {
    font-size: 24px;
  }

  .stats-grid,
  .card-grid,
  .service-flow,
  .engineering-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-top {
    grid-template-columns: 1fr;
  }

  .qr-placeholder {
    width: min(220px, 100%);
    height: 190px;
  }

  .product-card {
    min-height: auto;
  }

  .product-card img {
    height: 210px;
  }

  .info-card,
  .service-flow article {
    min-height: auto;
  }

  .service-preview {
    width: 100%;
    max-height: none;
    margin-top: 18px;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }

  .service-preview img {
    height: 160px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero img {
    min-height: 260px;
  }

  .detail-hero-copy {
    padding: 30px 20px 42px;
  }

  .equipment-hero {
    min-height: 560px;
  }

  .equipment-hero::after {
    background:
      linear-gradient(90deg, rgba(247, 248, 249, 0.96) 0%, rgba(247, 248, 249, 0.9) 62%, rgba(247, 248, 249, 0.28) 100%),
      linear-gradient(0deg, rgba(247, 248, 249, 0.92) 0%, rgba(247, 248, 249, 0.18) 52%);
  }

  .equipment-hero-content {
    padding-top: 68px;
    padding-bottom: 80px;
  }

  .equipment-summary {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .equipment-summary article {
    min-height: 0;
  }

  .equipment-summary article:not(:first-child) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .equipment-contact-band .section-inner {
    align-items: flex-start;
    gap: 14px;
  }

  .equipment-contact-band span {
    white-space: normal;
  }

  .case-gallery,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-actions {
    justify-content: stretch;
  }

  .gallery-more-button {
    width: 100%;
  }

  .gallery-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    gap: 12px;
    padding: 64px 12px 60px;
  }

  .gallery-lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
  }

  .gallery-lightbox-frame img {
    max-width: 100%;
    max-height: 68vh;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    position: absolute;
    top: 50%;
    grid-row: 3;
    width: 44px;
    height: 48px;
    transform: translateY(-50%);
  }

  .gallery-lightbox-prev {
    grid-column: 1;
    left: 12px;
    justify-self: auto;
  }

  .gallery-lightbox-next {
    grid-column: 2;
    right: 12px;
    justify-self: auto;
  }

  .case-featured img,
  .project-case img,
  .detail-gallery img {
    min-height: 0;
    height: 210px;
  }

  .project-case,
  .case-featured {
    grid-template-columns: 1fr;
  }

  .project-case div,
  .case-featured div {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
