:root {
  --bm-ink: #17202a;
  --bm-muted: #66717f;
  --bm-line: #d9e0e8;
  --bm-bg: #f4f7fa;
  --bm-soft: #edf2f6;
  --bm-red: #b3262e;
  --bm-blue: #174f79;
  --bm-gold: #c59a46;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--bm-ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bm-red); text-decoration: none; }
img { max-width: 100%; display: block; }

.bm-topbar { background: #17202a; color: rgba(255,255,255,.78); font-size: 13px; }
.bm-topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bm-nav { background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(23,32,42,.1); box-shadow: 0 8px 24px rgba(23,32,42,.06); }
.bm-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bm-brand img { width: auto; height: 54px; }
.bm-brand span { display: flex; flex-direction: column; min-width: 0; }
.bm-brand strong { font-size: 18px; line-height: 1.25; white-space: nowrap; }
.bm-brand small { color: var(--bm-muted); font-size: 12px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-nav .nav-link { color: var(--bm-ink); font-weight: 600; padding: 12px 13px; }
.bm-nav .active .nav-link, .bm-nav .nav-link:hover { color: var(--bm-red); }
.navbar-toggler { border-color: var(--bm-line); }
.navbar-toggler-icon { background-image: linear-gradient(var(--bm-ink),var(--bm-ink)),linear-gradient(var(--bm-ink),var(--bm-ink)),linear-gradient(var(--bm-ink),var(--bm-ink)); background-size: 24px 2px; background-position: center 8px, center 15px, center 22px; background-repeat: no-repeat; }
.bm-search { display: flex; align-items: center; margin-left: 18px; border: 1px solid var(--bm-line); border-radius: 4px; overflow: hidden; background: #fff; }
.bm-search input, .bm-search-large input { border: 0; outline: 0; padding: 9px 10px; min-width: 150px; }
.bm-search button, .bm-search-large button { border: 0; background: var(--bm-red); color: #fff; padding: 9px 12px; cursor: pointer; }

.bm-hero { min-height: 620px; background: #17202a; }
.bm-hero-swiper, .bm-hero-slide { height: 620px; }
.bm-hero-slide { background-size: cover; background-position: center; position: relative; }
.bm-hero-slide:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,20,28,.82), rgba(12,20,28,.52), rgba(12,20,28,.18)); }
.bm-hero-copy { position: relative; z-index: 1; color: #fff; max-width: 720px; padding-top: 145px; }
.bm-hero-copy span, .bm-section-head span, .bm-detail-side span, .bm-article header span, .bm-contact-panel span { color: var(--bm-gold); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.bm-hero-copy h1 { font-size: 54px; line-height: 1.15; margin: 18px 0; font-weight: 800; }
.bm-hero-copy p { font-size: 21px; color: rgba(255,255,255,.86); margin-bottom: 28px; }
.bm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 4px; font-weight: 700; border: 1px solid transparent; }
.bm-btn-primary { background: var(--bm-red); color: #fff; }
.bm-btn-primary:hover { background: #941d25; color: #fff; }
.bm-btn-light { background: #fff; color: var(--bm-ink); border-color: #fff; }

.bm-section { padding: 72px 0; }
.bm-soft, .bm-main { background: var(--bm-bg); }
.bm-dark { background: #17202a; color: #fff; }
.bm-section-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.bm-section-head h1, .bm-section-head h2 { font-size: 34px; line-height: 1.25; margin: 8px 0 12px; font-weight: 800; }
.bm-section-head p { color: var(--bm-muted); margin: 0; }
.bm-dark .bm-section-head p { color: rgba(255,255,255,.72); }
.bm-left { text-align: left; margin-left: 0; }
.bm-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; text-align: left; gap: 20px; }
.bm-head-row a { color: var(--bm-red); font-weight: 700; }

.bm-capability { background: #fff; margin-top: -62px; position: relative; z-index: 2; }
.bm-capability-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--bm-line); background: #fff; box-shadow: 0 18px 42px rgba(23,32,42,.08); }
.bm-capability-grid div { padding: 28px; border-right: 1px solid var(--bm-line); }
.bm-capability-grid div:last-child { border-right: 0; }
.bm-capability-grid strong { display: block; font-size: 34px; color: var(--bm-red); line-height: 1.2; }
.bm-capability-grid span { color: var(--bm-muted); }

.bm-product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.bm-card { background: #fff; border: 1px solid var(--bm-line); border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.bm-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23,32,42,.12); }
.bm-card-img { height: 210px; background: var(--bm-soft); display: block; }
.bm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bm-card-body { padding: 18px; }
.bm-card-body span, .bm-case-card span { color: var(--bm-red); font-size: 13px; font-weight: 700; }
.bm-card-body h3, .bm-case-card h3 { font-size: 18px; line-height: 1.35; margin: 6px 0 8px; font-weight: 800; }
.bm-card-body p, .bm-case-card p { color: var(--bm-muted); margin: 0; font-size: 14px; }

.bm-about-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.bm-about-tiles div { min-height: 118px; padding: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: end; border-radius: 6px; }
.bm-case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.bm-case-card { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--bm-line); }
.bm-case-card img { width: 100%; height: 230px; object-fit: cover; }
.bm-case-card div { padding: 18px; }
.bm-factory-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.bm-factory-item { position: relative; min-height: 180px; overflow: hidden; border-radius: 6px; display: block; background: #17202a; }
.bm-factory-item img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; opacity: .86; transition: transform .25s; }
.bm-factory-item:hover img { transform: scale(1.04); }
.bm-factory-item span { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.bm-news-list { display: grid; gap: 12px; }
.bm-news-list a { display: grid; grid-template-columns: 110px 1fr; gap: 4px 18px; padding: 18px 0; border-bottom: 1px solid var(--bm-line); }
.bm-news-list time { grid-row: span 2; color: var(--bm-red); font-weight: 800; }
.bm-news-list strong { font-size: 18px; }
.bm-news-list span { color: var(--bm-muted); }
.bm-contact-panel { background: #17202a; color: #fff; border-radius: 6px; padding: 34px; height: 100%; }
.bm-contact-panel p, .bm-contact-panel li { color: rgba(255,255,255,.76); }
.bm-contact-panel strong { display: block; font-size: 30px; margin: 22px 0; color: #fff; }
.bm-contact-panel ul { padding-left: 18px; margin: 20px 0 0; }

.bm-page-hero { min-height: 280px; background: linear-gradient(90deg,#17202a,#31526b); background-size: cover; background-position: center; position: relative; }
.bm-page-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,32,42,.85), rgba(23,32,42,.42)); }
.bm-page-hero-content { position: relative; z-index: 1; color: #fff; padding: 64px 0; max-width: 720px; }
.bm-page-hero-content span { color: var(--bm-gold); font-weight: 800; }
.bm-page-hero-content h1 { font-size: 42px; font-weight: 800; margin: 8px 0; }
.bm-page-hero-content p { color: rgba(255,255,255,.78); margin: 0; }
.bm-main { padding: 42px 0 72px; }
.breadcrumb, .position { background: transparent; padding-left: 0; }
.bm-sortnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }
.bm-sortnav a { padding: 9px 14px; border: 1px solid var(--bm-line); background: #fff; border-radius: 4px; color: var(--bm-ink); font-weight: 700; }
.bm-sortnav a.active, .bm-sortnav a:hover { background: var(--bm-red); border-color: var(--bm-red); color: #fff; }
.bm-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.bm-pagination a, .bm-pagination span { min-width: 38px; padding: 8px 12px; border: 1px solid var(--bm-line); background: #fff; border-radius: 4px; text-align: center; }
.bm-empty { text-align: center; padding: 50px 0; color: var(--bm-muted); }

.bm-detail-layout { display: grid; grid-template-columns: minmax(0,1.1fr) 420px; gap: 28px; }
.bm-gallery-main { background: #fff; border: 1px solid var(--bm-line); border-radius: 6px; overflow: hidden; }
.bm-gallery-main .swiper-slide { height: 500px; display: flex; align-items: center; justify-content: center; background: #fff; }
.bm-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.bm-detail-side { background: #fff; border: 1px solid var(--bm-line); border-radius: 6px; padding: 30px; }
.bm-detail-side h1 { font-size: 32px; line-height: 1.3; font-weight: 800; margin: 8px 0 22px; }
.bm-detail-side dl { display: grid; grid-template-columns: 86px 1fr; gap: 12px; margin-bottom: 26px; }
.bm-detail-side dt { color: var(--bm-muted); }
.bm-detail-side dd { margin: 0; font-weight: 700; }
.bm-content { margin-top: 28px; background: #fff; border: 1px solid var(--bm-line); border-radius: 6px; padding: 30px; }
.bm-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.bm-content p { color: #3a4550; }
.bm-content img { margin: 18px auto; border-radius: 4px; max-height: 760px; object-fit: contain; }
.bm-article { max-width: 980px; margin: 0 auto; }
.bm-article header { text-align: center; margin-bottom: 24px; }
.bm-article header h1 { font-size: 36px; font-weight: 800; margin: 8px 0; }
.bm-article header p { color: var(--bm-muted); }
.bm-prev-next { margin-top: 20px; color: var(--bm-muted); }
.bm-rich-grid { display: grid; grid-template-columns: 1fr 260px; gap: 26px; align-items: start; }
.bm-data-panel { background: var(--bm-bg); border: 1px solid var(--bm-line); border-radius: 6px; padding: 22px; }
.bm-data-panel strong { display: block; color: var(--bm-red); font-size: 28px; line-height: 1.2; }
.bm-data-panel span { display: block; color: var(--bm-muted); margin-bottom: 16px; }
.bm-contact-list { padding-left: 18px; }
.bm-search-large { max-width: 680px; margin: 0 auto 34px; display: flex; border: 1px solid var(--bm-line); background: #fff; border-radius: 4px; overflow: hidden; }
.bm-search-large input { flex: 1; padding: 13px 14px; }
.bm-search-large button { min-width: 96px; }
.bm-message-form { background: #fff; border: 1px solid var(--bm-line); border-radius: 6px; padding: 30px; }
.bm-message-form label { display: block; font-weight: 800; margin-bottom: 18px; }
.bm-message-form input, .bm-message-form textarea { width: 100%; margin-top: 8px; border: 1px solid var(--bm-line); border-radius: 4px; padding: 12px; outline: 0; font-weight: 400; }
.bm-message-form input:focus, .bm-message-form textarea:focus { border-color: var(--bm-blue); box-shadow: 0 0 0 3px rgba(23,79,121,.12); }
.bm-code-row { display: flex; gap: 12px; align-items: center; }
.bm-code-row img { height: 42px; width: auto; border: 1px solid var(--bm-line); }

.bm-footer { background: #111920; color: rgba(255,255,255,.78); padding: 54px 0 96px; }
.bm-footer h4, .bm-footer h5 { color: #fff; font-weight: 800; }
.bm-footer ul { list-style: none; padding: 0; margin: 0; }
.bm-footer li { margin-bottom: 7px; }
.bm-footer a { color: rgba(255,255,255,.78); }
.bm-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.bm-mobile-actions { display: none; }

@media (max-width: 991px) {
  .bm-search { margin: 12px 0 0; }
  .bm-brand small { display: none; }
  .bm-hero, .bm-hero-swiper, .bm-hero-slide { height: 540px; min-height: 540px; }
  .bm-hero-copy { padding-top: 110px; }
  .bm-hero-copy h1 { font-size: 40px; }
  .bm-product-grid, .bm-case-grid, .bm-factory-grid { grid-template-columns: repeat(2,1fr); }
  .bm-capability-grid { grid-template-columns: repeat(2,1fr); }
  .bm-capability-grid div:nth-child(2) { border-right: 0; }
  .bm-detail-layout { grid-template-columns: 1fr; }
  .bm-rich-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .bm-topbar-inner { justify-content: center; text-align: center; }
  .bm-topbar-inner span:first-child { display: none; }
  .bm-brand img { width: auto; height: 46px; }
  .bm-brand strong { font-size: 15px; max-width: 190px; overflow-wrap: anywhere; white-space: normal; }
  .bm-hero, .bm-hero-swiper, .bm-hero-slide { height: 500px; min-height: 500px; }
  .bm-hero-copy { padding-top: 82px; }
  .bm-hero-copy h1 { font-size: 30px; }
  .bm-hero-copy p { font-size: 17px; }
  .bm-section { padding: 48px 0; }
  .bm-section-head h1, .bm-section-head h2, .bm-page-hero-content h1, .bm-article header h1 { font-size: 28px; }
  .bm-head-row { align-items: flex-start; flex-direction: column; }
  .bm-product-grid, .bm-case-grid, .bm-factory-grid, .bm-capability-grid, .bm-about-tiles { grid-template-columns: 1fr; }
  .bm-card-img { height: 220px; }
  .bm-news-list a { grid-template-columns: 1fr; }
  .bm-gallery-main .swiper-slide { height: 330px; }
  .bm-detail-side, .bm-content, .bm-message-form, .bm-contact-panel { padding: 22px; }
  .bm-detail-side h1 { font-size: 26px; }
  .bm-footer { padding-bottom: 86px; }
  .bm-mobile-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; background: #17202a; box-shadow: 0 -8px 24px rgba(0,0,0,.14); }
  .bm-mobile-actions a { color: #fff; text-align: center; padding: 12px 8px; font-weight: 800; border-right: 1px solid rgba(255,255,255,.12); }
}
