:root {
  --ink: #17212b;
  --muted: #5d6a73;
  --line: #d8e0e4;
  --paper: #f7f9f8;
  --panel: #ffffff;
  --brand: #116b67;
  --brand-2: #b44f2a;
  --gold: #c79b43;
  --deep: #20373f;
  --shadow: 0 18px 45px rgba(22, 36, 42, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--deep));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 14px;
  color: var(--deep);
}

.nav a:hover { color: var(--brand-2); }

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-menu summary::-webkit-details-marker { display: none; }

.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.nav-menu[open] summary,
.nav-menu summary:hover {
  color: var(--brand-2);
}

.nav-menu[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  width: min(360px, 86vw);
  padding: 10px;
  border: 1px solid rgba(216, 224, 228, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 45px rgba(22, 36, 42, .14);
  transform: translateX(-50%);
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(216, 224, 228, .9);
  border-top: 1px solid rgba(216, 224, 228, .9);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.nav-submenu a {
  position: relative;
  z-index: 1;
  padding: 12px 13px;
  border-radius: 6px;
  color: var(--deep);
  font-weight: 750;
  line-height: 1.35;
}

.nav-submenu a:hover {
  color: var(--brand);
  background: #f1f6f4;
}

.product-nav {
  position: static;
}

.product-mega {
  left: 50%;
  grid-template-columns: minmax(260px, .82fr) minmax(520px, 1.18fr);
  gap: 18px;
  width: min(1040px, calc(100vw - 48px));
  padding: 18px;
  transform: translateX(-50%);
}

.mega-column {
  min-width: 0;
}

.mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 4px 10px;
  border-bottom: 1px solid #dce7e5;
}

.mega-head strong {
  color: var(--deep);
  font-size: 15px;
  font-weight: 850;
}

.mega-head a {
  padding: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.mega-head a:hover {
  background: transparent;
}

.mega-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.mega-link {
  display: block;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.mega-link:hover {
  border-color: #d7e7e2;
  background: linear-gradient(180deg, #fbfefd, #f1f8f6);
}

.mega-link strong {
  display: block;
  color: var(--deep);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

.mega-link span {
  display: block;
  margin-top: 4px;
  color: #66757b;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 112px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(110deg, rgba(23, 33, 43, .92), rgba(17, 107, 103, .62)),
    radial-gradient(circle at 78% 24%, rgba(199, 155, 67, .42), transparent 30%),
    linear-gradient(135deg, #143135, #6d7d7d);
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.section.alt { background: #fff; }

.eyebrow {
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 8px 0 18px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(22, 36, 42, .06);
}

.card h3 { margin: 0 0 10px; font-size: 21px; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card .tag { color: var(--brand); font-size: 13px; font-weight: 800; }

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.feature-list li {
  padding: 13px 16px;
  border-left: 4px solid var(--brand);
  background: #fff;
}

.page-title {
  padding: clamp(52px, 8vw, 100px) clamp(20px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(120deg, var(--deep), var(--brand));
}

.page-title h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
}

.page-title p {
  max-width: 780px;
  color: rgba(255, 255, 255, .84);
  font-size: 19px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.aside-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 38px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, .78);
  background: #17212b;
}

.floating-consult {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 43, .62);
}

.modal-mask.is-open { display: grid; }

.consult-modal {
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

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

.modal-head h2 { margin: 0; font-size: 24px; }
.icon-button { border: 0; background: transparent; font-size: 28px; cursor: pointer; }

.consult-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 26px 28px;
}

.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field.full { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfc;
}

textarea { min-height: 110px; resize: vertical; }

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; }
  .nav-menu,
  .product-nav { position: static; }
  .nav-submenu {
    left: 20px;
    right: 20px;
    width: auto;
    transform: none;
  }
  .nav-submenu::before { left: 80px; }
  .product-mega {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 130px);
    overflow: auto;
  }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .product-list { grid-template-columns: 1fr; }
  .consult-form { grid-template-columns: 1fr; }
  .floating-consult { right: 14px; bottom: 14px; }
}

.home-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(68px, 9vw, 120px) clamp(20px, 6vw, 86px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 22, 48, .98), rgba(8, 34, 74, .92) 52%, rgba(7, 37, 82, .75)),
    linear-gradient(120deg, transparent 0 54%, rgba(22, 136, 255, .18) 54% 72%, transparent 72%),
    #071d3b;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .65;
}

.home-hero > * { position: relative; z-index: 1; }

.hero-kicker {
  width: max-content;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(126, 200, 255, .38);
  border-radius: 999px;
  color: #bfe6ff;
  background: rgba(21, 104, 220, .18);
  font-size: 12px;
  font-weight: 850;
}

.hero-panel {
  max-width: 940px;
}

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

.home-hero .button.secondary {
  color: #bfe6ff;
  border-color: rgba(126, 200, 255, .42);
  background: rgba(255, 255, 255, .08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.metric {
  padding: 20px;
  background: rgba(5, 24, 54, .4);
}

.metric strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(232, 243, 255, .82);
  font-size: 13px;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.catalog-card {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 36, 42, .06);
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 36, 42, .1);
}

.catalog-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.catalog-card p { margin: 0 0 18px; color: var(--muted); }
.catalog-card .meta { margin-top: auto; color: var(--brand); font-size: 13px; font-weight: 850; }

.split-band {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1.14fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.visual-stack {
  display: grid;
  gap: 14px;
}

.visual-stack img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.timeline-item {
  padding: 18px 20px;
  border-left: 4px solid var(--brand-2);
  background: #fff;
}

.breadcrumb {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
  font-weight: 800;
}

@media (max-width: 920px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-band { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .home-hero { min-height: auto; }
  .metrics { grid-template-columns: 1fr; }
}
