:root {
  --ha-ink: #182433;
  --ha-muted: #5d6b7a;
  --ha-line: #dfe6ee;
  --ha-soft: #f3f6f9;
  --ha-surface: #ffffff;
  --ha-blue: #16324f;
  --ha-blue-2: #244866;
  --ha-rust: #9a3412;
  --ha-rust-2: #b4531a;
  --ha-gold: #ffd166;
  --ha-shadow: 0 10px 28px rgba(22, 50, 79, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f9fb !important;
  color: var(--ha-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  line-height: 1.65 !important;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ha-rust);
  text-underline-offset: 3px;
}

img,
svg,
canvas {
  max-width: 100%;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.95rem 1.25rem !important;
  background: rgba(22, 50, 79, 0.96) !important;
  border-bottom: 1px solid rgba(255, 209, 102, 0.22) !important;
  box-shadow: 0 8px 24px rgba(10, 24, 38, 0.14) !important;
  backdrop-filter: blur(12px);
}

.nav-container,
.nav-inner {
  width: min(1200px, 100%);
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
}

.logo {
  color: var(--ha-gold) !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-links,
nav .nav-container > div:last-child,
nav .nav-inner > div:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 0.3rem 1.1rem !important;
}

nav a,
.nav-links a {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.94rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

nav a:hover,
.nav-links a:hover {
  color: var(--ha-gold) !important;
  opacity: 1 !important;
}

.language-switch {
  right: 16px !important;
  bottom: 16px !important;
  gap: 4px !important;
  padding: 5px !important;
  background: rgba(16, 32, 51, 0.94) !important;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 8px !important;
}

.language-switch a {
  min-width: 34px;
  margin: 0 !important;
  padding: 0.45rem 0.55rem !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
}

.language-switch a.active {
  background: var(--ha-gold) !important;
  color: var(--ha-blue) !important;
}

.breadcrumbs,
.freshness,
.author-box,
.container,
.proof-container,
.process-container,
.trust-container,
.contact-container,
.products,
main {
  width: min(1200px, 100%) !important;
}

.breadcrumbs {
  margin: 0 auto !important;
  padding: 0.8rem 1.5rem !important;
  color: var(--ha-muted) !important;
  font-size: 0.86rem !important;
}

.freshness {
  margin: 0 auto !important;
  padding: 0 1.5rem 0.9rem !important;
  color: #6f7d8c !important;
  font-size: 0.84rem !important;
}

.hero,
.page-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 50, 79, 0.92) 0%, rgba(154, 52, 18, 0.84) 100%),
    url("/rail.webp") center / cover no-repeat !important;
  color: #fff !important;
  padding: clamp(3.2rem, 8vw, 6rem) 1.5rem !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(22, 50, 79, 0.12);
}

.page-header {
  padding-top: clamp(2.8rem, 6vw, 4.5rem) !important;
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem) !important;
}

.hero::after,
.page-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--ha-gold), var(--ha-rust), var(--ha-blue-2));
}

.hero-content {
  width: min(980px, 100%) !important;
  margin: 0 auto !important;
}

