/* ============================================================
   公司官网样式
   设计原则：干净、专业、移动端优先；不依赖任何外部字体/CDN
   （避免国外字体 CDN 在国内加载缓慢，也避免备案/合规问题）
   ============================================================ */

:root {
  --brand: #0b5fa5;
  --brand-dark: #084a80;
  --brand-light: #e8f1fa;
  --accent: #f08a24;
  --text: #1f2937;
  --text-soft: #5b6675;
  --text-mute: #8a94a3;
  --line: #e5e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(15, 35, 65, .07);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
/*
  头部是**三栏网格**：品牌（左）| 导航（正中央）| 工具组（右）。

    grid-template-columns: 1fr auto 1fr;

  左右两栏都是 1fr（等宽），中间那栏是 auto —— 所以导航**天然落在正中央**，
  不需要绝对定位，也不会像绝对定位那样在窄屏上跟两边的元素重叠。
*/
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(15, 35, 65, .04);
}
/*
  头部整条**通栏**：内容顶到窗口左右边缘，不再受 1200px 居中容器限制。
  原因：老板要的是「公司名贴最左、热线贴最右」，而 .container 在宽屏上两边各留 250px 空白，
  看起来就是"没对齐、还有大片空间"。
  正文区（大图 / 统计 / 产品卡）仍然是 1200px 居中 —— 那是阅读区，故意不铺满。
  上限 1920px：超宽屏（2K/4K 全屏）时品牌和热线不至于隔得太远。
*/
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 72px;
  max-width: 1920px;
  padding-left: 40px;
  padding-right: 40px;
}

