:root {
  --brand-blue: #013874;
  --light-blue: #0d4f96;
  --text-dark: #1d2b3a;
  --text-gray: #5a6a7a;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(1, 56, 116, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 92%;
  max-width: 1200px;
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(1, 56, 116, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.logo-img {
  width: 54px;
  height: 54px;
}

.logo-text {
  width: 140px;
  height: 44px;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  color: var(--white);
  font-size: 16px;
}

.menu li {
  margin-left: 28px;
}

.menu li:first-child {
  margin-left: 0;
}

@supports (gap: 1rem) {
  .menu li {
    margin-left: 0;
  }
}

.menu-link {
  position: relative;
  padding: 8px 2px;
  transition: opacity 0.3s ease;
  opacity: 0.92;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #8dc5ff;
  transition: width 0.3s ease;
}

.menu-link:hover,
.menu-link.active {
  opacity: 1;
}

.menu-link:hover::after,
.menu-link.active::after {
  width: 100%;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  background: #8cb5e0;
}

.hero-swiper {
  width: 100%;
  height: 100vh;
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #8cb5e0;
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 56, 116, 0.62), rgba(1, 56, 116, 0.22));
}

.banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.banner-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 1200px;
  width: min(1200px, 92%);
  color: var(--white);
  z-index: 2;
}

.banner-overlay h1 {
  font-size: 50px;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.banner-overlay p {
  font-size: 20px;
  letter-spacing: 0.8px;
  opacity: 0.96;
}

.banner-dots {
  position: relative;
  z-index: 2;
}

.hero-pagination {
  position: absolute;
  left: 50% !important;
  bottom: 26px !important;
  transform: translateX(-50%);
  width: auto !important;
  z-index: 2;
}

.hero-pagination .swiper-pagination-bullet {
  width: 34px;
  height: 4px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  margin: 0 5px !important;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--white);
}

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  color: var(--brand-blue);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 48px;
}

.about {
  /* background: linear-gradient(180deg, #edf4fc 0%, #ffffff 100%); */
  background: url("../image/about-bg.jpg") no-repeat center center;
  background-size: cover;
  height: 460px;
  box-sizing: border-box;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: center;
}

.about-content h3 {
  color: var(--brand-blue);
  font-size: 28px;
  margin-bottom: 20px;
}

.about-content p {
  color: #33475b;
  margin-bottom: 12px;
  font-size: 16px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.metric {
  background: var(--white);
  border: 1px solid #d7e6f8;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  color: var(--brand-blue);
  font-size: 24px;
  line-height: 1.2;
}

.metric span {
  display: block;
  color: var(--text-gray);
  font-size: 14px;
  margin-top: 6px;
}

.about-image {
  height: 380px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(1, 56, 116, 0.25), rgba(1, 56, 116, 0.65)),
    url("../img/about-placeholder.jpg") center/cover no-repeat,
    #8cb5e0;
  box-shadow: var(--shadow);
}

.cases {
  background: var(--bg-soft);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 34px rgba(1, 56, 116, 0.16);
}

.case-img {
  position: relative;
  height: 286px;
  background:
    linear-gradient(160deg, rgba(1, 56, 116, 0.18), rgba(1, 56, 116, 0.46)),
    url("../img/case-placeholder.jpg") center/cover no-repeat,
    #91b8de;
  overflow: hidden;
}

.case-img-item {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  padding: 18px 16px 20px;
}

.case-title {
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-desc {
  color: var(--text-gray);
  font-size: 14px;
}

.contact {
  background: var(--brand-blue);
  color: var(--white);
  padding: 70px 0 56px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.contact-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 22px 18px;
  min-height: 120px;
}

.contact-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-item p {
  font-size: 15px;
  opacity: 0.95;
  word-break: break-word;
}

.contact-qrcode {
  text-align: center;
  padding: 14px 18px;
}

.qrcode-img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  float: left;
  margin-left: 70px;
}

.contact-qrcode .qrcode-name {
  font-size: 14px;
  vertical-align: top;
  float: left;
  margin: 30px 0 0 10px;
}

.footer-note {
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
  margin: 24px auto 0;
  display: inline-block;
}

.footer-note:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 320px;
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    height: 68px;
  }

  .brand {
    font-size: 18px;
  }

  .menu {
    gap: 16px;
    font-size: 14px;
  }

  .menu li {
    margin-left: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .banner-overlay h1 {
    font-size: 30px;
  }

  .banner-overlay p {
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}

@supports not (display: grid) {
  .about-grid,
  .case-grid,
  .contact-grid {
    display: block;
  }

  .about-grid > * {
    margin-bottom: 24px;
  }

  .case-card {
    margin-bottom: 20px;
  }

  .contact-item {
    margin-bottom: 14px;
  }
}
