:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #647086;
  --line: rgba(20, 35, 65, 0.12);
  --paper: #ffffff;
  --blue: #1768e8;
  --cyan: #00a6d6;
  --green: #16a36a;
  --orange: #f27c38;
  --yellow: #f6c84c;
  --shadow: 0 24px 70px rgba(31, 54, 91, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f3fff8 100%);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 36px rgba(31, 54, 91, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.nav {
  gap: 6px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #31415b;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-trigger {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav a:hover {
  color: var(--blue);
  background: #eef6ff;
}

.contact-trigger:hover,
.contact-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 104, 232, 0.24);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 132px max(24px, calc((100vw - 1120px) / 2)) 34px;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(5, 18, 42, 0.78), rgba(5, 33, 54, 0.36) 48%, rgba(255, 255, 255, 0.1)), linear-gradient(0deg, rgba(7, 22, 45, 0.72), rgba(7, 22, 45, 0.04) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  color: #fff;
  padding-bottom: 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #86e7ff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-link {
  color: #082246;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.2);
}

.secondary-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-3px);
}

.metric-strip {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 34px;
  left: max(24px, calc((100vw - 1120px) / 2));
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-strip article {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(14px);
}

.metric-strip strong {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 620px;
}

.center-heading {
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.13;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.focus-grid article {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.focus-grid article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(23, 104, 232, 0.15), rgba(22, 163, 106, 0.2));
}

.focus-index {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.focus-grid h3,
.result-card h3,
.software-card h3,
.patent-feature h3,
.patent-list h3 {
  margin: 12px 0 10px;
  line-height: 1.35;
}

.focus-grid p,
.result-card p,
.software-card p,
.patent-feature p,
.patent-list p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 110px;
}

.cards-list {
  display: grid;
  gap: 18px;
}

.result-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-card:hover,
.software-card:hover,
.patent-list article:hover,
.gallery-grid figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(31, 54, 91, 0.2);
}

.result-card img {
  height: 176px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0e4d7e;
  background: #e7f6ff;
  font-size: 13px;
  font-weight: 800;
}

.accent-green .tag {
  color: #0b6b48;
  background: #e5fbf0;
}

.accent-orange .tag {
  color: #a64b16;
  background: #fff0e5;
}

.showcase-section {
  width: min(1180px, calc(100% - 32px));
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.software-card,
.patent-list article,
.gallery-grid figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.software-card img {
  height: 280px;
  object-fit: cover;
  object-position: top center;
  background: #eef4fb;
}

.software-card h3,
.software-card p {
  padding-inline: 20px;
}

.software-card h3 {
  margin-top: 18px;
}

.software-card p {
  padding-bottom: 22px;
}

.wide-card {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.wide-card img {
  height: 360px;
}

.wide-card h3,
.wide-card p {
  padding-inline: 28px;
}

.patent-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  margin-top: 36px;
}

.patent-feature {
  min-height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d3c7c, #087f9d 54%, #18a76f);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.patent-feature img {
  height: 390px;
  object-fit: cover;
  background: #fff;
}

.patent-feature div {
  padding: 28px;
}

.patent-feature .tag {
  color: #06284d;
  background: #fff;
}

.patent-feature p {
  color: rgba(255, 255, 255, 0.84);
}

.patent-list {
  display: grid;
  gap: 16px;
}

.patent-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.patent-list img {
  height: 128px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
}

.gallery-grid figure:first-child {
  grid-row: span 2;
}

.gallery-grid img {
  height: 100%;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 22, 45, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 42, 0.54);
  backdrop-filter: blur(10px);
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  box-shadow: 0 34px 90px rgba(9, 21, 42, 0.28);
  animation: contactIn 0.28s ease both;
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #31415b;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-card h2 {
  margin: 0 0 22px;
  font-size: 34px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(23, 104, 232, 0.34);
  box-shadow: 0 18px 40px rgba(31, 54, 91, 0.14);
}

.contact-list span {
  color: var(--muted);
  font-size: 14px;
}

.contact-list strong {
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes contactIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .contact-trigger {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 980px;
  }

  .metric-strip,
  .focus-grid,
  .split-section,
  .software-grid,
  .wide-card,
  .patent-layout,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: -72px;
  }

  .hero-content {
    padding-bottom: 120px;
  }

  .sticky-heading {
    position: static;
  }

  .result-card,
  .patent-list article {
    grid-template-columns: 1fr;
  }

  .result-card img,
  .patent-list img,
  .software-card img,
  .wide-card img,
  .patent-feature img {
    height: auto;
    max-height: 360px;
    object-fit: contain;
  }

  .wide-card {
    grid-column: auto;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  .gallery-grid figure:first-child {
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
  }

  .hero {
    min-height: 1040px;
    padding-inline: 16px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section {
    width: calc(100% - 24px);
    padding: 72px 0;
  }

  .metric-strip article,
  .focus-grid article {
    min-height: auto;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
    justify-content: center;
  }
}
