:root {
  --bg: #08111f;
  --bg-soft: #101d31;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f8ff;
  --muted: #aab8cc;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #2f80ff;
  --cyan: #21d4fd;
  --green: #45e0a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(33, 212, 253, 0.2), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(47, 128, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #08111f 0%, #0c1728 48%, #f5f8fc 48%, #eef4fb 100%);
}

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

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center top, rgba(33, 212, 253, 0.18), transparent 36%),
    linear-gradient(135deg, #07101d, #0b1730 52%, #07101d);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  width: min(520px, 100%);
  text-align: center;
}

.loader__mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.95), rgba(33, 212, 253, 0.86));
  box-shadow: 0 18px 52px rgba(33, 212, 253, 0.28);
}

.loader__eyebrow,
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.loader h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 6vw, 48px);
}

.loader__track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}

.loader__bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  transform-origin: left;
  animation: loadProgress 3s cubic-bezier(0.18, 0.72, 0.1, 1) forwards;
}

@keyframes loadProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.page {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 26px clamp(18px, 5vw, 72px) 92px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: 4vh;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.05) 18px 19px);
  opacity: 0.7;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.brand strong {
  font-size: 16px;
}

.nav__link {
  color: var(--muted);
  font-size: 14px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 13vh auto 0;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.08;
}

.hero__subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: #c7d5e8;
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.8;
}

.hero__actions,
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.btn--primary {
  color: #06101f;
  background: linear-gradient(135deg, #fff, #9eeaff);
  box-shadow: 0 16px 40px rgba(33, 212, 253, 0.22);
}

.btn--ghost {
  color: #dfeaff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

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

.metrics div,
.advantage-card {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.metrics div {
  padding: 18px;
  border-radius: 18px;
}

.metrics strong {
  display: block;
  font-size: 26px;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 86px clamp(18px, 5vw, 72px);
}

.section--cases,
.section--advantages {
  color: #111c2b;
}

.section__head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section__head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
}

.section__head p:not(.eyebrow),
.contact p {
  margin: 14px 0 0;
  color: #5d6b7c;
  line-height: 1.8;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(13, 37, 68, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(25, 46, 76, 0.13);
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.case-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(25, 46, 76, 0.2);
}

.case-card__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: #e9eef5;
}

.case-card__body {
  padding: 16px;
}

.case-card__body strong {
  display: block;
  color: #12233a;
  font-size: 16px;
}

.case-card__body span {
  display: block;
  margin-top: 6px;
  color: #65768a;
  font-size: 13px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.advantage-card {
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(25, 46, 76, 0.08);
}

.advantage-card span {
  color: var(--blue);
  font-weight: 800;
}

.advantage-card h3 {
  margin: 18px 0 10px;
  color: #12233a;
}

.advantage-card p {
  margin: 0;
  color: #617287;
  line-height: 1.75;
}

.contact {
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: 40px;
  justify-content: space-between;
  color: #fff;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(12, 30, 56, 0.94), rgba(19, 72, 123, 0.92)),
    radial-gradient(circle at right, rgba(33, 212, 253, 0.3), transparent 40%);
  box-shadow: var(--shadow);
}

.contact div {
  max-width: 720px;
}

.contact p {
  color: #c5d5e8;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 60px 20px 24px;
  background: rgba(3, 9, 18, 0.82);
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.news-pop {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 70;
  width: min(430px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255, 128, 64, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 242, 0.98)),
    linear-gradient(135deg, rgba(255, 88, 88, 0.12), rgba(255, 176, 64, 0.1));
  box-shadow: 0 22px 70px rgba(178, 65, 28, 0.24);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.news-pop.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.news-pop__link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.news-pop__image {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 2px solid rgba(255, 116, 57, 0.62);
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #ffdfc7, #ff7043);
  box-shadow: 0 10px 26px rgba(255, 112, 67, 0.28);
}

.news-pop__image.is-hidden {
  display: none;
}

.news-pop__content {
  min-width: 0;
  display: block;
}

.news-pop__label {
  display: block;
  margin-bottom: 4px;
  color: #e9482b;
  font-size: 12px;
  font-weight: 700;
}

.news-pop__title {
  display: -webkit-box;
  overflow: hidden;
  color: #172032;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-pop__close {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 50%;
  color: #9f3d24;
  background: rgba(255, 116, 57, 0.13);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-pop__close:hover {
  background: rgba(255, 116, 57, 0.22);
  transform: rotate(90deg);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-bottom: 66px;
  }

  .hero__content {
    margin-top: 72px;
  }

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

  .case-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 18px 22px;
    margin-inline: -18px;
    scroll-snap-type: x mandatory;
  }

  .case-card {
    flex: 0 0 min(82vw, 380px);
    scroll-snap-align: start;
  }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(33, 212, 253, 0.2), transparent 32%),
      linear-gradient(180deg, #08111f 0%, #0c1728 46%, #f5f8fc 46%, #eef4fb 100%);
  }

  .nav__link {
    display: none;
  }

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

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__actions .btn,
  .contact .btn {
    width: 100%;
  }

  .metrics,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: 38px;
  }

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

  .section__head {
    text-align: left;
  }

  .contact {
    margin: 0 18px 52px;
    padding: 28px;
    border-radius: 22px;
  }

  .lightbox {
    padding-inline: 12px;
  }

  .news-pop {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    border-radius: 18px;
  }

  .news-pop__title {
    font-size: 14px;
  }
}
