/*
Theme Name: bzb-logistics-theme
Theme URI: https://example.com/bzb-logistics-theme
Author: BZB
Description: BZB warehouse logistics front page theme.
Version: 1.0.0
Text Domain: bzb-logistics-theme
*/

:root {
  --ink: #122033;
  --muted: #607086;
  --line: #d8e1eb;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --blue: #1559d6;
  --teal: #009b8f;
  --yellow: #f5b642;
  --green: #2f9e57;
  --shadow: 0 18px 50px rgba(18, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 225, 235, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: #32455d;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-option {
  min-width: 48px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: #32455d;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-option.active {
  color: #fff;
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 32px;
  padding: 6vh 6vw 10vh;
  overflow: hidden;
  background: #e8eef5;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 247, 250, 0.96) 0%, rgba(244, 247, 250, 0.76) 43%, rgba(244, 247, 250, 0.2) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-copy {
  max-width: 620px;
  color: #32455d;
  font-size: 20px;
}

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

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

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(21, 89, 214, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.metric {
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.section {
  padding: 86px 6vw;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 260px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.06);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 900;
}

.service-card p,
.platform-copy p,
.contact-copy p,
.network-list p {
  color: var(--muted);
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
  background: #ffffff;
}

.platform-copy {
  max-width: 590px;
}

.dashboard {
  padding: 24px;
  background: #142033;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-top,
.bar-row,
.status-grid {
  display: grid;
  gap: 12px;
}

.dashboard-top {
  grid-template-columns: 1fr auto;
  margin-bottom: 24px;
  color: #c9d6e5;
}

.dashboard-top strong {
  color: var(--yellow);
}

.bar-row {
  grid-template-columns: 56px 1fr 70px;
  align-items: center;
  margin-bottom: 18px;
}

.bar {
  height: 12px;
  overflow: hidden;
  background: #2b3a50;
  border-radius: 999px;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
  border-radius: inherit;
}

.bar-row b {
  text-align: right;
}

.status-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.status-grid div {
  padding: 18px;
  background: #1e2d43;
  border-radius: 8px;
}

.status-grid strong,
.status-grid span {
  display: block;
}

.status-grid strong {
  color: #fff;
  font-size: 26px;
}

.status-grid span {
  color: #c9d6e5;
  font-size: 13px;
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.map-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 89, 214, 0.18), rgba(0, 155, 143, 0.12)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(18, 32, 51, 0.08) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(18, 32, 51, 0.08) 43px 44px),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.node {
  position: absolute;
  display: grid;
  min-width: 86px;
  min-height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.north {
  left: 22%;
  top: 22%;
}

.east {
  right: 22%;
  top: 42%;
  background: var(--blue);
}

.south {
  left: 36%;
  bottom: 18%;
  background: var(--teal);
}

.route {
  position: absolute;
  height: 4px;
  background: var(--yellow);
  transform-origin: left center;
  border-radius: 999px;
}

.route-a {
  width: 33%;
  left: 33%;
  top: 34%;
  transform: rotate(17deg);
}

.route-b {
  width: 28%;
  left: 47%;
  top: 58%;
  transform: rotate(-35deg);
}

.network-list {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.network-list p {
  margin: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 42px;
  background: #edf3f6;
}

.contact-copy {
  max-width: 560px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 32, 51, 0.08);
}

label {
  display: grid;
  gap: 8px;
  color: #32455d;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 6vw;
  color: #c9d6e5;
  background: var(--ink);
}

@media (max-width: 980px) {
  .hero,
  .platform,
  .network-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    min-height: auto;
    padding-top: 88px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .menu-button {
    display: block;
  }

  .language-switch {
    position: absolute;
    right: 72px;
  }

  .language-option {
    min-width: 42px;
  }

  .nav-links {
    position: absolute;
    inset: 64px 20px auto 20px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    min-height: calc(100vh - 64px);
    padding: 58px 20px 40px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(244, 247, 250, 0.98) 0%, rgba(244, 247, 250, 0.86) 56%, rgba(244, 247, 250, 0.68) 100%);
  }

  .hero-copy {
    font-size: 17px;
  }

  .section {
    padding: 62px 20px;
  }

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

  .bar-row {
    grid-template-columns: 48px 1fr 58px;
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}