.hero h1,
.page-header h1 {
  max-width: 980px;
  margin: 0 auto 1rem !important;
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.13 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero .subtitle,
.hero p,
.page-header p {
  max-width: 820px !important;
  margin: 0.75rem auto 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  font-weight: 500 !important;
  overflow-wrap: anywhere;
}

html[lang="zh-CN"] .hero h1,
html[lang="zh-CN"] .page-header h1 {
  max-width: calc(100vw - 2rem) !important;
  font-size: clamp(1.45rem, 6.4vw, 2.55rem) !important;
  line-height: 1.18 !important;
  overflow-wrap: anywhere !important;
  word-break: break-all;
  line-break: anywhere;
  white-space: normal !important;
}

html[lang="zh-CN"] .hero p,
html[lang="zh-CN"] .hero .subtitle,
html[lang="zh-CN"] .page-header p {
  word-break: break-all;
}

.cta-buttons {
  margin-top: 2rem !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.9rem !important;
}

.cta-button,
.ctab,
.ib,
button[type="submit"],
form button,
a[style*="display: inline-block"][style*="background"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px;
  padding: 0.78rem 1.35rem !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: var(--ha-rust) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.22) !important;
  font-size: 0.94rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.cta-button:hover,
.ctab:hover,
.ib:hover,
button[type="submit"]:hover,
form button:hover {
  transform: translateY(-1px) !important;
  background: var(--ha-rust-2) !important;
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-color: rgba(255, 209, 102, 0.85) !important;
  box-shadow: none !important;
}

.container,
main {
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
}

section {
  padding-top: clamp(2.8rem, 6vw, 4.2rem) !important;
  padding-bottom: clamp(2.8rem, 6vw, 4.2rem) !important;
}

.proof,
.trust {
  width: 100% !important;
  max-width: none !important;
  background: var(--ha-surface) !important;
}

.process {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #edf3f6 !important;
}

h2 {
  color: var(--ha-blue) !important;
  font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.container > section > h2,
.cs,
.ch {
  border-color: rgba(154, 52, 18, 0.22) !important;
}

h3,
h4,
.ct,
.tt {
  color: var(--ha-blue) !important;
  letter-spacing: 0 !important;
}

p,
li,
.d,
.sl,
.contact-item p,
.partner-card p,
.product-card p,
.trust-item p,
.feature-card p,
.flow-step p,
.timeline-item p,
.value-card p {
  color: var(--ha-muted) !important;
}

.proof-grid,
.product-grid,
.trust-grid,
.process-steps,
.values-grid,
.partners-grid,
.features-grid,
.logistics-flow,
.route-details,
.stats-grid,
.contact-grid,
.pg,
.stats,
.sg {
  gap: 1.35rem !important;
}

.proof-item,
.product-card,
.process-step,
.trust-item,
.content-block,
.value-card,
.partner-card,
.timeline-item,
.feature-card,
.flow-step,
.routes,
.contact-info,
form,
.pc,
.si,
.stats,
.cta,
.route,
.detail-box {
  background: var(--ha-surface) !important;
  color: var(--ha-ink) !important;
  border: 1px solid var(--ha-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--ha-shadow) !important;
}

.proof-item,
.value-card,
.flow-step,
.feature-card {
  border-top: 4px solid var(--ha-gold) !important;
}

.product-card,
.partner-card,
.timeline-item,
.route,
.process-step,
.pc {
  border-left: 4px solid var(--ha-rust) !important;
}

.product-specs,
.detail-box,
.si,
.mt {
  background: var(--ha-soft) !important;
  color: var(--ha-ink) !important;
}

.proof-number,
.number,
.year,
.sn,
.pv,
.duration,
.cc,
.pr,
.sv.hi {
  color: var(--ha-rust) !important;
  -webkit-text-fill-color: currentColor !important;
}

.stat-box {
  background: linear-gradient(135deg, var(--ha-blue), var(--ha-rust)) !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: var(--ha-shadow) !important;
}

.stat-box .label,
.stat-box p,
.stat-box div {
  color: rgba(255, 255, 255, 0.9) !important;
}

.stat-box .number {
  color: var(--ha-gold) !important;
}

.contact,
section[style*="linear-gradient"] {
  width: 100% !important;
  max-width: none !important;
  background: linear-gradient(135deg, var(--ha-blue), var(--ha-rust)) !important;
  color: #fff !important;
  border-radius: 0 !important;
}

.contact h2,
.contact h3,
.contact p,
.contact a,
section[style*="linear-gradient"] h2,
section[style*="linear-gradient"] p {
  color: #fff !important;
}

.contact .cta-button,
section[style*="linear-gradient"] .cta-button,
section[style*="linear-gradient"] a[style*="background"] {
  background: var(--ha-gold) !important;
  color: var(--ha-blue) !important;
  box-shadow: 0 8px 18px rgba(255, 209, 102, 0.24) !important;
}

.contact-grid {
  align-items: start;
}

label {
  color: var(--ha-blue) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  min-height: 44px;
  border: 1px solid #cfd8e3 !important;
  border-radius: 6px !important;
  color: var(--ha-ink) !important;
  background: #fff !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ha-rust) !important;
  box-shadow: 0 0 0 3px rgba(154, 52, 18, 0.14) !important;
}

.filters {
  margin-top: 1.8rem !important;
}

.fb,
.b {
  border-radius: 999px !important;
  border: 1px solid rgba(154, 52, 18, 0.22) !important;
  background: #fff !important;
  color: var(--ha-blue) !important;
}

.fb.active,
.fb:hover {
  background: var(--ha-rust) !important;
  color: #fff !important;
}

.ca {
  background: linear-gradient(90deg, var(--ha-rust), var(--ha-gold)) !important;
}

.cf {
  border-top-color: var(--ha-line) !important;
}

.author-box {
  margin: 0 auto !important;
  padding: 1.4rem 1.5rem !important;
  border-top: 1px solid var(--ha-line) !important;
  color: var(--ha-muted) !important;
}

.author-box strong {
  color: var(--ha-blue) !important;
}

footer {
  margin-top: 0 !important;
  padding: 2rem 1.5rem !important;
  background: #102033 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-align: center !important;
}

footer p,
footer a,
.footer-nav a {
  color: rgba(255, 255, 255, 0.76) !important;
}

footer a:hover,
.footer-nav a:hover {
  color: var(--ha-gold) !important;
}

.hsp-credit {
  margin-top: 0.45rem;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .nav-container,
  .nav-inner {
    align-items: center !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
  }

  .nav-links,
  nav .nav-container > div:last-child,
  nav .nav-inner > div:last-child {
    justify-content: center !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .proof-grid,
  .stats-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  nav {
    padding: 0.85rem 0.9rem !important;
  }

  nav a,
  .nav-links a {
    font-size: 0.83rem !important;
  }

  .breadcrumbs,
  .freshness,
  .author-box,
  .container,
  main,
  .products {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero,
  .page-header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .cta-buttons,
  .filters {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .cta-button,
  .ctab,
  .ib,
  button[type="submit"] {
    width: 100% !important;
  }

  .proof-grid,
  .stats-grid,
  .stats,
  .sg {
    grid-template-columns: 1fr !important;
  }

  .language-switch {
    right: 10px !important;
    bottom: 10px !important;
  }

  html[lang="zh-CN"] .hero h1,
  html[lang="zh-CN"] .page-header h1 {
    font-size: 1.22rem !important;
    max-width: 250px !important;
  }
}
