:root {
  --black: #090d14;
  --ink: #171d29;
  --muted: #6c7688;
  --line: #e5eaf1;
  --soft: #f5f7fb;
  --white: #ffffff;
  --blue: #155fd8;
  --blue-dark: #0d3d92;
  --cyan: #20c7d9;
  --radius: 0;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

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

ul,
dl,
dd,
p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 78px;
  color: var(--white);
  background: rgba(4, 8, 16, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  flex: 1;
  font-size: 15px;
}

.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  line-height: 78px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan);
  transition: transform 180ms ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.mail-link {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 36px;
  padding: 7px;
  border: 0;
  background: transparent;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.banner {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 28%, rgba(32, 199, 217, 0.24), transparent 30%),
    radial-gradient(circle at 20% 72%, rgba(21, 95, 216, 0.32), transparent 34%),
    linear-gradient(135deg, #07101f 0%, #0c1524 52%, #03050a 100%);
}

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

.banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.86), rgba(3, 5, 10, 0.38) 54%, rgba(3, 5, 10, 0.76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 88px);
}

.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: 130px 0 86px;
}

.banner-kicker {
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.banner h1 {
  max-width: 940px;
  font-size: clamp(42px, 6.1vw, 82px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.banner-subtitle {
  max-width: 690px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.64);
}

.down {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.section {
  padding: clamp(70px, 8vw, 112px) 0;
}

.section-title {
  margin-bottom: 44px;
}

.section-title h2 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 800;
}

.section-title p {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.row-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.more-link {
  flex: none;
  color: var(--blue);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 360px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: #fbfdff;
  box-shadow: 0 24px 60px rgba(20, 45, 86, 0.12);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.service-card li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--muted);
  line-height: 1.55;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

.service-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.projects {
  background: var(--soft);
}

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

.project-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(20, 45, 86, 0.08);
}

.project-visual {
  height: 210px;
  background-color: #0b1220;
  background-size: cover;
  background-position: center;
}

.visual-one {
  background-image:
    linear-gradient(135deg, rgba(21, 95, 216, 0.82), rgba(9, 13, 20, 0.34)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.visual-two {
  background-image:
    radial-gradient(circle at 70% 20%, rgba(32, 199, 217, 0.86), transparent 28%),
    linear-gradient(135deg, #0b1220, #173465);
}

.visual-three {
  background-image:
    linear-gradient(135deg, rgba(9, 13, 20, 0.16), rgba(9, 13, 20, 0.78)),
    repeating-linear-gradient(45deg, #155fd8 0 12px, #20c7d9 12px 24px, #0b1220 24px 36px);
}

.visual-four {
  background-image:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.42), transparent 16%),
    radial-gradient(circle at 70% 62%, rgba(32, 199, 217, 0.5), transparent 18%),
    linear-gradient(135deg, #0b1220, #155fd8);
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.project-info p {
  color: var(--muted);
  line-height: 1.7;
}

.strength {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 9vw, 122px) 0;
  color: var(--white);
  background: #080d16;
}

#strengthCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.strength-inner {
  position: relative;
  z-index: 2;
}

.section-title.light h2,
.section-title.light p {
  color: var(--white);
}

.section-title.light p {
  color: rgba(255, 255, 255, 0.68);
}

.light-link {
  color: var(--cyan);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-card {
  min-height: 260px;
  padding: 30px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.metric-card h3 {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.metric-card p {
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: 800;
}

.metric-card span {
  font-size: clamp(38px, 5vw, 62px);
  color: var(--cyan);
  letter-spacing: -0.03em;
}

.metric-card em {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.compact {
  margin-bottom: 24px;
}

.about-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.92;
}

.about-panel {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.about-panel h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
}

.about-panel > p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.82;
}

.about-panel div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.about-panel dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.about-panel dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.about-panel dd {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.contact-band {
  padding: clamp(68px, 9vw, 108px) 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 95, 216, 0.92), rgba(32, 199, 217, 0.76)),
    #155fd8;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.contact-inner h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.contact-inner p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.footer {
  color: rgba(255, 255, 255, 0.7);
  background: #070b12;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0;
}

.footer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 18px;
}

.footer p {
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  padding: 18px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

  .btn,
  .service-card {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .mail-link {
    display: none;
  }

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

@media (max-width: 820px) {
  .header {
    height: 68px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(4, 8, 16, 0.96);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    line-height: 44px;
  }

  .nav a::after {
    display: none;
  }

  .banner-content {
    padding-top: 108px;
  }

  .banner h1 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .row-title,
  .contact-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

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

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1200px);
  }

  .logo-text {
    font-size: 19px;
  }

  .banner-kicker {
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .banner-subtitle {
    font-size: 16px;
  }

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

  .service-grid,
  .project-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .metric-card {
    min-height: auto;
  }

  .project-visual {
    height: 170px;
  }

  .about-panel {
    padding: 24px;
  }
}
