/* Content styles on top of m432/green template. Chrome/header/footer come from m432. */
.wrap{width:100%;max-width:1600px;padding:0 70px;margin:0 auto}
@media (max-width:1024px){.wrap{padding:0 10px}}
/* hide legacy chrome if any */
.topbar,.header-actions,.float-bar,.mobile-panel{display:none!important}

/* 对齐 oemdashcam.com (m432/green) 视觉体系 */
:root {
  /* match oemdashcam.com other.css brand red */
  --color: #C5272D;
  --color-dark: #9E1E23;
  --color-soft: #fdeced;
  --hovercolor: #EEEEEE;
  --fontcolor: #111111;
  --titlecolor: #111111;
  --introcolor: #555555;
  --headercolor: #FFFFFF;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --line: #EEEEEE;
  --shadow: 0 10px 40px rgba(0, 0, 0, .1);
  --borderradius: 6px;
  --max: 1400px;
  --header: 80px;
  --top: 40px;
  --hometitlefont: 40px;
  --fontfamily: "Titillium Web", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fontfamily);
  color: var(--fontcolor);
  background: var(--white);
  font-size: 16px;
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: all .15s linear; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 160px; height: 50px; padding: 0 24px;
  border-radius: var(--borderradius); border: 1px solid var(--color);
  background: var(--color); color: var(--fontcolor); font-weight: 600;
  font-size: 18px; cursor: pointer; transition: all .15s linear;
  text-transform: none;
}
.btn:hover { background: var(--color-dark); border-color: var(--color-dark); transform: none; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn.ghost:hover { background: var(--color); color: var(--fontcolor); border-color: var(--color); }
.btn.outline { background: #fff; color: var(--fontcolor); border: 1px solid var(--color); }
.btn.outline:hover { background: var(--color); }

.kicker, .home-icon {
  color: var(--color); font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 10px; text-align: inherit;
}
h1, h2, h3, h4 {
  font-family: var(--fontfamily); line-height: 1.35; margin: 0 0 12px;
  color: var(--titlecolor); font-weight: 600;
}
h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(24px, 3vw, var(--hometitlefont)); }
h3 { font-size: 20px; }
p { margin: 0 0 12px; color: var(--introcolor); }

.top-left, .top-right { display: flex; gap: 18px; align-items: center; }
.lang { display: flex; align-items: center; gap: 6px; }

.footer-logo { display: inline-block; margin: 0 0 14px; }
.footer-logo img {
  display: block !important;
  height: 48px !important;
  width: auto !important;
  max-height: 48px !important;
  max-width: 220px !important;
  object-fit: contain !important;
}

/* Hero — 全幅 Banner + 居中文案，对齐 home-banner */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 1920 / 950; /* 对齐 oemdashcam banner 1920x950 */
  min-height: 0; max-height: none;
  overflow: hidden; color: #fff;
  display: flex; align-items: center;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background: #151515 center/cover no-repeat;
}
.slide.active { opacity: 1; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(21, 21, 21, .6);
}
.hero-copy {
  position: relative; z-index: 2; padding: 0 16px;
  max-width: 920px; margin: 0 auto; text-align: center; width: 100%;
}
.hero-copy .kicker { color: var(--color); text-align: center; }
.hero-copy h1 {
  color: #fff; font-size: clamp(28px, 5vw, 56px); font-weight: 600;
  line-height: 1.3; text-shadow: none; margin-bottom: 16px;
}
.hero-copy h1 span { color: var(--color); }
.hero-copy p {
  color: #fff; font-size: 16px; max-width: 760px; margin: 0 auto 28px; opacity: .95;
}
.hero-nav {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; pointer-events: none; z-index: 3;
}
.hero-nav button {
  pointer-events: auto; width: 46px; height: 46px; border-radius: var(--borderradius);
  border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer;
  font-size: 22px; transition: all .15s linear;
}
.hero-nav button:hover { background: var(--color); color: var(--fontcolor); }
.dots {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.dots button {
  width: 36px; height: 8px; border: 0; border-radius: var(--borderradius);
  background: var(--hovercolor); cursor: pointer; overflow: hidden; opacity: 1;
}
.dots button.on { background: var(--color); }

.red-strip, .accent-strip {
  background: var(--color); color: var(--fontcolor); text-align: center; padding: 16px 20px;
  font-weight: 600; letter-spacing: .02em;
}
.red-strip p, .accent-strip p { color: var(--fontcolor); margin: 0; font-size: 15px; }

/* Sections */
.section { padding: 70px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 1000px; margin: 0 auto 36px; }
.section-head h2 {
  font-size: var(--hometitlefont); font-weight: 600; text-transform: none;
  color: var(--fontcolor); line-height: 1.4; margin-bottom: 10px;
}
.section-head p { max-width: 1000px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.cat-card {
  position: relative; min-height: 280px; border-radius: var(--borderradius);
  overflow: hidden; color: #fff; isolation: isolate;
  box-shadow: var(--shadow); background: #fff;
}
.cat-card img, .cat-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72));
}
.cat-card span {
  position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px;
  font-size: 22px; font-weight: 700; letter-spacing: .02em;
}

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--borderradius);
  padding: 18px; text-align: center;
}
.stat b { display: block; color: var(--color); font-size: 28px; font-weight: 700; }
.stat span { color: var(--introcolor); font-size: 13px; }

