/* ============================================
   盛鑫联官网 www.sxlfiber.com
   主题：专业工业蓝绿
   ============================================ */

:root {
  --primary: #134e8a;
  --primary-dark: #0a2b4d;
  --primary-light: #e8f1fa;
  --accent: #1a6fc4;
  --accent-light: #e6f1fb;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --text: #1f2937;
  --text-muted: #5f6b76;
  --text-light: #7d8b99;   /* 二级文字：子菜单 / 简介 / 计数 / 副标题 */
  --border: #e3e8ee;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(15, 42, 74, 0.08);
  --shadow-hover: 0 6px 20px rgba(15, 42, 74, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--primary-dark);
  color: #eaf2fb;
  font-size: 13px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.topbar .brand-tag { display: flex; gap: 14px; }
.topbar .brand-tag span { opacity: 0.92; }
.topbar .show-sm { display: none; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: #eaf2fb; opacity: 0.9; }
.topbar-right a:hover { opacity: 1; }
/* 语言切换：胶囊分段控件 */
.lang-switch {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.14); border-radius: 20px; padding: 2px;
}
.lang-switch button {
  background: transparent; border: none; color: #eaf2fb;
  padding: 2px 12px; border-radius: 16px; cursor: pointer;
  font-size: 12px; line-height: 1.5; transition: all 0.15s ease;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: #fff; color: var(--primary-dark); font-weight: 600; }

/* ---------- 主头部 ---------- */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: box-shadow .22s ease; }
/* 滚动后导航栏贴顶固定，加投影强化"置顶"感 */
.header.scrolled { box-shadow: 0 6px 18px rgba(15,42,74,0.14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text .name { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.logo-text .name em { color: var(--primary); font-style: normal; }
.logo-text .sub { font-size: 12px; color: var(--text-muted); }

/* 页头公司 LOGO 图片 */
.logo-img { height: 48px; width: auto; display: block; }
/* 页头 SXL 标记（裁掉图内下方文字行，只留品牌图形） */
.logo-mark-crop { display: block; width: 118px; height: 50px; overflow: hidden; }
.logo-mark-crop img { width: 100%; height: auto; display: block; }
/* 页脚 LOGO（浅色底衬托深色文字 Logo） */
.footer-logo {
  display: inline-block; background: #fff; padding: 10px 14px;
  border-radius: 10px; margin-bottom: 16px;
}
.footer-logo img { height: 44px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > li { position: relative; }
.nav > li > a {
  font-size: 15px; color: var(--text); padding: 24px 0; display: block;
  font-weight: 500; position: relative;
}
.nav > li > a:hover, .nav > li > a.on { color: var(--primary); }
.nav > li > a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--primary); border-radius: 3px 3px 0 0;
}
.nav .has-sub > a::after { font-family: inherit; }
.nav .caret { font-size: 10px; margin-left: 3px; color: var(--text-muted); }

/* 下拉菜单 */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); min-width: 320px; padding: 8px 0;
  opacity: 0; visibility: hidden; transition: all 0.18s ease; z-index: 200;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; }
.dropdown a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px; font-size: 14px; color: var(--text); }
.dropdown a:hover { background: var(--primary-light); }
.dropdown .dd-text { display: flex; flex-direction: column; }
.dropdown .dd-text b { font-size: 14px; font-weight: 600; color: var(--text); }
.dropdown .dd-text small { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-top: 1px; }
.dropdown a:hover .dd-text b { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
/* 导航栏「立即询价」：hover 加深底色 + 轻微上浮与阴影，强化可点性 */
.nav-cta .btn { transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.nav-cta .btn-primary:hover {
  background: #051d33;
  box-shadow: 0 6px 16px rgba(10,43,77,0.38);
  transform: translateY(-1px);
}
.nav-cta .btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(10,43,77,0.35); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s ease; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0c447c; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* 移动端菜单按钮 */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Banner ---------- */
.hero {
  /* 低饱和深蓝科技底：纯色底 + 柔和光晕 + 极淡网格暗纹 + 两道斜向光纤线（非横向渐变，克制不抢产品焦点） */
  background-color: #0b1c2e;
  background-image:
    linear-gradient(116deg, transparent 44.6%, rgba(122,182,240,0.055) 44.85%, rgba(122,182,240,0.055) 45.05%, transparent 45.3%),
    linear-gradient(116deg, transparent 66.6%, rgba(122,182,240,0.045) 66.85%, rgba(122,182,240,0.045) 67.05%, transparent 67.3%),
    radial-gradient(920px 560px at 78% 22%, rgba(58,134,216,0.20), rgba(58,134,216,0) 64%),
    linear-gradient(rgba(128,178,232,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,178,232,0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
  color: #fff; padding: 76px 0; position: relative; overflow: hidden;
}
/* Banner 环绕光弧：蓝色椭圆光带环绕产品区，增强科技感与视觉聚焦 */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(118% 86% at 76% 62%, rgba(0,0,0,0) 61.2%, rgba(86,170,255,0.42) 63.1%, rgba(86,170,255,0.07) 65.4%, rgba(0,0,0,0) 66.8%),
    radial-gradient(97% 70% at 76% 62%, rgba(0,0,0,0) 62.0%, rgba(150,212,255,0.30) 64.1%, rgba(0,0,0,0) 66.4%),
    radial-gradient(155% 104% at 76% 62%, rgba(0,0,0,0) 68.8%, rgba(44,118,216,0.24) 71.7%, rgba(0,0,0,0) 76.5%),
    radial-gradient(64% 118% at 22% 112%, rgba(0,0,0,0) 61.5%, rgba(70,152,240,0.20) 63.6%, rgba(0,0,0,0) 66%),
    radial-gradient(86% 60% at 88% 118%, rgba(0,0,0,0) 62%, rgba(70,152,240,0.16) 64.4%, rgba(0,0,0,0) 67%);
}
/* Banner 大图模式（data.js 里 company.banner 有值时启用）*/
.hero.hero-img { padding: 0; background: none; }
/* 整图模式下关闭光弧/网格叠层，避免盖在 Banner 图上 */
.hero.hero-img::after { display: none; }
.hero-banner { display: block; width: 100%; line-height: 0; }
.hero-banner img { width: 100%; height: auto; display: block; }

/* padding-right：产品组不贴 Banner 右边缘（防移动端裁切）*/
/* 文本列略加宽：容纳 9 字主标题「光传输解决方案专家」一行显示 */
.hero-inner { display: grid; grid-template-columns: 1.22fr 2.08fr; align-items: center; gap: 40px; padding-right: 28px; position: relative; z-index: 1; }
.hero-text { max-width: none; }
.hero .tag {
  display: inline-block;
  /* 底色加深 + 蓝调描边，提升高级感 */
  background: rgba(6,20,36,0.78);
  border: 1px solid rgba(122,182,240,0.42);
  color: #eaf4ff; font-weight: 600; letter-spacing: 0.4px;
  padding: 6px 16px; border-radius: 999px; font-size: 13px; margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}
/* 主标题：加大加粗；副标题：常规字重，拉开层级 */
.hero h1 { font-size: 42px; line-height: 1.24; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 14px; }
.hero h1 span { color: #cdeaff; }
/* 副标题：字重调细 + 压低不透明度，与 800 字重主标题拉开层级 */
.hero p { font-size: 17px; font-weight: 300; opacity: 0.84; line-height: 1.8; letter-spacing: 0.2px; margin-bottom: 30px; max-width: 470px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 15px; }
.hero-visual {
  width: 100%; height: 380px; display: flex; align-items: center; justify-content: center;
  min-width: 0;
}
.hero-photos { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 100%; padding-right: 14px; }
.hero-photos .hp {
  display: block; object-fit: contain; height: auto; min-width: 0;
  /* 统一光影 + 底部微弱投影：让产品"落在页面上"，不再像悬浮贴图 */
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.50)) drop-shadow(0 3px 6px rgba(0,0,0,0.32));
}
/* 参考风格：产品前后压边堆叠 + 斜向错落，右后大件、左前小件 */
.hero-photos .hp-1 { order: 1; width: 206px; z-index: 1; transform: translate(16px, -18px); }
.hero-photos .hp-2 { order: 2; width: 188px; z-index: 2; margin-left: -44px; transform: translateY(14px); }
.hero-photos .hp-3 { order: 3; width: 154px; z-index: 3; margin-left: -36px; transform: translateY(-14px); }
.hero-photos .hp-4 { order: 4; width: 126px; z-index: 4; margin-left: -32px; transform: translateY(22px); }

/* ---------- 通用 section ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head .kicker { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: 30px; font-weight: 700; }
.section-head p { color: var(--text-muted); margin-top: 10px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.2s ease; cursor: pointer;
}
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--primary); }
/* 分类卡片：顶部产品大图，统一高度、contain 居中 */
.cat-card .cat-cover {
  height: 216px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 14px;
}
.cat-card .cat-cover img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }
/* 分类名只保留纯文字，不带前置图标 */
.cat-card h3 { font-size: 17px; margin-bottom: 4px; }
.cat-card p { font-size: 13px; color: var(--text-muted); }
.cat-card .more { color: var(--primary); font-size: 13px; font-weight: 600; margin-top: 6px; display: inline-block; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  /* 与侧边菜单统一圆角参数 */
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.2s ease; cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--primary); }
.product-thumb {
  /* 高度随图片比例自适应：横长条（跳线）也能占满宽度完整显示 */
  background: #fff; padding: 14px; min-height: 150px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-thumb .ph { font-size: 44px; color: #b8c6d2; }
/* 等比缩放、完整显示产品，不裁切 */
.product-thumb img {
  max-width: 100%; max-height: 300px; width: auto; height: auto;
  object-fit: contain; display: block;
}
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
/* 产品名称：加粗放大 */
.product-card h3 { font-size: 16px; line-height: 1.42; margin-bottom: 6px; font-weight: 700; }
/* 简介：字号缩小 + 浅灰 + 最多 2 行，卡片更整齐 */
.product-spec {
  font-size: 12px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* 立即询价：统一尺寸按钮，hover 加深蓝（与顶部导航询价按钮一致） */
.product-meta .inquire {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 100px; padding: 7px 14px; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 600;
  transition: background .18s ease, box-shadow .18s ease;
}
.product-meta .inquire:hover { background: #051d33; box-shadow: 0 4px 12px rgba(10,43,77,0.30); }
/* 品类标签：缩小弱化 */
.product-meta .cat-tag {
  font-size: 10px; color: var(--text-light); background: var(--bg-soft);
  padding: 3px 7px; border-radius: 4px; white-space: nowrap;
}

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--bg-soft); padding: 14px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #b8c6d2; }

/* ---------- 页面标题区 ---------- */
.page-hero { background: var(--bg-soft); padding: 30px 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 32px; font-weight: 700; }
.page-hero p { color: var(--text-light); font-size: 13px; margin-top: 6px; max-width: 640px; }

/* ---------- 产品列表页布局 ---------- */
.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; padding: 34px 0; }
.sidebar { position: sticky; top: 120px; align-self: start; }
.sidebar h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
/* 一级分类：加粗 + 字号稍大，与子菜单拉开层级 */
.sidebar ul li { margin-bottom: 4px; }
.sidebar ul li a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; color: var(--text);
  border-left: 3px solid transparent;
  transition: background .16s ease, color .16s ease;
}
/* hover：浅蓝高亮 */
.sidebar ul li a:hover { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
/* 选中态：保留浅蓝底，文字用品牌深蓝 */
.sidebar ul li a.active {
  background: var(--primary-light); color: var(--primary-dark); font-weight: 700; border-left-color: var(--primary);
}
/* 二级子目录（如光端机下的视频/数据光端机）：字号更小、缩进更大、浅灰 */
.sidebar ul.subcat {
  margin: 4px 0 12px 14px; padding-left: 14px;
  border-left: 2px solid var(--border);
}
.sidebar ul.subcat li { margin-bottom: 1px; }
.sidebar ul.subcat li a {
  padding: 6px 10px; font-size: 12.5px; font-weight: 400; color: var(--text-light);
  border-radius: var(--radius); border-left: none;
}
.sidebar ul.subcat li a:hover { color: var(--primary); background: var(--primary-light); }
.sidebar ul.subcat li a.on {
  background: var(--primary-light); color: var(--primary-dark); font-weight: 600; border-left: none;
}
.product-main .filter-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
/* 产品数量：放搜索框左侧，浅灰弱化不抢主视觉 */
.filter-bar .count { font-size: 12.5px; color: var(--text-light); }
.search-box { position: relative; }
.search-box input {
  padding: 9px 14px 9px 38px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; width: 240px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box input:hover { border-color: var(--primary); }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19,78,138,0.08); }
