/* ==========================================================================
   zxycoil.com 官网前台主题 (响应式 / 移动端优先)
   目录: public/static/site/css/style.css
   说明: 独立于后台 static/theme, 不污染既有资源
   ========================================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --primary: #1257a6;
  --primary-dark: #0d3f78;
  --primary-light: #2f7fd6;
  --accent: #f58220;
  --accent-dark: #d96b0c;
  --text: #22282f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-dark: #10233d;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(16, 35, 61, .08);
  --shadow-lg: 0 10px 30px rgba(16, 35, 61, .14);
  --header-h: 76px;
  --maxw: 1200px;
  --transition: .25s ease;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- 区块标题 ---------- */
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-title { position: relative; display: inline-block; font-size: 1.8rem; padding-bottom: 14px; }
.sec-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 3px; background: var(--accent); border-radius: 2px;
}
.sec-sub { color: var(--muted); max-width: 720px; margin: 12px auto 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 24px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--primary); color: #fff; cursor: pointer; font-weight: 600; line-height: 1.5;
  transition: all var(--transition); text-align: center;
}
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 13px 34px; font-size: 1.05rem; }
.btn-sm { padding: 6px 16px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }

/* ==========================================================================
   头部 Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.hd-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.hd-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hd-logo img { max-height: 48px; width: auto; }
.logo-txt { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: .5px; line-height: 1.1; }
.logo-txt small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.hd-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 10px 15px; font-weight: 600; font-size: .96rem;
  color: var(--text); border-radius: 6px; white-space: nowrap;
}
.nav-link:hover, .nav-item.active > .nav-link { color: var(--primary); background: var(--bg-soft); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition); z-index: 100;
}
.nav-item.has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 9px 18px; color: var(--text); font-size: .92rem; }
.sub-menu a:hover { background: var(--bg-soft); color: var(--primary); }

.hd-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-box { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 20px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--text);
}
.lang-btn:hover { border-color: var(--primary-light); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition); z-index: 200; max-height: 320px; overflow-y: auto;
}
.lang-box.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: block; padding: 8px 16px; color: var(--text); font-size: .9rem; }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.active { color: var(--primary); font-weight: 700; }
.hd-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--bg-soft); color: var(--primary); font-size: 1rem;
}
.hd-icon-btn:hover { background: var(--primary); color: #fff; }
.hd-quote { padding: 9px 18px; }

/* 移动端汉堡按钮 */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   首页 Hero 轮播
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); }
.hero-track { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; visibility: hidden; transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,63,120,.85) 0%, rgba(16,35,61,.5) 55%, rgba(16,35,61,.18) 100%); }
.hero-cap { position: relative; z-index: 3; min-height: 460px; display: flex; align-items: center; color: #fff; }
.hero-cap h1 { color: #fff; font-size: 2.6rem; max-width: 780px; margin-bottom: 16px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero-cap p { font-size: 1.12rem; max-width: 640px; opacity: .96; margin-bottom: 26px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background var(--transition); backdrop-filter: blur(4px);
}
.hero-nav-btn:hover { background: rgba(255,255,255,.35); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 9px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: all var(--transition); }
.hero-dots button.active { background: var(--accent); width: 26px; border-radius: 6px; }

/* ---------- 分类网格 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); transition: all var(--transition); aspect-ratio: 4 / 3;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card .cat-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; font-weight: 700; text-align: center;
  background: linear-gradient(transparent, rgba(13,63,120,.9));
}
.cat-card .cat-ph { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--bg-soft); color: var(--primary); font-size: 2.4rem; }

/* ---------- 产品网格 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.prod-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }
.prod-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; }
.prod-info { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.prod-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; height: 2.8em; overflow: hidden; }
.prod-title a { color: var(--text); }
.prod-title a:hover { color: var(--primary); }
.prod-model { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.prod-summary { font-size: .88rem; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--primary); }
.prod-more::after { content: " \203A"; }

/* ---------- 关于我们 (首页) ---------- */
.about-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-text h2 { font-size: 1.8rem; }
.about-text .lead { color: var(--muted); font-size: 1.02rem; }
.about-stats { display: flex; gap: 30px; margin: 24px 0; flex-wrap: wrap; }
.about-stats .stat b { display: block; font-size: 2rem; color: var(--primary); line-height: 1; }
.about-stats .stat span { font-size: .86rem; color: var(--muted); }

/* ---------- 新闻列表 (首页卡片 / 列表页) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .news-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 16px 18px 20px; flex: 1; }
.news-date { font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; display: block; }
.news-card h3 { font-size: 1.05rem; line-height: 1.45; margin-bottom: 8px; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 列表页横向新闻 */
.news-list .news-row { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.news-row .nr-thumb { flex: 0 0 220px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.news-row .nr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row .nr-body { flex: 1; }
.news-row h3 { font-size: 1.2rem; margin-bottom: 8px; }
.news-row h3 a { color: var(--text); }
.news-row h3 a:hover { color: var(--primary); }
.news-row .nr-meta { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.news-row p { color: var(--muted); font-size: .94rem; }

/* ---------- 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; box-shadow: var(--shadow); }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover img { transform: scale(1.07); }
.case-card .case-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 16px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(16,35,61,.88)); }

/* ==========================================================================
   内页通用: 页头 / 面包屑 / 主体两栏
   ========================================================================== */
.page-banner { background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); color: #fff; padding: 40px 0; text-align: center; }
.page-banner h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.page-banner p { opacity: .9; margin: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }

.layout-2col { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); }
.sb-title { padding: 16px 20px; font-weight: 700; font-size: 1.1rem; background: var(--primary); color: #fff; }
.sb-menu a { display: block; padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--text); font-size: .95rem; }
.sb-menu a:hover, .sb-menu a.active { background: var(--bg-soft); color: var(--primary); border-left: 3px solid var(--accent); padding-left: 17px; }
.sb-menu a:last-child { border-bottom: 0; }
.main-col { min-width: 0; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.list-head h1 { font-size: 1.5rem; margin: 0; }
.list-count { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   产品详情
   ========================================================================== */
.pd-top { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 36px; padding: 24px 0 34px; align-items: start; }
.pd-gallery .pd-main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.pd-main > a { display: block; width: 100%; height: 100%; cursor: zoom-in; background: #fff; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-hint { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.pd-gallery-hint span { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.pd-thumbs a { display: block; width: 100%; height: 100%; }
.pd-thumbs a:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs li { width: 74px; height: 74px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg-soft); }
.pd-thumbs li.active, .pd-thumbs li:hover { border-color: var(--primary); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-info .pd-title { font-size: 1.7rem; margin-bottom: 10px; }
.pd-model { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.pd-model b { color: var(--text); }
.pd-summary { color: var(--muted); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 详情采用可直接定位的展开分区，参数与图纸不依赖选项卡脚本 */
.pd-info, .pd-gallery { min-width: 0; overflow-wrap: anywhere; }
.pd-summary { white-space: pre-line; }
.pd-specs-more { margin: -12px 0 24px; font-size: .9rem; }
.pd-specs-more a { text-decoration: underline; text-underline-offset: 3px; }
.pd-key-specs { margin: 0 0 24px; border-top: 1px solid var(--border); }
.pd-key-specs > div { display: grid; grid-template-columns: minmax(100px, 30%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pd-key-specs dt { font-weight: 600; }
.pd-key-specs dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pd-section-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.pd-section-nav a { padding: 8px 16px; font-weight: 600; border-radius: 5px; }
.pd-section-nav a:hover, .pd-section-nav a:focus-visible { background: var(--primary); color: #fff; }
.pd-section { padding: 30px 0; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 20px); }
.pd-section h2 { font-size: 1.4rem; padding-left: 12px; border-left: 4px solid var(--accent); margin-bottom: 20px; }
.pd-section .rich-text { display: flow-root; overflow-x: auto; min-width: 0; }
.pd-content-group { padding: 22px 24px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.rich-text .pd-content-group h3 { margin: 0 0 14px; color: var(--primary-dark); font-size: 1.1rem; }
.pd-content-group p:last-child, .pd-content-group ul:last-child { margin-bottom: 0; }
.pd-content-group li { padding-left: 4px; white-space: pre-line; }
.pd-content-group li::marker { color: var(--accent); }
.pd-section .rich-text img { max-width: 100% !important; height: auto !important; }
.pd-table-caption { text-align: left; padding: 0 0 12px; font-weight: 600; color: var(--muted); }
.pd-empty { padding: 18px 22px; background: var(--bg-soft); border-left: 3px solid var(--accent); }
.pd-section .spec-table { width: 100%; table-layout: fixed; }
.pd-section .spec-table th, .pd-section .spec-table td { white-space: pre-line; overflow-wrap: anywhere; vertical-align: top; }
.pd-note { color: var(--muted); margin: 14px 0; }
.pd-detail-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pd-detail-images figure:only-child { grid-column: 1 / -1; }
.pd-detail-images a { cursor: zoom-in; }
.pd-detail-images figure { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.pd-detail-images img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.pd-detail-images figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.pd-detail-images figcaption a { margin-left: 12px; text-decoration: underline; }
.pd-selection { padding: 22px; margin-top: 18px; border-radius: var(--radius); background: var(--bg-soft); }
.pd-selection ul { padding-left: 22px; margin: 12px 0 20px; list-style: disc; }
.pd-selection li { margin-bottom: 8px; }
.pd-video { display: block; max-width: 100%; margin: 20px auto; }

.pd-tabs { margin-top: 10px; }
.pd-tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.pd-tab-nav button { background: none; border: 0; padding: 12px 22px; cursor: pointer; font-weight: 600; color: var(--muted); position: relative; font-size: .98rem; }
.pd-tab-nav button.active { color: var(--primary); }
.pd-tab-nav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); }
.pd-tab-pane { display: none; padding: 26px 0; }
.pd-tab-pane.active { display: block; }

.spec-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: .94rem; }
.spec-table th { width: 34%; background: var(--bg-soft); font-weight: 600; color: var(--text); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.dl-list .dl-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.dl-info strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.dl-info span { font-size: .84rem; color: var(--muted); }
.dl-btn { flex-shrink: 0; }

/* ---------- 富文本内容 ---------- */
.rich-text { font-size: 1rem; line-height: 1.85; color: #333; word-wrap: break-word; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { margin: 1.3em 0 .6em; }
.rich-text h2 { font-size: 1.4rem; }
.rich-text h3 { font-size: 1.2rem; }
.rich-text p { margin-bottom: 1em; }
.rich-text img { margin: 14px auto; border-radius: 6px; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin-bottom: 1em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: .4em; }
.rich-text table { border: 1px solid var(--border); margin: 16px 0; }
.rich-text table th, .rich-text table td { border: 1px solid var(--border); padding: 9px 13px; }
.rich-text table th { background: var(--bg-soft); }
.rich-text blockquote { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 12px 18px; margin: 16px 0; color: var(--muted); }
.rich-text a { text-decoration: underline; }
/* 兼容旧站导入的固定宽度/浮动结构, 防止高度塌陷与横向溢出 */
.clear { clear: both; }
.rich-text { overflow-wrap: break-word; }
@media (max-width: 900px) {
  .rich-text div[style*="width: 500px"], .rich-text div[style*="width: 410px"] { width: 100% !important; float: none !important; }
  .rich-text div[style*="height: 450px"] { height: auto !important; }
}
.legacy-desc p { margin-bottom: 10px; }
.legacy-desc p:last-child { margin-bottom: 0; }

/* ---------- 文章详情 ---------- */
.art-wrap { padding: 26px 0 40px; }
.art-title { font-size: 1.9rem; margin-bottom: 12px; }
.art-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.art-content { margin-bottom: 30px; }
.art-pager { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 30px; flex-wrap: wrap; }
.art-pager a { max-width: 48%; color: var(--text); font-size: .94rem; }
.art-pager a:hover { color: var(--primary); }
.art-pager .next { text-align: right; margin-left: auto; }

/* ---------- 单页 ---------- */
.page-wrap { padding: 26px 0 46px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 1.9rem; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; padding: 30px 0 46px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 14px; margin-bottom: 20px; }
.ci-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.ci-body strong { display: block; margin-bottom: 2px; }
.ci-body span, .ci-body a { color: var(--muted); font-size: .95rem; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 18px; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row label .req { color: #e11d48; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition); font-size: .95rem;
}
.form-control:focus { outline: 0; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(47,127,214,.14); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; }
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-msg.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 搜索 ---------- */
.search-bar { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; margin: 24px 0 30px; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; }
.search-form .form-control { flex: 1; min-width: 200px; }
.search-form select.form-control { flex: 0 0 160px; }
.search-result-info { color: var(--muted); margin-bottom: 18px; }

/* ---------- 分页 ---------- */
.site-pager { display: flex; justify-content: center; gap: 6px; margin: 34px 0 10px; flex-wrap: wrap; }
.site-pager li a { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: .92rem; background: #fff; }
.site-pager li a:hover { border-color: var(--primary); color: var(--primary); }
.site-pager li.active a { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 空数据 ---------- */
.empty-tip { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty-tip .icon { font-size: 3rem; opacity: .3; margin-bottom: 12px; }

/* ---------- 相关产品 ---------- */
.related-sec { padding: 34px 0 46px; border-top: 1px solid var(--border); margin-top: 20px; }
.related-sec h2 { font-size: 1.4rem; margin-bottom: 22px; }

/* ==========================================================================
   页脚 Footer
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: #c7d2e0; margin-top: 40px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; padding: 50px 16px 34px; }
.ft-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.ft-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
.ft-about .ft-logo { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 14px; display: block; }
.ft-about img { max-height: 46px; margin-bottom: 14px; }
.ft-about p { font-size: .92rem; line-height: 1.8; opacity: .85; }
.ft-links a { display: block; padding: 5px 0; color: #c7d2e0; font-size: .92rem; opacity: .9; }
.ft-links a:hover { color: var(--accent); opacity: 1; padding-left: 4px; }
.ft-contact .fc-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; opacity: .9; }
.ft-contact .fc-item .ico { color: var(--accent); flex-shrink: 0; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: all var(--transition); }
.social a:hover { background: var(--accent); transform: translateY(-3px); }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .86rem; opacity: .8; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--transition); box-shadow: var(--shadow-lg); border: 0;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent); }

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 90px 20px; }
.err-page .code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; opacity: .18; }
.err-page h1 { font-size: 1.8rem; margin: 10px 0 12px; }
.err-page p { color: var(--muted); margin-bottom: 26px; }

/* ==========================================================================
   响应式 (移动端优先的向下适配)
   ========================================================================== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pd-top { grid-template-columns: 1fr; }
  .pd-gallery { width: 100%; max-width: 540px; margin: 0 auto; }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .hd-quote { display: none; }
  .nav-toggle { display: flex; }
  .hd-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column;
    justify-content: flex-start; padding: 12px 16px 40px; overflow-y: auto; transform: translateX(-100%);
    transition: transform .3s ease; z-index: 999; display: block;
  }
  .hd-nav.open { transform: translateX(0); }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link { justify-content: space-between; padding: 14px 6px; border-radius: 0; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 8px; background: var(--bg-soft); border-radius: 0; }
  .nav-item.open .sub-menu { display: block; }
  .sub-menu a { padding: 10px 16px; }
  .hero-cap { min-height: 360px; }
  .hero-cap h1 { font-size: 1.7rem; }
  .hero-cap p { font-size: .98rem; }
  .hero-nav-btn { display: none; }
  .about-flex { grid-template-columns: 1fr; gap: 26px; }
  .news-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .news-grid, .case-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-cap { min-height: 320px; }
  .hero-cap h1 { font-size: 1.4rem; }
  .hero-cap p { font-size: .95rem; margin-bottom: 20px; }
  .news-list .news-row { flex-direction: column; gap: 14px; }
  .news-row .nr-thumb { flex: none; width: 100%; }
  .sec-title { font-size: 1.5rem; }
  .pd-info .pd-title { font-size: 1.4rem; }
  .pd-top { gap: 24px; padding-top: 12px; }
  .pd-thumbs { gap: 8px; }
  .pd-thumbs li { width: 62px; height: 62px; }
  .pd-actions { flex-direction: column; }
  .pd-section-nav { gap: 4px; padding: 8px; }
  .pd-section-nav a { padding: 8px 10px; font-size: .9rem; }
  .pd-content-group { padding: 18px 16px; }
  .pd-detail-images { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pd-section .spec-table th, .pd-section .spec-table td { padding: 10px; }
  .pd-selection { padding: 18px 16px; }
  .art-title { font-size: 1.5rem; }
  .lang-btn span.txt-full { display: none; }
}

/* ==========================================================================
   补充样式: 首页/内页元素
   ========================================================================== */
.container.narrow { max-width: 760px; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sec-more { display: inline-block; margin-top: 12px; font-size: .92rem; font-weight: 600; color: var(--primary); }
.sec-more:hover { color: var(--accent); }
/* 带“查看全部”链接的标题栏: 标题靠左, 链接靠右 */
.sec-head.head-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 20px; text-align: left; margin-bottom: 28px;
}
.sec-head.head-bar .sec-title { margin-bottom: 0; padding-bottom: 12px; }
.sec-head.head-bar .sec-title::after { left: 0; transform: none; }
.sec-head.head-bar .sec-more { margin: 0 0 12px; white-space: nowrap; }
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 20px; }

.about-excerpt { max-width: 900px; margin: 0 auto; max-height: 240px; overflow: hidden; position: relative; color: var(--muted); }
.about-excerpt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #fff); }

.pd-contact { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.pd-contact p { margin-bottom: 8px; font-size: .94rem; color: var(--muted); }
.pd-contact b { color: var(--text); }

.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.case-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.art-cover { margin-bottom: 24px; }
.art-cover img { width: 100%; border-radius: var(--radius); }

.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); color: #fff; padding: 46px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text h2 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.cta-text p { margin: 0; opacity: .92; }

.social a.soc-facebook:hover { background: #1877f2; }
.social a.soc-linkedin:hover { background: #0a66c2; }
.social a.soc-youtube:hover { background: #ff0000; }
.social a.soc-twitter:hover { background: #111; }
.social a.soc-instagram:hover { background: #e1306c; }
.social a.soc-whatsapp:hover { background: #25d366; }

img[data-lazy] { opacity: 0; transition: opacity .4s ease; }
img[data-lazy].loaded, img:not([data-lazy]) { opacity: 1; }

@media (max-width: 820px) {
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { justify-content: center; text-align: center; }
  .cta-text h2 { font-size: 1.35rem; }
}
@media (max-width: 560px) {
  .case-gallery { grid-template-columns: 1fr; }
  .about-excerpt { max-height: 200px; }
}

/* ---------- FAQ 折叠 ---------- */
.faq-list { border-top: 1px solid #e6ebf1; }
.faq-item { border-bottom: 1px solid #e6ebf1; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; cursor: pointer; text-align: left; padding: 18px 4px; font-size: 1.02rem; font-weight: 600; color: #1f2d3d; }
.faq-q:hover { color: var(--primary, #1257a6); }
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; background: var(--accent, #f58220); transition: transform .25s ease; }
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { margin: 0; padding: 0 4px 20px; color: #5a6673; line-height: 1.75; }
/* 产品 FAQ 使用原生折叠，长回答不再受固定高度截断 */
.pd-faq .faq-a { max-height: none; overflow: visible; }
.pd-faq summary { list-style: none; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq details[open] .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.pd-faq .faq-a p { white-space: pre-line; overflow-wrap: anywhere; }
#faq, #inquiry { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ==========================================================================
   首页: 信任板块(四大优势 / 公司数据 / 资质合规 / 应用领域)
   ========================================================================== */
/* ---------- 四大优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: all var(--transition); }
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.adv-ico { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(18,87,166,.08); color: var(--primary); margin-bottom: 16px; transition: all var(--transition); }
.adv-card:hover .adv-ico { background: var(--primary); color: #fff; }
.adv-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.adv-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- 公司数据条 ---------- */
.stats-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item b { display: block; font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-item span { display: block; margin-top: 6px; font-size: .92rem; color: rgba(255,255,255,.85); }

/* ---------- 资质与合规 ---------- */
.cert-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cert-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; padding: 12px 22px; border: 1px solid var(--border); border-radius: 40px; background: #fff; font-weight: 700; color: var(--primary); font-size: .98rem; letter-spacing: .5px; box-shadow: var(--shadow); }
.cert-badge.cert-hl { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 应用领域 ---------- */
.apps-wrap { margin-top: 40px; text-align: center; }
.apps-title { font-size: 1.3rem; margin-bottom: 6px; }
.apps-sub { color: var(--muted); margin-bottom: 20px; }
.apps-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.app-chip { padding: 8px 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; font-size: .9rem; color: var(--text); transition: all var(--transition); }
.app-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .stat-item b { font-size: 2.1rem; }
}
@media (max-width: 560px) {
  .adv-grid { grid-template-columns: 1fr; }
  .cert-badge { min-width: 78px; padding: 10px 16px; font-size: .9rem; }
}

/* ==========================================================================
   首页: 生产实力(视频) / 实力见证(图片墙) / 页脚二维码
   ========================================================================== */
/* ---------- 生产实力视频 ---------- */
.strength-media { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.strength-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* ---------- 实力见证图片墙 ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gal-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; color: #fff; font-weight: 600; text-align: center; background: linear-gradient(transparent, rgba(16,35,61,.88)); }

/* ---------- 页脚二维码 ---------- */
.ft-qr { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.ft-qr-item { text-align: center; }
.ft-qr-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; background: #fff; padding: 4px; border: 1px solid rgba(255,255,255,.15); }
.ft-qr-item span { display: block; margin-top: 6px; font-size: .78rem; color: #c7d2e0; opacity: .85; }
.ft-icp { color: #c7d2e0; opacity: .85; }
.ft-icp:hover { color: var(--accent); opacity: 1; }

@media (max-width: 820px) {
  .gal-grid { grid-template-columns: 1fr; }
}