.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cert {
  width: 120px; height: 88px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--borderradius); display: grid; place-items: center; text-align: center;
  font-weight: 700; font-size: 13px; color: var(--fontcolor); letter-spacing: .04em;
}
.cert small { display: block; font-weight: 500; color: var(--introcolor); font-size: 10px; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--borderradius); padding: 24px;
}
.why .ico {
  width: 50px; height: 50px; border-radius: 50%; background: var(--color);
  color: var(--fontcolor); display: grid; place-items: center; margin-bottom: 14px; font-weight: 700;
}

.factory-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: var(--borderradius);
  padding: 8px 14px; cursor: pointer;
}
.tabs button.on { background: var(--color); color: var(--fontcolor); border-color: var(--color); }
.factory-photo { border-radius: var(--borderradius); overflow: hidden; min-height: 340px; background: #111; }
.factory-photo img { width: 100%; height: 340px; object-fit: cover; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.kpi div {
  background: #151515; color: #fff; border-radius: var(--borderradius);
  padding: 16px; text-align: center;
}
.kpi b { display: block; font-size: 24px; color: var(--color); }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step {
  text-align: center; padding: 18px 10px; border: 1px solid var(--line);
  border-radius: var(--borderradius); background: #fff;
}
.step b {
  display: block; width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--color); color: var(--fontcolor); line-height: 36px;
}
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 13px; margin: 0; color: var(--introcolor); }

.custom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.custom-grid article {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--borderradius); padding: 22px;
}
.custom-grid ul { margin: 0; padding-left: 18px; color: var(--introcolor); }
.custom-grid li { margin: 6px 0; }

