/* 国曼电气官网 - 前台样式（移动优先 / 响应式 / 零框架）
   主题机制：:root 为默认「经典深蓝」；[data-theme="ms|green|dark"] 覆盖同名变量；
   <html data-theme> 由后台「站点设置 → 风格主题」控制，自定义主题由服务端内联变量。 */
:root {
  --blue: #14406b; --blue-d: #0d2e4d; --blue-l: #eaf1f8;
  --orange: #f26b1d; --orange-d: #d4561a; --orange-l: #fdf1e8;
  --ink: #1c2b3a; --ink-2: #555; --muted: #5d6b7a; --line: #dfe6ee;
  --bg: #ffffff; --bg-alt: #f4f7fa; --card: #ffffff; --ok: #0f6e56;
  --radius: 12px; --shadow: 0 6px 24px rgba(20, 64, 107, .08);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --topbar-bg: #0d2e4d; --topbar-fg: #cfe0f0; --topbar-bd: rgba(255,255,255,.4); --topbar-strong: #fff; --topbar-hover: rgba(255,255,255,.15);
  --foot-bg: #0d2e4d; --foot-fg: #a9c1d8; --foot-h: #fff; --foot-a: #cfe0f0; --foot-bd: #28486b;
  --dark-fg: #fff; --dark-fg-soft: #a9c1d8; --dark-label: #dbe7f3; --dark-input-bd: #3b5f82;
  --hero-veil: linear-gradient(90deg, rgba(13,46,77,.88) 0%, rgba(13,46,77,.55) 55%, rgba(13,46,77,.15) 100%);
  --intro-fg: #33475b; --crumb-sep: #b8c4d0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }

/* ---------- 头部 ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-fg); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.lang-switch { color: var(--topbar-strong); border: 1px solid var(--topbar-bd); border-radius: 999px; padding: 1px 10px; font-size: 12px; white-space: nowrap; }
.lang-switch:hover { background: var(--topbar-hover); color: var(--topbar-strong); }
.top-slogan { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-phone a { color: var(--topbar-strong); font-weight: 500; }
.masthead { display: flex; align-items: center; gap: 18px; padding: 14px 20px; background: var(--card); position: relative; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { background: var(--blue); color: #fff; font-weight: 700; font-size: 20px; padding: 8px 10px; border-radius: 8px; letter-spacing: 1px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text b { color: var(--blue); font-size: 17px; letter-spacing: 1px; }
.logo-text i { font-style: normal; color: var(--muted); font-size: 12px; }
/* 后台上传的 Logo 图片（未上传时用 .logo-mark 文字标志） */
.logo-img { height: 44px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.nav-link:hover { background: var(--blue-l); color: var(--blue); }
.nav-link.active { background: var(--blue-l); color: var(--blue); font-weight: 600; }
.nav-toggle, .nav-burger, .m-search-btn, .mobile-nav, .mcat-toggle, .mnav-drop { display: none; }

/* ---------- 二级分类：导航下拉 + 子分类条 ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; z-index: 40; }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: block; }
.nav-drop a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.nav-drop a:hover { background: var(--blue-l); color: var(--blue); }
.nav-drop .nd-top { font-weight: 600; color: var(--blue); }
.nav-drop .nd-sub { padding-left: 26px; font-size: 13px; color: var(--ink-2); }
.nav-drop .nd-sub::before { content: "└"; margin-right: 6px; color: var(--orange); }
.subcat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.s-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px; font-size: 14px; color: var(--ink); background: var(--card); transition: .15s; }
.s-chip.on, .s-chip:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-l); }
.cat-subs { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 16px 0; }
.cat-subs a { font-size: 13px; color: var(--blue); }
.cat-subs a::before { content: "·"; color: var(--orange); margin-right: 4px; font-weight: 700; }
.cat-subs a:hover { color: var(--orange); }

@media (max-width: 820px) {
  /* 汉堡折叠菜单在手机端不再使用：栏目改为常驻宫格，一眼看全 */
  .nav-toggle, .nav-burger, .main-nav { display: none !important; }
  .masthead { padding-bottom: 0; }
  .m-search-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); background: var(--card); }
  .m-search-btn svg { width: 20px; height: 20px; }
  /* 6 个栏目两行三列宫格，常驻可见（用 flex 换行，兼容 IE 降级） */
  .mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--bg-alt); }
  .mnav-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; max-width: 1120px; margin: 0 auto; }
  .mnav-link { flex: 0 0 calc((100% - 16px) / 3); display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; text-align: center; }
  .mnav-link:hover { border-color: var(--blue); color: var(--blue); }
  .mnav-link.active { border-color: var(--blue); background: var(--blue-l); color: var(--blue); font-weight: 600; }
  /* 产品中心整格即开关：点一下直接弹出一二级分类，列表入口在面板底部 */
  .mnav-cell { flex: 0 0 calc((100% - 16px) / 3); position: relative; }
  .mnav-cell .mnav-link { flex: 1 1 auto; width: 100%; padding-right: 30px; }
  .mnav-cat-trigger { cursor: pointer; }
  .mnav-arrow { position: absolute; right: 8px; top: 50%; margin-top: -7px; width: 15px; height: 15px; color: var(--blue); }
  .mnav-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
  .mcat-toggle:checked ~ .mobile-nav .mnav-arrow svg { transform: rotate(180deg); }
  .mcat-toggle:checked ~ .mobile-nav .mnav-drop { display: block; }
  .mnav-drop { padding: 10px 20px 14px; background: var(--card); border-top: 1px solid var(--line); }
  .mnd-group { padding: 6px 0; border-bottom: 1px dashed var(--line); }
  .mnd-top { display: block; padding: 5px 2px; font-size: 14px; font-weight: 600; color: var(--blue); }
  .mnd-subs { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 0 4px; }
  .mnd-sub { font-size: 13px; color: var(--ink-2); }
  .mnd-sub::before { content: "└"; margin-right: 4px; color: var(--orange); }
  .mnd-sub:hover, .mnd-top:hover { color: var(--orange); }
  .mnd-all { display: block; padding: 10px 2px 2px; font-size: 13px; font-weight: 600; color: var(--orange); }
}
@media (max-width: 380px) {
  .mnav-grid { gap: 6px; padding: 10px 14px; }
  .mnav-link { font-size: 13px; min-height: 42px; }
}

