:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #111417;
  --ink: #121417;
  --muted: #5c6670;
  --line: #e2e6eb;
  --brand: #0b74de;
  --brand-strong: #064f9c;
  --accent: #17a673;
  --warning: #f59f00;
  --shadow: 0 16px 44px rgba(18, 20, 23, 0.12);
  --radius: 8px;
  --nav-height: 72px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-height);
  z-index: 50;
  background: rgba(10, 13, 17, 0.82);
  color: #fff;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link,
.nav-action,
.menu-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.nav-link:hover,
.nav-action:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-action.primary {
  background: var(--brand);
  color: #fff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  font-size: 1.35rem;
}

.hero {
  position: relative;
  min-height: 720px;
  height: 94vh;
  color: #fff;
  overflow: hidden;
  background: #111417;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.05)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 52px) 24px 72px;
  display: grid;
  align-content: center;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn.light {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
}

.section.compact {
  padding-top: 34px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-lead,
.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.category-tile {
  min-height: 152px;
  padding: 18px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  background: #fff;
}

.category-tile:last-child {
  border-right: 0;
}

.category-tile:hover {
  background: #f0f6ff;
}

.category-tile b {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.category-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  margin-bottom: 22px;
}

.search-box,
.select-box {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.search-box {
  width: 100%;
  padding: 0 16px;
}

.select-box {
  padding: 0 42px 0 14px;
}

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

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 320px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(18, 20, 23, 0.04);
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(17, 20, 23, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 760;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.product-body p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: #eef3f8;
  color: #34404b;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.link-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.link-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.page-hero {
  min-height: 460px;
  margin-top: var(--nav-height);
  display: grid;
  align-items: end;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

.page-title {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 24px;
}

.page-title p {
  color: rgba(255, 255, 255, 0.8);
}

.software-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.software-feature-list {
  display: grid;
  gap: 12px;
}

.software-feature {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.06);
}

.software-feature b {
  line-height: 1.5;
}

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

.software-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

.software-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f4f7fa;
}

.software-shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.contact-copy,
.contact-links {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.site-footer {
  background: #0f1215;
  color: rgba(255, 255, 255, 0.78);
  padding: 46px 24px 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-inner a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-inner a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 1020px) {
  .category-strip,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    padding: 14px;
    background: rgba(10, 13, 17, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-link,
  .nav-action {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    align-content: start;
    padding-top: 130px;
  }

  .category-strip,
  .product-grid,
  .footer-inner,
  .toolbar,
  .software-gallery {
    grid-template-columns: 1fr;
  }

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

  .category-tile:last-child {
    border-bottom: 0;
  }

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

  .hero-actions .btn,
  .section-actions .btn {
    width: 100%;
  }

}
