:root {
  --ink: #14243a;
  --muted: #66758a;
  --line: #d8e1ea;
  --blue: #0d5ea8;
  --deep: #082e56;
  --red: #b9212d;
  --gold: #f2b84b;
  --steel: #f3f6f9;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 35, 64, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--white);
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.site-header.is-scrolled .topbar {
  border-bottom-color: var(--line);
  color: var(--muted);
}

.topbar-inner,
.footer-inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-left: 5px solid var(--red);
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

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

.brand strong {
  max-width: 460px;
  overflow: hidden;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  opacity: 0.72;
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  padding: 26px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 17px;
  width: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  order: 3;
  align-items: center;
  gap: 10px;
}

.lang-switch,
.menu-toggle {
  display: inline-grid;
  min-width: 46px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 24, 48, 0.92) 0%, rgba(7, 44, 84, 0.76) 44%, rgba(8, 46, 86, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 19, 34, 0.35), rgba(7, 19, 34, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 760px;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.manufacturing .section-kicker,
.contact .section-kicker {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(760px, 100%);
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 22px 0 48px;
}

.btn {
  display: inline-flex;
  min-width: 132px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--red);
  color: var(--white);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.hero-stats {
  display: grid;
  width: min(660px, 100%);
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.about p,
.quality p,
.contact p {
  color: var(--muted);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
}

.about-facts div {
  min-height: 108px;
  padding: 18px 16px;
  background: var(--steel);
}

.about-facts strong {
  display: block;
  color: var(--deep);
  font-size: 25px;
  line-height: 1.15;
}

.about-facts span {
  color: var(--muted);
  font-size: 13px;
}

.factory-gallery img,
.quality-gallery img,
.product-card img,
.feature-grid img {
  object-fit: cover;
  box-shadow: var(--shadow);
}

.factory-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.factory-gallery figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--steel);
}

.factory-gallery img {
  height: 210px;
  transition: transform 0.25s ease;
}

.factory-gallery figure:hover img {
  transform: scale(1.025);
}

.factory-gallery .factory-main {
  grid-column: 1 / -1;
}

.factory-gallery .factory-main img {
  height: 330px;
}

.factory-gallery figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 13px;
  background: var(--deep);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.products {
  background: var(--steel);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  border: 0;
  background: var(--white);
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 1px 0 var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card img {
  height: 210px;
  box-shadow: none;
}

.product-card div {
  padding: 24px;
}

.product-card p,
.feature-grid p {
  color: var(--muted);
  font-size: 14px;
}

.product-card span {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.manufacturing {
  color: var(--white);
  background: linear-gradient(135deg, #082e56 0%, #0d5ea8 58%, #123d5a 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.feature-grid article {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.feature-grid img {
  height: 205px;
  box-shadow: none;
}

.feature-grid span {
  display: block;
  padding: 24px 24px 8px;
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
}

.feature-grid h3,
.feature-grid p {
  padding: 0 24px;
}

.feature-grid p {
  padding-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
}

.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.workshop-gallery article {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.workshop-gallery img {
  height: 185px;
  object-fit: cover;
}

.workshop-gallery h3 {
  padding: 20px 20px 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.workshop-gallery p {
  padding: 0 20px 24px;
  color: var(--muted);
  font-size: 14px;
}

.quality-gallery {
  display: grid;
  gap: 18px;
}

.quality-gallery img {
  height: 250px;
}

.quality-gallery .honors-wall {
  height: auto;
  object-fit: contain;
  background: var(--steel);
}

.quality-gallery .showroom-full {
  height: auto;
  object-fit: contain;
  background: var(--steel);
}

.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--red);
  content: "";
}

.contact {
  background: #102746;
  color: var(--white);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 54px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.78);
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--white);
  color: var(--ink);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer {
  padding: 22px 0;
  background: #071b31;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

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

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 38, 0.72);
  backdrop-filter: blur(8px);
}

.product-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1080px, 100%);
  max-height: min(860px, calc(100vh - 56px));
  grid-template-columns: 0.95fr 1.05fr;
  overflow: auto;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  background: var(--deep);
  color: var(--white);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.product-modal-media {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--steel);
}

.product-modal-media img {
  height: 190px;
  object-fit: cover;
}

.product-modal-media img:first-child {
  height: 310px;
}

.product-modal-content {
  padding: 42px;
}

.product-modal-content p {
  color: var(--muted);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.product-detail-grid div {
  padding: 20px;
  background: var(--steel);
}

.product-detail-grid h3 {
  font-size: 18px;
}

.product-detail-grid ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-detail-grid li {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .brand strong {
    max-width: 330px;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .nav {
    min-height: 66px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    padding: 14px 20px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    white-space: normal;
  }

  .nav-links.is-open {
    display: grid;
    gap: 0;
  }

  .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .hero-content {
    min-height: 690px;
  }

  .split,
  .split.reverse,
  .contact-box,
  .product-modal-panel {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .feature-grid,
  .workshop-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    max-width: 210px;
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 86px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-actions,
  .section-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats,
  .about-facts,
  .product-grid,
  .feature-grid,
  .workshop-gallery {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section {
    padding: 66px 0;
  }

  .factory-gallery .factory-main img,
  .factory-gallery img,
  .quality-gallery img {
    height: 280px;
  }

  .factory-gallery {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .product-modal {
    padding: 14px;
  }

  .product-modal-content {
    padding: 28px 20px;
  }

  .product-modal-media img,
  .product-modal-media img:first-child {
    height: 210px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}