.search-box::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: 0.5; }

/* ---------- 产品详情 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 40px 0; }
.detail-visual {
  border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 4/3;
  background: #fff; padding: 28px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.detail-visual .ph { font-size: 120px; color: #b8c6d2; }
/* 详情大图同样等比缩放完整显示 */
.detail-visual img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}
.detail-info .brand { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.detail-info h1 { font-size: 28px; margin: 8px 0 14px; line-height: 1.35; }
.detail-info .lead { color: var(--text-muted); margin-bottom: 22px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table th, .spec-table td { padding: 11px 14px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { width: 38%; color: var(--text-muted); font-weight: 500; background: var(--bg-soft); }
.inquire-box { background: var(--primary-light); border-radius: var(--radius-lg); padding: 22px; }
.inquire-box h3 { font-size: 17px; margin-bottom: 6px; color: var(--primary-dark); }
.inquire-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.one { grid-template-columns: 1fr; }
.form-row input, .form-row textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; width: 100%;
  background: #fff; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }
.form-row textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---------- 解决方案卡片 ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.solution-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all 0.2s ease; }
.solution-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.solution-card .icon { font-size: 32px; margin-bottom: 12px; }
.solution-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary-dark); }
.solution-card .sol-desc p { font-size: 14px; color: var(--text-muted); line-height: 1.85; margin-bottom: 10px; }
.solution-card .sol-desc p:last-child { margin-bottom: 0; }
.solution-card .sol-points { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.solution-card .sol-points li { font-size: 13.5px; color: var(--text); padding-left: 22px; position: relative; margin-bottom: 7px; line-height: 1.6; }
.solution-card .sol-points li:last-child { margin-bottom: 0; }
.solution-card .sol-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
.solution-card .sol-more { display: inline-block; margin-top: 16px; color: var(--primary); font-size: 14px; font-weight: 600; }
.solution-card .sol-more:hover { color: var(--primary-dark); }

/* ---------- 通用信息卡片（关于/服务） ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.info-card .icon { font-size: 28px; margin-bottom: 12px; }
.info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card h3 .info-card-cn { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.info-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 40px 0; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .icon { font-size: 22px; width: 44px; height: 44px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: var(--text-muted); }

/* ---------- CTA 条 ---------- */
.cta-bar { background: linear-gradient(120deg, var(--primary), var(--accent)); color: #fff; padding: 50px 0; text-align: center; }
.cta-bar h2 { font-size: 28px; margin-bottom: 10px; }
.cta-bar p { opacity: 0.9; margin-bottom: 24px; }
.cta-bar .btn { background: #fff; color: var(--primary-dark); font-size: 15px; }
.cta-bar .btn:hover { background: var(--primary-light); }
/* 首页 CTA：左侧文案+按钮、右侧公众号二维码（其他页面无二维码，只有一个子元素居中 → 布局不变）*/
.cta-bar .cta-inner { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.cta-bar .cta-main { text-align: center; }
.cta-bar .cta-qrs { display: flex; align-items: flex-start; gap: 26px; }
.cta-bar .cta-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-bar .cta-qr img {
  display: block; width: 132px; height: 132px; padding: 8px;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0,0,0,0.20);
}
.cta-bar .cta-qr span { font-size: 12px; color: #fff; opacity: 0.92; }
/* 本块在文件前段，但仍自带媒体查询，避免被后面追加的同名规则盖掉 */
@media (max-width: 720px) {
  .cta-bar .cta-qrs { gap: 18px; }
  .cta-bar .cta-qr img { width: 118px; height: 118px; }
}

/* ---------- 页脚 ---------- */
.footer { background: #0a1f38; color: #cfe0f0; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer .logo-text .name { color: #fff; }
.footer .logo-text .sub { color: #8fb0cf; }
.footer p { font-size: 13px; color: #9db9d0; margin-top: 12px; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { font-size: 13px; color: #9db9d0; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 12px; color: #7fa395; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 0; color: var(--text-muted); }
.empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .cat-grid, .solution-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* Banner 大图：窄屏按原始比例完整显示（图文都在图里，裁切会切掉文案） */
  .hero-banner img { height: auto; min-height: 0; object-fit: contain; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-text { max-width: 100%; }
  .hero h1 { font-size: 30px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-visual { width: 100%; max-width: 420px; height: auto; }
  .hero-photos .hp-1 { width: 124px; height: auto; }
  .hero-photos .hp-2, .hero-photos .hp-3, .hero-photos .hp-4 { width: 74px; height: auto; }
  .hero-photos { gap: 5px; }
  .hero-photos .hp-2 { transform: translateY(-12px); }
  .hero-photos .hp-3 { transform: translateY(12px); }
  .hero-photos .hp-4 { transform: translateY(-5px); }
  .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav, .nav-cta .btn { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 0; align-items: stretch;
    box-shadow: var(--shadow-hover);
  }
  .nav.open > li > a { padding: 12px 0; }
  .nav.open .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 0 14px; min-width: 0; }
  .cat-grid, .solution-grid, .info-grid, .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 46px 0; }
  .hero h1 { font-size: 25px; }
  .section-head h2 { font-size: 24px; }
  .topbar-inner { height: auto; min-height: 36px; padding: 6px 0; gap: 8px; }
  .topbar .brand-tag { font-size: 11px; gap: 6px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .topbar .brand-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right { gap: 10px; white-space: nowrap; }
  .topbar-right .hide-sm { display: none; }
  .topbar-right .lang-switch button { padding: 1px 7px; font-size: 11px; margin-left: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-mark-crop { width: 96px; height: 40px; }
  .logo-text .sub { display: none; }
}

/* ============================================
   在线客服悬浮按钮（微信 / WhatsApp）
   ============================================ */
.cs-widget { position: fixed; right: 22px; bottom: 90px; z-index: 999; }
.cs-panel {
  position: absolute; right: 0; bottom: 64px; width: 300px; background: #fff;
  border-radius: 14px; box-shadow: 0 10px 40px rgba(10,40,32,0.2); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.22s ease;
}
.cs-widget.open .cs-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.cs-panel-head { background: linear-gradient(120deg, #134e8a, #1a6fc4); color: #fff; padding: 16px 18px; }
.cs-panel-head .t { font-size: 16px; font-weight: 700; }
.cs-panel-head .s { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.cs-panel-body { padding: 14px; }
.cs-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.15s ease; margin-bottom: 10px;
}
.cs-item:last-child { margin-bottom: 0; }
.cs-item:hover { border-color: #25d366; background: #f0fbf5; }
.cs-item .ic {
  width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.cs-item.wechat .ic { background: #e8f8ef; color: #07c160; }
.cs-item.whatsapp .ic { background: #e7f8ee; color: #25d366; }
.cs-item.qq .ic { background: #e8f4fd; color: #12b7f5; }
.cs-item.qq:hover { border-color: #12b7f5; background: #eef7fd; }
.cs-item .ct { flex: 1; }
.cs-item .ct .n { font-size: 14px; font-weight: 600; }
.cs-item .ct .v { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cs-item .go { font-size: 12px; font-weight: 600; color: var(--primary); }
.cs-item.whatsapp .go { color: #25d366; }
.cs-item.qq .go { color: #12b7f5; }
.cs-qr { display: block; width: 130px; height: 130px; margin: 6px auto 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); }
.cs-copy { width: 100%; padding: 8px; background: #07c160; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.cs-copy:hover { background: #06a854; }
.cs-badge {
  position: absolute; top: -6px; right: -6px; background: #e24b4a; color: #fff; font-size: 10px;
  padding: 2px 7px; border-radius: 10px; font-weight: 600;
}
.cs-toggle {
  position: relative; width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: #25d366; color: #fff; font-size: 26px; box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease;
}
.cs-toggle:hover { transform: scale(1.08); }
.cs-toggle .dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; background: #e24b4a; border-radius: 50%; border: 2px solid #fff; }
.cs-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: 0.8; }
.cs-close:hover { opacity: 1; }
@media (max-width: 720px) {
  .cs-panel { width: 280px; }
  .cs-widget { right: 16px; bottom: 80px; }
}

/* ============================================
   关于我们：公司 LOGO + 简介 + 亮点
   ============================================ */
.about-logo-wrap {
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 36px; margin-bottom: 34px;
}
/* 公司 LOGO 与两个品牌 LOGO 统一显示高度 → 视觉等大、等距居中排列
   （三张图的内容占画布高度均为 90%，所以同一个 height 出来就是一样大） */
.about-logo-wrap .about-logo-main,
.about-logo-wrap .about-logo-brand { height: 76px; width: auto; }
.about-logo-wrap .sep-line { display: none; }   /* 三枚等距排列，不再用竖线分隔 */
.about-text p { font-size: 15.5px; line-height: 1.95; color: var(--text); margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-biz { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

/* ---------- 公司资质（关于我们页） ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-item {
  margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.cert-item img {
  display: block; width: 100%; height: 210px; padding: 10px;
  background: #fff; object-fit: contain;
}
.cert-item figcaption {
  padding: 10px 12px; font-size: 12.5px; color: var(--text-muted);
  text-align: center; border-top: 1px solid var(--border);
}
.cert-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--primary); }
/* 暂无证书时的占位框 */
.cert-item--ph {
  cursor: default; min-height: 210px; border-style: dashed;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--text-light);
}
.cert-item--ph:hover { transform: none; box-shadow: none; border-color: var(--border); }
.cert-ph-icon { font-size: 26px; line-height: 1; color: #c8d3de; }
/* 点击放大 */
.cert-lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 40px 20px;
  background: rgba(8, 20, 34, 0.86);
}
.cert-lightbox.show { display: flex; }
.cert-lightbox img { max-width: 92vw; max-height: 88vh; padding: 12px; background: #fff; border-radius: var(--radius); }
.cert-lb-close {
  position: absolute; top: 22px; right: 26px; width: 40px; height: 40px;
  border: none; border-radius: 50%; cursor: pointer; line-height: 1;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 24px;
}
.cert-lb-close:hover { background: rgba(255,255,255,0.30); }
/* 响应式（本块在文件末尾，必须自带媒体查询，否则会盖掉上面的断点规则） */
@media (max-width: 960px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cert-grid { gap: 14px; }
  .cert-item img { height: 170px; }
  .cert-item--ph { min-height: 170px; }
  .cert-lightbox { padding: 20px 12px; }
  .cert-lb-close { top: 14px; right: 14px; }
}
@media (max-width: 720px) {
  .about-logo-wrap { flex-direction: column; gap: 20px; padding: 26px 18px; }
  .about-logo-wrap .about-logo-main,
  .about-logo-wrap .about-logo-brand { height: 56px; }
  .logo-img { height: 40px; }
}

/* ---------- 解决方案详情（变电站自动化系统等）---------- */
.sol-article {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 38px; margin-bottom: 28px;
}
.sol-article-title {
  font-size: 22px; color: var(--primary-dark); line-height: 1.4;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--primary-light);
  display: flex; align-items: center; gap: 12px;
}
.sol-article-title .idx {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.sol-article-body p {
  font-size: 15px; line-height: 1.95; color: var(--text); margin-bottom: 16px;
}
.sol-fig { margin: 22px 0; text-align: center; }
.sol-fig img {
  display: inline-block; max-width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .sol-article { padding: 22px 18px; margin-bottom: 20px; }
  .sol-article-title { font-size: 18px; }
  .sol-article-body p { font-size: 14.5px; line-height: 1.9; }
}

/* ---------- 服务支持页 · 三大板块（下载中心 / OEM·ODM / 维修与保修）---------- */
.sup-lead { max-width: 780px; margin: -16px auto 30px; text-align: center; font-size: 14.5px; line-height: 1.9; color: var(--text-muted); }
.sup-lead--sm { font-size: 13px; margin: 22px auto 0; }
.sup-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.sup-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.sup-card h3 { font-size: 16px; margin-bottom: 14px; color: var(--primary-dark); }
.sup-cta { text-align: center; margin-top: 30px; }
/* 下载中心 */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.dl-group h3 { font-size: 15px; margin-bottom: 10px; color: var(--primary-dark); }
.dl-group ul { list-style: none; }
.dl-group li { position: relative; padding-left: 15px; margin-bottom: 8px; font-size: 13.5px; line-height: 1.6; }
.dl-group li:last-child { margin-bottom: 0; }
.dl-group li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); }
.dl-file { color: var(--primary); font-weight: 600; }
.dl-file:hover { text-decoration: underline; }
.dl-req { color: var(--text-muted); }
.dl-tag { font-style: normal; font-size: 11px; color: var(--text-light); margin-left: 6px; }
/* 流程步骤 */
ol.steps { list-style: none; }
ol.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 13.5px; line-height: 1.65; color: var(--text); }
ol.steps li b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* 打钩列表 */
ul.ticks { list-style: none; }
ul.ticks li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
ul.ticks li:last-child { margin-bottom: 0; }
ul.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
/* 本块在文件末尾，自带媒体查询 */
@media (max-width: 960px) {
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .sup-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dl-grid { grid-template-columns: 1fr; }
  .sup-card, .dl-group { padding: 20px; }
}

/* ---------- 产品详情页图册（左右切换 + 缩略图）---------- */
.detail-visual.has-gal { aspect-ratio: auto; padding: 0; display: block; }
.gal { display: flex; flex-direction: column; }
.gal-main {
  position: relative; background: #fff; aspect-ratio: 4/3; padding: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
}
.gal-main .gal-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.94);
  color: var(--primary-dark); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(15,42,74,0.12);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.gal-nav:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(8,20,34,0.60); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .5px;
}
.gal-count b { font-weight: 700; }
.gal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.gal-thumb {
  width: 70px; height: 54px; padding: 4px; cursor: pointer; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.gal-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; }
.gal-thumb:hover { border-color: var(--primary); }
.gal-thumb.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary-light); }
@media (max-width: 720px) {
  .gal-main { padding: 16px; }
  .gal-nav { width: 36px; height: 36px; font-size: 20px; }
  .gal-prev { left: 6px; } .gal-next { right: 6px; }
  .gal-thumb { width: 58px; height: 46px; }
}
