:root {
  --ink: #102033;
  --muted: #647084;
  --line: #dfe5ee;
  --soft: #f5f7fa;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --accent: #d69d33;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

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

body.modal-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 42px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
}

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

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

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 28px 0;
  border-bottom: 2px solid transparent;
}

.nav a.active,
.nav a:hover {
  color: var(--ink);
  border-color: var(--brand);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.lang-link.active,
.lang-link:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.quote-link,
.primary-btn,
.alibaba-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 700;
}

.quote-link,
.primary-btn {
  background: var(--brand);
  color: var(--white);
}

.alibaba-btn {
  color: var(--brand-dark);
  background: #fff7e8;
  border-color: #f0c56c;
}

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

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  color: rgba(255, 255, 255, .86);
  font-size: 19px;
  line-height: 1.7;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  padding: 30px 42px;
  border-right: 1px solid var(--line);
}

.metrics strong {
  display: block;
  font-size: 28px;
}

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

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-head {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}

.section h2,
.page-title h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.14;
}

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

.category-showcase,
.category-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.category-showcase a,
.category-filter a {
  display: block;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.category-showcase a:hover,
.category-filter a:hover,
.category-filter a.active {
  border-color: var(--brand);
  background: #f0faf8;
}

.category-showcase strong,
.category-showcase span,
.category-filter strong,
.category-filter span {
  display: block;
}

.category-showcase strong,
.category-filter strong {
  font-size: 20px;
}

.category-showcase span,
.category-filter span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.category-filter {
  grid-template-columns: repeat(4, 1fr);
}

.product-grid.large {
  grid-template-columns: repeat(3, 1fr);
}

.product-list {
  display: grid;
  gap: 16px;
}

.product-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 110px;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}

.product-row:hover {
  border-color: var(--brand);
  background: #fbfefd;
}

.product-row-image {
  display: block;
  background: var(--soft);
}

.product-row-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-row-body,
.product-row-meta,
.product-row-body strong,
.product-row-body em,
.product-row-specs,
.product-row-specs span,
.product-row-action {
  display: block;
}

.product-row-meta {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.product-row-body strong {
  margin-top: 8px;
  font-size: 24px;
}

.product-row-body em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.product-row-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.product-row-specs span {
  display: inline-flex;
  gap: 7px;
}

.product-row-specs b {
  color: var(--ink);
}

.product-row-action {
  justify-self: end;
  padding: 10px 14px;
  color: var(--brand);
  border: 1px solid var(--brand);
  font-weight: 800;
}

.product-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--brand);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.product-card span,
.product-card strong,
.product-card em {
  display: block;
  margin: 0 18px;
}

.product-card span {
  margin-top: 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card strong {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 20px;
}

.product-card em {
  margin-top: -8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.page-title {
  padding: 84px 42px 56px;
  background: var(--soft);
}

.page-title h1,
.page-title p {
  width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-title p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.about-layout p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.about-layout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  padding: 32px;
}

.contact-panel p strong {
  display: block;
  color: var(--ink);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-success,
.form-error {
  padding: 12px 14px;
  font-weight: 700;
}

.form-success {
  color: #05603a;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.form-error {
  color: #b42318;
  background: #fff1f3;
  border: 1px solid #fecdca;
}

.site-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 14px 15px;
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 42px;
  color: rgba(255, 255, 255, .78);
  background: var(--ink);
}

.footer strong {
  color: var(--white);
}

.footer-brand p {
  max-width: 520px;
  margin: 10px 0 0;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 13px;
}

.footer-records a {
  color: rgba(255, 255, 255, .62);
}

.footer-records a:hover {
  color: var(--white);
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer .admin-entry {
  color: rgba(255, 255, 255, .48);
}

.footer .admin-entry:hover {
  color: var(--white);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, .72);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(320px, .92fr);
  gap: 28px;
  width: min(1160px, calc(100% - 44px));
  max-height: calc(100vh - 44px);
  margin: 22px auto;
  padding: 24px;
  overflow: auto;
  background: var(--white);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.modal-main-image {
  background: var(--soft);
  border: 1px solid var(--line);
}

.modal-main-image img {
  display: block;
  width: 100%;
  height: min(56vh, 560px);
  object-fit: contain;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.modal-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: var(--soft);
  cursor: pointer;
}

.modal-thumbs button.active {
  border-color: var(--brand);
}

.modal-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.modal-info h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.modal-info > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.modal-info dl {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.modal-info dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.modal-info dt {
  color: var(--muted);
  font-weight: 700;
}

.modal-info dd {
  margin: 0;
}

.modal-description h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.modal-description ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.floating-contact {
  position: fixed;
  right: 0;
  top: 58%;
  bottom: auto;
  z-index: 24;
  display: grid;
  gap: 8px;
  justify-items: end;
  transform: translateY(-50%);
}

.whatsapp-float,
.alibaba-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 136px;
  max-width: 156px;
  padding: 0 14px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transform: translateX(18px);
  transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp-float:hover,
.alibaba-float:hover,
.whatsapp-float:focus,
.alibaba-float:focus {
  transform: translateX(0);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.whatsapp-float {
  background: #25d366;
}

.alibaba-float {
  background: #f59f00;
}

@media (max-width: 900px) {
  .site-header,
  .footer {
    flex-wrap: wrap;
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .header-tools {
    margin-left: auto;
  }

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

  .metrics,
  .section-head,
  .about-layout,
  .contact-layout,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid.large,
  .category-showcase,
  .category-filter {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-row {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .product-row-action {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .quote-link {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .metrics,
  .product-grid,
  .product-grid.large,
  .category-showcase,
  .category-filter,
  .modal-thumbs {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 16px;
  }

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

  .product-row-action {
    grid-column: auto;
  }

  .modal-main-image img {
    height: 320px;
  }

  .floating-contact {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    grid-template-columns: 1fr 1fr;
    transform: none;
  }

  .whatsapp-float,
  .alibaba-float {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
    transform: none;
  }
}
