:root {
  --navy: #2f3478;
  --navy-deep: #252a5c;
  --navy-soft: #5a5f9a;
  --lavender: #e8eaf6;
  --lavender-mid: #c5c8e4;
  --ink: #1a1a1f;
  --muted: #5c5c66;
  --paper: #f7f7fb;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(47, 52, 120, 0.12);
  --radius: 14px;
  --header-h: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 52, 120, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(47, 52, 120, 0.1);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  order: 3;
}

.site-nav {
  order: 2;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch a {
  color: var(--muted);
  transition: color 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--navy);
}

.lang-switch span {
  opacity: 0.35;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: flex-end;
  flex: 1;
}

.site-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.25s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  margin-top: 0;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 6vw 60px;
  background: linear-gradient(
    105deg,
    rgba(47, 52, 120, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.55) 58%,
    rgba(255, 255, 255, 0.82) 100%
  );
}

.hero-copy {
  max-width: 480px;
  text-align: right;
  animation: fadeUp 0.9s ease both;
}

.hero-logo {
  width: 110px;
  margin-left: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 12px rgba(47, 52, 120, 0.2));
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.hero-sub {
  margin: 14px 0 28px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 24px rgba(47, 52, 120, 0.25);
}

.btn:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.accent-bars {
  width: 28px;
  height: 36px;
  flex-shrink: 0;
  background:
    linear-gradient(115deg, transparent 35%, var(--navy) 35% 48%, transparent 48%),
    linear-gradient(115deg, transparent 52%, var(--navy) 52% 65%, transparent 65%);
  background-color: transparent;
}

.section-head.light h2 {
  color: var(--white);
}

.section-head.light .accent-bars {
  background:
    linear-gradient(115deg, transparent 35%, #c5c8e4 35% 48%, transparent 48%),
    linear-gradient(115deg, transparent 52%, #c5c8e4 52% 65%, transparent 65%);
}

/* About */
.about {
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.about-text h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
}

.about-text p {
  margin: 0 0 14px;
  color: var(--muted);
  text-align: justify;
}

.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-photo:hover img {
  transform: scale(1.04);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--white);
  border: 1px solid rgba(47, 52, 120, 0.1);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 4px 18px rgba(47, 52, 120, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 12px;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.info-card strong {
  color: var(--navy);
}

.promise {
  margin: 36px 0 0;
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

/* Products */
.products {
  background: var(--white);
}

.product-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--lavender);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 22px;
}

.product-copy h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
}

.product-tag {
  margin: 0 0 8px;
  color: var(--navy-soft);
  font-weight: 700;
}

.product-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--white);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-gallery img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Clients */
.clients {
  position: relative;
  background: var(--paper);
  padding-bottom: 120px;
  overflow: hidden;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.client-grid img {
  width: 100%;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(47, 52, 120, 0.08);
  transition: transform 0.25s ease;
}

.client-grid img:hover {
  transform: translateY(-4px);
}

.clients-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: var(--navy);
  clip-path: polygon(0 55%, 8% 40%, 16% 58%, 24% 35%, 32% 60%, 40% 30%, 48% 55%, 56% 28%, 64% 52%, 72% 32%, 80% 58%, 88% 38%, 100% 50%, 100% 100%, 0 100%);
}

/* Honors & Patents */
.honors {
  background: var(--white);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.honor-grid figure {
  margin: 0;
  text-align: center;
}

.honor-grid img,
.patent-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.25s ease;
  background: var(--white);
}

.honor-grid img:hover,
.patent-grid img:hover {
  transform: translateY(-4px) scale(1.01);
}

.honor-grid figcaption {
  margin-top: 12px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.patents {
  background: linear-gradient(180deg, var(--paper), var(--white));
}

.patent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Workshop */
.workshop {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
}

.workshop-group {
  margin-bottom: 48px;
}

.workshop-group:last-child {
  margin-bottom: 0;
}

.workshop-badge {
  display: inline-block;
  background: rgba(232, 234, 246, 0.95);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workshop-grid article {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.workshop-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.ws-body {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 16px 14px 18px;
  border-radius: 0 0 12px 12px;
  flex: 1;
}

.ws-body h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lavender-mid);
}

.ws-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Equipment */
.equipment {
  background: var(--white);
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.equip-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.equip-label {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--navy);
  color: var(--ink);
  background: var(--white);
}

.equip-label.filled {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.equip-grid img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

/* Facilities */
.facilities {
  background: var(--paper);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.facility-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.facility-photo {
  width: 70%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 28px auto 0;
  box-shadow: 0 8px 24px rgba(47, 52, 120, 0.15);
}

.facility-body {
  margin-top: 24px;
  padding: 28px 22px 32px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  flex: 1;
}

.facility-body h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.facility-body p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.7;
}

/* Process */
.process {
  background: var(--white);
}

.process-figure {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.process-figure img {
  width: 100%;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  background: var(--lavender);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  position: relative;
}

.process-list li::before {
  content: counter(step);
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  line-height: 24px;
}

/* Systems */
.systems {
  background: linear-gradient(180deg, var(--paper), var(--white));
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.system-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}

.system-badge {
  width: min(160px, 70%);
  margin: 0 auto 18px;
  object-fit: contain;
}

.system-badge.badge-sm {
  width: 90px;
}

.system-card h3 {
  margin: 0 0 14px;
  text-align: center;
  color: var(--navy);
  font-size: 1.2rem;
}

.system-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: justify;
}

.system-card p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact {
  position: relative;
  padding: 100px 0;
  background: var(--navy-deep);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-watermark {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: fadeUp 0.8s ease both;
}

.contact-photo {
  background: var(--lavender);
  min-height: 360px;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-info {
  padding: 48px 40px;
}

.contact-info h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
}

.contact-info h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(47, 52, 120, 0.15);
  margin-top: 16px;
}

.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(47, 52, 120, 0.1);
}

.contact-info li:last-child {
  border-bottom: 0;
}

.ci-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.ci-icon svg {
  width: 100%;
  height: 100%;
}

.contact-info strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-info a,
.contact-info p {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.contact-info a:hover {
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: #1a1d45;
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: auto;
  height: 48px;
  object-fit: contain;
  filter: none;
  background: white;
  border-radius: 6px;
  padding: 4px;
}

.footer-brand strong {
  display: block;
  font-size: 0.98rem;
}

.footer-brand span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 12, 30, 0.88);
  display: grid;
  place-items: center;
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid,
  .product-block,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .product-gallery,
  .workshop-grid,
  .equip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .patent-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-overlay {
    justify-content: center;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.75) 55%,
      rgba(255, 255, 255, 0.92) 100%
    );
  }

  .hero-copy {
    text-align: center;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .header-actions {
    order: 2;
  }

  .site-nav {
    order: 3;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(47, 52, 120, 0.1);
    box-shadow: 0 16px 32px rgba(47, 52, 120, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    flex: none;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(47, 52, 120, 0.06);
  }

  .about-cards,
  .client-grid,
  .honor-grid,
  .facility-grid,
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .patent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 64px 0;
  }

  .product-gallery,
  .workshop-grid,
  .equip-grid,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1 {
    font-size: 1.55rem;
  }
}
