:root {
  color-scheme: dark;
  --ink: #07111f;
  --ink-soft: #102033;
  --blue: #0b5cff;
  --cyan: #21d4fd;
  --violet: #8b5cf6;
  --emerald: #18c28f;
  --amber: #f5b84b;
  --paper: #f7fafc;
  --paper-soft: #edf3f8;
  --line: rgba(255, 255, 255, 0.14);
  --text: #e8f1fb;
  --muted: #a9bbcf;
  --dark-card: rgba(7, 17, 31, 0.72);
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px 5vw;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.52));
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 17, 31, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 212px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(33, 212, 253, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 92, 255, 0.84), rgba(24, 194, 143, 0.62)),
    #0d2d58;
  box-shadow: 0 0 24px rgba(33, 212, 253, 0.22);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

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

.site-nav a {
  position: relative;
  border-radius: 6px;
  padding: 8px 12px;
  color: #d6e4f1;
  font-size: 0.92rem;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.hero {
  position: relative;
  min-height: 86vh;
  padding: 132px 5vw 72px;
  overflow: hidden;
  background: #07111f;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 26%, rgba(33, 212, 253, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.78) 44%, rgba(7, 17, 31, 0.48) 100%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.1), #07111f 96%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 3.85rem;
  line-height: 1.12;
  font-weight: 800;
}

h1 span {
  display: inline;
}

.hero-subtitle {
  max-width: 760px;
  color: #ccdae9;
  font-size: 1.12rem;
}

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

.btn {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 14px 34px rgba(11, 92, 255, 0.24);
}

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

.hero-metrics {
  display: grid;
  max-width: 780px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics div {
  min-height: 104px;
  padding: 18px;
  background: rgba(7, 17, 31, 0.68);
  backdrop-filter: blur(14px);
}

.hero-metrics dt {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-metrics dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-system {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.system-panel,
.system-node,
.system-line {
  position: absolute;
}

.system-panel {
  width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(9, 25, 46, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.system-panel b,
.system-panel span {
  display: block;
}

.system-panel b {
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.98rem;
}

.system-panel span {
  color: #aac0d6;
  font-size: 0.78rem;
}

.panel-a {
  top: 22%;
  right: 12%;
}

.panel-b {
  top: 48%;
  right: 5%;
}

.panel-c {
  bottom: 14%;
  right: 18%;
}

.system-node {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(33, 212, 253, 0.46);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 212, 253, 0.26), rgba(11, 92, 255, 0.12));
  color: #e9fbff;
  font-weight: 800;
  box-shadow: 0 0 42px rgba(33, 212, 253, 0.16);
}

.node-a {
  top: 30%;
  right: 34%;
}

.node-b {
  top: 54%;
  right: 28%;
}

.node-c {
  bottom: 18%;
  right: 39%;
}

.system-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 212, 253, 0.5), transparent);
  transform-origin: center;
}

.line-a {
  top: 43%;
  right: 18%;
  width: 390px;
  transform: rotate(18deg);
}

.line-b {
  top: 60%;
  right: 16%;
  width: 420px;
  transform: rotate(-14deg);
}

.section {
  padding: 92px 5vw;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.trust-band {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1727;
  padding: 24px 5vw;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.trust-grid div {
  min-height: 124px;
  padding: 22px;
  background: #0b1727;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: #fff;
  font-size: 1rem;
}

.trust-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-section,
.technology-section,
.contact-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    #07111f;
}

.services-section,
.cases-section {
  background: var(--paper);
  color: #132238;
}

.solutions-section,
.news-section {
  background: #0b1727;
}

.split-layout,
.tech-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 64px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 2.45rem;
  line-height: 1.2;
  font-weight: 800;
}

.services-section .section-heading h2,
.cases-section .section-heading h2 {
  color: #0c1829;
}

.section-copy p,
.section-heading p,
.contact-copy p {
  color: #b9c9d8;
}

.services-section .section-heading p,
.cases-section .section-heading p {
  color: #506174;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.row-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.principle-grid article {
  min-height: 330px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(33, 212, 253, 0.08), transparent),
    #0b1727;
}

.principle-grid span,
.card-index,
.solution-number {
  color: var(--cyan);
  font-weight: 800;
}

.principle-grid h3 {
  margin: 62px 0 12px;
  color: #fff;
  font-size: 1.2rem;
}

