/* ============================================================
   工程补充样式（模板新增 —— 原型 style.css / lines.css 之外的必要补充）
   原则：不改原型既有视觉，只补"工程化后必须有"的兜底。
   ============================================================ */

/* 🔴 无 JS / SSR 首屏兜底：.fade-up 依赖 JS 加 .is-in 才显示，
   若脚本没跑或观察器未触发，整块内容会永远隐形（原型里靠 script.js 做这件事）。
   这里给一个 2.6 秒后的自动显示兜底 —— 动画照常，但绝不留空白块。 */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}

/* ---------- 页面骨架（内页） ---------- */
.page-section {
  padding: 120px 0 90px;
  min-height: 52vh;
  background: #faf8f5;
}
.page-section.tone-stone { background: #f7f4f0; }

.page-head {
  padding: 58px 0 34px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  margin-bottom: 46px;
}
.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #2b2724;
  margin: 0 0 14px;
}
.crumb { font-size: 13px; color: #8b8178; }
.crumb a { color: #8b8178; text-decoration: none; }
.crumb a:hover { color: #b4462f; }
.crumb i { font-style: normal; margin: 0 8px; opacity: .6; }

.page-loading { padding: 60px 0; text-align: center; color: #8b8178; font-size: 15px; }

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: #6f665f;
}
.empty-state p { font-size: 16px; margin-bottom: 26px; }
.empty-state a { color: #b4462f; }

/* 空栏目补位（客户 2026-10-29 质检 #12–15）：空态里嵌一排「其他在售系列」卡片。
   .empty-state 是居中+大字号，卡片文字要按自己的排版走，否则标题/摘要会被放大成正文。 */
.empty-state .empty-sub {
  margin: 4px 0 24px;
  font-size: 20px;
  font-weight: 700;
  color: #2f2822;
}
.empty-state .empty-grid { text-align: left; margin-bottom: 34px; }
.empty-state .empty-grid .info-card { color: #2f2822; }
.empty-state .empty-grid .info-card h2 { margin: 0 0 8px; font-size: 17px; color: #2f2822; }
.empty-state .empty-grid .info-card p { margin: 0; font-size: 14px; line-height: 1.7; color: #6f665f; }
.not-found .nf-404 {
  font-size: 84px;
  font-weight: 800;
  color: #b4462f;
  letter-spacing: 6px;
  margin: 0 0 10px;
}

/* ---------- 卡片网格（列表页） ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.info-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .28s ease, transform .28s ease;
}
.info-card:hover { box-shadow: 0 14px 34px rgba(80, 50, 30, .12); transform: translateY(-4px); }
.info-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #f1ece7; }
.info-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-card-body { padding: 20px 22px 24px; }
.info-card-body h3 { font-size: 17px; color: #2b2724; margin: 0 0 10px; line-height: 1.5; }
.info-card-body p {
  font-size: 13.5px; color: #7d736b; line-height: 1.75; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.info-card-date { font-size: 12px; color: #b0a69c; }

/* ---------- 文章正文（详情页） ---------- */
.article-body {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 4px;
  padding: 46px 52px 52px;
  max-width: 860px;
}
.article-cover { margin-bottom: 26px; border-radius: 3px; overflow: hidden; }
.article-cover img { width: 100%; display: block; }
.article-lead {
  font-size: 16px; color: #5f564e; line-height: 1.95;
  padding-left: 16px; border-left: 3px solid #b4462f; margin: 0 0 26px;
}
.article-content { font-size: 15.5px; line-height: 2.05; color: #3c3630; }
.article-content p { margin: 0 0 18px; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 20px auto; }
/* 平台富文本图没有尺寸元数据，统一预留 4:3 展示盒，避免加载时页面跳动。 */
.re-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f7f4f0; }
.article-content img.re-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f7f4f0; }
/* 空图片不能再由固定比例渲染成空白占位。 */
.article-content img:not([src]),
.article-content img[src=""],
.article-content img[src="#"] {
  display: none !important;
}
.article-content h2 { font-size: 22px; margin: 30px 0 14px; color: #2b2724; }
.article-content h3 { font-size: 18px; margin: 24px 0 12px; color: #2b2724; }

.article-faqs { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, .07); }
.article-faqs h3 { font-size: 20px; margin: 0 0 20px; color: #2b2724; }
.faq-item { margin-bottom: 18px; }
.faq-item b { display: block; font-size: 15.5px; color: #b4462f; margin-bottom: 7px; }
.faq-item p { font-size: 14.5px; color: #6f665f; line-height: 1.85; margin: 0; }

.article-back { margin-top: 36px; }

/* ---------- 加盟页 ---------- */
.join-intro h2 { font-size: 28px; color: #2b2724; margin: 0 0 16px; }
.join-intro p { font-size: 15.5px; line-height: 2; color: #5f564e; max-width: 860px; margin: 0; }

.sub-title {
  font-size: 21px; color: #2b2724; margin: 52px 0 22px;
  padding-left: 14px; border-left: 4px solid #b4462f;
}

.prospect-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .prospect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prospect-grid { grid-template-columns: 1fr; } }
.prospect-card {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 4px; padding: 22px 20px;
}
.prospect-card b { display: block; font-size: 16px; color: #b4462f; margin-bottom: 10px; }
.prospect-card p { font-size: 13.5px; color: #7d736b; line-height: 1.8; margin: 0; }

.page-steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .page-steps { grid-template-columns: 1fr !important; } }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }
.support-grid > div { background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 4px; padding: 24px 22px; }
.support-grid b { display: block; font-size: 16px; color: #2b2724; margin-bottom: 10px; }
.support-grid p { font-size: 13.5px; color: #7d736b; line-height: 1.8; margin: 0; }

.join-cta-bar {
  margin-top: 48px; padding: 26px 30px; background: #2b2724; border-radius: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.join-cta-bar span { color: #f3ece4; font-size: 18px; letter-spacing: 1px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 24px; color: #2b2724; margin: 0 0 26px; }
.contact-info dl { display: grid; grid-template-columns: 96px 1fr; gap: 16px 18px; margin: 0 0 26px; }
.contact-info dt { color: #8b8178; font-size: 14.5px; }
.contact-info dd { margin: 0; color: #2b2724; font-size: 15px; }
.contact-info dd a { color: #b4462f; text-decoration: none; }
.contact-note { font-size: 14.5px; color: #6f665f; line-height: 1.9; margin: 0 0 26px; }
.contact-map { border-radius: 4px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); }
/* 🔴 C172②：图片盒子必须被 CSS 钉住（宽高或 aspect-ratio），否则下图前不知道盒子多大 ⇒ CLS。
   ⚠️ 只允许给「原型 style.css 未定义尺寸」的图片补；只要原型已定义（如 .gal-card .ph、
   .nf-cover img、.ecom-qr img、.walk-photo img、.fp-photo img、.sb-qr-pop img），
   这里一律不许再写 —— 同名覆盖会把原型视觉改掉（曾经把荣誉证书裁掉大半、
   把电商二维码从 cover 改成 contain、把侧栏二维码从 136px 改成 150px）。
   下列四条是原站首页里唯一没有尺寸约束的图片，已确认与原型取值一致。 */
/* 客户 2026-10-19：logo 尺寸改由 style.css 统一管（含各断点的等比缩放），
   这里只保留不改变尺寸表现的两条，避免与 style.css 的同名规则打架。 */
.logo-img { object-fit: contain; display: block; }
.contact-map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.info-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.contact-map figcaption {
  padding: 12px 16px; font-size: 13px; color: #8b8178; background: #fff; text-align: center;
}

/* ---------- 品牌印象卡（原型只有卡片，无文本面板） ---------- */
/* 原型 style.css 里不存在 .fp-pane / .section-more，这里也不保留 —— */

/* 产品分类条：接入后台栏目后，每项从 <span> 变成可点击的 <a>（跳该系列栏目页）。
   原型针对 span 的 .product-cat 样式全部继承，这里只补链接默认样式。 */
a.product-cat {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* 🔴 客户指令（2026-10-13）：产品图容器改成【正方形 + 内边距 10px】。
   ⚠️ 这条是**有意覆盖**原型 style.css 的 .product-img（原为 aspect-ratio:1.5/1、padding:26px）——
   与上面"site.css 只准纯新增"的原则相冲突，但属客户明确要求，故保留并在此标注来由。
   图片本身是 object-fit:contain + max-width/height:100%，盒子改方后图片会完整显示、不会被裁。
   .product-img 目前只用在首页产品卡（src/components/home-sections-a.tsx）。 */
.product-img {
  aspect-ratio: 1 / 1;
  padding: 10px;
}

/* 资讯分类条：接入后台栏目后从 <span> 变成可点击的 <a>（跳对应栏目页）。
   原型样式写在 .news-cats span 上，这里给 a 等价补一份（含 hover 变红）。 */
.news-cats a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}
.news-cats a:hover { color: var(--color-qiang-red); }

/* 品牌印象四张卡：由 <button> 改成 <a>（点击跳对应栏目）。
   卡片内的图标与文字各自带 color:#fff，不受链接默认色影响；
   这里只把链接的下划线与默认色一并消掉，保证外观与改动前一致。
   容器 .fp-cards 是 grid ⇒ grid item 会被块化，原型的 aspect-ratio 继续生效。 */
a.fp-card {
  color: inherit;
  text-decoration: none;
}

/* 🔴 不要再给 .to-top 加 position:fixed 之类的规则！
   原型里 #toTop 是 .side-bar 内部的一个 .sb-item（无独立样式、无独立显隐逻辑），
   由 .side-bar 的 opacity/visibility 统一控制。之前这里加过 fixed 定位，
   会让侧栏里的"顶部"按钮脱出侧栏浮到页面右下角 —— 与原型不符，已移除。 */

/* ---------- 页脚底部合规条（备案号 · 技术支持 · 企业资质） ----------
   参考 D:/w3cloud-dev/004youranlipin/site 的页脚工具条：与版权同行左右分布，
   备案与技术支持合成一组（中间「·」），「企业资质」是组内可点链接。
   配色沿用本站页脚（白字 + 低透明度，hover 变燕麦黄 #f0cd94）。 */
.footer-copy { margin: 0; }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .62);
}

.footer-legal-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
}

.footer-legal-sep { opacity: .45; user-select: none; }

.footer-legal a { color: rgba(255, 255, 255, .62); text-decoration: none; transition: color .3s ease; }
.footer-legal a:hover { color: #f0cd94; }

@media (max-width: 760px) {
  .footer-legal { justify-content: center; font-size: 12.5px; }
}

/* ---------- 企业资质页：证照墙 + 看大图覆盖层 ----------
   一格 = 一份资质（主图 + 证书名 + 「共 N 张」角标），点开看全部。
   交互与版式参考 004youranlipin/site 的 cert-wall（已过客户验收）。
   证照多为竖版 ⇒ 固定高度图框 + object-fit:contain（不裁边、横版也不撑变形）。 */
.qual-registration {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 4px;
  padding: 30px 34px 34px;
  margin-bottom: 34px;
}
.qual-registration h2 { font-size: 22px; color: #2b2724; margin: 0 0 8px; }
.qual-registration > p { font-size: 14px; color: #8b8178; margin: 0 0 22px; }
.qual-reg-table { display: grid; grid-template-columns: 150px 1fr; gap: 14px 20px; }
.qual-reg-table dt { color: #8b8178; font-size: 14.5px; }
.qual-reg-table dd { margin: 0; color: #2b2724; font-size: 15px; word-break: break-all; }
@media (max-width: 620px) {
  .qual-registration { padding: 22px 20px 24px; }
  .qual-reg-table { grid-template-columns: 1fr; gap: 2px 0; }
  .qual-reg-table dd { margin: 0 0 12px; }
}

.cert-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) { .cert-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 560px) { .cert-wall { grid-template-columns: 1fr; } }

.cert-wall-item { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.cert-wall-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cert-wall-btn:hover { transform: translateY(-2px); border-color: var(--color-qiang-red); box-shadow: 0 12px 28px rgba(93, 68, 51, .14); }
.cert-wall-btn:focus-visible { outline: 2px solid var(--color-qiang-red); outline-offset: 2px; }
.cert-wall-img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f7f4f0;
  border-radius: 3px;
}
.cert-wall-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #fff;
  background: rgba(51, 36, 26, .62);
  border-radius: 999px;
}
.cert-wall-cap { margin: 0; font-size: 14.5px; line-height: 1.7; text-align: center; color: #6b5544; }

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(30, 20, 13, .86);
}
.cert-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}
.cert-lightbox-img { display: block; max-width: 100%; max-height: 76vh; width: auto; height: auto; background: #fff; border-radius: 4px; }
.cert-lightbox-cap { margin: 0; color: #f3ece4; font-size: 15px; text-align: center; }
.cert-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  transition: background .25s;
}
.cert-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.cert-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  transition: background .25s;
}
.cert-lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.cert-lightbox-prev { left: -64px; }
.cert-lightbox-next { right: -64px; }
.cert-lightbox-count { color: rgba(255, 255, 255, .75); font-size: 13px; }
@media (max-width: 760px) {
  .cert-lightbox { padding: 16px; }
  .cert-lightbox-prev { left: 4px; }
  .cert-lightbox-next { right: 4px; }
  .cert-lightbox-close { top: -44px; right: 4px; }
}

/* ---------- 首页卡片整块可点（本轮客户要求：缩略图 + 标题都要进详情） ----------
   产品卡 / 荣誉基地店铺卡 / 资讯卡从 <article>/<figure> 改成 <Link>（<a>），
   这里只补链接默认样式复位；尺寸/排版仍走原型既有类名（.product-card / .gal-card / .news-*）。 */
a.product-card,
a.gal-card,
a.news-feature,
a.news-item {
  color: inherit;
  text-decoration: none;
}
a.product-card { display: block; }
a.gal-card { display: block; }
a.news-feature { display: block; }
/* 🔴 a.news-item 不能吃掉 .news-item 的 display:flex（0,1,1 会盖掉 0,1,0），
   否则「日期 | 竖线 | 标题」会变成上下堆叠、错位。这里显式还原。 */
a.news-item { display: flex; }

/* 资讯标题由 <h4> 改 <h3>（修正标题层级 h2→h3 的跳级）——
   原型样式写在 .news-item h4 上，这里给 h3 等价补一份，视觉不变。 */
.news-item h3 {
  font-size: 22px;
  font-weight: normal;
  line-height: 1.8;
  letter-spacing: .5px;
  color: var(--color-text-1);
  transition: color .3s ease;
}
.news-item:hover h3 { color: var(--color-qiang-red); }

/* 联系页公司名由 <h3> 改 <h2>（修正 h1→h3 跳级），样式等价补一份。 */
.contact-info h2 { font-size: 24px; color: #2b2724; margin: 0 0 26px; }

/* 列表卡片标题由 <h3> 改 <h2>、页脚栏目标题由 <h4> 改 <h2>
   （都为了修正标题层级跳级）：样式等价补一份，视觉不变。 */
.info-card-body h2 { font-size: 17px; color: #2b2724; margin: 0 0 10px; line-height: 1.5; }
.footer-links h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
}

/* ---------- 可访问性：加深低对比度文字 ----------
   #8b8178 在浅底（#fff / #f7f4f0）上的对比度不足 4.5:1，换成 #5f564e。 */
.crumb,
.crumb a,
.page-loading,
.contact-info dt,
.contact-map figcaption,
.qual-registration > p,
.qual-reg-table dt {
  color: #5f564e;
}
/* 列表/相关卡的日期色 #b0a69c 对比度不足（2.4:1）⇒ 加深 */
.info-card-date { color: #6f665f; }
/* 后台富文本可能带任意内联文字色（#e53333 / #ef4444 等对比度不达标）⇒ 回落站点正文色 */
.article-content [style*="color"] { color: inherit !important; }

/* ============================================================
   详情页重排版（产品详情 / 新闻详情）—— 客户 2026-10-13
   ============================================================ */

/* 独立面包屑（不放在 .page-head 里时用） */
.crumb-top { padding: 34px 0 18px; font-size: 13.5px; }
.crumb-top a { color: #5f564e; display: inline-block; padding: 4px 3px; }
.crumb-top span { color: #2b2724; }

/* ---------- 产品详情 ---------- */
.pdetail {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 4px;
  padding: 34px;
  margin-bottom: 34px;
}
.pdetail-media { min-width: 0; }
.pdetail-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7f4f0;
  border-radius: 4px;
  display: block;
}
.pdetail-noimg {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: #f7f4f0; border-radius: 4px; color: #8b8178;
}
.pdetail-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pdetail-thumb { width: 68px; height: 68px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 3px; overflow: hidden; background: #fff; }
.pdetail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdetail-info { min-width: 0; padding-top: 6px; }
.pdetail-cat {
  display: inline-block;
  font-size: 12.5px; letter-spacing: 1.5px; color: #9e2b25;
  background: rgba(158, 43, 37, .07); border: 1px solid rgba(158, 43, 37, .18);
  border-radius: 999px; padding: 3px 14px; margin-bottom: 16px;
}
.pdetail-title { font-size: 30px; font-weight: 700; letter-spacing: 2px; color: #2b2724; margin: 0 0 16px; line-height: 1.4; }
.pdetail-lead { font-size: 15.5px; color: #5f564e; line-height: 1.95; margin: 0 0 22px; padding-left: 14px; border-left: 3px solid #b4462f; }
.pdetail-meta { display: grid; gap: 10px; margin: 0 0 26px; }
.pdetail-meta li { display: flex; gap: 12px; font-size: 14.5px; color: #2b2724; }
.pdetail-meta li span { flex: 0 0 76px; color: #5f564e; }
.pdetail-meta li b { font-weight: 600; }
.pdetail-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.pdetail-consult {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: #5d4433;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
  user-select: text;
}
.pdetail-consult span { opacity: .78; }
.pdetail-consult strong { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: 1.5px; }
.pdetail-tip { font-size: 13px; line-height: 1.85; color: #5f564e; margin: 0; }

.pdetail-body {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 4px;
  padding: 34px 40px 40px; margin-bottom: 40px; max-width: none;
}

/* ---------- 新闻 / 文章详情 ---------- */
.container.container-narrow { max-width: 920px; }
.news-article {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 4px;
  padding: 44px 48px 50px;
  margin-bottom: 40px;
}
.news-article-head { margin-bottom: 26px; }
.news-article-cat {
  display: inline-block; font-size: 12.5px; letter-spacing: 1.5px; color: #9e2b25;
  background: rgba(158, 43, 37, .07); border: 1px solid rgba(158, 43, 37, .18);
  border-radius: 999px; padding: 3px 14px; margin-bottom: 16px;
}
.news-article-title { font-size: 30px; font-weight: 700; letter-spacing: 1px; color: #2b2724; line-height: 1.5; margin: 0 0 16px; }
.news-article-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #5f564e; }
.news-article-meta i { font-style: normal; opacity: .5; }
.news-article-cover { margin-bottom: 28px; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; background: #f7f4f0; }
.news-article-cover img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* 相关阅读 */
.related-block { margin-top: 50px; }
.related-block .card-grid { grid-template-columns: repeat(2, 1fr); }

/* 同分类上一篇 / 下一篇：所有详情页共用，分类边界缺项时不渲染占位。 */
.post-adjacent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.post-adjacent-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  color: #2b2724;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.post-adjacent-item:hover {
  border-color: rgba(180, 70, 47, .35);
  box-shadow: 0 10px 26px rgba(75, 52, 35, .08);
  transform: translateY(-2px);
}
.post-adjacent-item.is-next {
  align-items: flex-end;
  text-align: right;
}
.post-adjacent-label {
  color: #b4462f;
  font-size: 12.5px;
  letter-spacing: 1.2px;
}
.post-adjacent-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #2b2724;
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ============================================================
   关于页（企业简介综合单页）
   ============================================================ */
.about-page { max-width: 1100px; }
.about-block { margin-bottom: 54px; }
.about-article {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 4px;
  padding: 34px 40px 38px;
}
.about-lead {
  font-size: 15.5px; color: #5f564e; line-height: 1.95;
  padding-left: 14px; border-left: 3px solid #b4462f; margin: 0 0 22px;
}
.about-note { font-size: 14.5px; color: #5f564e; line-height: 1.9; margin: 0 0 22px; }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 54px; }
.about-stat {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 4px;
  padding: 26px 18px; text-align: center;
}
.about-stat-num { font-size: 38px; font-weight: 700; color: #9e2b25; line-height: 1; letter-spacing: 1px; }
.about-stat-num small { font-size: 16px; font-weight: 600; margin-left: 3px; }
.about-stat-label { margin-top: 10px; font-size: 14px; color: #5f564e; letter-spacing: 1px; }

.about-founder { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.about-founder-photo { margin: 0; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 4px; overflow: hidden; }
.about-founder-photo img { width: 100%; height: auto; display: block; }
.about-founder-photo figcaption { padding: 12px 14px; font-size: 13.5px; color: #2b2724; text-align: center; background: #f7f4f0; border-top: 1px solid rgba(0, 0, 0, .06); }
.about-founder-body .about-article { padding: 30px 34px 34px; }

.about-years { display: grid; gap: 14px; }
.about-years li { display: flex; gap: 16px; line-height: 1.9; }
.about-years b { flex: 0 0 62px; color: #9e2b25; font-weight: 700; letter-spacing: 1px; }
.about-years span { color: #3c3630; font-size: 15px; }

.about-honors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-honor { margin: 0; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 4px; overflow: hidden; }
.about-honor img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f7f4f0; display: block; }
.about-honor figcaption { padding: 10px 8px; font-size: 13.5px; color: #5f564e; text-align: center; background: #f6f1e7; border-top: 1px solid rgba(0, 0, 0, .06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.about-cta { margin-top: 10px; }
.about-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 首页新闻分类条：由 <a> 改成可切换的按钮 + 「查看更多」 */
.news-cats button,
.news-cats a { font: inherit; }
.news-cat-btn {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color .3s ease;
}
.news-cat-btn:hover,
.news-cat-btn.is-on { color: var(--color-qiang-red); }
.news-more {
  margin-left: 12px;
  color: var(--color-qiang-red);
  white-space: nowrap;
}
.news-more i { font-style: normal; margin-left: 2px; }
.news-loading,
.news-empty {
  padding: 48px 0;
  text-align: center;
  color: #5f564e;
  font-size: 15px;
}

@media (max-width: 960px) {
  .pdetail { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .about-founder { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-honors { grid-template-columns: repeat(2, 1fr); }
  .news-article { padding: 30px 22px 34px; }
  .news-article-title, .pdetail-title { font-size: 24px; }
  .related-block .card-grid { grid-template-columns: 1fr; }
  .pdetail-body { padding: 24px 20px 28px; }
  .about-article { padding: 24px 20px 26px; }
}

/* ---------- 联系页地图（天地图）容器与底部说明 ---------- */
.contact-map .tdt-map {
  position: relative;
  width: 100%;
  height: 460px;
  background: #eceae6;
  overflow: hidden;
}
/* 🔴 这里 width/height 都给死 ⇒ aspect-ratio 失效，静态图铺满（object-fit:cover 裁边不拉伸） */
.contact-map .tdt-map .tdt-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-map .tdt-note {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  margin: 0;
  text-align: center;
  color: #8b8178;
}
.contact-map-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-map-cap a { color: #b4462f; }
@media (max-width: 900px) {
  .contact-map .tdt-map { height: 340px; }
}

/* ---------- 联系页在线留言（后台 form_contact 动态字段） ---------- */
.contact-form-section {
  margin-top: 42px;
  padding: 38px 42px 40px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 4px;
  box-shadow: 0 16px 42px rgba(75, 52, 35, .06);
}
.contact-form-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.contact-form-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 3px;
  color: #9e2b25;
}
.contact-form-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 1px;
  color: #2b2724;
}
.contact-form-head p {
  margin: 0;
  color: #5f564e;
  font-size: 14.5px;
  line-height: 1.8;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.cf-field { min-width: 0; }
.cf-field.is-wide { grid-column: 1 / -1; }
.cf-label {
  display: block;
  margin-bottom: 8px;
  color: #433b35;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.cf-label em,
.contact-form-note em {
  margin-left: 4px;
  font-style: normal;
  color: #b4462f;
}
.cf-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(43, 39, 36, .16);
  border-radius: 3px;
  background: #fdfcf9;
  color: #2b2724;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cf-input:focus {
  border-color: #b4462f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 70, 47, .1);
}
.cf-field.has-error .cf-input,
.cf-field.has-error .cf-choice-group {
  border-color: #b4462f;
}
.cf-error {
  margin: 6px 0 0;
  color: #9e2b25;
  font-size: 12.5px;
  line-height: 1.55;
}
.cf-input::placeholder { color: #a69b91; }
.cf-textarea {
  min-height: 132px;
  resize: vertical;
}
.cf-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.cf-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}
.cf-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4b433d;
  font-size: 14px;
  cursor: pointer;
}
.cf-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #9e2b25;
}
.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.contact-form-actions .btn:disabled {
  opacity: .62;
  cursor: wait;
}
.contact-form-note {
  color: #6f665f;
  font-size: 13px;
}
.contact-form-state {
  padding: 28px 0;
  color: #5f564e;
  font-size: 14.5px;
}
.contact-form-state a { color: #b4462f; }
.contact-form-message {
  margin-top: 18px;
  padding: 12px 15px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.7;
}
.contact-form-message.is-success {
  color: #315b3b;
  background: #edf6ef;
  border: 1px solid rgba(49, 91, 59, .16);
}
.contact-form-message.is-error {
  color: #8f2822;
  background: #fff1ef;
  border: 1px solid rgba(143, 40, 34, .16);
}

/* ============================================================
   二级分类条（2026-10-19 客户指令新增）
   列表页：/products（10 个系列）、/news（3 个分类）
   详情页：同一组同级分类，当前项高亮
   ============================================================ */
.cat-filter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
}
.cat-filter-item {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 15px;
  letter-spacing: 1.6px;
  line-height: 1.4;
  color: var(--color-text-2);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  text-decoration: none;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.cat-filter-item:hover,
.cat-filter-item.is-on {
  color: #fff;
  background: var(--color-qiang-red);
  border-color: var(--color-qiang-red);
}
/* 列表页：紧跟 .page-head（自带 46px 下边距）⇒ 收到 24px，避免空一大截 */
.page-head + .cat-filter { margin-top: -22px; }
/* 详情页：紧跟面包屑 */
.crumb + .cat-filter { margin-top: 18px; }

@media (max-width: 760px) {
  /* 手机：11 个分类换行要占 4 行，改成横向滑动（与首页产品分类条同一套做法） */
  .cat-filter {
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-filter-item { flex: 0 0 auto; padding: 8px 13px; font-size: 13.5px; letter-spacing: .8px; }
  .page-head + .cat-filter { margin-top: -20px; }
  .crumb + .cat-filter { margin-top: 14px; }
}

/* ============================================================
   栏目分组页（客户 2026-10-28 排版指令）
   走进格桑花 / 格桑花印象 / 格桑花特色 / 格桑花加盟
   版式：① 面包屑 ② 分类标签条 ③ 内容白卡
   客户要求：**内容区最小宽度 1200px**
   ============================================================ */
.col-wrap {
  width: 1200px;
  min-width: 1200px;   /* 客户明确要求：内容区不得窄于 1200px */
  max-width: 1200px;
  margin: 0 auto;
}

/* ① 面包屑 */
.col-crumb {
  padding: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #8b8178;
}
.col-crumb a { color: #8b8178; text-decoration: none; }
.col-crumb a:hover { color: var(--color-qiang-red); }
.col-crumb span { color: #8b8178; }
.col-crumb span:last-child { color: #5f564e; }

/* ② 分类标签条（本组全部子栏目；当前项羌红底白字） */
.col-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.col-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1.4;
  color: #8a3a30;
  background: #fff;
  border: 1px solid #e3d5c4;
  border-radius: 2px;
  text-decoration: none;
  transition: color .26s ease, background-color .26s ease, border-color .26s ease;
}
.col-tab:hover { color: var(--color-qiang-red); border-color: var(--color-qiang-red); }
.col-tab.is-on,
.col-tab.is-on:hover {
  color: #fff;
  background: var(--color-qiang-red);
  border-color: var(--color-qiang-red);
}

/* ③ 内容白卡 */
.col-body {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 3px;
  padding: 46px 60px 56px;
  box-shadow: 0 2px 14px rgba(93, 68, 51, .04);
}
.col-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .5px;
  color: #2b2724;
  margin: 0 0 26px;
}
.col-lead {
  font-size: 15.5px;
  color: #5f564e;
  line-height: 1.95;
  padding-left: 14px;
  border-left: 3px solid var(--color-qiang-red);
  margin: 0 0 24px;
}
.col-cover { margin: 0 0 26px; border-radius: 3px; overflow: hidden; aspect-ratio: 16 / 9; background: #f7f4f0; }
.col-cover img { width: 100%; height: 100%; display: block; object-fit: contain; }
.col-empty { font-size: 15px; color: #5f564e; line-height: 2; margin: 0; }
.col-empty a { color: var(--color-qiang-red); }

/* 白卡内的正文：字号比资讯详情略大一档（行宽更长，太小的字看着累） */
.col-body .article-content { font-size: 16px; line-height: 2.05; color: #3c3630; }
.col-body .article-content h2 { font-size: 22px; margin: 34px 0 14px; }
.col-body .article-content h3 { font-size: 18px; margin: 28px 0 12px; }
.col-body .article-content ul { padding-left: 20px; margin: 0 0 18px; }
.col-body .article-content li { margin-bottom: 8px; }

@media (max-width: 1240px) {
  /* 窄屏是唯一例外：1200px 会撑出横向滚动条，改成自适应满宽（手机上横向滚动的页面没法读） */
  .col-wrap { width: 100%; min-width: 0; max-width: 100%; padding: 0 20px; }
}

@media (max-width: 760px) {
  .col-crumb { font-size: 12.5px; padding-bottom: 14px; }
  .col-tabs {
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .col-tabs::-webkit-scrollbar { display: none; }
  .col-tab { flex: 0 0 auto; min-height: 38px; padding: 0 16px; font-size: 14px; letter-spacing: .5px; }
  .col-body { padding: 28px 20px 34px; }
  .col-title { font-size: 21px; margin-bottom: 20px; }
  .col-body .article-content { font-size: 15.5px; }
}

/* ============================================================
   页头「AI 搜索」（组件库 ai-search@1.1.3 · 客户 2026-10-29：头部搜索换成技能里的组件）
   ① 入口：页头动作区、导航与电话色块之间，圆形图标按钮（外形沿用替换前那版）
   ② 弹层：组件自带原生 <dialog> + ::backdrop（样式在 vendor/ai-search/src/ai-search.css）
   ⚠️ 下面两条 grid-template-columns 是对 style.css `.header-inner` 的**必要覆盖**：
      原布局是「logo · 导航 · 电话」三列，新增入口必须有第 4 列，
      否则入口与电话会落在同一格里重叠。只在页头生效，不影响原型其它区块。
   ============================================================ */

/* 桌面（≥1480，导航展开）：logo · 导航 · AI搜索 · 电话 */
@media (min-width: 1480px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); }
  .site-header .header-ais { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 16px; }
  .site-header .header-tel { grid-column: 4; }
}

/* 🔴 1480–1799 是"本来刚好放得下"的区间（原型注释：1479 以下就得收抽屉）。
   加一个入口必须有地方让出来 —— 从导航项的内边距里挤（每项省 4px × 9 项），
   再把入口和电话数字各收一档。字号不动，肉眼几乎看不出差别。 */
@media (min-width: 1480px) and (max-width: 1799px) {
  .nav-link { padding: 10px 8px; }
  .nav-link::after { left: 8px; right: 8px; }
  .site-header .header-ais { margin-right: 8px; }
  .site-header .header-tel { padding: 0 clamp(14px, 1.4vw, 22px); gap: 8px; }
  .site-header .tel-num { font-size: 17px; }
}

/* 窄屏（≤1479，导航收进抽屉）：logo · 空档 · AI搜索 · 汉堡 · 电话 */
@media (max-width: 1479px) {
  .site-header .header-inner { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
  .site-header .header-ais { grid-column: 3; grid-row: 1; justify-self: end; margin-right: clamp(8px, 1.2vw, 14px); }
  .nav-toggle { grid-column: 4; }
  .site-header .header-tel { grid-column: 5; }
}

/* 入口按钮：只留图标（buttonText=""），圆形、羌红描边 —— 与替换前那版视觉一致 */
.site-header .header-ais { display: inline-flex; align-items: center; }
.site-header .header-ais .ais-btn {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  gap: 0;
  color: var(--color-qiang-red);
  background: #fff;
  border: 1.5px solid var(--color-qiang-red);
  border-radius: 50%;
  transition: color .26s ease, background-color .26s ease, transform .26s ease, box-shadow .26s ease;
}

/* hover 时补一句「AI 搜索」——圆里放不下文字，光靠图标认不全 */
.site-header .header-ais .ais-btn::after {
  content: "AI 搜索";
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  color: #fff;
  background: rgba(51, 36, 26, .92);
  border-radius: 3px;
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.site-header .header-ais .ais-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.site-header .header-ais .ais-btn:hover,
.site-header .header-ais .ais-btn:focus-visible {
  color: #fff;
  background: var(--color-qiang-red);
  border-color: var(--color-qiang-red);
  box-shadow: 0 6px 18px rgba(158, 43, 37, .24);
  transform: translateY(-1px);
}
.site-header .header-ais .ais-btn:focus-visible { outline: 2px solid var(--color-qiang-red-dp); outline-offset: 3px; }
.site-header .header-ais .ais-btn svg { width: 21px; height: 21px; color: currentColor; }

/* ⚠️ 尺寸收一档的规则必须写在本区块的**基础尺寸之后**（同特异性，写在前面会被基础规则盖掉） */
@media (min-width: 1480px) and (max-width: 1799px) {
  .site-header .header-ais .ais-btn { width: 36px; height: 36px; }
  .site-header .header-ais .ais-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 760px) {
  /* 手机上客户已要求删掉右侧电话色块（style.css 的 `.header-tel { display:none }`）⇒
     这里回到四列：logo · 空档 · AI搜索 · 汉堡（第 5 列没有元素，留着会是 0 宽的空气列） */
  .site-header .header-inner { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .site-header .header-ais { grid-column: 3; }
  .nav-toggle { grid-column: 4; }
  .site-header .header-ais .ais-btn { width: 38px; height: 38px; }
  .site-header .header-ais .ais-btn svg { width: 19px; height: 19px; }
}

@media (max-width: 430px) {
  .site-header .header-ais .ais-btn { width: 36px; height: 36px; }
}

/* ============================================================
   画廊图片点击放大（/gesanghua/honors · 客户 2026-10-29）
   缩略图整块是按钮（键盘可达），点开走 <ImageLightbox>；
   大图覆盖层的样式复用上面资质页那套 .cert-lightbox*（视觉一致）。
   ============================================================ */
.gal-card .ph .gal-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gal-card.is-cert .ph .gal-zoom { display: flex; align-items: center; justify-content: center; }
.gal-card .ph .gal-zoom img { transition: transform .45s ease; }
.gal-card .ph .gal-zoom:hover img,
.gal-card .ph .gal-zoom:focus-visible img { transform: scale(1.04); }
.gal-card.is-cert .ph .gal-zoom:hover img,
.gal-card.is-cert .ph .gal-zoom:focus-visible img { transform: scale(1.02); }
.gal-zoom:focus-visible { outline: 2px solid var(--color-qiang-red); outline-offset: -4px; }
.gal-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #fff;
  background: rgba(51, 36, 26, .62);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.gal-card:hover .gal-zoom-hint,
.gal-zoom:focus-visible .gal-zoom-hint { opacity: 1; transform: none; }
@media (hover: none) {
  .gal-zoom-hint { opacity: 1; transform: none; }
}

/* ============================================================
   列表分页（2026-10-28 客户指令：每页 12 条 + 上一页/下一页）
   ============================================================ */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 52px 0 8px;
}
.pager-btn,
.pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
  letter-spacing: 1.4px;
  color: var(--color-text-2);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  text-decoration: none;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.pager-num { padding: 0; min-width: 42px; font-variant-numeric: tabular-nums; }
.pager-btn:hover,
.pager-num:hover { color: #fff; background: var(--color-qiang-red); border-color: var(--color-qiang-red); }
.pager-num.is-on { color: #fff; background: var(--color-qiang-red); border-color: var(--color-qiang-red); cursor: default; }
.pager-btn.is-off {
  color: rgba(0, 0, 0, .3);
  background: #f4f0e9;
  border-color: transparent;
  cursor: not-allowed;
}
.pager-nums { display: inline-flex; align-items: center; gap: 8px; }
.pager-gap { color: var(--color-text-3); padding: 0 2px; }

@media (max-width: 760px) {
  /* 390 宽要一行放下「上一页 + 页码 + 下一页」，尺寸收到刚好的余量 */
  .pager { margin: 34px 0 4px; gap: 6px; }
  .pager-btn { height: 36px; padding: 0 10px; font-size: 12.5px; letter-spacing: 0; }
  .pager-num { height: 36px; min-width: 34px; font-size: 13px; }
  .pager-nums { gap: 5px; }
  .pager-gap { padding: 0; }
}

/* ---------- 文章 / 荣誉详情页宽度 ---------- */
/* 荣誉文章（如 /honors/zhong-guo-nian-du-cheng-xin-qi-ye）曾沿用 920px 窄栏，
   和产品、栏目及新闻详情不一致。统一为 1200px 内容宽度，窄屏仍走容器内边距。 */
.container.article-detail-wrap { max-width: 1200px; }
@media (min-width: 1200px) {
  .news-detail-wrap { min-width: 1200px; }
}

@media (max-width: 760px) {
  .page-section {
    padding: calc(var(--header-h) + 20px) 0 48px;
  }
  .page-head {
    padding: 28px 0 22px;
    margin-bottom: 28px;
  }
  .page-title { font-size: 27px; letter-spacing: 1px; }
  .crumb-top { padding: 4px 0 14px; }
  .sub-title { margin: 36px 0 18px; font-size: 19px; }
  .contact-grid { gap: 26px; }
  .contact-info h2 { margin-bottom: 20px; font-size: 21px; }
  .contact-info dl { grid-template-columns: 82px 1fr; gap: 12px 14px; }
  .contact-map .tdt-map { height: 240px; }
  .contact-form-section {
    margin-top: 30px;
    padding: 25px 20px 27px;
  }
  .contact-form-head { margin-bottom: 22px; }
  .contact-form-head h2 { font-size: 24px; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .cf-field,
  .cf-field.is-wide { grid-column: auto; }
  .contact-form-actions { gap: 12px; margin-top: 20px; }
  .contact-form-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   2026-10-29 · 移动端统一收紧
   详情页与列表页减少“容器外边距 + 卡片内边距”的叠加，让正文获得
   更多横向空间；字号保持可读，不靠缩小到不可读来换密度。
   ============================================================ */
@media (max-width: 760px) {
  .container,
  .site-footer .container,
  .col-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  #intro .container,
  #honors .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-section {
    padding: calc(var(--header-h) + 12px) 0 38px;
  }
  .page-head {
    padding: 22px 0 16px;
    margin-bottom: 20px;
  }
  .page-title {
    margin-bottom: 10px;
    font-size: 25px;
    line-height: 1.35;
  }
  .crumb-top {
    padding: 0 0 10px;
    font-size: 12.5px;
  }
  .card-grid { gap: 16px; }
  .info-card-body { padding: 15px 16px 17px; }
  .info-card-body h2 { margin-bottom: 7px; font-size: 16px; }
  .info-card-body p { margin-bottom: 9px; font-size: 13.5px; line-height: 1.65; }

  .cat-filter {
    margin-bottom: 18px;
  }
  .page-head + .cat-filter { margin-top: -14px; }
  .crumb + .cat-filter { margin-top: 10px; }

  .pdetail {
    gap: 22px;
    padding: 18px 16px 20px;
    margin-bottom: 24px;
  }
  .pdetail-title,
  .news-article-title {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: .5px;
  }
  .pdetail-lead,
  .article-lead {
    margin-bottom: 18px;
    padding-left: 12px;
    font-size: 14.5px;
    line-height: 1.85;
  }
  .pdetail-meta {
    gap: 8px;
    margin-bottom: 20px;
  }
  .pdetail-actions { gap: 10px; }
  .pdetail-actions .btn,
  .pdetail-consult { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .pdetail-consult {
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    line-height: 1.2;
  }
  .pdetail-consult strong { font-size: 14px; letter-spacing: .5px; }
  .pdetail-body {
    margin-bottom: 28px;
    padding: 22px 16px 24px;
  }

  .news-article {
    margin-bottom: 28px;
    padding: 24px 16px 28px;
  }
  .news-article-head { margin-bottom: 20px; }
  .news-article-cover { margin-bottom: 20px; }
  .article-content {
    font-size: 15px;
    line-height: 1.95;
  }
  .article-content p { margin-bottom: 15px; }
  .article-content h2 { margin: 24px 0 12px; font-size: 20px; }
  .article-content h3 { margin: 20px 0 10px; font-size: 17px; }
  .article-faqs { margin-top: 30px; padding-top: 22px; }

  .col-wrap { padding-left: 16px; padding-right: 16px; }
  .col-tabs { margin-bottom: 14px; }
  .col-body { padding: 24px 16px 28px; }
  .col-title { margin-bottom: 16px; font-size: 21px; }
  .col-body .article-content { font-size: 15px; line-height: 1.95; }

  .related-block { margin-top: 32px; }
  .related-block .sub-title { margin-top: 0; }
  .post-adjacent {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .post-adjacent-item {
    min-height: 0;
    padding: 14px 15px;
  }
  .post-adjacent-item.is-next {
    align-items: flex-start;
    text-align: left;
  }
  .post-adjacent-item strong { font-size: 14.5px; line-height: 1.55; }
  .article-back { margin-top: 24px; }

  .contact-grid { gap: 22px; }
  .contact-map .tdt-map { height: 220px; }
  .contact-form-section {
    margin-top: 24px;
    padding: 22px 16px 24px;
  }
  .contact-form-head { margin-bottom: 18px; }
  .contact-form-head h2 { font-size: 23px; }
  .contact-form-grid { gap: 14px; }

  .pager {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 30px 0 4px;
  }
  .pager-btn {
    width: auto;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .pager-nums {
    min-width: 0;
    justify-content: center;
    gap: 3px;
    flex-wrap: nowrap;
  }
  .pager-num {
    width: 28px;
    min-width: 28px;
    height: 32px;
    padding: 0;
    font-size: 12.5px;
  }
  .pager-gap {
    width: 7px;
    padding: 0;
    overflow: hidden;
    text-align: center;
  }
}

/* ============================================================
   平台运行时模板内页：顶部给固定页头让位（客户 2026-10-28 报障）
   ============================================================
   🔴 现象：`/products` 顶部那行分类条（全部 / 黑牦牛角梳 / 花牦牛角梳 / 白牦牛角梳）
   被固定页头压住，连「共 22 件产品」一起只剩半截；产品详情页同样从页头底下开始。

   🔴 原因不在我们的组件：这两个页面已改由**平台运行时模板**（lightpay，
   `islands/ProductsListView.mjs`）注入 `<main data-inner-page="products-list|shop-product-detail">`
   渲染，它只给 32px 顶部内边距；而 `.site-header` 是 `position: fixed`、高 93px（92px + 1px 描边）
   ⇒ 首屏前 61px 的内容全落在页头底下。

   修法：给这两种内页补足「页头高度 + 原来那 32px 呼吸位」，视觉上等于原本的设计意图。
   ⚠️ 不要推广成 `main[data-inner-page]` 一把梭 —— 平台以后再加内页模板时，
       它自己可能已有留白，一刀切会多出一大块空白。新增模板请按 key 单独加。
   ⚠️ `--header-h` 在样式表里按断点变（92 / 76 / 64 / 58），这里跟着走，手机端不会过量。
   ⚠️ 用 `!important` 是因为 runtime.css 里的组件样式权重不低，且 inline 变量参与高度计算。
   ============================================================ */
main[data-inner-page][data-inner-key="products-list"],
main[data-inner-page][data-inner-key="shop-product-detail"] {
  padding-top: calc(var(--header-h) + 33px) !important;
}

/* ============================================================
   产品详情页：主图正方形展示（客户 2026-10-28 指令）
   ============================================================
   原结构：`.shop-gallery`（grid：64px 缩略图列 + 主图列）高度被 inline 变量
   `--shop-gallery-height:615px` 钉死 ⇒ 主图 706×613，不是正方形，且 object-fit 是 cover
   （横向图会被裁边）。
   做法：把 `--shop-gallery-height` 放下（height:auto），主图列自己撑 1:1，
   stage 绝对定位铺满，图片 contain —— 不改 DOM，只改盒子。
   ============================================================ */
main[data-inner-page][data-inner-key="shop-product-detail"] .shop-gallery {
  height: auto !important;
  align-items: start;
}
main[data-inner-page][data-inner-key="shop-product-detail"] .shop-gallery-main {
  position: relative;
  height: auto !important;
  aspect-ratio: 1 / 1;
}
main[data-inner-page][data-inner-key="shop-product-detail"] .shop-gallery-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
}
main[data-inner-page][data-inner-key="shop-product-detail"] .shop-gallery-viewport,
main[data-inner-page][data-inner-key="shop-product-detail"] .shop-gallery-track,
main[data-inner-page][data-inner-key="shop-product-detail"] .shop-gallery-slide {
  height: 100% !important;
}
main[data-inner-page][data-inner-key="shop-product-detail"] .shop-gallery-main .shop-gallery-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   轻支付商城（运行时模板 lightpay）：列表页 / 商品详情页配色 = 站点主题色（羌红）
   ============================================================
   【为什么只能走 CSS】`/products` 与 `/products/:slug` 由平台运行时模板渲染
   （`main[data-inner-page][data-inner-key="products-list|shop-product-detail"]`），
   模板源码在平台侧、不在我们的产物里 ⇒ 站点唯一能施加影响的就是 site.css（线上照常加载）。

   【为什么只改变量就够整页换色】实测 runtime.css（82KB，Tailwind 产物）里
   `--color-theme-primary` / `--color-brand-from` / `--color-brand-to` / `--color-price`
   一次都没有定义，全部是 `var(--color-theme-primary,#1e5bff)` 这种「带 fallback 的引用」
   ⇒ 在祖先上给值就把整页蓝色换掉，**不用按 class 逐个打 !important**（那样模板一升级全废）。
   实测确认：模板里的蓝色没有任何一处是硬编码字面量。

   【作用域为什么是 body:has(#mw3-rt-slot)】
   ① 只有运行时页才带 `#mw3-rt-slot` 这个槽 ⇒ 站点自有页（/about /news /product-center …）
      完全不受影响，不会把羌红串进正文；
   ② 放 body 上而不是 main 上，是为了让 portal 到 body 的浮层（购物车抽屉 / Toast /
      悬浮操作条 FloatingActions）也能继承到变量 —— 它们不在 main 里。
   ============================================================ */
body:has(#mw3-rt-slot) {
  --color-theme-primary: #9e2b25;  /* 羌红 · 主：按钮底、选中态、链接 hover、描边 */
  --color-brand-from:    #7d1f1a;  /* 羌红 · 深：渐变起点（模板原值 #4f46e5 靛紫） */
  --color-brand-to:      #9e2b25;  /* 羌红 · 主：渐变终点（模板原值 #1e5bff 蓝） */
  --color-price:         #9e2b25;  /* 价格数字（模板原值 #ff0036 淘宝红） */
}

/* 运行时页的客服入口由模板浮动栏负责；站点客服球不重复挂载，也不能占页面流高度。 */
body:has(#mw3-rt-slot) .ai-orb {
  display: none !important;
}

/* 账户交易页不复用公共头尾，只保留一条本站专属的精简版权信息。 */
.site--runtime-commerce {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site--runtime-commerce > .site-main {
  flex: 1 0 auto;
}

.runtime-commerce-legal {
  flex: 0 0 auto;
  padding: 20px 24px;
  color: rgba(55, 46, 38, .72);
  background: var(--color-stone-2, #fbf7f0);
  border-top: 1px solid rgba(55, 46, 38, .1);
  text-align: center;
}

.runtime-commerce-legal p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.runtime-commerce-legal p + p {
  margin-top: 2px;
  color: rgba(55, 46, 38, .54);
}

/* 登录模板自带默认平台版权与定位；隐藏原块，公司名下方改用本站文案。 */
body:has([data-mw3-rt-island="LoginView"]) [data-mw3-rt-island="LoginView"] footer {
  display: none !important;
}

body:has([data-mw3-rt-island="LoginView"]) [data-mw3-rt-island="LoginView"] header a > span > span:last-child,
body:has([data-mw3-rt-island="LoginView"]) [data-mw3-rt-island="LoginView"] h2 + p {
  font-size: 0 !important;
}

body:has([data-mw3-rt-island="LoginView"]) [data-mw3-rt-island="LoginView"] header a > span > span:last-child::after {
  content: "三十年只做一把好牦牛角梳";
  font-size: 12px;
  line-height: 1.5;
}

body:has([data-mw3-rt-island="LoginView"]) [data-mw3-rt-island="LoginView"] h2 + p::after {
  content: "三十年只做一把好牦牛角梳";
  font-size: 14px;
  line-height: 1.7;
}

/* 底图与底色：模板给 `main` 写了 inline style
     background-color:#f5f5f7; background-image:url(.../images/b3.png)
   而 b3.png 是**淡蓝色光晕**（实测取图确认）——变量改不到图片，只能压掉重画。
   换成站点暖白底（白石白 --color-stone-2）+ 淡羌红/火黄光晕，保留原来「顶部一抹光」的设计语言。 */
body:has(#mw3-rt-slot) main[data-inner-page] {
  background-color: var(--color-stone-2, #fbf7f0) !important;
  background-image:
    radial-gradient(ellipse 52% 38% at 78% 6%, rgba(158, 43, 37, .07), transparent 70%),
    radial-gradient(ellipse 46% 34% at 24% 2%, rgba(212, 160, 23, .055), transparent 72%) !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
}

