/* ============ 企业官网 · 前台样式 ============ */
:root {
  --brand: #c1272d;
  --brand-dark: #9c1d22;
  --brand-light: #fdecec;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #f5f6f8;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(17, 24, 39, .06);
  --shadow-lg: 0 8px 30px rgba(17, 24, 39, .12);
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部条 ---------- */
.topbar { background: #2b2f36; color: #c9cdd4; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar span + span { margin-left: 18px; }
.topbar .phone { color: var(--accent); font-weight: 600; }

/* ---------- 导航 ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header .wrap { display: flex; align-items: center; height: 76px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 8px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; letter-spacing: -1px;
}
.logo-text b { display: block; font-size: 19px; color: var(--brand); letter-spacing: 1px; line-height: 1.2; }
.logo-text i { display: block; font-style: normal; font-size: 10px; color: var(--text-3); letter-spacing: 2px; }

.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 16px; border-radius: 6px; color: var(--text); font-size: 15px; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--brand); background: var(--brand-light); }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--brand); border-radius: 2px;
}

.hsearch { display: flex; flex-shrink: 0; }
.hsearch input {
  width: 190px; height: 36px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px;
  padding: 0 12px; color: var(--text);
}
.hsearch input:focus { border-color: var(--brand); }
.hsearch button {
  width: 46px; height: 36px; border: 0; background: var(--brand); color: #fff; border-radius: 0 6px 6px 0; cursor: pointer;
}
.hsearch button:hover { background: var(--brand-dark); }

/* ---------- Banner ---------- */
.hero { position: relative; height: 420px; overflow: hidden; background: #1f2937; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  background-size: cover; background-position: center; display: flex; align-items: center;
}
.hero-slide.on { opacity: 1; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.05) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 16px; width: 100%; }
.hero-inner h1 { color: #fff; font-size: 40px; margin: 0 0 14px; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-inner p { color: #f3f4f6; font-size: 17px; margin: 0 0 26px; }
.hero-inner .btn {
  display: inline-block; background: var(--brand); color: #fff; padding: 11px 30px; border-radius: 6px; font-size: 15px;
}
.hero-inner .btn:hover { background: var(--brand-dark); }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots i { width: 26px; height: 4px; background: rgba(255,255,255,.45); border-radius: 2px; cursor: pointer; }
.hero-dots i.on { background: var(--brand); }

/* ---------- 通用区块 ---------- */
.section { padding: 46px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: 26px; margin: 0 0 8px; position: relative; display: inline-block; }
.section-head h2::after {
  content: ''; display: block; width: 46px; height: 3px; background: var(--brand); margin: 12px auto 0; border-radius: 2px;
}
.section-head p { color: var(--text-3); margin: 0; font-size: 14px; }

/* ---------- 首页 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -46px; position: relative; z-index: 10; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: flex-start;
}
.feature .ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.feature b { display: block; font-size: 15px; margin-bottom: 2px; }
.feature span { color: var(--text-3); font-size: 12.5px; }

.cat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-strip a {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: center;
  transition: .2s;
}
.cat-strip a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-strip .cico { font-size: 24px; display: block; margin-bottom: 6px; }
.cat-strip b { font-size: 14px; font-weight: 500; }

/* ---------- 旗下品牌 ---------- */
.brand-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .22s; position: relative; display: block;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.brand-card .bbar { height: 4px; background: var(--bc, var(--brand)); }
.brand-card .btop { padding: 20px 18px 12px; display: flex; align-items: center; gap: 12px; }
.brand-card .blogo {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; color: #fff; font-size: 21px; font-weight: 700;
  background: var(--bc, var(--brand)); display: flex; align-items: center; justify-content: center;
}
.brand-card .blogo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: #fff; }
.brand-card .bname { font-size: 19px; font-weight: 700; line-height: 1.25; }
.brand-card .ben { font-size: 11px; color: var(--text-3); letter-spacing: 1.4px; margin-top: 2px; }
.brand-card .bbody { padding: 0 18px 18px; }
.brand-card .bslogan {
  font-size: 13px; color: var(--bc, var(--brand)); font-weight: 600; margin-bottom: 8px;
  padding: 3px 0; border-top: 1px dashed var(--line); padding-top: 10px;
}
.brand-card .bdesc { font-size: 12.5px; color: var(--text-2); line-height: 1.75; min-height: 44px; }
.brand-card .bcats { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.brand-card .bgo {
  margin-top: 12px; font-size: 13px; color: var(--bc, var(--brand)); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-card .bgo em { font-style: normal; color: var(--text-3); font-weight: 400; }

/* ---------- 产品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .22s; display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard .thumb { position: relative; padding-top: 78%; background: #f3f4f6; overflow: hidden; }
.pcard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .thumb .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 12px; gap: 6px; background: linear-gradient(135deg, #f8f9fa, #eef1f4);
}
.pcard .thumb .ph em { font-style: normal; font-size: 30px; opacity: .55; }
.pcard .tag {
  position: absolute; left: 8px; top: 8px; background: var(--brand); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 4px; z-index: 2;
}
.pcard .body { padding: 12px 13px 14px; flex: 1; display: flex; flex-direction: column; }
.pcard .name {
  font-size: 14px; font-weight: 600; line-height: 1.45; height: 40px; overflow: hidden; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pcard .name:hover { color: var(--brand); }
.pcard .model { color: var(--text-3); font-size: 12px; margin: 5px 0 8px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pcard .model i { font-style: normal; background: var(--line-2); padding: 1px 6px; border-radius: 3px; }
.bchip {
  font-weight: 600; font-size: 11.5px; padding: 1px 7px; border-radius: 3px;
  border: 1px solid transparent; white-space: nowrap;
}
.pcard .price-line { margin-top: auto; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pcard .price { color: var(--brand); font-size: 17px; font-weight: 700; }
.pcard .price small { font-size: 12px; font-weight: 400; }
.pcard .price.nego { font-size: 14px; color: var(--accent); }
.pcard .unit { color: var(--text-3); font-size: 12px; }

/* ---------- 产品中心布局 ---------- */
.crumb { padding: 14px 0; color: var(--text-3); font-size: 13px; }
.crumb a:hover { color: var(--brand); }
.plist-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding-bottom: 50px; align-items: start; }
.side { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; position: sticky; top: 96px; }
.side h3 { margin: 0; padding: 14px 16px; background: var(--brand); color: #fff; font-size: 15px; }
.side h3.gray { background: #fafafa; color: var(--text); border-bottom: 1px solid var(--line); }
.side ul { padding: 6px 0; }
.side li a {
  display: flex; justify-content: space-between; padding: 9px 16px; color: var(--text-2); font-size: 13.5px; border-left: 3px solid transparent;
}
.side li a:hover { background: var(--brand-light); color: var(--brand); }
.side li a.on { background: var(--brand-light); color: var(--brand); font-weight: 600; border-left-color: var(--brand); }
.side li a em { font-style: normal; color: #9ca3af; font-size: 12px; }

/* 品牌展示头（产品中心选中品牌时） */
.brand-hero {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px; display: flex; gap: 16px; align-items: center;
  border-left: 4px solid var(--bc, var(--brand));
}
.brand-hero .bhlogo {
  width: 60px; height: 60px; border-radius: 12px; background: var(--bc, var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex-shrink: 0;
}
.brand-hero .bhlogo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.brand-hero .bhtxt { flex: 1; min-width: 0; }
.brand-hero .bhname { font-size: 20px; font-weight: 700; }
.brand-hero .bhname span { font-size: 12px; color: var(--text-3); letter-spacing: 1.5px; margin-left: 8px; font-weight: 400; }
.brand-hero .bhslogan { color: var(--bc, var(--brand)); font-size: 13.5px; font-weight: 600; margin: 3px 0 5px; }
.brand-hero .bhdesc { color: var(--text-2); font-size: 13px; line-height: 1.7; }
.brand-hero .bhcats { color: var(--text-3); font-size: 12.5px; margin-top: 5px; }

.filter-bar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.filter-bar .lbl { color: var(--text-3); font-size: 13px; }
.filter-bar .sorts { display: flex; gap: 6px; margin-left: auto; }
.filter-bar .sorts a {
  padding: 5px 12px; border-radius: 5px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line); background: #fff;
}
.filter-bar .sorts a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.price-input { width: 68px; height: 30px; border: 1px solid var(--line); border-radius: 5px; padding: 0 8px; }
.filter-bar .btn-sm {
  height: 30px; padding: 0 14px; background: var(--brand); color: #fff; border: 0; border-radius: 5px; cursor: pointer;
}
.empty { background: #fff; border-radius: var(--radius); padding: 60px 20px; text-align: center; color: var(--text-3); }
.empty em { font-style: normal; font-size: 42px; display: block; margin-bottom: 10px; opacity: .4; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: 13px; color: var(--text-2);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dis { color: #c7cad0; background: #fafafa; }

/* ---------- 产品详情 ---------- */
.pdetail { display: grid; grid-template-columns: 420px 1fr; gap: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; }
.gallery .main {
  padding-top: 82%; position: relative; background: #f6f7f9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2);
}
.gallery .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gallery .main .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b0b6bf; font-size: 50px; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery .thumbs i {
  width: 66px; height: 66px; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer;
  background: #f6f7f9; display: flex; align-items: center; justify-content: center; font-style: normal; color: #b0b6bf;
}
.gallery .thumbs i.on { border-color: var(--brand); }
.gallery .thumbs i img { width: 100%; height: 100%; object-fit: cover; }

.dinfo h1 { font-size: 22px; margin: 0 0 10px; line-height: 1.4; }
.dinfo .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dinfo .meta span { background: var(--brand-light); color: var(--brand); font-size: 12px; padding: 3px 10px; border-radius: 4px; }
.dinfo .mline { font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.dinfo .mline b { color: var(--text-3); font-weight: 400; display: inline-block; width: 56px; }
.price-box { background: linear-gradient(90deg, #fff4f4, #fff9f2); border: 1px solid #f7e0e0; border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.price-box .p { color: var(--brand); font-size: 28px; font-weight: 700; }
.price-box .p small { font-size: 14px; font-weight: 400; }
.price-box .nego { color: var(--accent); font-size: 20px; font-weight: 700; }
.price-box .note { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.spec-table td { border: 1px solid var(--line); padding: 9px 12px; font-size: 13.5px; }
.spec-table tr td:first-child { background: #fafbfc; width: 108px; color: var(--text-3); }
.dinfo .actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-primary { background: var(--brand); color: #fff; padding: 11px 26px; border-radius: 6px; border: 0; cursor: pointer; font-size: 14px; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); padding: 11px 26px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-ghost:hover { background: var(--brand-light); }

.detail-body { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; margin-top: 18px; }
.detail-body h3 { margin: 0 0 14px; padding-left: 10px; border-left: 4px solid var(--brand); font-size: 17px; }
.detail-body .content { line-height: 1.9; color: var(--text-2); font-size: 14.5px; }
.detail-body .content img { max-width: 100%; margin: 10px 0; border-radius: 6px; }
.detail-body .content p { margin: 0 0 12px; }

/* ---------- 关于我们 ---------- */
.about-hero { background: linear-gradient(135deg, #c1272d, #8f1a1f); color: #fff; padding: 54px 0; }
.about-hero h1 { font-size: 30px; margin: 0 0 10px; }
.about-hero p { margin: 0; opacity: .9; max-width: 780px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 5; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--brand); line-height: 1.2; }
.stat b i { font-style: normal; font-size: 15px; }
.stat span { color: var(--text-3); font-size: 13px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before {
  content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.timeline b { color: var(--brand); font-size: 16px; margin-right: 10px; }
.timeline p { margin: 2px 0 0; color: var(--text-2); }
.str-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.str-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; text-align: center; }
.str-card em { font-style: normal; font-size: 26px; display: block; margin-bottom: 8px; }
.str-card b { display: block; margin-bottom: 4px; }
.str-card span { color: var(--text-3); font-size: 13px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 420px; gap: 20px; padding-bottom: 50px; align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; }
.contact-card h3 { margin: 0 0 16px; padding-left: 10px; border-left: 4px solid var(--brand); font-size: 17px; }
.info-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border: 0; }
.info-list .k { color: var(--text-3); width: 64px; flex-shrink: 0; }
.info-list .v { color: var(--text); }
.info-list .v b { color: var(--brand); font-size: 17px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 5px; color: var(--text-2); font-size: 13px; }
.form-row label i { color: var(--brand); font-style: normal; }
.form-row input, .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; color: var(--text); background: #fff;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--brand); }
.form-row textarea { height: 96px; resize: vertical; }
.form-tip { color: var(--text-3); font-size: 12px; margin-top: 8px; }
.form-msg { margin-top: 10px; font-size: 13px; display: none; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: var(--brand); }

/* ---------- 页脚 ---------- */
.footer { background: #2b2f36; color: #b8bec7; margin-top: 40px; font-size: 13px; }
.footer .fmain { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 26px; padding: 38px 0 26px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer p { margin: 0 0 8px; line-height: 1.9; }
.footer ul li { padding: 4px 0; }
.footer ul li a:hover { color: var(--accent); }
.footer .fcontact b { color: var(--accent); font-size: 20px; display: block; margin-bottom: 6px; }
.footer .bottom { border-top: 1px solid #3a3f47; padding: 14px 0; text-align: center; color: #8b929c; font-size: 12px; }
.footer .bottom a { color: #b8bec7; }
.footer .bottom a:hover { color: var(--accent); }

/* ---------- 浮动客服 ---------- */
.float-bar { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.float-bar a {
  width: 48px; height: 48px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); gap: 1px;
}
.float-bar a em { font-style: normal; font-size: 17px; }
.float-bar a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.float-bar a:hover em { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hero-inner h1 { font-size: 28px; }
  .features, .stats, .str-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .pdetail, .contact-grid { grid-template-columns: 1fr; }
  .plist-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer .fmain { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .prod-grid, .features, .stats, .str-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .hsearch { display: none; }
  .hero { height: 300px; }
  .hero-inner h1 { font-size: 22px; }
  .topbar .wrap span:nth-child(2) { display: none; }
  .float-bar { right: 8px; }
  .float-bar a { width: 42px; height: 42px; }
}