.scene-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.scene-tabs button {
  border: 1px solid var(--line); background: #efefef; border-radius: var(--borderradius);
  padding: 9px 16px; cursor: pointer; font-weight: 600;
}
.scene-tabs button.on { background: var(--color); color: var(--fontcolor); border-color: var(--color); }
.scene-view {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--borderradius); overflow: hidden;
}
.scene-view img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.scene-view div { padding: 28px; }
.scene-view ul { margin: 12px 0 0; padding-left: 18px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--borderradius); padding: 24px;
}
.quote p { font-size: 15px; }
.quote b { display: block; margin-top: 14px; color: var(--fontcolor); }
.quote span { color: var(--introcolor); font-size: 13px; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-card {
  background: var(--bg); border: 0; border-radius: var(--borderradius);
  overflow: hidden; display: grid; grid-template-columns: 180px 1fr; gap: 0;
  padding: 16px; align-items: center;
}
.news-card img { height: 120px; width: 180px; object-fit: cover; border-radius: var(--borderradius); }
.news-card div { padding: 8px 12px; }
.news-card small { color: var(--introcolor); font-size: 13px; }
.news-card h3 { font-size: 18px; font-weight: 600; margin: 8px 0; }
.news-card:hover h3 { color: var(--color); }

.cta-band {
  background: #151515; color: #fff; border-radius: var(--borderradius);
  padding: 42px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ddd; margin: 0; }

/* Footer */
.inquiry input, .inquiry textarea {
  width: 100%; margin: 0 0 10px; padding: 12px 14px;
  border-radius: var(--borderradius); border: 1px solid #333;
  background: #111; color: #fff;
}
.inquiry textarea { min-height: 90px; resize: vertical; }


/* Inner pages */
.page-hero {
  background: #151515 center/cover no-repeat; color: #fff; min-height: 220px;
  display: flex; align-items: flex-end; position: relative;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; background: rgba(21,21,21,.55);
}
.page-hero .wrap { position: relative; z-index: 1; padding: 70px 0 32px; }
.crumbs { font-size: 13px; color: #d0d4dc; margin-bottom: 8px; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--color); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  border: 0; border-radius: var(--borderradius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); transition: all .2s linear; padding-bottom: 6px;
}
.product:hover { transform: translateY(-4px); }
.product .thumb {
  height: 220px; background: #fff; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product .body { padding: 14px 16px 18px; position: relative; }
.product .body::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--color); transition: width .3s linear;
}
.product:hover .body::before { width: 100%; }
.product:hover h3 { color: var(--color); }
.product h3 { font-size: 18px; margin: 0 0 6px; transition: color .15s; }
.product p { font-size: 13px; margin: 0; }
.tag {
  display: inline-block; background: var(--color-soft); color: #6a7600;
  font-size: 11px; font-weight: 700; border-radius: var(--borderradius);
  padding: 3px 8px; margin-bottom: 6px;
}

.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; }
.detail-gallery {
  background: #f7f7f7; border-radius: var(--borderradius); overflow: hidden; min-height: 420px;
}
.detail-gallery img { width: 100%; height: 420px; object-fit: contain; background: #f7f7f7; }
.spec { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec th, .spec td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 14px;
}
.spec th { width: 38%; background: var(--bg); }

.article { max-width: 820px; margin: 0 auto; }
.article img { border-radius: var(--borderradius); margin: 18px 0; }
.article h2 { margin-top: 28px; }

/* custom search overlay — must stay hidden until .on */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, .55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 200;
}
.search-modal.on { display: flex; }
.search-modal .search-box {
  width: min(640px, calc(100% - 32px));
  background: #fff;
  border-radius: var(--borderradius);
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.search-modal .search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--borderradius);
  padding: 0 14px;
  background: #fff;
  color: var(--fontcolor);
}
.search-modal .search-box input:focus { outline: none; border-color: var(--color); }
.search-results { margin-top: 12px; max-height: 320px; overflow: auto; }
.search-results a { display: block; padding: 10px; border-radius: var(--borderradius); }
.search-results a:hover { background: var(--bg); color: var(--color); }


/* 移动侧栏 */
body.menu-open { overflow: hidden; height: 100%; }

.ok-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #111; color: #fff; padding: 12px 18px;
  border-radius: var(--borderradius); display: none; z-index: 90;
}


@media (max-width: 1440px) {
  :root { --hometitlefont: 30px; }
}

/* ≤1024：对齐模板平板/手机 */
@media (max-width: 1024px) {
  :root { --hometitlefont: 24px; --header: 70px; }
  .wrap { width: calc(100% - 20px); }
  nav, .header-actions .btn { display: none; }

  /* Banner：模板 1920x950 比例 */
  .hero {
    width: 100%;
    aspect-ratio: 1920 / 950;
    min-height: 0 !important;
    height: auto !important;
    max-height: none;
  }
  .hero-copy {
    padding: 0 12px !important;
    max-width: 100%;
  }
  .hero-copy h1 { font-size: clamp(18px, 5vw, 28px) !important; }
  .hero-copy p { font-size: 14px; margin-bottom: 14px; }
  .hero-nav { display: none; }
  .dots { bottom: 12px; }

  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .grid-4, .why, .custom-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .quotes, .news-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 140px 1fr; padding: 12px; }
  .news-card img { width: 140px; height: 100px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-stats, .kpi { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px 18px; }
  .cat-card { min-height: 200px; }
  .page-hero { min-height: 150px; }
  .page-hero .wrap { padding: 40px 0 20px; }

  /* 商品两列 —— 对齐模板 mainpro 48% */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 2.6% !important;
  }
  .product .thumb {
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
  .product .thumb img { object-fit: contain; padding: 8px; }
  .product p { display: none; }
  .product h3 { font-size: 14px; line-height: 1.35; margin-bottom: 0; }
  .product .tag { font-size: 10px; }

  /* 隐藏右侧悬浮，改用底部 tabbar */


}

