:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3fa;
  --ink: #12213a;
  --ink-soft: #5c697d;
  --line: rgba(18, 33, 58, 0.12);
  --blue: #0b4ea2;
  --blue-deep: #062f69;
  --red: #d9373b;
  --shadow: 0 18px 45px rgba(7, 31, 77, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
a {
  font: inherit;
}

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

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, #08264d, #103d79);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.topbar-inner,
.header-inner,
.promise-grid,
.footer-inner {
  display: flex;
  align-items: center;
}

.topbar-inner {
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.topbar-inner p {
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.link-button {
  color: rgba(255, 255, 255, 0.92);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18, 33, 58, 0.08);
}

.header-inner {
  gap: 20px;
  justify-content: space-between;
  min-height: 94px;
}

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

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

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

.brand strong {
  font-size: 21px;
  line-height: 1.2;
}

.brand span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: #213654;
  font-weight: 600;
  font-size: 15px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  background: var(--red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-pill,
.wechat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 142px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
}

.phone-pill strong,
.wechat-pill strong {
  font-size: 17px;
  color: var(--blue-deep);
}

.phone-pill span,
.wechat-pill span {
  font-size: 12px;
  color: var(--ink-soft);
}

.wechat-pill {
  text-align: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #051c3c;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.02) contrast(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 20, 42, 0.9) 0%, rgba(5, 20, 42, 0.76) 38%, rgba(5, 20, 42, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(6, 47, 105, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 72px 0 108px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8db7ff;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.08;
}

.hero-text {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #89aef0;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), #0f67c8);
  box-shadow: 0 16px 32px rgba(11, 78, 162, 0.25);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.secondary-button.light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.promise-strip {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.promise-grid {
  gap: 0;
  background: rgba(7, 31, 77, 0.92);
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.promise-grid article {
  flex: 1 1 0;
  min-height: 126px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.promise-grid article:last-child {
  border-right: 0;
}

.promise-grid strong {
  display: block;
  font-size: 21px;
  margin-bottom: 10px;
}

.promise-grid span {
  display: block;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
}

.section {
  padding: 94px 0;
}

.section-alt {
  background: linear-gradient(180deg, #edf3fb, #f7faff);
}

.section-heading {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 40px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
}

.section-heading p:last-child,
.section-heading.compact p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.service-card,
.license-card,
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  overflow: hidden;
}

.service-image {
  aspect-ratio: 1.18;
  overflow: hidden;
}

.service-image img,
.solution-media img,
.delivery-gallery img,
.case-card img,
.license-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 22px 20px 24px;
}

.service-body h3,
.solution-copy h3,
.coverage-box h3 {
  margin: 0;
  font-size: 23px;
}

.service-body p,
.solution-copy p,
.company-copy > p,
.contact-copy p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.service-body ul,
.solution-copy ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #2a3b56;
  line-height: 1.8;
}

.solution-tabs,
.case-filters,
.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-button,
.filter-button,
.coverage-tags span {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(18, 33, 58, 0.09);
  color: var(--ink-soft);
  font-weight: 700;
}

.tab-button.is-active,
.filter-button.is-active {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--blue-deep);
}

.solution-panels {
  margin-top: 24px;
}

.solution-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.solution-panel.is-active {
  display: grid;
}

.solution-media {
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
}

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

.case-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1.12;
  box-shadow: var(--shadow);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 31, 77, 0) 28%, rgba(7, 31, 77, 0.78) 100%);
}

.case-card span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}

.case-card.is-hidden {
  display: none;
}

.delivery-layout,
.company-layout,
.contact-layout {
  display: grid;
  gap: 32px;
}

.delivery-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.delivery-steps {
  display: grid;
  gap: 18px;
}

.delivery-steps article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 22px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.delivery-steps span {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #e8f0ff, #f9fbff);
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 18px;
}

.delivery-steps h3 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.delivery-steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.delivery-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}

.delivery-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.delivery-gallery figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 220px;
}

.company-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: start;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}

.company-facts div {
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.company-facts dt {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 10px;
}

.company-facts dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.coverage-box {
  margin-top: 26px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #092d60, #0f4f9e);
  color: #fff;
}

.coverage-box h3 {
  font-size: 24px;
}

.coverage-tags {
  margin-top: 18px;
}

.coverage-tags span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.license-card {
  padding: 22px;
}

.license-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.license-card-head h3 {
  margin: 0;
  font-size: 24px;
}

.license-card-head a {
  color: var(--blue);
  font-weight: 700;
}

.license-card img {
  aspect-ratio: 0.78;
  border-radius: 18px;
  object-fit: contain;
  background: #f8fbff;
}

.contact-section {
  padding: 90px 0 118px;
  background:
    linear-gradient(90deg, rgba(5, 20, 42, 0.95) 0%, rgba(7, 31, 77, 0.92) 100%),
    url("./assets/case-hero-2.jpg") center/cover no-repeat;
  color: #fff;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end;
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-line:last-of-type {
  border-bottom: 0;
}

.contact-line span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-line strong,
.contact-line a {
  font-size: 22px;
  font-weight: 800;
}

.site-footer {
  background: #07182f;
  color: rgba(255, 255, 255, 0.78);
  padding: 26px 0 110px;
}

.footer-inner {
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-inner p {
  margin: 0;
}

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

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-contact a,
.floating-contact button {
  min-width: 140px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  background: #fff;
  color: var(--blue-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-contact a {
  background: var(--red);
  color: #fff;
}

.mobile-bar {
  display: none;
}

.image-modal {
  width: min(1100px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.image-modal::backdrop {
  background: rgba(3, 12, 27, 0.8);
}

.modal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 26px 26px 22px;
  border-radius: 26px;
  overflow: hidden;
  background: #091427;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.modal-body img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #091427;
}

.modal-body p {
  margin: 0;
  width: 100%;
  padding: 16px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(7, 31, 77, 0.82);
  color: #fff;
  font-size: 28px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 24px);
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(7, 31, 77, 0.92);
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
  z-index: 40;
}

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

@media (max-width: 1160px) {
  .header-cta {
    display: none;
  }

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

  .case-grid,
  .company-layout,
  .contact-layout,
  .delivery-layout,
  .solution-panel {
    grid-template-columns: 1fr;
  }

  .delivery-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .delivery-main {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .license-card {
    max-width: 720px;
  }
}

@media (max-width: 920px) {
  .topbar {
    display: none;
  }

  .header-inner {
    min-height: 82px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(18, 33, 58, 0.08);
    padding: 16px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
    transform-origin: top;
    transform: scaleY(0.92);
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 12px;
    background: #f5f8fc;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 54px 0 86px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .promise-grid {
    flex-direction: column;
  }

  .promise-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .promise-grid article:last-child {
    border-bottom: 0;
  }

  .company-facts {
    grid-template-columns: 1fr;
  }

  .floating-contact {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 26;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(18, 33, 58, 0.08);
    box-shadow: 0 -14px 30px rgba(7, 31, 77, 0.08);
  }

  .mobile-bar a,
  .mobile-bar button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
  }

  .mobile-bar a {
    background: var(--blue-deep);
    color: #fff;
  }

  .mobile-bar button {
    color: var(--red);
    background: #fff;
  }
}

@media (max-width: 720px) {
  .brand strong {
    font-size: 17px;
  }

  .brand span {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

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

  .delivery-gallery {
    grid-template-columns: 1fr;
  }

  .delivery-main {
    grid-column: auto;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-line strong,
  .contact-line a {
    font-size: 20px;
  }

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

  .footer-meta {
    justify-content: flex-start;
  }
}