.brand {
  grid-column: 1; grid-row: 1; justify-self: start;
  display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0;
}
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; }
.brand-text em {
  font-style: normal; font-size: 12px; color: var(--text-mute);
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 导航落在中间那栏（auto 宽），左右两栏等宽所以它就是正中央 */
.site-nav { grid-column: 2; grid-row: 1; display: flex; gap: 6px; }
.site-nav a {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--text-soft); font-size: 15px; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.site-nav a.active { color: var(--brand); font-weight: 600; background: var(--brand-light); }

/* ---------- 右侧工具区：搜索 + 中英文 + 咨询热线 ---------- */
/*
  靠 justify-self:end 贴到最右。
  flex:0 1 auto + min-width:0 是关键：横排装不下时，让搜索框自己缩一点，
  而不是整组往右溢出（实测过：不这么写，热线会戳出去 25px）。
*/
.header-tools {
  grid-column: 3; grid-row: 1; justify-self: end;
  display: flex; align-items: center; gap: 14px;
  flex: 0 1 auto; min-width: 0;
}

/* 顶部搜索框（宽度可被压缩，最小 120px 左右） */
.nav-search { display: flex; align-items: stretch; flex: 0 1 auto; min-width: 124px; }
.nav-search input {
  width: 168px; min-width: 0; flex: 1 1 auto;
  padding: 8px 10px;
  border: 1px solid var(--line); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff;
}
.nav-search input:focus { outline: none; border-color: var(--brand); }
.nav-search button {
  padding: 0 14px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px; font-family: inherit; white-space: nowrap;
  flex: 0 0 auto;
}
.nav-search button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* 中英文切换（英文版还没做，EN 只是占位，不可点） */
.nav-lang {
  display: flex; align-items: center;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 14px; white-space: nowrap;
}
.nav-lang .lang-on { color: var(--brand); font-weight: 600; }
.nav-lang .lang-off { color: var(--text-mute); cursor: not-allowed; }
.nav-lang .lang-off::before { content: "|"; color: var(--line); margin: 0 6px; }

/* 咨询热线 */
.header-contact { text-align: right; flex-shrink: 0; }
.hc-label { display: block; font-size: 12px; color: var(--text-mute); line-height: 1.2; }
.hc-phone { font-size: 18px; color: var(--brand); letter-spacing: .5px; }

/* 公司标识（后台上传；没上传时用 .brand-mark 的文字方块占位） */
.brand-logo {
  display: block; height: 44px; width: auto; max-width: 170px;
  object-fit: contain;
}

/* 汉堡按钮：放第 2 栏（窄屏时导航脱离网格，这一栏就顶到右边） */
.nav-toggle {
  display: none;
  grid-column: 2; grid-row: 1; justify-self: end;
  width: 40px; height: 40px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--text-soft); }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  padding: 76px 0 84px;
  background: linear-gradient(135deg, #0b3f6e 0%, #0b5fa5 55%, #1878c4 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.35; font-weight: 700; }
.hero p { margin: 0 0 28px; font-size: 16px; color: rgba(255, 255, 255, .86); }

/* 公司英文名（在中文名下面） */
.hero .hero-en {
  margin: 0 0 14px; font-size: 15px; letter-spacing: .3px;
  color: rgba(255, 255, 255, .72);
}
.hero .hero-slogan { margin: 0 0 24px; font-size: 16px; color: rgba(255, 255, 255, .86); }

/*
  宣传册口号（中英两行），替换了原来那两个按钮。
  它现在是首屏最后一块，所以最后一行不留底边距。
*/
.hero .hero-motto { margin: 0; }
.hero .hero-motto .motto-cn {
  margin: 0 0 8px; font-size: 23px; font-weight: 600;
  letter-spacing: 4px; color: #fff;
}
.hero .hero-motto .motto-en {
  margin: 0; font-size: 14px; letter-spacing: .3px;
  color: rgba(255, 255, 255, .7);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions:not(:first-child) { margin-top: 26px; }

.btn {
  display: inline-block; padding: 11px 26px; border-radius: var(--radius);
  font-size: 15px; border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: .18s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d97a18; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------------- 数据条 ---------------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; text-align: center; }

/* ---------------- 首屏：公司照片作背景 ----------------
   后台「站点设置 → 首页数据展示 → 首页大图背景照片」上传后，<section class="hero"> 会多一个
   has-photo，照片铺满整块；没上传就完全不生效，还是上面那条蓝色渐变。

   为什么左边比右边暗：文字都靠左，右侧是大片留白（也是照片最好看的地方），
   所以遮罩做成从左到右变浅 —— 白字在任何照片上都读得清，右边又能看清照片。 */
.hero.has-photo { padding: 96px 0 104px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(6, 20, 38, .88) 0%,
    rgba(6, 20, 38, .66) 46%,
    rgba(6, 20, 38, .34) 100%);
}
/* 右上角那个装饰圆点在有照片时收掉，免得跟照片打架 */
.hero.has-photo::after { display: none; }
/* 照片上再加一层字影，遇到浅色照片（比如逆光拍的厂房）也不会糊成一片 */
.hero.has-photo .hero-inner { text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.hero.has-photo .hero-en,
.hero.has-photo .hero-slogan,
.hero.has-photo .hero-motto .motto-en { color: rgba(255, 255, 255, .88); }
.stat-num { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-mute); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 10px; font-size: 26px; }
.section-head p { margin: 0; color: var(--text-mute); font-size: 14px; }
.section-head-left { text-align: left; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d4dde8; }
.card-thumb {
  aspect-ratio: 4 / 3; background: var(--bg-soft);
  display: grid; place-items: center; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .ph { color: var(--text-mute); font-size: 13px; }
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--brand); }
.card-model { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.card-summary {
  color: var(--text-soft); font-size: 13px; margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-more { font-size: 13px; color: var(--brand); }

/* ---------------- 分类筛选 ---------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-bar a {
  padding: 7px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--text-soft); background: #fff;
}
.filter-bar a:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 页面标题条 ---------------- */
.page-hero {
  background: linear-gradient(135deg, #0b3f6e 0%, #0b5fa5 100%);
  color: #fff; padding: 48px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: 26px; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.breadcrumb { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }

/* ---------------- 文章列表 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-date {
  flex-shrink: 0; width: 92px; text-align: center;
  color: var(--text-mute); font-size: 13px; line-height: 1.4;
}
.news-date strong { display: block; font-size: 24px; color: var(--brand); }
.news-item-body h3 { margin: 0 0 8px; font-size: 17px; }
.news-item-body h3 a { color: var(--text); }
.news-item-body h3 a:hover { color: var(--brand); }
.news-item-body p { margin: 0; color: var(--text-soft); font-size: 14px; }
.tag {
  display: inline-block; padding: 1px 8px; margin-right: 8px;
  font-size: 12px; border-radius: 3px; background: var(--brand-light); color: var(--brand);
}
.tag-top { background: #fdeee0; color: var(--accent); }

/* ---------------- 正文排版 ---------------- */
.prose { font-size: 15px; line-height: 1.9; color: var(--text-soft); }
.prose h2 { margin: 32px 0 14px; font-size: 20px; color: var(--text); padding-left: 12px; border-left: 4px solid var(--brand); }
.prose h3 { margin: 24px 0 10px; font-size: 17px; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); margin: 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 600; color: var(--text); }

/* 占位内容醒目标注，避免误上线 */
.placeholder {
  background: #fff8e6; border-left: 3px solid var(--accent);
  padding: 8px 12px; color: #a35a00; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice-box {
  margin: 24px 0; padding: 14px 18px; background: #fff8e6;
  border: 1px solid #ffe0a8; border-radius: var(--radius);
  color: #8a5a00; font-size: 14px;
}

/* ---------------- 滚动淡入（首次滑到时内容从无到有） ---------------- */
/*
  只有浏览器加了 .js-anim（见 header.ejs 里的内联脚本）才会把元素藏起来，
  所以禁用 JS / 老浏览器看到的是完整内容，绝不会出现"内容被藏住看不见"。

  site.js 负责：首屏已经看得见的元素直接显示、不做动画；
  首屏之外的等滚到眼前再加 .is-visible，同一组里依次错开几十毫秒。
*/
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s cubic-bezier(.22, .61, .36, 1),
              transform .55s cubic-bezier(.22, .61, .36, 1);
}
.js-anim [data-reveal].is-visible { opacity: 1; transform: none; }

/* 系统里关了动画就彻底不做，别硬塞 */
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 产品详情 ---------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery {
  position: relative;
  aspect-ratio: 4 / 3; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.product-gallery .pg-stage { width: 100%; height: 100%; display: grid; place-items: center; }
.product-gallery .pg-media { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 视频用 contain：16:9 的片子放进 4:3 的框里不会被裁掉上下 */
.product-gallery .pg-stage.is-video .pg-media { object-fit: contain; background: #0d1117; }
.product-gallery .ph { color: var(--text-mute); }

/* 左右切换按钮：半透明、盖在图片/视频上方，只在鼠标移入时出现。
   宽度固定 44px（不宽），高度撑满内容 —— 中间那一大片留给「点图放大 / 点视频播放暂停」。 */
.pg-nav {
  position: absolute; top: 0; bottom: 0; width: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(17, 24, 39, .28); color: #fff;
  font-size: 26px; line-height: 1; font-family: inherit;
  opacity: 0; transition: opacity .18s ease, background .18s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.pg-prev { left: 0; }
.pg-next { right: 0; }
.product-gallery:hover .pg-nav,
.product-gallery:focus-within .pg-nav { opacity: 1; }
.pg-nav:hover { background: rgba(17, 24, 39, .5); }
.pg-nav:focus-visible { outline: 2px solid #fff; outline-offset: -3px; opacity: 1; }
/* 当前款式只有一项媒体时，不显示左右按钮 */
.product-gallery.single .pg-nav { display: none; }
/* 触屏没有 hover 这回事：按钮常显但淡一点 */
@media (hover: none) {
  .pg-nav { opacity: .55; }
}

/* 图片放大用的灯箱 */
.pg-lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: none; place-items: center;
  background: rgba(0, 0, 0, .88); padding: 3vmin;
}
.pg-lightbox.open { display: grid; }
.pg-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pg-lightbox-close {
  position: absolute; top: 14px; right: 18px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; font-family: inherit;
}
.pg-lightbox-close:hover { background: rgba(255, 255, 255, .3); }
.product-info h1 { margin: 0 0 10px; font-size: 24px; }
.product-info .model { color: var(--text-mute); font-size: 14px; margin-bottom: 18px; }
.product-info .summary { color: var(--text-soft); margin-bottom: 24px; }
.param-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.param-table th, .param-table td { border-bottom: 1px solid var(--line); padding: 9px 0; text-align: left; }
.param-table th { width: 120px; color: var(--text-mute); font-weight: 400; }

/* 随款式变化的参数：淡色标出，让"切换后哪些值变了"一眼可见 */
.param-table tr.from-variant th,
.param-table tr.from-variant td { background: var(--brand-light, #e8f1fa); }
.param-table tr.from-variant th { color: var(--brand); }
.param-hint { font-size: 12px; color: var(--text-mute); margin: -8px 0 6px; }

/* ---------------- 购买链接（款式可用后台配置多个） ---------------- */
.buy-links { margin-top: 16px; }
.buy-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/*
  必须显式写这条：[hidden] 的 display:none 来自浏览器默认样式表，
  优先级低于作者样式 —— 上面 .buy-group 一旦声明了 display:flex，
  hidden 属性就完全失效，切换款式时旧的购买链接组不会消失。
*/
.buy-group[hidden] { display: none; }
.buy-group + .buy-group { margin-top: 10px; }
.buy-group-label { font-size: 13px; color: var(--text-mute); }
.btn-buy {
  background: #fff; color: var(--accent); border: 1px solid var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-buy:hover { background: var(--accent); color: #fff; }
.buy-arrow { font-size: 12px; opacity: .8; }

/* 产品详情正文：与上方信息区留一点距离即可，之前 52px 太空 */
.product-detail-prose { margin-top: 26px; max-width: 900px; }

/* 「产品详情」现在放在左栏、款式选择器的下方：
   右侧参数表有 20 多条时会很高，把详情放左栏正好填掉那片空白 */
.pd-detail { margin-top: 34px; }
.pd-detail > h2:first-child { margin-top: 0; }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; color: var(--text); }
.form-field label .req { color: #d33; margin-left: 2px; }
.form-field input, .form-field textarea, .form-field select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff; width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 95, 165, .1);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-mute); }
.consent-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-soft); }
.consent-row input { width: auto; margin-top: 4px; }

.form-msg { padding: 11px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: none; }
.form-msg.ok { display: block; background: #e8f6ec; color: #1a7f37; border: 1px solid #b7e0c3; }
.form-msg.err { display: block; background: #fdecec; color: #b42318; border: 1px solid #f5c2c0; }

/* ---------------- 联系信息块 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-list .k { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
.contact-list .v { font-size: 16px; color: var(--text); }

/* ---------------- 分页 ---------------- */
.pagination-wrap {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--text-soft);
  background: #fff; transition: all .15s ease; line-height: 1;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 2px 8px rgba(11,95,165,.12); }
.pagination a:active { transform: translateY(1px); }
.pagination .current {
  background: var(--brand); border-color: var(--brand); color: #fff;
  font-weight: 700; box-shadow: 0 3px 10px rgba(11,95,165,.25);
}
.pagination .disabled { color: #ccd3dc; background: #fafbfd; border-color: #eef1f6; }
.pagination .gap { border: none; background: none; color: var(--text-mute); min-width: 22px; padding: 0 2px; }
/* 上一页/下一页：宽一点，箭号与文字分开排 */
.pagination .pg-step { min-width: 78px; gap: 5px; }
.pagination .pg-edge { min-width: 44px; }
.pagination-info { font-size: 13px; color: var(--text-mute); }
.pagination-info strong { color: var(--text); font-weight: 600; }

/* ---------------- 价格展示（前台只显示对外价） ---------------- */
.card-price { margin-bottom: 10px; }
.price-num { font-size: 19px; font-weight: 700; color: var(--accent); }
.price-ask { font-size: 15px; font-weight: 600; color: var(--text-mute); }
.detail-price {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 0 18px; margin-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.detail-price .price-num { font-size: 26px; }
.detail-price .price-unit { font-size: 13px; color: var(--text-mute); }

/* ---------------- 颜色选择器（产品详情） ---------------- */
.color-picker {
  margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.color-picker-label { font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
.color-picker-label strong { color: var(--text); font-size: 15px; }
.color-picker-label span { color: var(--accent); font-weight: 600; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.color-swatch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13px; color: var(--text-soft);
  cursor: pointer; font-family: inherit; transition: .15s;
}
.color-swatch:hover { border-color: var(--brand); color: var(--brand); }
.color-swatch.active {
  border-color: var(--brand); background: var(--brand-light);
  color: var(--brand); font-weight: 600;
}
.swatch-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .18); flex-shrink: 0;
}
.color-extra { margin-top: 10px; font-size: 13px; color: var(--text-mute); min-height: 18px; }

/* 产品卡片上的分组标签与颜色数提示 */
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.card-colors { font-size: 12px; color: var(--text-mute); }

/* 说明书下载按钮稍作区分 */
.manual-btn { border-color: var(--accent); color: var(--accent); }
.manual-btn:hover { background: var(--accent); color: #fff; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #10243a; color: rgba(255, 255, 255, .7); margin-top: 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding: 48px 20px 36px; }
.footer-col h4 { margin: 0 0 6px; color: #fff; font-size: 15px; }
.footer-en { margin: 0 0 14px; font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .2px; }
.footer-slogan { color: rgba(255, 255, 255, .8); margin: 0 0 12px; }
.footer-desc { margin: 0 0 6px; font-size: 13px; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; font-size: 13px; }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; text-align: center; font-size: 13px; }
.footer-bottom p { margin: 0 0 4px; }
.footer-compliance a { color: rgba(255, 255, 255, .7); }
.footer-compliance .sep { margin: 0 8px; color: rgba(255, 255, 255, .3); }

/* ---------------- 错误页 ---------------- */
.error-page { padding: 100px 0; text-align: center; }
.error-page .code { font-size: 72px; font-weight: 700; color: var(--brand); line-height: 1; }
.error-page h1 { margin: 18px 0 10px; font-size: 22px; }
.error-page p { color: var(--text-mute); margin-bottom: 26px; }

/* ---------------- 响应式 ---------------- */
/*
  顶部横排变长了（品牌 + 导航 + 搜索 + 中英文 + 热线），断点按「装不下就先放弃哪个」排：

    1280px 以下：先收起咨询热线（页脚和「联系我们」里都还有电话）
    1100px 以下：导航收进汉堡菜单（搜索和中英文留在顶部，工具组换到第二行）
     720px 以下：搜索框铺满整行
*/
@media (max-width: 1280px) {
  .header-inner { gap: 14px; }
  .nav-search input { width: 140px; }
  .header-contact { display: none; }
}

@media (max-width: 1100px) {
  /*
    导航脱离网格变成下拉菜单后，网格只剩两栏：
    第 1 栏品牌、第 2 栏汉堡按钮，工具组单独占第二行整行。
  */
  .header-inner { grid-template-columns: 1fr auto; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    /*
      top:100% 是相对 .site-header（它是 sticky，本身就是定位元素）。
      以前写死 top:72px，头部一变高下拉菜单就会盖住内容。
    */
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 0;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { border-radius: 0; padding: 13px 20px; }
  .header-tools { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .nav-search { flex: 1; }
  .nav-search input { width: auto; flex: 1; }
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  /*
    手机上把「产品详情」排到最后：图片 → 款式 → 价格/参数 → 详情。
    左栏用 display:contents 拆开，让它的三个子块能被 order 单独排序，
    否则详情会夹在款式和价格之间，把「咨询此产品」按钮挤到很下面。
  */
  .product-detail { display: flex; flex-direction: column; gap: 28px; }
  .pd-left { display: contents; }
  .product-gallery { order: 1; }
  .color-picker { order: 2; }
  .product-info { order: 3; }
  .pd-detail { order: 4; margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }

  /* 手机上搜索框铺满整行（工具组此时已经在第二行，见 1100px 断点） */
  .header-inner { padding: 10px 16px; gap: 10px 12px; }
  .header-tools { gap: 10px; }
  .nav-search { flex: 1; }
  .nav-search input { flex: 1; width: auto; padding: 9px 12px; font-size: 15px; }
  .nav-search button { padding: 0 16px; }
  .nav-lang { padding-left: 10px; font-size: 15px; }
  .nav-lang .lang-off::before { margin: 0 8px; }

  .hero { padding: 52px 0 60px; }
  /* 窄屏上文字几乎占满整行，横向遮罩（左深右浅）就不管用了，改成整体压暗 */
  .hero.has-photo { padding: 62px 0 70px; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(6, 20, 38, .84) 0%, rgba(6, 20, 38, .78) 100%);
  }
  .hero h1 { font-size: 25px; }
  .hero .hero-en { font-size: 13px; }
  .hero .hero-motto .motto-cn { font-size: 19px; letter-spacing: 2px; }
  .hero .hero-motto .motto-en { font-size: 13px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat-num { font-size: 24px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .news-item { gap: 14px; }
  .news-date { width: 66px; }
  .news-date strong { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; }
}
