:root {
  --ink: #18202a;
  --muted: #5d6978;
  --line: #dfe5eb;
  --paper: #ffffff;
  --field: #f4f7fa;
  --navy: #123c69;
  --blue: #1c70b7;
  --teal: #168b86;
  --red: #c23b2a;
  --steel: #eef3f7;
  --header-bg: rgba(13, 25, 36, 0.78);
  --capability-bg: #111b24;
  --hero-bg: #111820;
  --footer-bg: #0c1219;
  --shadow: 0 18px 50px rgba(16, 33, 48, 0.14);
}

* {
  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(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.84);
  background: rgba(194, 59, 42, 0.92);
  font-weight: 800;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

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

.brand-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

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

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  display: grid;
  align-items: end;
  padding: 134px clamp(20px, 5vw, 72px) 44px;
  overflow: hidden;
  color: #ffffff;
  background: var(--hero-bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.92) 0%, rgba(8, 18, 30, 0.68) 42%, rgba(8, 18, 30, 0.22) 100%),
    url("./products/banner-products.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-carousel {
  background: var(--hero-bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, min(58vw, 840px) auto;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 900ms ease,
    transform 5800ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
  min-width: 0;
}

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

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.12;
  font-weight: 850;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.hero-dots span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dots span.is-active {
  background: var(--red);
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 800;
}

.primary-action {
  background: var(--red);
  color: #ffffff;
}

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

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats div {
  min-height: 94px;
  padding: 18px 22px;
  background: rgba(12, 27, 41, 0.74);
}

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

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

section[id] {
  scroll-margin-top: 88px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--steel);
}

.intro h2,
.section-heading h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
}

.intro p:last-child,
.section-heading p,
.contact-band p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

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

.product-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 42, 62, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(28, 112, 183, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-image-link {
  display: block;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(238, 243, 247, 0.8), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.product-card img {
  width: 100%;
  height: 100%;
  padding: 22px;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(238, 243, 247, 0.8), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.product-card div {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.product-card h3 a:hover {
  color: var(--blue);
}

.product-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-detail,
.news-detail {
  margin-top: 12px;
}

.product-detail summary,
.news-detail summary {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.product-detail dl {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.product-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.product-detail dt {
  color: var(--muted);
  font-size: 13px;
}

.product-detail dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.product-tags span {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--navy);
  background: var(--field);
  font-size: 12px;
  font-weight: 800;
}

.capability {
  color: #ffffff;
  background: var(--capability-bg);
}

.capability .section-heading p,
.capability .section-kicker {
  color: #8ad1cd;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.capability-item {
  min-height: 248px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.capability-item span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.capability-item h3 {
  margin: 46px 0 12px;
  font-size: 22px;
}

.capability-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.applications {
  background: #ffffff;
}

.application-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.application-list span {
  display: grid;
  min-height: 88px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

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

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

.news-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 42, 62, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-card:hover {
  border-color: rgba(22, 139, 134, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  background: #f7fafc;
}

.news-card-body {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.news-meta span {
  color: var(--teal);
  font-weight: 900;
}

.news-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.news-detail p {
  margin: 10px 0 0;
}

.news-author {
  color: var(--ink) !important;
  font-weight: 800;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.news-tags span {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--navy);
  background: var(--field);
  font-size: 12px;
  font-weight: 800;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.58fr);
  gap: clamp(32px, 7vw, 96px);
  padding: 86px clamp(20px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(14, 44, 72, 0.96), rgba(19, 62, 97, 0.92)),
    url("./products/lift-check-valve.jpg") right center / contain no-repeat;
}

.contact-band .section-kicker,
.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-info {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-info h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.contact-info dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
}

.contact-info dt,
.contact-info dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.contact-info dt {
  font-weight: 900;
}

.contact-links,
.payment-methods {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-links h3,
.payment-methods h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
}

.contact-links div,
.payment-methods div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-links a,
.contact-links span,
.payment-methods span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.inquiry-cart-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  padding: 14px;
  background: #f7fafc;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head strong {
  font-size: 16px;
}

.cart-head button,
.inquiry-cart-box li button {
  min-height: 30px;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  padding: 0 10px;
  color: var(--navy);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.inquiry-cart-box p,
.inquiry-cart-box ul {
  margin: 0;
}

.inquiry-cart-box ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.inquiry-cart-box li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e3e9f0;
  padding-bottom: 8px;
}

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

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

.inquiry-form textarea {
  resize: vertical;
}

.wide-field,
.inquiry-form > button,
.form-note {
  grid-column: 1 / -1;
}

.inquiry-form > button {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: var(--red);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--footer-bg);
}

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

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  flex: 0 0 auto;
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .product-grid,
  .news-grid,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 68px;
  }

  .brand-text strong {
    max-width: min(58vw, 380px);
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(13, 25, 36, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 76vh;
    padding-top: 112px;
  }

  .hero-slide {
    background-position: center, center bottom;
    background-size: cover, 82% auto;
  }

  .hero-copy {
    max-width: min(330px, calc(100vw - 32px));
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
    margin-top: 36px;
  }

  .hero-stats div {
    min-height: 78px;
  }

  .intro,
  .section-heading,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .section-heading .section-kicker {
    grid-column: auto;
    margin-bottom: 0;
  }

  .contact-band {
    background: linear-gradient(90deg, rgba(14, 44, 72, 0.98), rgba(19, 62, 97, 0.96));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .section,
  .contact-band {
    padding: 58px 16px;
  }

  .hero {
    min-height: 78vh;
    padding: 108px 16px 32px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.18;
  }

  .hero-actions a {
    width: 100%;
  }

  .product-grid,
  .news-grid,
  .capability-grid,
  .application-list,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 230px 1fr;
  }

  .capability-item {
    min-height: 210px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
