/* 鑫松达叉车官网 — 工业稳重风 */
:root {
  --ink: #0b1524;
  --steel: #132a45;
  --steel-mid: #1e3f63;
  --amber: #c8922a;
  --amber-hot: #e0a832;
  --sand: #f3eee4;
  --fog: #e8eef4;
  --paper: #f6f7f9;
  --muted: #5a6b7c;
  --line: rgba(19, 42, 69, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 21, 36, 0.18);
  --radius: 4px;
  --max: 1180px;
  --header-h: 72px;
  --font-display: "Barlow Condensed", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-solid {
  background: rgba(11, 21, 36, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-header.is-solid .brand-mark {
  background: var(--amber);
  color: var(--ink);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  background: var(--amber-hot);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--amber-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:not(.nav-cta):hover,
.nav a:not(.nav-cta).is-active {
  color: var(--white);
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).is-active::after {
  transform: scaleX(1);
}

.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 7.5rem;
  padding: 0.7rem 2.2rem;
  margin-left: 0.65rem;
  background: var(--amber-hot);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-sizing: border-box;
}

.nav a.nav-cta:hover {
  background: #f0b53a;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber-hot);
  color: var(--ink);
}

.btn-primary:hover {
  background: #f0b53a;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--steel);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--steel-mid);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--steel);
}

.btn-outline:hover {
  border-color: var(--steel);
  background: var(--fog);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.55) 48%, rgba(8, 16, 28, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 16, 28, 0.75) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
  max-width: 12ch;
  animation: rise 0.9s ease both;
}

.hero-brand em {
  font-style: normal;
  color: var(--amber-hot);
}

.hero-lead {
  margin: 0 0 1.8rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  animation: rise 0.9s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s ease 0.22s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-meta {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.4rem;
  animation: rise 0.9s ease 0.32s both;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--amber-hot);
  line-height: 1;
}

.hero-meta span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.stats-on-light {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-on-light strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stats-on-light span {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .stats-on-light {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stats-on-light {
    grid-template-columns: 1fr;
  }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--fog);
}

.section-dark {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200, 146, 42, 0.18), transparent 50%),
    linear-gradient(160deg, #0d1a2c 0%, #132a45 55%, #0b1524 100%);
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 28rem;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-dark .eyebrow {
  color: var(--amber-hot);
}

/* —— Service strip —— */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.service-item {
  padding: 1.8rem 1.4rem;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service-item:last-child {
  border-right: none;
}

.service-item:hover {
  background: var(--sand);
}

.service-item .num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--amber);
  font-weight: 700;
}

.service-item h3 {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.15rem;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Product / gallery grids —— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--steel);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.chip.is-active,
.chip:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: var(--white);
}

.product-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.product-tile {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-tile .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9e1ea;
}

.product-tile .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-tile:hover .thumb img {
  transform: scale(1.05);
}

.product-tile .body {
  padding: 1rem 1.05rem 1.15rem;
}

.product-tile .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.product-tile h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-tile .price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--amber);
}

.product-tile .price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
}

.product-tile .hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a2b3c;
  cursor: pointer;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-tile figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.8rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(8, 16, 28, 0.88));
  color: var(--white);
}

.gallery-tile .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--amber-hot);
  margin-bottom: 0.25rem;
}

.gallery-tile h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* —— Process —— */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-item {
  padding-top: 0.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.22);
}

.process-item .step {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-hot);
  font-weight: 700;
  line-height: 1;
}

.process-item h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: 1.1rem;
}

.process-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

/* —— About split —— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.split-media::before {
  content: "";
  position: absolute;
  inset: auto auto 1.2rem 1.2rem;
  width: 42%;
  height: 42%;
  border: 3px solid var(--amber-hot);
  z-index: 1;
  pointer-events: none;
}

.split-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.split-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.split-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.split-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--steel);
  font-weight: 500;
}

.split-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  background: var(--amber);
  flex-shrink: 0;
}

/* —— Page hero (inner) —— */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background:
    linear-gradient(120deg, rgba(11, 21, 36, 0.88), rgba(19, 42, 69, 0.72)),
    url("../assets/images/warehouse.jpg") center / cover;
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
}

/* —— Contact —— */
.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-panel .info-block {
  padding: 1.6rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-panel .info-block:nth-child(2n) {
  border-right: none;
}

.contact-panel .info-block-wide {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
  background: var(--sand);
}

.info-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.info-block p {
  margin: 0;
  font-size: 1.12rem;
  color: var(--steel);
  font-weight: 600;
}

.info-block a {
  color: var(--steel);
  transition: color 0.2s ease;
}

.info-block a:hover {
  color: var(--amber);
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 16, 28, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: min(82vh, 820px);
  max-width: min(92vw, 1100px);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: var(--radius);
}

/* —— CTA band —— */
.cta-band {
  padding: 3.5rem 0;
  background:
    linear-gradient(90deg, rgba(200, 146, 42, 0.16), transparent 55%),
    var(--steel);
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.2rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
}

.footer-col h4 {
  margin: 0 0 0.9rem;
  color: var(--amber-hot);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* Codex 2026-10-17 21:10:00 备案区支持手机换行和键盘焦点，官方图标使用后台发布图片。 */
.footer-registrations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  min-width: 0;
}

.footer-registrations a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  overflow-wrap: anywhere;
  color: inherit;
}

.footer-registrations a:hover,
.footer-registrations a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.registration-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: var(--white);
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .hero-meta,
  .service-strip,
  .product-grid,
  .gallery-grid,
  .process-row,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-item:nth-child(2) {
    border-right: none;
  }

  .service-item:nth-child(1),
  .service-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .split,
  .cta-inner,
  .section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .split-media {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(11, 21, 36, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.2rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin-top: 0.6rem;
    justify-content: center;
  }

  .hero-brand {
    max-width: none;
  }

  .hero-meta,
  .product-grid,
  .gallery-grid,
  .process-row,
  .footer-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .info-block {
    border-right: none;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .service-item:last-child {
    border-bottom: none;
  }

  .brand-text span {
    display: none;
  }
}

/* Codex 2026-10-03 18:41:00 空发布状态、缺图及服务要点适配原有桌面手机布局。 */
.website-status{padding:1rem;text-align:center;background:#f1f5f5;color:#284b4e;margin-top:84px}.image-placeholder{display:flex;align-items:center;justify-content:center;min-height:180px;background:#e8eeee;color:#4f686b;width:100%}.service-points{margin-top:.8rem;color:var(--steel);font-weight:600}.hero-media{background:#223c3f}.empty-state{grid-column:1/-1;padding:2rem;text-align:center}[hidden]{display:none!important}