@media (max-width: 768px) {
  :root { --header: 60px; --hometitlefont: 22px; }
  .footer-logo img { height: 40px !important; max-height: 40px !important; }
  .hero { aspect-ratio: 1920 / 950; min-height: 0 !important; }
  .hero-copy h1 { font-size: 20px !important; }
  .hero-copy .btn { min-width: 110px; height: 40px; font-size: 13px; padding: 0 14px; }
  .section { padding: 40px 0; }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .why, .custom-grid, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .certs { gap: 8px; }
  .cert { width: calc(25% - 8px); min-width: 70px; height: 70px; font-size: 11px; }
  .red-strip, .accent-strip { padding: 12px 14px; }
  .red-strip p, .accent-strip p { font-size: 13px; }
  .scene-tabs {
    justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .scene-tabs button { flex: 0 0 auto; font-size: 13px; }
  .factory-photo, .factory-photo img { min-height: 200px; height: 200px; }
}

@media (max-width: 500px) {
  .hero { aspect-ratio: 1920 / 950; min-height: 0 !important; }
  .hero-copy h1 { font-size: 16px !important; }
  .hero-copy .kicker { font-size: 11px; }
  .hero-copy > p:not(.kicker):not(.hero-cta) { display: none; }
  .hero-copy > p.hero-cta { display: block; }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 2% !important;
  }
  .product h3 { font-size: 13px; }
  .grid-3 > :last-child { grid-column: auto; } /* 保持两列流式，不强制通栏 */
  .cat-card { min-height: 160px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { width: 100%; height: 140px; }
}

/* mobile nav + language — ensure clicks work without CDN */
.nav-opacity{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;
}
.nav-opacity.on{display:block}
@media (max-width:1024px){
  .head-nav.is-open{
    display:flex!important;z-index:100;
  }
  .head-lang{position:relative;z-index:120;margin-left:auto;margin-right:12px}
  .lang-icon{cursor:pointer;min-width:36px;min-height:36px}
  .lang-drop{
    display:none;visibility:hidden;opacity:0;z-index:130;
  }
  .lang-drop.active{
    display:block!important;visibility:visible!important;opacity:1!important;
    position:fixed;left:50%;right:auto;top:70px;transform:translateX(-50%);
    width:min(92vw,360px);background:#fff;border:1px solid #EBEEF5;border-radius:4px;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
  }
  .lang-drop.active .lang-wrap{width:100%;display:flex;flex-wrap:wrap}
  .lang-drop.active .lang-wrap li{width:50%}
  .m-menu{cursor:pointer;z-index:121;position:relative}
  html.hidden,body.hidden{overflow:hidden;height:100%}
}

/* m432 head inquiry — match template accent */
.head-btn{margin-left:12px;display:flex;align-items:center}
.head-inq{
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 16px;background:var(--color,#C5272D);color:#fff;
  font-weight:600;border-radius:30px;white-space:nowrap;font-size:15px
}
.head-inq:hover{opacity:.9;color:#fff}
/* logo: never squash; honor m432 max-height */
.head-logo a img.himg,
.head-logo a img.fimg{
  max-width:none!important;
  width:auto!important;
  height:auto!important;
  max-height:44px;
  object-fit:contain;
}
/* do not let global img{max-width:100%} break template product thumbs */
.home-banner img,
.wmpage23-product-img img,
.mainpro-list img,
.wmpage18-partner-img img,
.wmpage25-aut img,
.wmpage193-page2-img img{max-width:100%}

/* Lock banner to oemdashcam 1920×950 frame (image + CSS) */
.home-banner .swiper-slide>a{
  width:100%;
  aspect-ratio:1920/950;
  overflow:hidden;
}
.home-banner .swiper-slide img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block;
}
