:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dce4ed;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --navy: #071827;
  --blue: #1268b3;
  --cyan: #00a6b4;
  --green: #2fb36f;
  --amber: #d79a1e;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  background: var(--surface);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #fff;
  background: rgba(7, 24, 39, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 8px;
  font-size: 20px;
}

.brand-mark-image {
  width: 60px;
  height: 48px;
  padding: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

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

.brand-text {
  max-width: min(42vw, 320px);
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.site-nav .nav-contact {
  margin-left: 8px;
  color: #06211b;
  background: #6fe4ae;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.92) 0%, rgba(7, 24, 39, 0.72) 42%, rgba(7, 24, 39, 0.18) 100%),
    url("../images/hero-primy.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding: 80px 0 124px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.cta-section h2,
.listing-head h1,
.detail-head h1,
.error-state h1 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #041f1b;
  background: linear-gradient(135deg, #62e2aa, #44c7d4);
  box-shadow: 0 16px 36px rgba(0, 166, 180, 0.28);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-top: 48px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.section,
.cta-section,
.site-footer,
.page-main {
  padding-inline: clamp(20px, 5vw, 72px);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 86px;
  padding-bottom: 86px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-head h2,
.cta-section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
}

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

.product-card,
.article-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  border-radius: 8px 8px 0 0;
}

.card-code {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.product-card h3,
.article-card h2,
.article-card h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.product-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
}

.band {
  max-width: none;
  background:
    linear-gradient(135deg, rgba(18, 104, 179, 0.08), rgba(47, 179, 111, 0.08)),
    var(--surface-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
}

.lead {
  color: var(--ink-soft);
  font-size: 18px;
}

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

.feature-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.feature-list strong {
  color: var(--blue);
}

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

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

.industry-grid span {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfd);
  font-weight: 800;
  text-align: center;
}

.news-section {
  padding-top: 40px;
}

.article-card {
  min-height: 190px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-card span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 86px;
  padding-block: 42px;
  color: #fff;
  background: linear-gradient(135deg, #071827, #103d55);
  border-radius: 8px;
}

.cta-section p {
  max-width: 660px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #071827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 0 36px;
}

.footer-brand {
  color: #fff;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.footer-meta,
.footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-records a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.2s ease;
}

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

.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 74px;
  padding-bottom: 86px;
}

.listing-head {
  margin-bottom: 34px;
}

.listing-head h1,
.detail-head h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.listing-head p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.pagination a {
  padding: 10px 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.detail {
  max-width: 920px;
  margin: 0 auto;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.cover {
  margin: 36px 0;
  overflow: hidden;
  border-radius: 8px;
}

.content {
  color: var(--ink-soft);
  font-size: 18px;
}

.content h2,
.content h3 {
  margin-top: 34px;
  color: var(--ink);
  line-height: 1.28;
}

.content p,
.content ul,
.content ol,
.content blockquote,
.content table {
  margin: 18px 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.content th,
.content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.content th {
  color: var(--ink);
  background: var(--surface-soft);
}

.content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--cyan);
  background: var(--surface-soft);
}

.contact-form-section {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.contact-form-section primy-contact-form {
  --halo-contact-form-color-primary: var(--blue);
  --halo-contact-form-color-label: var(--ink);
  --halo-contact-form-color-input: var(--ink);
  --halo-contact-form-color-border: var(--line);
  --halo-contact-form-color-help: var(--muted);
  --halo-contact-form-border-radius: var(--radius);
  --halo-contact-form-width-submit: 100%;
}

.error-state {
  min-height: 50vh;
  display: grid;
  align-content: center;
  justify-items: start;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #06211b;
  background: #6fe4ae;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

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

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

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(7, 24, 39, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav .nav-contact {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 74px 0 108px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .split,
  .footer-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .brand-mark-image {
    width: 52px;
    height: 42px;
  }

  .brand-text {
    max-width: min(200px, calc(100vw - 160px));
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

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

  .hero-metrics,
  .product-grid,
  .article-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .product-card,
  .article-card {
    min-height: auto;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-list div {
    grid-template-columns: 1fr;
  }

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

  .floating-contact {
    right: 16px;
    bottom: 16px;
  }
}
