/* ==========================================================================
   上海霸弗自动化科技有限公司（BFU）官网样式表
   依据 Ardot 设计稿 v2.1（文件 726325945805774）1:1 还原
   主色 品牌橙 #F05423 ｜ 字体 Inter + Noto Sans SC
   ========================================================================== */

:root {
  --orange: #F05423;
  --orange-dark: #D8441A;
  --ink: #1A1D22;
  --body-c: #3A3F45;
  --sub: #5A5F66;
  --gray: #6A7078;
  --light: #8A9098;

  --bg: #F4F5F7;
  --bg-hero: #EAEDF1;
  --bg-soft: #E3E7EC;
  --bg-foot: #E1E4E9;
  --line: #D9DCE1;
  --white: #FFFFFF;

  --pad: clamp(20px, 7.64vw, 110px);
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --radius-card: 8px;
  --radius-btn: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-c);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.28; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.shell { max-width: 1440px; margin: 0 auto; }
.section { padding: 88px var(--pad); }
.section-sm { padding: 80px var(--pad); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(26, 29, 34, .06);
}
.topbar-inner {
  height: 76px;
  padding: 0 max(var(--pad), calc((100% - 1440px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; color: var(--body-c); transition: color .18s ease; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); font-weight: 500; }
.nav-cta {
  padding: 10px 24px; border-radius: var(--radius-btn);
  background: var(--orange); color: #fff; font-size: 14px;
  transition: background .18s ease;
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: none;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { background: var(--bg-hero); }
.hero-inner {
  padding: 90px max(var(--pad), calc((100% - 1440px) / 2));
  display: grid; grid-template-columns: minmax(0, 1fr) 531px;
  gap: 64px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 4px;
  background: var(--white); color: var(--body-c);
  font-size: 22px; line-height: 1.6;
}
.hero h1 { font-size: 54px; letter-spacing: -.5px; }
.hero-actions { display: flex; gap: 16px; padding-top: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: var(--radius-btn);
  font-size: 15px; white-space: nowrap; transition: all .18s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { color: var(--orange); }
.hero-media {
  width: 100%; aspect-ratio: 531 / 422; border-radius: 10px; overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 数据条 ---------- */
.stats {
  background: var(--white); padding: 36px max(var(--pad), calc((100% - 1440px) / 2));
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 34px; font-weight: 700; color: var(--orange); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--gray); }

/* ---------- 通用区块标题 ---------- */
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.eyebrow {
  font-size: 14px; letter-spacing: .06em; color: var(--light);
  text-transform: uppercase; font-weight: 600;
}
.section h2 { font-size: 38px; }
.lead { font-size: 16px; line-height: 1.85; color: var(--sub); }

/* ---------- 三卡 / 四卡 ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius-card);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.card .num { font-size: 22px; font-weight: 700; color: var(--orange); line-height: 1.2; }
.card .kicker {
  font-size: 11px; letter-spacing: .08em; color: var(--light); font-weight: 600;
  text-transform: uppercase;
}
.card h3 { font-size: 19px; }
.card p { font-size: 14px; line-height: 1.85; color: var(--sub); }
.card-soft { background: var(--bg); border: 1px solid var(--line); }
.card-line { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.card-line h3 { font-size: 18px; }
.card-line p { font-size: 13px; line-height: 1.8; }

/* ---------- 产品网格（首页） ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pcard {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border-radius: var(--radius-card);
  padding: 18px 18px 26px; transition: box-shadow .2s ease, transform .2s ease;
}
.pcard:hover { box-shadow: 0 10px 26px rgba(26, 29, 34, .08); transform: translateY(-2px); }
.pcard-media {
  height: 200px; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pcard-media img { max-height: 100%; object-fit: contain; }
.pcard h3 { font-size: 17px; }
.pcard p { font-size: 13px; line-height: 1.8; color: var(--sub); }

/* ---------- 行业卡（首页） ---------- */
.icard {
  background: var(--white); border-radius: var(--radius-card);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.icard .ico { width: 28px; height: 28px; }
.icard h3 { font-size: 19px; }
.icard p { font-size: 14px; line-height: 1.85; color: var(--sub); }

/* ---------- CTA 横幅 ---------- */
.cta {
  background: var(--orange); padding: 56px max(var(--pad), calc((100% - 1440px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-copy { display: flex; flex-direction: column; gap: 10px; }
.cta h2 { font-size: 28px; color: #fff; }
.cta p { font-size: 15px; color: rgba(255, 255, 255, .9); }
.btn-white { background: var(--white); color: var(--orange); font-weight: 500; }
.btn-white:hover { background: #FFE9E1; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-foot); padding: 64px max(var(--pad), calc((100% - 1440px) / 2)) 36px; }
.footer-top {
  display: flex; gap: 80px; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap;
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.foot-brand img { height: 42px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.foot-brand p { font-size: 13px; line-height: 1.9; color: var(--gray); white-space: pre-line; }
.foot-col { display: flex; flex-direction: column; gap: 14px; min-width: 160px; }
.foot-col h4 { font-size: 14px; }
.foot-col a, .foot-col span { font-size: 13px; color: var(--gray); }
.foot-col a:hover { color: var(--orange); }
.foot-divider { height: 1px; background: var(--line); margin: 44px 0 24px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--gray);
}
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: var(--orange); }

/* ==========================================================================
   内页
   ========================================================================== */
.page-banner {
  background: var(--bg-hero); padding: 64px max(var(--pad), calc((100% - 1440px) / 2)) 56px;
  display: flex; flex-direction: column; gap: 20px;
}
.crumb { font-size: 14px; color: var(--gray); }
.page-banner h1 { font-size: 44px; }
.page-banner .lead { font-size: 17px; max-width: 1120px; }

/* 产品中心：2×2 大卡 */
.rows { display: flex; flex-direction: column; gap: 28px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.bigcard {
  display: flex; gap: 28px; padding: 28px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px;
}
.bigcard-media {
  width: 280px; flex: 0 0 280px; height: 230px; border-radius: 8px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.bigcard-media img { max-height: 100%; object-fit: contain; }
.bigcard-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bigcard-body h3 { font-size: 21px; }
.bigcard-body p { font-size: 14px; line-height: 1.8; color: var(--sub); }
.specs { display: flex; flex-direction: column; gap: 2px; }
.specs li { font-size: 13px; color: var(--gray); }
.more { font-size: 14px; color: var(--orange); margin-top: 4px; }
.more:hover { text-decoration: underline; }

/* 选型支持：四步 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.step .num { font-size: 22px; font-weight: 700; color: var(--orange); line-height: 1.2; }
.step h3 { font-size: 17px; }
.step p { font-size: 13px; line-height: 1.8; color: var(--sub); }

/* 应用行业：左右交替板块 */
.topic { padding: 80px var(--pad); }
.topic-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px;
  align-items: center;
}
.topic.reverse .topic-copy { order: 2; }
.topic.reverse .topic-media { order: 1; }
.topic-copy { display: flex; flex-direction: column; gap: 18px; }
.topic-copy .kicker {
  font-size: 12px; letter-spacing: .08em; color: var(--light);
  font-weight: 600; text-transform: uppercase;
}
.title-row { display: flex; align-items: baseline; gap: 14px; }
.title-row .num { font-size: 22px; font-weight: 700; color: var(--orange); }
.title-row h2 { font-size: 30px; }
.topic-copy > p { font-size: 15px; line-height: 1.9; color: var(--sub); }
.role-label { font-size: 13px; color: var(--orange); font-weight: 500; }
.roles { display: flex; flex-direction: column; gap: 16px; }
.roles li { display: flex; gap: 10px; font-size: 14px; line-height: 1.8; color: var(--body-c); }
.roles .dot {
  flex: 0 0 6px; width: 6px; height: 6px; margin-top: 9px;
  border-radius: 50%; background: var(--orange);
}
.topic-media {
  width: 100%; aspect-ratio: 520 / 360; border-radius: var(--radius-card);
  overflow: hidden; border: 1px solid var(--line);
}
.topic-media img { width: 100%; height: 100%; object-fit: cover; }

/* 工况速查表 */
.table-list { display: flex; flex-direction: column; gap: 12px; }
.trow {
  display: grid; grid-template-columns: 200px 340px 340px minmax(0, 1fr);
  gap: 16px; align-items: center;
  padding: 20px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-card);
}
.trow.head {
  background: transparent; border: 0; padding: 0 24px; border-radius: 0;
}
.trow.head div { font-size: 12px; color: var(--light); }
.trow .c1 { font-size: 15px; font-weight: 500; color: var(--ink); }
.trow .c2, .trow .c3 { font-size: 13px; color: var(--sub); }
.trow .c4 { font-size: 13px; color: var(--orange); }

/* 关于我们 */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px;
  align-items: center;
}
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy h2 { font-size: 30px; }
.about-copy p { font-size: 15px; line-height: 1.95; color: var(--body-c); }
.tags { display: flex; gap: 10px; padding-top: 8px; flex-wrap: wrap; }
.tag {
  padding: 6px 12px; border-radius: 4px; background: var(--bg-soft);
  font-size: 13px; color: var(--body-c); font-weight: 500;
}
.about-media {
  width: 100%; aspect-ratio: 1040 / 693; border-radius: var(--radius-card);
  overflow: hidden; background: #EDEFF2;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
  .hero h1 { font-size: 46px; }
  .badge { font-size: 18px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-inner { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
  .about-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
  .trow { grid-template-columns: 160px 1fr 1fr minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .topbar-inner { padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 20px; display: none;
    box-shadow: 0 12px 24px rgba(26, 29, 34, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; font-size: 16px; }
  .topbar { position: sticky; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 56px var(--pad); }
  .hero-media { max-width: 560px; }
  .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-inner { grid-template-columns: minmax(0, 1fr); }
  .topic.reverse .topic-copy { order: 1; }
  .topic.reverse .topic-media { order: 2; }
  .topic-media { max-width: 560px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 560px; }
  .section h2, .page-banner h1 { font-size: 32px; }
  .hero h1 { font-size: 40px; }
  .table-wrap { overflow-x: auto; }
  .trow, .trow.head { min-width: 880px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .badge { font-size: 15px; }
  .section, .section-sm, .topic { padding: 56px var(--pad); }
  .grid-products, .steps { grid-template-columns: minmax(0, 1fr); }
  .cards-4 { grid-template-columns: minmax(0, 1fr); }
  .bigcard { flex-direction: column; }
  .bigcard-media { width: 100%; flex: none; height: 200px; }
  .cta { padding: 40px var(--pad); }
  .cta h2 { font-size: 22px; }
  .stat b { font-size: 28px; }
  .stats { justify-content: flex-start; gap: 24px 40px; }
  .footer-top { gap: 40px; }
  .foot-col { min-width: 40%; }
  .section h2 { font-size: 26px; }
}
