/* ==========================================================================
   BZ-AUTO 站点样式 — 工业深蓝 #334155 / 强调橙 #EA580C / 底色 #F8FAFC
   ========================================================================== */

:root {
  --primary: #334155;
  --primary-dark: #1F2C3D;
  --accent: #EA580C;
  --accent-soft: #FFF3EB;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --radius: 10px;
  --maxw: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 双语文案切换 ---------- */
.lang {
  display: none;
}

html[lang="en"] .lang.en {
  display: block;
}

html[lang="zh"] .lang.zh {
  display: block;
}

/* 行内双语 span 需要 inline 行为 */
span.lang {
  display: none;
}

html[lang="en"] span.lang.en {
  display: inline;
}

html[lang="zh"] span.lang.zh {
  display: inline;
}

html[lang="en"] li.lang.en,
html[lang="en"] td.lang.en,
html[lang="en"] th.lang.en {
  display: list-item;
}

html[lang="en"] td.lang.en,
html[lang="en"] th.lang.en {
  display: table-cell;
}

html[lang="zh"] li.lang.zh,
html[lang="zh"] td.lang.zh,
html[lang="zh"] th.lang.zh {
  display: list-item;
}

html[lang="zh"] td.lang.zh,
html[lang="zh"] th.lang.zh {
  display: table-cell;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 14.5px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--primary);
  background: #F1F5F9;
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
  background: #F1F5F9;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switch button {
  font-family: inherit;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-switch button.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* 移动端导航开关 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--primary);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--primary);
}

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 0;
  right: -60px;
  width: 620px;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 88px;
  max-width: 720px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 19px;
  color: #CBD5E1;
  margin-bottom: 32px;
  max-width: 620px;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #D34E08;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}

.btn-dark:hover {
  background: var(--primary-dark);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
}

.label-sm {
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

/* KPI 条 */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.kpi {
  background: #fff;
  padding: 26px 24px;
}

.kpi-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-num.is-accent {
  color: var(--accent);
}

.kpi-label {
  font-size: 14.5px;
  color: var(--muted);
}

/* 卡片 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.card-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card p {
  font-size: 16px;
  color: var(--muted);
}

/* 工艺网格 */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proc.feature {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.proc-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

.proc h3 {
  font-size: 19px;
  line-height: 1.35;
}

.proc-en {
  font-size: 12.5px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
}

.proc p {
  font-size: 15.5px;
  color: var(--muted);
  margin-top: auto;
}

/* 流程链 */
.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.flow-step {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  position: relative;
}

.flow-step:last-child {
  border-right: none;
}

.flow-step.hot {
  background: var(--primary);
  color: #fff;
}

.flow-step.hot .flow-out {
  color: #CBD5E1;
}

.flow-idx {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.flow-step h4 {
  font-size: 16.5px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.flow-en {
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.flow-out {
  font-size: 14px;
  color: var(--muted);
}

/* 表格 */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: #fff;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.data th {
  background: var(--primary);
  color: #fff;
  font-size: 14.5px;
  text-align: left;
  padding: 15px 18px;
  font-weight: 600;
}

table.data td {
  font-size: 15.5px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data td:first-child {
  color: var(--text);
  font-weight: 600;
}

/* 双栏内容 */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.checklist {
  list-style: none;
  margin-top: 22px;
}

.checklist li {
  font-size: 16.5px;
  color: var(--muted);
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* 表单 */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15.5px;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #FBFDFE;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 14px 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
}

.btn-submit:hover {
  background: #D34E08;
}

/* 联系信息 */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.info-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.info-block:first-child {
  padding-top: 0;
}

.info-label {
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-value {
  font-size: 18px;
  font-weight: 600;
}

.info-value a {
  color: var(--accent);
}

/* CTA 条 */
.cta {
  background: var(--primary);
  color: #fff;
  padding: 60px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.cta p {
  color: #CBD5E1;
  font-size: 16.5px;
}

/* 页脚 */
.site-footer {
  background: var(--primary-dark);
  color: #94A3B8;
  padding: 52px 0 26px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h5 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 9px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand {
  color: #CBD5E1;
  font-size: 14.5px;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 22px;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 页面标题栏（内页顶部） */
.page-head {
  background: var(--primary);
  color: #fff;
  padding: 62px 0 58px;
  position: relative;
  overflow: hidden;
}

.page-head .label-sm {
  color: var(--accent);
}

.page-head h1 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.page-head p {
  color: #CBD5E1;
  font-size: 18px;
  max-width: 640px;
}

/* 面包屑 */
.crumb {
  font-size: 13.5px;
  color: #94A3B8;
  margin-bottom: 16px;
}

.crumb a:hover {
  color: #fff;
}

/* 响应式 */
@media (max-width: 1024px) {
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .flow-step {
    border-bottom: 1px solid var(--line);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 11px 10px;
    font-size: 15.5px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 34px;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-head h2,
  .cta h2 {
    font-size: 27px;
  }

  .page-head h1 {
    font-size: 31px;
  }

  .grid-3,
  .grid-2,
  .proc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }

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

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

  .form-card {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .brand-text {
    display: none;
  }
}
