:root {
  --ink: #18242c;
  --muted: #5f6f78;
  --line: rgba(24, 36, 44, 0.12);
  --paper: #f7f8f5;
  --white: #ffffff;
  --red: #b8122b;
  --teal: #0f6f7a;
  --green: #3d6d55;
  --gold: #b88946;
  --charcoal: #24313a;
  --shadow: 0 20px 48px rgba(24, 36, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 42px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--red);
  background: rgba(184, 18, 43, 0.08);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("../assets/images/showroom-commercial.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(12, 18, 22, 0.82) 0%, rgba(12, 18, 22, 0.55) 46%, rgba(12, 18, 22, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 52px;
  line-height: 1.12;
}

.hero-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 44px 0 0;
}

.hero-metrics div,
.proof-grid article,
.capability-list article,
.service-grid article,
.case-grid article,
.branch-grid article {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-metrics div {
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.hero-metrics dt {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.proof-band {
  padding: 22px 24px 8px;
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
}

.proof-grid article,
.service-grid article,
.case-grid article,
.branch-grid article {
  padding: 22px;
  box-shadow: var(--shadow);
}

.proof-grid span,
.case-grid span,
.branch-grid span,
.contact-grid span {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.proof-grid strong,
.case-grid strong,
.contact-grid strong,
.contact-grid a {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.proof-grid p,
.capability-list p,
.service-grid p,
.commercial-grid p,
.section-head p,
.split-copy p,
.branch-grid p,
.contact-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section {
  padding: 86px 24px;
}

.section-light {
  background: var(--paper);
}

.section-white {
  background: var(--white);
}

.section-muted {
  background: #edf1ee;
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 32px auto 0;
}

.section-head,
.split-copy,
.company-layout,
.commercial-grid,
.service-grid,
.case-grid,
.service-proof-layout,
.branch-grid,
.contact-panel {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
  text-align: center;
}

.section-head h2,
.split-copy h2,
.service-proof-layout h2,
.contact-panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.22;
}

.section-head-invert p,
.section-dark .commercial-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.company-layout,
.service-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 14px;
  align-items: end;
}

.image-stack img,
.service-proof-layout img,
.commercial-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.image-stack img:first-child {
  height: 420px;
}

.image-stack img:last-child {
  height: 330px;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list article {
  padding: 24px;
}

.capability-list span {
  color: var(--red);
  font-weight: 800;
}

.capability-list h3,
.service-grid h3,
.commercial-grid h3,
.branch-grid h3 {
  margin: 8px 0 0;
  font-size: 21px;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.commercial-grid article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.commercial-grid img {
  height: 260px;
  border-radius: 0;
}

.commercial-grid div {
  padding: 22px;
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.service-grid,
.case-grid,
.branch-grid {
  display: grid;
  gap: 14px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid article {
  min-height: 150px;
  box-shadow: none;
}

.case-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.case-photo-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.case-photo-card span,
.case-photo-card strong {
  display: block;
  padding: 0 22px;
}

.case-photo-card span {
  margin-top: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.case-photo-card strong {
  padding-bottom: 22px;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.38;
}

.service-proof-layout img {
  height: 460px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.branch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.branch-grid article {
  box-shadow: none;
}

.branch-grid a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 700;
}

.contact-section {
  padding: 86px 24px;
  background: var(--ink);
  color: var(--white);
}

.contact-panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.contact-grid div {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid span {
  color: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 42px 94px;
  color: rgba(255, 255, 255, 0.74);
  background: #11191f;
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--white);
}

.site-legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 13px;
}

.site-legal-footer span {
  display: inline-flex;
  align-items: center;
}

.site-legal-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-legal-footer a:hover {
  color: var(--white);
}

.mobile-dock {
  display: none;
}

.page-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.page-hero-media,
.page-hero-overlay {
  position: absolute;
  inset: 0;
}

.page-hero-media {
  background: var(--page-hero-image, url("../assets/images/showroom-commercial.jpg")) center / cover no-repeat;
  transform: scale(1.02);
}

.page-hero-about {
  --page-hero-image: url("../assets/images/showroom-commercial.jpg");
}

.page-hero-commercial {
  --page-hero-image: url("../assets/images/commercial-equipment-room.jpg");
}

.page-hero-home-service {
  --page-hero-image: url("../assets/images/storefront-nanhuan.jpg");
}

.page-hero-cases {
  --page-hero-image: url("../assets/images/community-direct-water.jpg");
}

.page-hero-service {
  --page-hero-image: url("../assets/images/warehouse-parts.jpg");
}

.page-hero-contact {
  --page-hero-image: url("../assets/images/showroom-commercial.jpg");
}

.page-hero-overlay {
  background: linear-gradient(90deg, rgba(12, 18, 22, 0.82) 0%, rgba(12, 18, 22, 0.52) 58%, rgba(12, 18, 22, 0.18) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 54px;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 46px;
  line-height: 1.18;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.page-intro h2,
.feature-copy h2,
.wide-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.24;
}

.page-intro p,
.feature-copy p,
.wide-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, 100%);
  margin: 30px auto 0;
}

.stat-strip article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stat-strip strong {
  display: block;
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}

.stat-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-card,
.solution-card,
.case-detail-card,
.branch-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.feature-card img,
.solution-card img,
.case-detail-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.feature-card div,
.solution-card div,
.case-detail-card div,
.branch-card,
.contact-card {
  padding: 24px;
}

.feature-card h3,
.solution-card h3,
.case-detail-card h3,
.branch-card h3,
.contact-card h3 {
  margin: 0;
  font-size: 22px;
}

.feature-card p,
.solution-card p,
.case-detail-card p,
.branch-card p,
.contact-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.solution-grid,
.case-detail-grid,
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.case-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-detail-card img {
  height: 190px;
}

.case-detail-card div {
  padding: 18px;
}

.case-detail-card span,
.solution-card span,
.feature-card span,
.branch-card span,
.contact-card span {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wide-copy {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, 100%);
  margin: 32px auto 0;
}

.process-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

.process-list h3 {
  margin: 14px 0 0;
  font-size: 18px;
}

.process-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.brand-band {
  background: var(--charcoal);
  color: var(--white);
}

.brand-band .page-intro p,
.brand-band .wide-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.branch-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.branch-card a,
.contact-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-phone {
    justify-self: end;
  }

  .proof-grid,
  .commercial-grid,
  .service-grid,
  .case-grid,
  .case-photo-grid,
  .solution-grid,
  .case-detail-grid,
  .contact-card-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-layout,
  .service-proof-layout,
  .split-copy,
  .page-intro {
    grid-template-columns: 1fr;
  }

  .stat-strip,
  .gallery-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand-text {
    max-width: 12em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .header-phone {
    display: none;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 610px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(12, 18, 22, 0.78) 0%, rgba(12, 18, 22, 0.68) 66%, rgba(12, 18, 22, 0.42) 100%);
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 110px 0 36px;
  }

  .hero h1,
  .page-hero h1,
  .section-head h2,
  .split-copy h2,
  .page-intro h2,
  .wide-copy h2,
  .service-proof-layout h2,
  .contact-panel h2 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-metrics,
  .proof-grid,
  .commercial-grid,
  .service-grid,
  .case-grid,
  .case-photo-grid,
  .solution-grid,
  .case-detail-grid,
  .contact-card-grid,
  .stat-strip,
  .gallery-grid,
  .process-list,
  .branch-layout,
  .branch-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-content {
    width: calc(100% - 32px);
    padding: 104px 0 42px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .proof-grid {
    margin-top: -28px;
  }

  .section,
  .contact-section {
    padding: 62px 16px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:first-child,
  .image-stack img:last-child,
  .service-proof-layout img,
  .commercial-grid img,
  .case-photo-card img,
  .feature-card img,
  .solution-card img,
  .case-detail-card img,
  .gallery-grid img {
    height: auto;
    max-height: 360px;
  }

  .contact-panel {
    padding: 24px;
  }

  .site-footer {
    display: grid;
    padding: 24px 16px 92px;
  }

  .site-legal-footer {
    gap: 4px 12px;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  .mobile-dock a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
  }

  .mobile-dock a + a {
    background: var(--ink);
  }
}