:root {
  --ink: #111827;
  --soft-ink: #243244;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --deep: #0d1726;
  --blue: #1f5f8b;
  --gold: #c79a48;
  --gold-soft: #f4ead8;
  font-family: "Microsoft YaHei", "PingFang SC", "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 231, 236, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(13, 23, 38, 0.16);
  font-weight: 900;
}

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

.brand-text strong {
  font-size: 19px;
  letter-spacing: 0;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: #344054;
  font-size: 15px;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select,
.mobile-menu {
  display: inline-flex;
  align-items: center;
  min-width: 42px;
  height: 42px;
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-select {
  max-width: 132px;
  padding: 0 10px;
  font-weight: 800;
  outline: none;
}

.quote-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.quote-button,
.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--blue));
  box-shadow: 0 14px 30px rgba(31, 95, 139, 0.22);
}

.primary-action.dark {
  background: var(--deep);
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.mobile-menu {
  display: none;
  gap: 4px;
  padding: 0;
}

.mobile-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--deep);
}

.mobile-panel {
  display: none;
}

main {
  overflow-x: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.02fr);
  gap: clamp(34px, 5.5vw, 92px);
  align-items: center;
  min-height: calc(100vh - 79px);
  padding: clamp(48px, 6vw, 86px) clamp(22px, 6vw, 88px) clamp(38px, 5vw, 70px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 28%, rgba(199, 154, 72, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(13, 23, 38, 0.98), rgba(18, 39, 61, 0.96) 48%, rgba(31, 95, 139, 0.92));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #eacb8a;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-lede {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-visual {
  min-height: 480px;
}

.visual-shell {
  position: relative;
  min-height: 480px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 72px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.26);
}

.visual-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.visual-title span {
  color: #eacb8a;
  font-size: 34px;
  font-weight: 900;
}

.visual-products {
  position: absolute;
  inset: 92px 32px 88px;
}

