:root {
  --brand: #0053e7;
  --brand-dark: #003bb2;
  --brand-soft: #eaf2ff;
  --cyan: #22c7e8;
  --ink: #101828;
  --muted: #637083;
  --line: #e6ebf2;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --strip: #fff7e2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(230, 235, 242, 0.84);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 83, 231, 0.18);
}

.brand-copy {
  display: inline-grid;
}

.brand strong {
  display: block;
  color: var(--brand);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  color: #516079;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.main-nav a {
  min-width: 78px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #202938;
  font-size: 15px;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(0, 83, 231, 0.24);
}

@media (min-width: 1100px) {
  .nav-shell::after {
    content: "";
    flex: 0 0 220px;
  }
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0.32) 62%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at 20% 78%, rgba(0, 83, 231, 0.12), rgba(0, 83, 231, 0) 34%);
}

.hero-content {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 84px;
}

.eyebrow,
.section-heading p,
.news-title p,
.contact-info > p,
.about-copy > p {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: #344054;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 16px 34px rgba(0, 83, 231, 0.28);
}

.btn.ghost {
  color: #121926;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 24, 40, 0.28);
}

.hero-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  pointer-events: none;
}

.hero-arrows button {
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  font-size: 58px;
  line-height: 1;
  pointer-events: none;
}

.services {
  padding: 92px 0 116px;
  background: #fff;
}

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

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.news-title h2,
.contact-info h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 250px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 83, 231, 0.28);
  box-shadow: 0 22px 48px rgba(30, 50, 80, 0.12);
}

.service-index {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.service-card p,
.case-feature p,
.case-list p,
.news-list p,
.about-copy li {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.about-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 49%) minmax(320px, 51%);
  min-height: 580px;
  overflow: hidden;
  background: var(--brand);
}

.about-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(168deg, #fff 0 19%, rgba(255, 255, 255, 0) 19.2%);
  pointer-events: none;
}

.about-blue {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 120px 72px 74px 24px;
}

.about-copy {
  width: min(520px, 100%);
  color: #fff;
}

.about-copy > p {
  color: rgba(255, 255, 255, 0.78);
}

.about-copy h2 {
  color: #fff;
}

.about-copy p:not(:first-child) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.about-copy li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.about-copy li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.about-image {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
}

.cases {
  padding: 104px 0;
  background: var(--surface-soft);
}

.case-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: stretch;
}

.case-feature {
  display: grid;
  grid-template-rows: minmax(280px, 360px) auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 56px rgba(30, 50, 80, 0.11);
}

.case-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-feature div {
  padding: 26px 30px 32px;
}

.case-feature span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.case-feature h3,
.case-list h3,
.news-list h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.case-list {
  display: grid;
  gap: 18px;
}

.case-list article {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(30, 50, 80, 0.08);
}

.case-list h3 {
  margin-top: 0;
}

.news {
  padding: 96px 0;
  background: #fff;
}

.news-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.news-title {
  position: sticky;
  top: 120px;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-list article {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.news-list time {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.contact {
  padding: 98px 0;
  background:
    linear-gradient(135deg, rgba(0, 83, 231, 0.94), rgba(0, 59, 178, 0.96)),
    var(--brand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: start;
}

.contact-info {
  color: #fff;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-info dl {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
}

.contact-info div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-info dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.contact-info dd {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.message-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 30, 88, 0.24);
}

.message-form label {
  display: grid;
  gap: 8px;
  color: #1d2939;
  font-size: 14px;
  font-weight: 800;
}

.message-form .full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: #f9fbff;
  font: inherit;
}

input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 118px;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 83, 231, 0.1);
}

.message-form button {
  width: 100%;
}

.site-footer {
  color: #d7e4ff;
  background: #061b45;
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 50;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 22px;
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 24, 40, 0.94);
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.22);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .service-grid,
  .case-layout,
  .news-shell,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .about-blue {
    justify-content: flex-start;
    padding: 104px 24px 46px;
  }

  .about-copy {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
  }

  .about-image {
    min-height: 380px;
  }

  .news-title {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 32px, var(--max));
  }

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 40px;
  }

  .hero h1 {
    max-width: 9.6em;
    font-size: 32px;
    line-height: 1.18;
  }

  .hero-copy {
    max-width: 18em;
    font-size: 16px;
  }

  .section-heading h2,
  .news-title h2,
  .contact-info h2,
  .about-copy h2 {
    max-width: 12em;
    font-size: 28px;
    line-height: 1.28;
  }

  .hero-arrows {
    display: none;
  }

  .services,
  .cases,
  .news,
  .contact {
    padding: 72px 0;
  }

  .message-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .message-form label {
    grid-column: 1 / -1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