.principle-grid p {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.service-card {
  min-height: 440px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(12, 24, 41, 0.08);
}

.service-card h3 {
  margin: 34px 0 14px;
  color: #0c1829;
  font-size: 1.35rem;
}

.service-card p {
  color: #4c5d70;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #22364f;
  font-size: 0.94rem;
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  content: "";
}

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

.solution-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.solution-list h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.2rem;
}

.solution-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.solution-list a {
  border: 1px solid rgba(33, 212, 253, 0.32);
  border-radius: 6px;
  padding: 8px 14px;
  color: #dffbff;
  white-space: nowrap;
}

.solution-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(33, 212, 253, 0.28);
  border-radius: 8px;
  background: rgba(33, 212, 253, 0.08);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech-tags span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9e9f8;
  font-size: 0.9rem;
}

.architecture {
  position: relative;
  display: grid;
  gap: 12px;
}

.architecture::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--emerald));
  content: "";
}

.arch-layer {
  position: relative;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px 22px 20px 74px;
  background: rgba(255, 255, 255, 0.055);
}

.arch-layer::before {
  position: absolute;
  top: 28px;
  left: 18px;
  width: 20px;
  height: 20px;
  border: 2px solid #07111f;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(33, 212, 253, 0.2);
  content: "";
}

.arch-layer.highlight {
  border-color: rgba(33, 212, 253, 0.38);
  background: linear-gradient(135deg, rgba(11, 92, 255, 0.28), rgba(24, 194, 143, 0.12));
}

.arch-layer span,
.arch-layer b {
  display: block;
}

.arch-layer span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.arch-layer b {
  margin-top: 6px;
  color: #fff;
  font-size: 0.98rem;
}

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

.case-grid article {
  min-height: 310px;
  grid-column: span 2;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(12, 24, 41, 0.08);
}

.case-grid article:nth-child(4),
.case-grid article:nth-child(5) {
  grid-column: span 3;
}

.case-grid span {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.case-grid h3 {
  margin: 12px 0;
  color: #0c1829;
  font-size: 1.18rem;
}

.case-grid p {
  color: #506174;
  font-size: 0.94rem;
}

.case-grid b {
  display: block;
  margin-top: 18px;
  color: #122c4d;
  font-size: 0.94rem;
}

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

.news-grid article {
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.05);
}

.news-grid time {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 800;
}

.news-grid h3 {
  margin: 38px 0 12px;
  color: #fff;
  font-size: 1.16rem;
}

.news-grid p {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-layout {
  align-items: start;
}

address {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: #d6e4f1;
  font-style: normal;
}

address a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(33, 212, 253, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

address a:hover {
  color: #21d4fd;
  border-bottom-color: #21d4fd;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: #d6e4f1;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 12px 13px;
  background: rgba(7, 17, 31, 0.84);
  color: #fff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(33, 212, 253, 0.66);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.12);
}

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

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--emerald);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #050b14;
  padding: 46px 5vw 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: start;
}

.footer-grid strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.footer-grid p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: #d6e4f1;
}

.copyright {
  width: min(1180px, 100%);
  margin: 34px auto 0;
  color: #72849a;
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  .site-nav a {
    padding: 8px 8px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-system {
    opacity: 0.55;
  }

  .panel-a,
  .panel-b,
  .panel-c {
    right: 4%;
  }

  .split-layout,
  .tech-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .principle-grid,
  .card-grid,
  .news-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px;
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: 82vh;
    padding: 112px 20px 54px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-system {
    display: none;
  }

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

  .section {
    padding: 70px 20px;
  }

  .trust-band {
    padding: 20px;
  }

  .section-copy h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: 1.92rem;
  }

  .row-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .solution-list article {
    grid-template-columns: 1fr;
  }

  .solution-list a {
    width: fit-content;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-grid article,
  .case-grid article:nth-child(4),
  .case-grid article:nth-child(5) {
    grid-column: auto;
  }

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

  .footer-grid nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 1.95rem;
  }

  h1 span {
    display: block;
  }

  .hero-actions {
    display: grid;
  }

  .principle-grid,
  .card-grid,
  .news-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .trust-grid div {
    min-height: auto;
  }

  .principle-grid article,
  .service-card,
  .contact-form {
    padding: 22px;
  }

  .service-card,
  .principle-grid article,
  .news-grid article,
  .case-grid article {
    min-height: auto;
  }

  .architecture::before {
    left: 22px;
  }

  .arch-layer {
    padding-left: 60px;
  }

  .arch-layer::before {
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
