:root {
  --ink: #17242f;
  --muted: #64717d;
  --line: #d9e2e8;
  --paper: #f7fafb;
  --white: #ffffff;
  --teal: #0f766e;
  --blue: #245f9f;
  --gold: #d49c35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px min(6vw, 72px);
  color: var(--white);
  background: rgba(6, 20, 30, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

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

.site-nav a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 6px;
  font-size: 17px;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  display: grid;
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  padding: 120px min(6vw, 72px) 72px;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(90deg, rgba(6, 20, 30, 0.74), rgba(6, 20, 30, 0.42), rgba(6, 20, 30, 0.12));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 42px;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
}

.carousel-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  right: min(6vw, 72px);
  bottom: 32px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot:hover,
.carousel-dot.is-active {
  background: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #65d6cb;
  font-size: 22px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 50px;
  font-size: clamp(60px, 6vw, 80px);
  line-height: 1.14;
}

h2 {
  margin-bottom: 111px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--white);
  background: var(--teal);
  border-radius: 6px;
  font-weight: 700;
}

.primary-button:hover {
  background: #0b5f59;
}

.hero-visual {
  display: grid;
  min-height: 390px;
  place-items: center;
}

.route-map {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1.08;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 36, 47, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 36, 47, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(212, 156, 53, 0.24), transparent 28%),
    var(--white);
  background-size: 48px 48px, 48px 48px, auto, auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 36, 47, 0.12);
}

.node,
.line {
  position: absolute;
  display: block;
}

.node {
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 5px solid var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.11);
}

.node-a {
  left: 16%;
  top: 66%;
}

.node-b {
  left: 36%;
  top: 35%;
}

.node-c {
  right: 21%;
  top: 52%;
  border-color: var(--blue);
}

.node-d {
  right: 15%;
  top: 19%;
  border-color: var(--gold);
}

.line {
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: 99px;
  transform-origin: left center;
}

.line-one {
  left: 20%;
  top: 62%;
  width: 160px;
  transform: rotate(-48deg);
}

.line-two {
  left: 39%;
  top: 39%;
  width: 170px;
  transform: rotate(18deg);
}

.line-three {
  right: 18%;
  top: 48%;
  width: 125px;
  transform: rotate(-70deg);
}

.section,
.contact-section {
  padding: 72px min(6vw, 72px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

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

.service-card {
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-card-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-card-link:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 18px 42px rgba(23, 36, 47, 0.12);
  transform: translateY(-3px);
}

.case-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 700;
}

.service-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 22px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-details div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.case-details dt {
  color: var(--ink);
  font-weight: 700;
}

.case-details dd {
  margin: 0;
  color: var(--muted);
}

.detail-page .site-header {
  position: static;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-detail-page {
  background: var(--paper);
}

.case-detail-hero {
  padding: 64px min(6vw, 72px) 36px;
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--teal);
  font-weight: 700;
}

.case-detail-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 58px);
}

.case-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 0 min(6vw, 72px) 72px;
}

.case-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-detail-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-details-large {
  margin-bottom: 26px;
  gap: 14px;
}

.case-details-large div {
  grid-template-columns: 92px minmax(0, 1fr);
}

.service-card p,
.contact-section p {
  color: var(--muted);
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--teal);
  background: #e8f3f1;
  border-radius: 8px;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
  background: #eef5f6;
}

.contact-box {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 24px min(6vw, 72px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    white-space: normal;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 170px;
    padding-bottom: 86px;
  }

  .hero-carousel {
    width: 100%;
  }

  .hero-content {
    padding: 28px;
    background: rgba(10, 24, 34, 0.7);
  }

  .carousel-dots {
    right: 0;
    left: 0;
    bottom: 28px;
  }

  .hero-visual {
    min-height: 300px;
  }

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

  .case-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .site-nav a {
    padding-inline: 8px;
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }
}
.hero-visual img {
  width: min(100%, 470px);
  aspect-ratio: 1.08;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 36, 47, 0.12);
}