.visual-item {
  position: absolute;
  display: block;
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

.item-hardware {
  left: 0;
  top: 18px;
  width: 46%;
  height: 38px;
  background: linear-gradient(90deg, #f4f7f9, #9da9b5, #fefefe);
}

.item-door {
  right: 2%;
  top: 0;
  width: 38%;
  height: 210px;
  border: 14px solid rgba(239, 244, 247, 0.82);
  background: rgba(255, 255, 255, 0.06);
}

.item-handle {
  left: 10%;
  top: 124px;
  width: 48%;
  height: 86px;
  border: 16px solid #bec8d1;
  background: transparent;
  border-radius: 999px;
}

.item-sealant {
  left: 4%;
  bottom: 6px;
  width: 74%;
  height: 52px;
  background: linear-gradient(90deg, #f7f2e8 0 66%, var(--gold) 66% 100%);
  border-radius: 999px;
}

.visual-footer {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.visual-footer span {
  padding: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  padding: 30px clamp(18px, 4vw, 56px);
  background: #fff;
}

.metrics strong {
  display: block;
  color: var(--deep);
  font-size: clamp(28px, 3vw, 42px);
}

.metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 7vw, 102px) clamp(18px, 6vw, 88px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.factory-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.factory-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.82;
}

.products-section {
  background: var(--wash);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 330px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.product-visual {
  height: 148px;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #eef2f6;
  position: relative;
  overflow: hidden;
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  display: block;
}

.product-visual.has-image {
  background: #f8fafc;
}

.product-visual.has-image::before,
.product-visual.has-image::after {
  display: none;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hardware-visual::before {
  left: 22px;
  top: 50px;
  width: 70%;
  height: 22px;
  background: linear-gradient(90deg, #f8fafc, #9ca8b5, #fff);
  border-radius: 999px;
}

.hardware-visual::after {
  right: 28px;
  bottom: 28px;
  width: 76px;
  height: 42px;
  border: 12px solid #a7b2bd;
  border-radius: 999px;
}

.window-visual::before {
  inset: 22px 44px;
  border: 12px solid #1f5f8b;
  border-radius: 8px;
}

.window-visual::after {
  top: 28px;
  bottom: 28px;
  left: 50%;
  width: 10px;
  background: #1f5f8b;
}

.handle-visual::before {
  left: 34px;
  top: 58px;
  width: 68%;
  height: 34px;
  border: 12px solid #c79a48;
  border-radius: 999px;
}

.handle-visual::after {
  right: 38px;
  top: 46px;
  width: 20px;
  height: 58px;
  background: #8a6a35;
  border-radius: 999px;
}

.sealant-visual::before {
  left: 30px;
  top: 54px;
  width: 74%;
  height: 42px;
  background: linear-gradient(90deg, #fff 0 68%, #c79a48 68% 100%);
  border: 1px solid #d8dde4;
  border-radius: 999px;
}

.sealant-visual::after {
  right: 24px;
  top: 62px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 34px solid #7c8792;
}

.helmet-visual::before {
  left: 50%;
  top: 38px;
  width: 138px;
  height: 78px;
  transform: translateX(-50%);
  background: #d9a441;
  border-radius: 90px 90px 20px 20px;
}

.helmet-visual::after {
  left: 50%;
  bottom: 30px;
  width: 170px;
  height: 18px;
  transform: translateX(-50%);
  background: #bd8424;
  border-radius: 999px;
}

.board-visual::before {
  left: 42px;
  top: 28px;
  width: 52%;
  height: 88px;
  background: linear-gradient(135deg, #d8b178, #f3dfbd);
  border-radius: 8px;
  box-shadow: 32px 18px 0 rgba(173, 127, 70, 0.62);
}

.board-visual::after {
  right: 34px;
  bottom: 26px;
  width: 42%;
  height: 10px;
  background: rgba(17, 24, 39, 0.14);
  border-radius: 999px;
}

.product-card p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.product-card span {
  display: block;
  color: var(--muted);
  line-height: 1.75;
}

.product-card em {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.product-price {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font-size: 20px;
}

.product-detail {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 6vw, 88px);
  background: #fff;
}

.detail-back {
  min-height: 42px;
  padding: 0 16px;
  color: var(--blue);
  background: #eef4f8;
  border: 1px solid #d8e4ec;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 24px;
}

.detail-visual {
  min-height: 360px;
  height: auto;
}

.detail-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 48px);
}

.detail-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.detail-price {
  display: block;
  margin: 18px 0;
  color: var(--gold);
  font-size: clamp(28px, 3vw, 42px);
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.spec-list span {
  padding: 10px 12px;
  color: var(--soft-ink);
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.related-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 54px;
}

.related-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.related-header span {
  color: var(--muted);
}

.related-slider {
  display: grid;
  grid-auto-columns: minmax(260px, 330px);
  grid-auto-flow: column;
  gap: 16px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.related-card {
  scroll-snap-align: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.related-card .product-visual {
  height: 120px;
}

.related-card p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-card h4 {
  margin: 0 0 10px;
  font-size: 22px;
}

.related-card strong {
  color: var(--gold);
}

.factory-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  background: #fff;
}

.about-section {
  background: #fff;
}

.factory-actions {
  margin-top: 26px;
}

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

.strength-grid article {
  min-height: 210px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.strength-grid strong {
  color: var(--gold);
  font-size: 16px;
}

.strength-grid h3 {
  margin: 46px 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.strength-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.catalog-section {
  background: #101827;
}

.catalog-section .section-heading h2,
.catalog-section .section-heading p:not(.eyebrow) {
  color: #fff;
}

.catalog-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.catalog-table {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.catalog-head,
.catalog-row {
  display: grid;
  grid-template-columns: 0.72fr 1.3fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}

.catalog-head {
  color: #eacb8a;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-row {
  color: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-row strong {
  color: #fff;
  font-size: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.72fr);
  gap: 34px;
  padding: clamp(58px, 7vw, 102px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(135deg, rgba(31, 95, 139, 0.08), rgba(199, 154, 72, 0.1)),
    var(--wash);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-list a,
.contact-list span {
  width: fit-content;
  color: var(--soft-ink);
  font-weight: 800;
}

.contact-group {
  display: grid;
  gap: 8px;
}

.contact-group strong {
  color: var(--ink);
  font-size: 18px;
}

.contact-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.contact-group a {
  color: #00756f;
  font-size: 18px;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.inquiry-form textarea {
  min-height: 136px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.14);
}

.inquiry-form button {
  min-height: 50px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--blue));
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 24px clamp(18px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.72);
  background: #0a101b;
}

.site-footer strong {
  color: #fff;
}

.site-footer span:last-child {
  text-align: right;
  line-height: 1.6;
}

@media (max-width: 1060px) {
  .desktop-nav,
  .quote-button {
    display: none;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .mobile-panel {
    position: fixed;
    top: 79px;
    right: 16px;
    left: 16px;
    z-index: 19;
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  }

  .menu-open .mobile-panel {
    display: grid;
  }

  .mobile-panel a {
    padding: 14px 12px;
    color: var(--soft-ink);
    font-weight: 800;
    border-bottom: 1px solid var(--line);
  }

  .mobile-panel a:last-child {
    border-bottom: 0;
  }

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

  .hero {
    min-height: auto;
    gap: 34px;
  }

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

@media (max-width: 760px) {
  .site-header {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
    flex: 1 1 auto;
    overflow: hidden;
  }

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

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-text small {
    display: none;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .hero {
    padding: 28px 18px 42px;
    gap: 26px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: 28px;
    line-height: 1.24;
  }

  .hero-lede {
    max-width: 560px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 22px;
  }

  .hero-visual,
  .visual-shell {
    min-height: 320px;
  }

  .visual-shell {
    padding: 20px;
  }

  .visual-title span {
    font-size: 30px;
  }

  .visual-products {
    inset: 82px 22px 92px;
  }

  .item-hardware {
    top: 4px;
    width: 42%;
    height: 34px;
  }

  .item-door {
    right: 0;
    width: 34%;
    height: 178px;
    border-width: 11px;
  }

  .item-handle {
    left: 8%;
    top: 104px;
    width: 44%;
    height: 72px;
    border-width: 12px;
  }

  .item-sealant {
    left: 5%;
    bottom: 0;
    width: 68%;
    height: 44px;
  }

  .visual-footer {
    right: 20px;
    bottom: 20px;
    left: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-footer span {
    min-width: 0;
    padding: 10px 6px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metrics,
  .product-grid,
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .strength-grid article {
    min-height: auto;
  }

  .strength-grid h3 {
    margin-top: 32px;
  }

  .catalog-head {
    display: none;
  }

  .catalog-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    padding: 20px;
  }

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

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

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .site-footer span:last-child {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .language-select {
    width: 114px;
    max-width: 32vw;
    height: 42px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .primary-action,
  .secondary-action,
  .inquiry-form button {
    width: 100%;
  }

  .mobile-menu {
    width: 42px;
    height: 42px;
  }

  .hero-visual,
  .visual-shell {
    min-height: 300px;
  }

  .visual-title strong {
    font-size: 11px;
  }

  .visual-products {
    inset: 78px 18px 84px;
  }

  .visual-footer {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }
}
