﻿:root {
  --ink: #172b43;
  --muted: #65758a;
  --line: #e2e8f0;
  --paper: #f4f8fc;
  --white: #ffffff;
  --blue: #0d5da8;
  --blue-dark: #0a376d;
  --orange: #f08a24;
  --green: #1c8b7a;
  --shadow: 0 18px 46px rgba(16, 44, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(13, 55, 109, 0.08);
}

.mainbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
}

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

.brand__logo {
  display: block;
  width: 82px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.brand strong {
  color: #11256a;
  font-size: 20px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(22px, 3.8vw, 56px);
  font-size: 16px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  color: #1b2d42;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 3px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  padding: 184px clamp(20px, 6vw, 84px) 0;
  overflow: hidden;
  color: var(--white);
}

.hero__media,
.network__visual {
  background-image: url("images/site-hero-yard-ai.jpg");
  background-position: center;
  background-size: cover;
}

.hero__media {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
  filter: saturate(0.95) contrast(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 28, 63, 0.82), rgba(3, 48, 91, 0.42) 58%, rgba(3, 48, 91, 0.08)),
    linear-gradient(0deg, rgba(3, 30, 61, 0.5), rgba(3, 30, 61, 0.03) 64%);
}

.hero__content,
.hero__services {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 820px;
  padding-bottom: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
}

.button--primary {
  color: var(--white);
  background: var(--orange);
}

.button--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.hero__services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(980px, 100%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 40px rgba(4, 24, 49, 0.14);
}

.hero__services a {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.hero__services a:hover {
  color: var(--white);
  background: var(--blue);
}

.section {
  padding: clamp(62px, 7.4vw, 98px) clamp(20px, 6vw, 84px);
}

.section__heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.14;
}

.intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(34px, 5.5vw, 78px);
  align-items: center;
  background: var(--white);
}

.intro__copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 18px;
}

.intro__copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.intro__image {
  display: block;
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  box-shadow: 24px 24px 0 #eaf2fa;
}

.text-link {
  display: inline-flex;
  width: max-content;
  margin-top: 10px;
  padding-bottom: 4px;
  color: var(--blue);
  border-bottom: 2px solid var(--orange);
  font-weight: 800;
}

.services {
  background: var(--paper);
}

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

.service-card {
  min-height: 290px;
  padding: 34px 28px;
  border-top: 4px solid var(--blue);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(13, 55, 109, 0.08);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.service-card:hover {
  color: var(--white);
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  transform: translateY(-6px);
}

.service-card span {
  color: var(--orange);
  font-weight: 800;
}

.service-card h3 {
  margin: 46px 0 18px;
  font-size: 24px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.74);
}

.network {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  background: #eef3f7;
}

.network__visual {
  min-height: 560px;
  box-shadow: var(--shadow);
}

.network__content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.city-list span {
  padding: 10px 14px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.yard-gallery {
  background: #f7fafc;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(22px, 5vw, 72px);
  margin-bottom: 34px;
}

.gallery-heading div {
  max-width: 680px;
}

.gallery-heading p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 17px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(13, 55, 109, 0.08);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 438px;
}

.gallery-card--featured img {
  aspect-ratio: 4 / 3;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.fleet {
  background: var(--white);
}

.fleet-table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  overflow: hidden;
}

.fleet-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.fleet-table tr {
  border-top: 1px solid var(--line);
}

.fleet-table tr:first-child {
  border-top: 0;
}

.fleet-table th,
.fleet-table td {
  min-height: 72px;
  padding: 18px 22px;
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.fleet-table th:first-child,
.fleet-table td:first-child {
  border-left: 0;
}

.fleet-table tbody th {
  font-weight: 700;
}

.fleet-table thead {
  color: var(--white);
  background: var(--blue-dark);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 88px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 53, 105, 0.96), rgba(15, 138, 119, 0.88)),
    url("images/site-hero-yard-ai.jpg") center/cover;
}

.contact__content p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact__content ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact__content li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.72);
  background: #071522;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.page-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: end;
  padding: 178px clamp(20px, 6vw, 84px) 68px;
  color: var(--white);
  overflow: hidden;
  background: var(--blue-dark);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background: var(--page-hero-image, url("images/site-hero-yard-ai.jpg")) center/cover;
  content: "";
  opacity: 0.5;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 31, 68, 0.88), rgba(4, 31, 68, 0.28));
  content: "";
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 64px);
}

.breadcrumb {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.about-photo {
  min-height: 480px;
  box-shadow: 24px 24px 0 #eaf2fa;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

.rich-copy {
  color: var(--muted);
  font-size: 17px;
}

.rich-copy p {
  margin-bottom: 18px;
}

.metrics-grid,
.area-grid,
.advantage-grid,
.product-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
}

.metric-card {
  padding: 32px 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(13, 55, 109, 0.08);
}

.metric-card strong {
  display: block;
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
}

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

.area-card,
.advantage-card,
.product-card,
.contact-card,
.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(13, 55, 109, 0.06);
}

.area-card {
  padding: 28px;
}

.area-card h3,
.detail-card h3 {
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.area-card p,
.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.advantage-card {
  padding: 38px 28px;
  border-top: 4px solid var(--orange);
  font-size: 24px;
  font-weight: 800;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.category-nav a {
  padding: 12px 18px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
}

.category-nav a:hover {
  color: var(--white);
  background: var(--blue);
}

.route-panel {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 22px;
  padding: 28px;
  background: var(--white);
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow);
}

.route-panel h3 {
  margin-bottom: 0;
  color: var(--blue-dark);
}

.route-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.product-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.product-card__body {
  padding: 20px;
}

.product-card__body h3 {
  margin-bottom: 4px;
}

.product-card__body p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.contact-card {
  padding: 28px;
}

.contact-card h3 {
  color: var(--blue-dark);
}

.contact-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
}

.detail-image {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.detail-card {
  padding: clamp(26px, 4vw, 44px);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .mainbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(13, 55, 109, 0.08);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle span + span {
    margin-top: 6px;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    justify-content: stretch;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    background: var(--white);
    box-shadow: 0 18px 30px rgba(18, 32, 47, 0.12);
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
  }

  .site-header.is-open .site-nav {
    max-height: 340px;
    padding: 8px 16px 14px;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    color: #152d4a;
    font-size: 16px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .intro,
  .network,
  .contact,
  .about-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-heading {
    display: grid;
  }

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

@media (max-width: 680px) {
  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand__logo {
    width: 54px;
    height: 42px;
  }

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

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding-top: 106px;
  }

  .hero__content {
    padding-bottom: 34px;
  }

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

  .hero__services a {
    min-height: 64px;
  }

  .gallery-card,
  .gallery-card--featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .gallery-card img,
  .gallery-card--featured img {
    aspect-ratio: 4 / 3;
  }

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

  .metrics-grid,
  .area-grid,
  .advantage-grid,
  .gallery-grid,
  .product-grid,
  .contact-grid,
  .route-panel {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .network__visual {
    min-height: 360px;
  }

  .site-footer {
    display: grid;
  }
}
