:root {
  --ink: #182331;
  --muted: #657384;
  --line: #dce4ee;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --blue: #07539f;
  --blue-2: #0b66bd;
  --gold: #f3b11b;
  --dark: #0c1724;
  --green: #18a36f;
  --shadow: 0 22px 60px rgba(20, 39, 63, 0.14);
  --container: min(100% - 72px, 1660px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.topbar-inner,
.nav,
.section,
.footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.topbar-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.45;
}

.topbar strong {
  color: #fff;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(220, 228, 238, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-logo {
  width: 220px;
  height: 70px;
  display: block;
  object-fit: contain;
}

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

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #2d3a4a;
  font-size: 14px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
}

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

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

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

.button,
.icon-button,
.lang-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 780;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
}

.button.gold {
  border-color: var(--gold);
  background: var(--gold);
  color: #111820;
}

.icon-button,
.lang-button {
  min-width: 44px;
  background: #fff;
  color: var(--blue);
  border-color: var(--line);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 118px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #f8fbff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.93) 38%, rgba(255, 255, 255, 0.55) 64%, rgba(255, 255, 255, 0.2) 100%),
    url("assets/brochure/hongtu-brochure-cover.webp");
  background-size: auto, min(86%, 980px);
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 86%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 78px 0 96px;
  display: grid;
  grid-template-columns: minmax(520px, 0.82fr) minmax(520px, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--gold);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 26px;
}

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

.machine-card {
  justify-self: end;
  width: min(100%, 720px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.machine-window {
  min-height: 410px;
  border-radius: 8px;
  background-image: url("assets/brochure/hongtu-brochure-cover.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  border: 1px solid var(--line);
}

.machine-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(24, 163, 111, 0.15);
}

.section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy {
  color: var(--muted);
  font-size: 17px;
}

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

.feature-card,
.service-card,
.product-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover,
.service-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 83, 159, 0.28);
  box-shadow: var(--shadow);
}

.feature-image {
  height: 210px;
  border-radius: 8px 8px 0 0;
  background-image: url("assets/brochure/hongtu-brochure-cover.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  border-bottom: 1px solid var(--line);
}

.feature-card:nth-child(1) .feature-image {
  background-position: center;
}

.feature-card:nth-child(2) .feature-image {
  background-position: center;
}

.feature-card:nth-child(3) .feature-image {
  background-position: center;
}

.card-body {
  padding: 24px;
}

.card-body p {
  color: var(--muted);
}

.band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(440px, 1.05fr);
  gap: 36px;
  align-items: center;
}

.about-visual {
  min-height: 520px;
  border-radius: 8px;
  background-image: url("assets/brochure/hongtu-brochure-cover.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.about-panel {
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf4ff;
  color: var(--blue);
  font-weight: 900;
}

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

.service-card {
  min-height: 220px;
  padding: 22px;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

.catalog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 83, 159, 0.28);
  box-shadow: var(--shadow);
}

.catalog-media {
  width: 100%;
  height: 270px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.catalog-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 260ms ease;
}

.catalog-card:hover .catalog-media img {
  transform: scale(1.015);
}

.catalog-body {
  padding: 22px;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.product-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
}

.tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.product-viewport {
  overflow: hidden;
}

.product-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  transition: transform 260ms ease;
}

.product-card {
  overflow: hidden;
}

.product-image {
  height: 260px;
  background-image: url("assets/brochure/hongtu-brochure-cover.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  border-bottom: 1px solid var(--line);
}

.product-card:nth-child(1) .product-image {
  background-position: center;
}

.product-card:nth-child(2) .product-image {
  background-position: center;
}

.product-card:nth-child(3) .product-image {
  background-position: center;
}

.product-card:nth-child(4) .product-image {
  background-position: center;
}

.product-card:nth-child(5) .product-image {
  background-position: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

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

.product-modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 36, 0.58);
}

.modal-panel {
  position: absolute;
  inset: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(12, 23, 36, 0.32);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.modal-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.42fr) minmax(520px, 1fr);
  gap: 0;
  flex: 1;
}

.modal-info {
  overflow: auto;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.detail-block {
  margin-bottom: 24px;
}

.detail-block ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-block li + li {
  margin-top: 8px;
}

.catalog-page-view {
  min-width: 0;
  overflow: auto;
  padding: 20px;
  background: #f6f8fb;
}

.catalog-page-view img {
  width: 100%;
  min-width: 760px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.brochure-strip {
  min-height: 360px;
  display: grid;
  align-items: end;
  border-radius: 8px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(6, 42, 80, 0.88), rgba(6, 42, 80, 0.54), rgba(6, 42, 80, 0.1)),
    url("assets/brochure/hongtu-brochure-cover.webp");
  background-size: auto, contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0c2743;
  box-shadow: var(--shadow);
}

.brochure-copy {
  max-width: 720px;
  padding: 34px;
  color: #fff;
}

.brochure-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(440px, 0.78fr) minmax(480px, 1fr);
  gap: 28px;
}

.contact-card {
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.contact-item span:first-child {
  color: var(--blue);
  font-weight: 900;
}

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

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

.form .wide {
  grid-column: 1 / -1;
}

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

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 42px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: grid;
  gap: 10px;
}

.float-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.float-button.gold {
  background: var(--gold);
  color: #111820;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 36, 0.54);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  padding: 28px;
  background: #fff;
  box-shadow: -30px 0 80px rgba(12, 23, 36, 0.24);
  overflow: auto;
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.close-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1200px) {
  :root {
    --container: min(100% - 44px, 1660px);
  }

  .nav {
    min-height: 72px;
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 10px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-inner,
  .about-grid,
  .section-head,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .machine-card {
    justify-self: stretch;
  }

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

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

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

  .modal-info {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 30px, 1660px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 152px;
    height: 49px;
  }

  .brand-sub {
    display: none;
  }

  .nav-actions .button {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 62px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-metrics,
  .feature-triplet,
  .service-grid,
  .product-grid-catalog,
  .form {
    grid-template-columns: 1fr;
  }

  .machine-window {
    min-height: 300px;
    background-size: contain;
  }

  .product-track {
    grid-auto-columns: 86%;
  }

  .modal-panel {
    inset: 0;
    border-radius: 0;
  }

  .modal-head {
    padding: 18px;
  }

  .modal-info,
  .catalog-page-view {
    padding: 18px;
  }

  .catalog-page-view img {
    min-width: 680px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