/* ---------- Hero 轮播（纯 CSS） ---------- */
.hero { background: #fff; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%23e2e9f0' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  background-repeat: repeat;
}
.hero-slides { position: relative; overflow: hidden; }
.hs-radio { display: none; }
.slide { display: none; min-height: 380px; background-size: cover; background-position: center; background-image: var(--slide-img, none); position: relative; }
.slide::after { content: ""; position: absolute; inset: 0; background: var(--hero-veil); }
.slide-inner { position: relative; z-index: 2; padding: 90px 20px; color: #fff; }
.slide-inner h1, .slide-inner h2 { font-size: clamp(26px, 4.6vw, 44px); font-weight: 700; max-width: 640px; line-height: 1.3; }
.slide-inner p { margin: 14px 0 26px; font-size: clamp(14px, 2vw, 17px); color: var(--dark-label); max-width: 560px; }
.hs-radio:checked ~ .slide { display: block; animation: fadein .5s; }
@keyframes fadein { from { opacity: .35; } to { opacity: 1; } }
/* 首页底部品牌带（选型手册主题使用，呼应手册封面红带） */
.hero-band { background: var(--blue); color: #fff; }
.hb-inner { display: flex; align-items: center; gap: 14px; padding: 12px 20px; min-height: 54px; flex-wrap: wrap; }
.hb-mark { background: #fff; color: var(--blue); font-weight: 900; font-size: 21px; line-height: 1; border-radius: 6px; padding: 5px 10px 4px; letter-spacing: 1px; }
.hb-brand { font-size: 21px; font-weight: 700; letter-spacing: 3px; }
.hb-tag { font-size: 13px; opacity: .92; margin-left: auto; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots label { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
#hs0:checked ~ .hero-dots label:nth-child(1), #hs1:checked ~ .hero-dots label:nth-child(2), #hs2:checked ~ .hero-dots label:nth-child(3) { background: #fff; }
.hero-dots { position: absolute; }

/* ---------- 首页产品焦点大图：左文案 + 右 1 主图(可为视频) + 3 小图错落 ----------
   白底 + 细网格纹理 + MN 水印，产品图白底融入背景并带柔和投影，右侧形成产品焦点。
   用 flex（两栏）与绝对定位错落，兼容 360/IE 的 CSS 降级策略。 */
.focus-hero { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.fh-inner { display: flex; align-items: center; gap: 20px; padding-top: 46px; padding-bottom: 46px; min-height: 380px; }
.fh-txt { flex: 1 1 46%; min-width: 0; position: relative; z-index: 2; }
.fh-kicker { color: #008dcd; font-size: 13px; letter-spacing: 3px; font-weight: 700; margin-bottom: 12px; }
.fh-txt h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.32; color: #141414; font-weight: 800; letter-spacing: .5px; margin: 0 0 14px; }
.fh-desc { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0 0 24px; max-width: 460px; }
.fh-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.fh-btns .btn-ghost { color: var(--blue); border-color: #b8c4d0; }
.fh-btns .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.fh-stage { flex: 1 1 50%; min-width: 0; position: relative; height: 340px; }
.fh-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(20,64,107,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,64,107,.05) 1px, transparent 1px);
  background-size: 28px 28px; }
.fh-main, .fh-main-link { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
.fh-main img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(20,40,60,.2)); }
/* 单个视频占满舞台高度：轻微阴影，只有一点点悬浮感 */
.fh-video { display: flex; align-items: center; justify-content: center; }
.fh-video video { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(20,40,60,.06); }
/* 右上角静音开关：默认静音(🔇)，开声后(🔊) */
.fh-mute { position: absolute; right: 14px; top: 14px; z-index: 3; width: 38px; height: 38px;
  border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 38px; text-align: center;
  color: #fff; background: rgba(20,40,60,.55); transition: background .2s, transform .2s; }
.fh-mute:hover { background: rgba(20,40,60,.8); transform: scale(1.06); }
.fh-mute .fh-mute-on { display: none; }
.fh-mute:not(.is-muted) .fh-mute-off { display: none; }
.fh-mute:not(.is-muted) .fh-mute-on { display: inline; }
.fh-band { background: #c8000d; color: #fff; }
.fh-band-inner { display: flex; align-items: center; gap: 14px; padding: 12px 20px; min-height: 54px; flex-wrap: wrap; }
.fh-mark { border: 2px solid #fff; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; }
.fh-brand { font-size: 18px; font-weight: 800; letter-spacing: 2px; }
.fh-tag { font-size: 13px; opacity: .92; margin-left: auto; }
@media (max-width: 760px) {
  .fh-inner { flex-direction: column; padding-top: 30px; padding-bottom: 30px; min-height: 0; }
  .fh-txt { flex: 1 1 auto; width: 100%; }
  .fh-stage { flex: 1 1 auto; width: 100%; height: 260px; margin-top: 10px; }
  .fh-mute { width: 34px; height: 34px; line-height: 34px; font-size: 16px; right: 10px; top: 10px; }
  .fh-tag { margin-left: 0; }
}

/* ---------- Banner 排列模式：网格横排 / 左右排 / 直排（后台 /admin/home 可配间距） ---------- */
.hero-banners.hb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hero-gapy, 24px) var(--hero-gapx, 24px); padding: var(--hero-gapy, 24px) 0; position: relative; }
.hero-panel { position: relative; overflow: hidden; padding: 58px 44px; min-height: 250px; }
.hero-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 130'%3E%3Ctext x='110' y='106' font-family='Arial Black,Impact,sans-serif' font-size='108' font-weight='900' fill='%23eef3f7' text-anchor='middle'%3EMN%3C/text%3E%3C/svg%3E");
  background-size: auto 76%;
  background-position: right 4% center;
  background-repeat: no-repeat;
}
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h1, .hero-panel h2 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 800; letter-spacing: .5px; color: #141414; line-height: 1.25; }
.hero-panel .hp-sub { margin: 12px 0 24px; color: var(--muted, #5f5f5f); font-size: 15px; }
.hero-panel .hp-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-panel .hp-ghost { color: var(--ink, #1a1a1a); border-color: #c9ccd0; }
.hero-panel .hp-ghost:hover { border-color: var(--orange, #008dcd); color: var(--orange, #008dcd); }
@media (max-width: 760px) { .hero-banners.hb-grid { grid-template-columns: 1fr; } .hero-panel { padding: 38px 26px; min-height: 0; } }
.hero-banners { display: flex; }
.hero-banners.hb-row { flex-direction: row; flex-wrap: wrap; gap: var(--hero-gapx, 0); padding: var(--hero-gapy, 0) 0; }
.hero-banners.hb-col { flex-direction: column; gap: var(--hero-gapy, 0); padding: 0 var(--hero-gapx, 0); }
.hero-banner { position: relative; flex: 1 1 320px; min-height: 230px; display: flex; align-items: center; background-size: cover; background-position: center; text-decoration: none; overflow: hidden; }
.hero-banners.hb-col .hero-banner { flex: 1 1 auto; min-height: 260px; }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,30,.55), rgba(10,20,30,.08) 70%); }
.hero-banner .hbn-inner { position: relative; z-index: 2; padding: 26px 32px; color: #fff; }
.hero-banner h1, .hero-banner h2 { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; line-height: 1.3; color: #fff; }
.hero-banner .hbn-sub { display: block; margin-top: 8px; font-size: 14px; opacity: .92; max-width: 560px; }
@media (max-width: 760px) { .hero-banners.hb-row { flex-direction: column; } .hero-banner { min-height: 180px; } }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 11px 26px; border-radius: 8px; font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-ghost { border-color: currentColor; }
.slide-inner .btn-ghost { color: #fff; }

/* 首页公司导语区块（后台「首页管理」可编辑/开关） */
.intro-sec { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.intro-sec .home-intro { max-width: 920px; margin: 0 auto; text-align: center; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.9; color: var(--intro-fg); }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.sec-title { font-size: clamp(22px, 3vw, 30px); color: var(--blue); font-weight: 700; text-align: center; }
.sec-sub { text-align: center; color: var(--muted); margin: 8px 0 30px; }
.sec-more { text-align: center; margin-top: 28px; }

/* ---------- 分类卡 ---------- */
/* 网格布局：--cat-cols 控制每行个数（后台可设），移动端自动降列 */
.cat-grid { display: grid; grid-template-columns: repeat(var(--cat-cols, 3), minmax(0, 1fr)); gap: 18px; }
/* 左右分栏：自动均分两列，如左 3 右 3 */
.cat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cat-col { display: flex; flex-direction: column; gap: 18px; }
/* 横排通栏：每个大类整行横排（图左文右） */
.cat-rows { display: flex; flex-direction: column; gap: 16px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); padding-bottom: 16px; transition: .2s; display: flex; flex-direction: column; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-img { display: block; background: var(--bg-alt); }
.cat-img img { width: 100%; height: 150px; object-fit: cover; }
.cat-ph { height: 150px; }
.cat-card b { color: var(--blue); font-size: 17px; padding: 12px 16px 0; }
.cat-n { color: var(--orange); font-size: 13px; padding: 2px 16px 0; }
.cat-d { color: var(--muted); font-size: 13px; padding: 6px 16px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 横排通栏卡片：图左文右 */
.cat-card.cat-row { flex-direction: row; align-items: stretch; padding-bottom: 14px; }
.cat-card.cat-row .cat-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cat-card.cat-row .cat-img { width: 220px; flex: none; height: 100%; }
.cat-card.cat-row .cat-img img { height: 100%; min-height: 150px; }
.cat-card.cat-row .cat-d { -webkit-line-clamp: 3; }
.cat-card.cat-row .cat-subs { padding: 8px 16px 0; }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-split { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .cat-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cat-card.cat-row { flex-direction: column; }
  .cat-card.cat-row .cat-img { width: 100%; height: 170px; }
  .cat-card.cat-row .cat-img img { height: 170px; }
}

/* ---------- 产品卡 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.prod-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-img { background: var(--bg-alt); }
.prod-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prod-model { color: var(--orange); font-size: 13px; font-weight: 600; padding: 10px 14px 0; letter-spacing: .5px; }
.prod-name { padding: 4px 14px 0; color: var(--ink); font-size: 15px; line-height: 1.45; }
.prod-meta { color: var(--muted); font-size: 13px; padding: 4px 14px 14px; }
.cat-block { margin-top: 36px; }
.cat-block h2 { color: var(--blue); font-size: 21px; margin-bottom: 4px; }
.cat-block h2 small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* ---------- 筛选 ---------- */
.filters { margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.f-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-label { color: var(--muted); font-size: 13px; min-width: 74px; }
.f-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 13px; color: var(--ink); background: var(--card); }
.f-chip.on, .f-chip:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-l); }
.f-count { color: var(--muted); font-size: 13px; padding-top: 2px; }
.f-count b { color: var(--ink); }
.f-count .f-clear { margin-left: 10px; color: var(--orange); border-bottom: 1px dashed currentColor; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
/* ---------- 产品搜索 ---------- */
.nav-search-link svg { width: 17px; height: 17px; margin-right: 5px; vertical-align: -3px; }
.search-form { padding: 18px 20px; margin: 6px 0 22px; }
.search-form .sf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.search-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); min-width: 150px; }
.search-form input, .search-form select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; font-family: inherit; color: var(--ink); background: var(--card); }
.search-form input:focus, .search-form select:focus { outline: none; border-color: var(--blue); }
.search-form .btn { align-self: flex-end; }
.search-count { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.search-count b { color: var(--ink); }

/* ---------- 产品详情 ---------- */
.prod-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.pd-left img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
/* 产品多图画廊：radio 隐藏，:checked + .pg-shot 切换大图；缩略图 label 高亮由内联样式按序号生成 */
.pd-gallery { position: relative; }
.pd-gallery .pg-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pd-gallery .pg-shot { display: none; }
.pd-gallery .pg-radio:checked + .pg-shot { display: block; }
.pd-gallery .pg-shot a { display: block; cursor: zoom-in; }
.pd-gallery .pg-shot img { display: block; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.pd-gallery .pg-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pd-gallery .pg-thumbs label { display: block; width: 62px; height: 62px; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pd-gallery .pg-thumbs label img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.pd-certs { color: var(--muted); font-size: 13px; margin-top: 10px; }
.pd-model { color: var(--orange); font-weight: 600; letter-spacing: 1px; }
.pd-right h1 { font-size: clamp(22px, 3vw, 32px); color: var(--blue); margin: 4px 0 8px; }
.pd-sub { color: var(--muted); }
.pd-quick { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.pd-quick span { background: var(--blue-l); border-radius: 8px; padding: 8px 14px; font-size: 14px; }
.pd-quick i { font-style: normal; color: var(--muted); font-size: 12px; display: block; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-desc { margin-top: 40px; }
.pd-desc h2 { color: var(--blue); font-size: 20px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--orange); }
/* 产品介绍富文本：图片与表格在详情页内的呈现（复用 .rich 的 p/table 规则） */
.pd-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.pd-desc a.file-dl { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; padding: 10px 16px; background: var(--blue-l, #eef3fa); color: var(--blue, #14406b); border: 1px solid var(--blue, #14406b); border-radius: 8px; font-weight: 600; text-decoration: none; }
.pd-desc a.file-dl:hover { background: var(--blue, #14406b); color: #fff; }
.param-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.param-table th, .param-table td { border-bottom: 1px solid var(--line); padding: 10px 14px; font-size: 14px; text-align: left; }
.param-table th { width: 160px; background: var(--bg-alt); color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .prod-detail { grid-template-columns: 1fr; } }
/* 窄屏表格横向滚动：参数表、富文本表格、关于页主体表容器可左右滑动，不撑破版心 */
@media (max-width: 760px) {
  .pd-desc.rich, .rich, .geo-disambig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rich table, .param-table { width: auto; min-width: 100%; }
}

/* ---------- 面包屑 ---------- */
.crumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 13px; padding: 9px 0; }
.crumb .wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb i { color: var(--crumb-sep); font-style: normal; }
.crumb a { color: var(--muted); }
.crumb span { color: var(--ink); }

/* ---------- 优势 / 场景 / 新闻 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.adv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.adv-card b { color: var(--blue); font-size: 17px; display: block; margin-bottom: 8px; }
.adv-card b::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--orange); border-radius: 2px; margin-right: 8px; vertical-align: 2px; }
.adv-card p { color: var(--muted); font-size: 14px; }
.scene-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scene-chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; color: var(--blue); font-weight: 500; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.news-card, .news-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px; display: block; transition: .2s; }
.news-card:hover, .news-row:hover { box-shadow: var(--shadow); }
.news-card time, .news-row time { color: var(--orange); font-size: 13px; }
.news-card b, .news-row b { display: block; color: var(--ink); margin: 6px 0; line-height: 1.5; }
.news-card p, .news-row p { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-row b { font-size: 16px; }
.rich { margin-top: 18px; }
.rich p { margin: 12px 0; }
.rich h2, .rich h3, .rich h4 { margin: 20px 0 8px; line-height: 1.35; }
.rich blockquote { margin: 14px 0; padding: 8px 16px; border-left: 3px solid var(--blue, #14406b); background: var(--bg-alt); }
.rich img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.rich video { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; background: #000; display: block; }
.rich table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 12px; font-size: 14px; text-align: left; }
.rich th { background: var(--bg-alt); }
.rich a.file-dl { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; padding: 10px 16px; background: var(--blue-l, #eef3fa); color: var(--blue, #14406b); border: 1px solid var(--blue, #14406b); border-radius: 8px; font-weight: 600; text-decoration: none; }
.rich a.file-dl:hover { background: var(--blue, #14406b); color: #fff; }
.art-meta { color: var(--muted); font-size: 13px; }
.cert-line { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cert-line span { background: var(--blue-l); color: var(--blue); border-radius: 6px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
/* 证书墙（关于我们页）：资质/认证/专利证书网格 */
.cert-wall { padding: 20px 0 40px; }
.cert-wall .sec-title { font-size: 24px; }
.cert-wall .cw-tip { color: var(--muted); font-size: 14px; margin: 6px 0 24px; }
.cert-wall .cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cert-wall .cw-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; transition: box-shadow .18s, transform .18s; }
a.cert-wall .cw-card, .cert-wall a.cw-card:hover { box-shadow: var(--shadow); }
.cert-wall a.cw-card:hover { transform: translateY(-3px); }
.cert-wall .cw-card img { width: 100%; height: 210px; object-fit: contain; background: #fff; border-radius: 6px; }
.cert-wall .cw-cap { display: block; margin-top: 10px; font-size: 13px; color: var(--ink); text-align: center; line-height: 1.5; }
@media (max-width: 560px) { .cert-wall .cw-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cert-wall .cw-card img { height: 150px; } }

/* ---------- 询盘表单 ---------- */
.inquiry { background: var(--blue-d); color: #fff; padding: 46px 0; }
.inquiry h2 { color: #fff; font-size: 24px; text-align: center; }
.inquiry .muted { color: var(--dark-fg-soft); text-align: center; margin-bottom: 22px; }
.inq-form { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.inq-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--dark-label); }
.inq-form label b { color: var(--orange); }
.inq-form input, .inq-form textarea { border: 1px solid var(--dark-input-bd); background: rgba(255,255,255,.06); border-radius: 8px; padding: 11px 14px; color: var(--dark-fg); font-size: 16px; font-family: inherit; }
.inq-form input:focus, .inq-form textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.inq-form .btn { align-self: flex-start; }
.inq-tip { color: var(--dark-fg-soft); font-size: 13px; align-self: center; }
.inq-tip a { color: var(--dark-fg); }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.alert-ok { background: rgba(15, 110, 86, .25); border: 1px solid #2ea88a; color: #bfe8db; padding: 12px 16px; border-radius: 8px; margin-bottom: 4px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.contact-list i { font-style: normal; color: var(--muted); display: inline-block; width: 64px; }
/* 联系我们页面导语：标题下、列表上的说明文字，做成带品牌蓝左条的导语卡片，与列表区分开 */
.contact-intro { border-left: 3px solid var(--blue); background: var(--bg-alt); padding: 12px 16px; margin: 18px 0 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-size: 15px; line-height: 1.75; }
.contact-intro p:first-child { margin-top: 0; }
.contact-intro p:last-child { margin-bottom: 0; }
.contact-intro a { color: var(--blue); }
/* 联系我们页：微信二维码扫码卡片（后台多图上传，无图时不渲染） */
.wechat-qr { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.wechat-qr .wq-title { font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.wechat-qr .wq-tip { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.wechat-qr .wq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.wechat-qr .wq-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.wechat-qr .wq-img { width: 100%; height: 176px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; overflow: hidden; }
.wechat-qr .wq-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wechat-qr .wq-label { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.wechat-qr .wq-id { margin-top: 3px; font-size: 12px; color: var(--muted); word-break: break-all; }
@media (max-width: 520px) { .wechat-qr .wq-list { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.contact-form-box .inquiry { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form-box .inquiry h2, .contact-form-box .inquiry .muted { color: var(--blue); }
.contact-form-box .inquiry .muted { color: var(--muted); }
.contact-form-box .inq-form input, .contact-form-box .inq-form textarea { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.contact-form-box .inq-form label { color: var(--ink); }
.contact-form-box .inq-tip { color: var(--muted); }
/* 联系页询盘框为浅色底：成功提示改用深绿文字，避免浅色文字看不见 */
.contact-form-box .alert-ok { color: var(--ok); border-color: var(--ok); background: rgba(15, 110, 86, .12); }

/* ---------- 在线询盘：页面内引导条（表单在浮动窗口里） ---------- */
.inquiry-cta { background: var(--blue-d); color: #fff; padding: 40px 0; }
.icta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inquiry-cta h2 { color: #fff; font-size: 23px; line-height: 1.35; }
.inquiry-cta p { color: var(--dark-fg-soft); margin-top: 6px; font-size: 15px; }
.icta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.icta-actions .btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.icta-actions .btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); }
.icta-tel { color: var(--dark-fg-soft); font-size: 14px; }
.icta-tel a { color: #fff; font-weight: 600; }
/* 联系页右栏：同一个引导条改成浅色卡片，与左侧联系信息并列 */
.contact-form-box .inquiry-cta { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; color: var(--ink); }
.contact-form-box .icta-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-form-box .inquiry-cta h2 { color: var(--blue); }
.contact-form-box .inquiry-cta p { color: var(--muted); }
.contact-form-box .icta-tel { color: var(--muted); }
.contact-form-box .icta-tel a { color: var(--blue); }
@media (max-width: 640px) {
  .inquiry-cta { padding: 30px 0; }
  .icta-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .inquiry-cta h2 { font-size: 20px; }
}

/* ---------- 在线询盘：默认贴首页大图右缘（可拖动，位置记忆） ---------- */
.inq-fab {
  /* 水平对齐内容区右缘稍内侧（贴大图），垂直约 32% 处贴着首页产品焦点区 */
  position: fixed; right: max(16px, calc((100vw - 1120px) / 2 + 30px)); top: 32%; transform: translateY(-50%); z-index: 120;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border: 0; border-radius: 999px; cursor: grab;
  background: var(--orange); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 26px rgba(242, 107, 29, .38);
  transition: box-shadow .18s ease, background .18s ease;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.inq-fab:hover { background: var(--orange-d); box-shadow: 0 14px 32px rgba(242, 107, 29, .45); }
.inq-fab.inq-dragging { cursor: grabbing; box-shadow: 0 18px 40px rgba(242, 107, 29, .5); }
.inq-fab:focus-visible { outline: 3px solid rgba(242, 107, 29, .45); outline-offset: 3px; }
.inq-fab svg { width: 20px; height: 20px; flex: none; }
/* 新消息提示：浮动按钮闪烁（transform 需保留 translateY 定位） */
@keyframes inqBlink { 0%, 100% { box-shadow: 0 10px 26px rgba(242,107,29,.38); } 50% { box-shadow: 0 0 0 6px rgba(200,0,13,.55), 0 10px 30px rgba(200,0,13,.5); background: #d10012; } }
.inq-fab.inq-blink { animation: inqBlink .6s ease-in-out infinite; }
.inq-tab.inq-blink { color: #c8000d; font-weight: 700; animation: fadein .6s ease-in-out infinite; }
body.inq-locked { overflow: hidden; }
/* ---------- 在线客服浮窗 ---------- */
.svc-wrap { position: fixed; right: 24px; bottom: 88px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.svc-fab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 999px; cursor: pointer; background: var(--blue); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 8px 22px rgba(20,64,107,.34); transition: transform .18s, box-shadow .18s; }
.svc-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,64,107,.42); }
.svc-fab svg { width: 19px; height: 19px; flex: none; }
.svc-panel { width: 244px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; font-size: 13px; color: var(--ink); }
.svc-panel-head { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.svc-panel .svc-qr { text-align: center; margin-bottom: 12px; }
.svc-panel .svc-qr img { width: 160px; height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.svc-panel .svc-qr span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.svc-panel .svc-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.svc-panel .svc-row span { color: var(--muted); }
.svc-panel .svc-row b, .svc-panel .svc-row a { color: var(--ink); font-weight: 600; word-break: break-all; }
.svc-panel .svc-row a { color: var(--blue); }
@media (max-width: 520px) { .svc-wrap { right: 14px; bottom: 80px; } .svc-fab { padding: 10px 14px; font-size: 13px; } }

/* ---------- 在线询盘：浮层窗口 ---------- */
.inq-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.inq-modal.open, .inq-modal:target { display: flex; }
.inq-mask { position: absolute; inset: 0; background: rgba(9, 24, 38, .58); backdrop-filter: blur(2px); }
.inq-panel {
  position: relative; z-index: 1; width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--card); color: var(--ink); border-radius: 16px; padding: 26px 28px 30px;
  box-shadow: 0 24px 70px rgba(9, 24, 38, .34); animation: inqPop .22s ease-out;
}
@keyframes inqPop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.inq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.inq-head h2, .inq-head .inq-ttl { font-size: 22px; color: var(--blue); line-height: 1.3; font-weight: 700; }
.inq-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.inq-close {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--bg-alt); color: var(--muted); font-size: 22px; line-height: 1; font-family: inherit;
}
.inq-close:hover { background: var(--line); color: var(--ink); }
/* 浮层内为浅色底：覆盖「深色区块」版输入样式 */
.inq-panel .inq-form { max-width: none; gap: 12px; }
.inq-panel .inq-form label { color: var(--ink-2); }
.inq-panel .inq-form input, .inq-panel .inq-form textarea { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.inq-panel .inq-form input:focus, .inq-panel .inq-form textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.inq-panel .inq-tip { color: var(--muted); font-size: 13px; align-self: center; }
.inq-panel .inq-tip a { color: var(--blue); }
.inq-panel .alert-ok { color: var(--ok); border-color: var(--ok); background: rgba(15, 110, 86, .1); margin-bottom: 12px; }
/* 浮动询盘弹窗右下角微信二维码（后台勾选「浮动询盘显示」的才出现） */
.inq-qr { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.inq-qr-tip { font-size: 13px; color: var(--muted); }
.inq-qr-items { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.inq-qr-item { margin: 0; text-align: center; }
.inq-qr-item img { width: 88px; height: 88px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: block; }
.inq-qr-item figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 浮层标签：在线聊天 / 留言询盘 */
.inq-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.inq-tab { border: 0; background: none; padding: 10px 16px; font-size: 15px; font-family: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.inq-tab:hover { color: var(--blue); }
.inq-tab.on { color: var(--blue); font-weight: 700; border-bottom-color: var(--orange); }
.inq-pane[hidden] { display: none; }
/* 在线聊天 */
.chat-widget .cw-lbl { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cw-agent-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cw-agent { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; font-family: inherit; color: var(--ink); font-size: 13px; }
.cw-agent:hover { border-color: var(--blue); }
.cw-agent b { font-weight: 600; }
.cw-agent em { font-style: normal; font-size: 12px; color: var(--muted); }
.cw-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.cw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cw-dot.s-idle { background: #16b26b; box-shadow: 0 0 0 3px rgba(22,178,107,.2), 0 0 8px rgba(22,178,107,.55); }
.cw-dot.s-busy { background: #e23b3b; box-shadow: 0 0 0 3px rgba(226,59,59,.2), 0 0 8px rgba(226,59,59,.55); }
.cw-dot.s-offline { background: #aab4bf; }
.cw-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cw-msgs { min-height: 180px; max-height: 300px; overflow: auto; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
/* 微信风格：客服消息居左（头像在左，白底黑字），访客自己的发言居右（微信绿气泡黑字） */
.cw-msg { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 6px; }
.cw-msg p { max-width: 85%; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; margin: 0; background: #fff; color: #1a1a1a; border: 1px solid var(--line); }
.cw-msg .cw-av { flex: none; }
.cw-msg.cw-v { justify-content: flex-end; }
.cw-msg.cw-v p { background: #95ec69; border-color: #95ec69; color: #111; }
.cw-msg.cw-a { justify-content: flex-start; }
.cw-msg.cw-s { justify-content: center; }
.cw-msg.cw-s p { display: inline-block; background: var(--line); color: var(--muted); font-size: 12px; padding: 3px 10px; border: 0; max-width: none; }
/* 图片 / 文件消息 */
.cw-img { max-width: 200px; max-height: 200px; border-radius: 8px; display: block; cursor: zoom-in; }
.cw-file { color: var(--blue); text-decoration: none; font-size: 13px; word-break: break-all; }
.cw-file:hover { text-decoration: underline; }
/* 📎 上传按钮 */
.cw-up { border: 0; background: none; font-size: 20px; line-height: 1; padding: 8px 4px; cursor: pointer; color: var(--muted); flex: none; }
.cw-up:hover { color: var(--blue); }
.cw-send { display: flex; gap: 8px; }
.cw-send input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-family: inherit; background: var(--card); color: var(--ink); }
.cw-send input:focus { outline: 2px solid var(--orange); border-color: transparent; }
.cw-end { margin-top: 8px; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; font-family: inherit; text-decoration: underline; }
.cw-end:hover { color: var(--blue); }
@media (max-width: 640px) {
  .inq-modal { padding: 0; align-items: flex-end; }
  .inq-panel { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 20px 18px 26px; }
  .inq-head h2, .inq-head .inq-ttl { font-size: 19px; }
  .inq-fab { top: auto; bottom: 18px; right: 14px; transform: none; padding: 11px 15px; font-size: 14px; gap: 7px; }
  .inq-fab svg { width: 18px; height: 18px; }
  .inq-qr { justify-content: center; }
  .inq-qr-item img { width: 76px; height: 76px; }
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-fg); margin-top: 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 30px; padding: 44px 20px 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--foot-h); font-size: 16px; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--foot-a); }
.foot-bar { border-top: 1px solid var(--foot-bd); padding: 14px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }

/* ================= 主题：微软简约（参考 account.microsoft.com：白底卡片 + 浅灰页面 + Fluent 蓝） ================= */
[data-theme="ms"] {
  --blue: #0067b8; --blue-d: #004578; --blue-l: #eff6fc;
  --orange: #0067b8; --orange-d: #005a9e; --orange-l: #eff6fc;
  --ink: #201f1e; --ink-2: #605e5b; --muted: #605e5b; --line: #e1dfdd;
  --bg: #ffffff; --bg-alt: #faf9f8; --card: #ffffff; --ok: #107c10;
  --radius: 4px; --shadow: 0 1.6px 4px rgba(0,0,0,.1);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --topbar-bg: #ffffff; --topbar-fg: #605e5b; --topbar-bd: #d2d0ce; --topbar-strong: #0067b8; --topbar-hover: rgba(0,0,0,.06);
  --foot-bg: #f3f2f1; --foot-fg: #605e5b; --foot-h: #201f1e; --foot-a: #0067b8; --foot-bd: #d2d0ce;
  --dark-fg: #fff; --dark-fg-soft: #c7e3f5; --dark-label: #c7e3f5; --dark-input-bd: #3a6d96;
  --hero-veil: linear-gradient(90deg, rgba(0,69,120,.9) 0%, rgba(0,69,120,.6) 55%, rgba(0,69,120,.2) 100%);
  --intro-fg: #3b3a39; --crumb-sep: #b3b0ad;
}

/* ================= 主题：墨绿商务（深绿主色 + 琥珀强调，稳重中带活力） ================= */
[data-theme="green"] {
  --blue: #0c5b45; --blue-d: #083d2e; --blue-l: #e7f4ee;
  --orange: #e8890c; --orange-d: #c96f06; --orange-l: #fdf3e4;
  --ink: #1d2b25; --ink-2: #55665d; --muted: #5d6f66; --line: #d8e4dd;
  --bg: #ffffff; --bg-alt: #f2f8f5; --card: #ffffff; --ok: #0c5b45;
  --radius: 10px; --shadow: 0 6px 24px rgba(12, 91, 69, .1);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --topbar-bg: #083d2e; --topbar-fg: #bfe0d2; --topbar-bd: rgba(255,255,255,.4); --topbar-strong: #fff; --topbar-hover: rgba(255,255,255,.15);
  --foot-bg: #083d2e; --foot-fg: #a9cbbd; --foot-h: #fff; --foot-a: #cfe8dc; --foot-bd: #1e5240;
  --dark-fg: #fff; --dark-fg-soft: #a9cbbd; --dark-label: #d3e8dc; --dark-input-bd: #2f6b55;
  --hero-veil: linear-gradient(90deg, rgba(8,61,46,.9) 0%, rgba(8,61,46,.6) 55%, rgba(8,61,46,.2) 100%);
  --intro-fg: #33463d; --crumb-sep: #b3c6bc;
}

/* ================= 主题：深空暗色（深灰底 + 亮蓝主色，适合展示与夜间浏览） ================= */
[data-theme="dark"] {
  --blue: #4d9be0; --blue-d: #10151c; --blue-l: #1d2a38;
  --orange: #ff922b; --orange-d: #e8780c; --orange-l: #3a2c17;
  --ink: #e6e9ee; --ink-2: #aeb6c0; --muted: #98a1ab; --line: #2f3640;
  --bg: #16191e; --bg-alt: #1a1e24; --card: #1e232b; --ok: #34a47c;
  --radius: 12px; --shadow: 0 6px 24px rgba(0,0,0,.4);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --topbar-bg: #10151c; --topbar-fg: #8fa0b3; --topbar-bd: rgba(255,255,255,.25); --topbar-strong: #fff; --topbar-hover: rgba(255,255,255,.1);
  --foot-bg: #10151c; --foot-fg: #8fa0b3; --foot-h: #e6e9ee; --foot-a: #b6c4d4; --foot-bd: #2a323c;
  --dark-fg: #fff; --dark-fg-soft: #9fb0c2; --dark-label: #c2cede; --dark-input-bd: #3a4552;
  --hero-veil: linear-gradient(90deg, rgba(8,12,18,.92) 0%, rgba(8,12,18,.62) 55%, rgba(8,12,18,.22) 100%);
  --intro-fg: #b9c2cb; --crumb-sep: #55606c;
}
/* 暗色主题：主色为亮蓝，logo 块改用深色文字保证对比度 */
[data-theme="dark"] .logo-mark { color: #10151c; }

/* ================= 主题：选型手册（参考品牌选型手册：白底 + 品牌红 + 封面式首页） ================= */
[data-theme="manual"] {
  --blue: #c8000d; --blue-d: #8f0009; --blue-l: #fdecee;
  --orange: #008dcd; --orange-d: #0077ad; --orange-l: #e9f5fc;
  --ink: #1a1a1a; --ink-2: #474747; --muted: #5f5f5f; --line: #e3e5e8;
  --bg: #ffffff; --bg-alt: #f5f6f7; --card: #ffffff; --ok: #0f7a3d;
  --radius: 4px; --shadow: 0 6px 24px rgba(0,0,0,.08);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --topbar-bg: #ffffff; --topbar-fg: #5a5a5a; --topbar-bd: #d9dbde; --topbar-strong: #c8000d; --topbar-hover: rgba(0,0,0,.05);
  --foot-bg: #1c1c1c; --foot-fg: #adadad; --foot-h: #ffffff; --foot-a: #dcdcdc; --foot-bd: #343434;
  --dark-fg: #fff; --dark-fg-soft: #f0c9cc; --dark-label: #f3d6d8; --dark-input-bd: #b04a4a;
  --hero-veil: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 55%, rgba(255,255,255,.4) 100%);
  --intro-fg: #333333; --crumb-sep: #b5b7ba;
}
/* 白底顶栏/页头加分隔线，避免与白色页面糊在一起 */
[data-theme="manual"] .topbar, [data-theme="manual"] .masthead { border-bottom: 1px solid var(--line); }
/* 封面式首页：白底 + 细网格纹理 + 淡色 MN 水印，替换轮播大图 */
[data-theme="manual"] .hero { background: #fff; border-bottom: 1px solid var(--line); }
[data-theme="manual"] .slide { background-color: #fff; background-image: none; }
[data-theme="manual"] .slide::after { display: none; }
[data-theme="manual"] .slide::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%23e2e9f0' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 130'%3E%3Ctext x='110' y='106' font-family='Arial Black,Impact,sans-serif' font-size='108' font-weight='900' fill='%23eef3f7' text-anchor='middle'%3EMN%3C/text%3E%3C/svg%3E");
  background-size: 72px 72px, auto 76%;
  background-position: center, right 4% center;
  background-repeat: repeat, no-repeat;
}
[data-theme="manual"] .slide-inner { color: var(--ink); padding: 86px 20px; }
[data-theme="manual"] .slide-inner h1, [data-theme="manual"] .slide-inner h2 { color: #141414; font-weight: 800; letter-spacing: .5px; }
[data-theme="manual"] .slide-inner p { color: var(--muted); }
[data-theme="manual"] .slide-inner .btn-ghost { color: var(--ink); border-color: #c9ccd0; }
[data-theme="manual"] .slide-inner .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
[data-theme="manual"] .hero-dots label { background: rgba(0,0,0,.18); }
[data-theme="manual"] #hs0:checked ~ .hero-dots label:nth-child(1),
[data-theme="manual"] #hs1:checked ~ .hero-dots label:nth-child(2),
[data-theme="manual"] #hs2:checked ~ .hero-dots label:nth-child(3) { background: var(--blue); }
/* 手册版式：黑色粗体标题 + 品牌红短下划线 */
[data-theme="manual"] .sec-title { color: #141414; font-weight: 800; letter-spacing: .5px; }
[data-theme="manual"] .sec-title::after { content: ""; display: block; width: 54px; height: 4px; background: var(--blue); margin: 12px auto 0; border-radius: 2px; }
[data-theme="manual"] .sec-sub { margin-bottom: 34px; }
/* 品牌红带（呼应手册封面） */
[data-theme="manual"] .hero-band { background: #c8000d; }

/* ============================================================
   GEO 优化样式（GEO 优化样式）
   答案前置块 + FAQ 问答体
   —— 让 AI 抽取答案时，有明确的首句锚点和结构化问答区块
   ============================================================ */

/* 答案前置块：首句即答案，独立成块，便于模型定位与摘取 */
.geo-answer-first { margin: 0 auto 28px; }
.geo-answer-first .gaf-lead {
  margin: 0; padding: 16px 20px;
  background: #f7f9fb;
  border-left: 4px solid var(--blue, #b03030);
  border-radius: 0 6px 6px 0;
  font-size: 15.5px; line-height: 1.85; color: #22252a;
}
[data-theme="manual"] .geo-answer-first .gaf-lead { background: #fafbfc; border-left-color: #c8000d; }

/* FAQ 问答体：左问右答，语义层级清晰 */
.geo-faq { background: #fbfcfd; border-top: 1px solid var(--line, #e6e9ed); }
[data-theme="manual"] .geo-faq { background: #fff; }
.geo-faq .faq-list { max-width: 880px; margin: 0 auto; }
.geo-faq h1.sec-title { text-align: center; }
.geo-faq .faq-group-title { max-width: 880px; margin: 34px auto 10px; font-size: 17px; color: #22252a; }
.geo-faq .faq-group-title:first-of-type { margin-top: 22px; }
.geo-faq details.faq-item {
  border-bottom: 1px dashed var(--line, #e2e6ea);
}
.geo-faq details.faq-item:last-child { border-bottom: 0; }
.geo-faq details.faq-item > summary.faq-q {
  list-style: none; cursor: pointer;
  margin: 0; padding: 18px 32px 18px 0; position: relative;
  font-size: 16px; font-weight: 700; color: #1a1d21;
  display: flex; align-items: flex-start; gap: 8px;
}
.geo-faq details.faq-item > summary.faq-q::-webkit-details-marker { display: none; }
.geo-faq details.faq-item > summary.faq-q::before {
  content: "Q"; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue, #b03030); color: #fff;
  font-size: 12px; font-weight: 800; margin-top: 2px;
}
[data-theme="manual"] .geo-faq details.faq-item > summary.faq-q::before { background: #c8000d; }
.geo-faq details.faq-item > summary.faq-q::after {
  content: ""; position: absolute; right: 8px; top: 23px;
  width: 9px; height: 9px; border-right: 2px solid #9aa1a9; border-bottom: 2px solid #9aa1a9;
  transform: rotate(45deg); transition: transform .2s ease;
}
.geo-faq details.faq-item[open] > summary.faq-q::after { transform: rotate(-135deg); top: 26px; }
.geo-faq details.faq-item > .faq-a {
  margin: 0 0 18px 30px; font-size: 14.5px; line-height: 1.9; color: #4a5058;
}
/* 主页 FAQ 精选后的「查看全部」入口 */
.faq-more { max-width: 880px; margin: 26px auto 0; text-align: center; }
.faq-more .btn { color: var(--blue, #b03030); }
[data-theme="manual"] .faq-more .btn { color: #141414; border-color: #c9ccd0; }
@media (max-width: 640px) {
  .geo-faq details.faq-item > .faq-a { margin-left: 0; }
}

/* About 页 GEO 区块：事实速查表 / 核心竞争力 / 应用领域 */
.geo-facts { margin-top: 30px; }
.geo-facts h2, .geo-strengths h2, .geo-scenarios h2 {
  font-size: 19px; font-weight: 700; color: #1a1d21; margin: 30px 0 14px;
}
.geo-strengths ul { list-style: none; padding: 0; margin: 0; }
.geo-strengths li {
  padding: 13px 16px; margin-bottom: 10px;
  background: #f7f9fb; border-radius: 6px; border-left: 3px solid var(--blue, #b03030);
}
[data-theme="manual"] .geo-strengths li { background: #fafbfc; border-left-color: #c8000d; }
.geo-strengths li b { display: block; font-size: 15px; color: #1a1d21; margin-bottom: 4px; }
.geo-strengths li span { font-size: 14px; line-height: 1.8; color: #4a5058; }
.geo-scenarios p {
  font-size: 14.5px; line-height: 2; color: #3d434a;
  padding: 14px 16px; background: #f7f9fb; border-radius: 6px;
}
[data-theme="manual"] .geo-scenarios p { background: #fafbfc; }

/* GEO 实体消歧声明区块 */
.geo-disambig { margin-top: 34px; padding: 20px 22px; background: #fbfcfd; border: 1px solid #e2e6ea; border-radius: 8px; }
[data-theme="manual"] .geo-disambig { background: #fff; border-color: #e6e9ed; }
.geo-disambig h2 { font-size: 17px; font-weight: 700; color: #1a1d21; margin: 0 0 12px; }
.geo-disambig .gd-statement {
  font-size: 14px; line-height: 1.9; color: #3d434a; margin: 0 0 16px;
  padding: 12px 14px; background: #f2f6fa; border-left: 3px solid #185FA5; border-radius: 0 5px 5px 0;
}
.geo-disambig .gd-note { list-style: none; padding: 0; margin: 14px 0 0; }
.geo-disambig .gd-note li {
  font-size: 13px; line-height: 1.8; color: #6b7280;
  padding: 7px 0; border-top: 1px dashed #e8ebef;
}
.geo-disambig .gd-note li b {
  display: inline-block; min-width: 150px; color: #4b5563; font-weight: 500;
}
.geo-disambig .gd-patents {
  font-size: 13px; line-height: 1.9; color: #4b5563; margin: 14px 0 0;
  padding: 10px 13px; background: #fff8e8; border-radius: 5px;
}
.geo-disambig .gd-patents b { color: #854f0b; font-weight: 500; }

/* ============================================================
   首页「热销精选」微软风格大卡片
   白底圆角卡 · 大图在上 · 标签/标题/描述/按钮在下，hover 轻微上浮
   ============================================================ */
.ms-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ms-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; min-height: 100%; }
.ms-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.10); transform: translateY(-3px); }
.ms-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; background: #fff; overflow: hidden; padding: 16px; }
.ms-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s; }
.ms-card:hover .ms-card-img img { transform: scale(1.03); }
.ms-card-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 16px 18px; }
.ms-tag { align-self: flex-start; display: inline-block; font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 4px; background: #f2f7f4; color: #2e7d4f; }
.ms-card-title { font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.ms-card-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
.ms-card-btn { margin-top: auto; align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 600; color: #fff; background: var(--blue); border-radius: 6px; padding: 7px 16px; }
.ms-card:hover .ms-card-btn { filter: brightness(1.06); }
@media (max-width: 900px) { .ms-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ms-card-grid { grid-template-columns: 1fr; } }
