/*
Theme Name: 爱普雷德智慧养老官网主题
Theme URI: https://www.aplid.com/
Description: 南京爱普雷德电子科技有限公司官方网站主题，面向智慧养老数字化解决方案供应商。移动优先布局，配色同步自 www.aplid.com：品牌绿 #2aa339 + 科技蓝 #1955f9 + 深蓝 #14299f，字体黑体。
Version: 1.7.48
Author: WorkBuddy
License: GPL-2.0-or-later
Text Domain: yanglao
Tags: 养老, 智慧养老, 银发, 企业官网, 响应式, mobile-first
*/

:root {
  /* 品牌色 */
  --brand: #2aa339;          /* 爱普雷德品牌绿（logo 主色） */
  --brand-dark: #238a2f;     /* 深一档：hover/按下/小按钮底，白字对比度 ≥4.5:1 */
  --brand-darker: #1f6f27;   /* 更深：主按钮静态底，达标 AA */
  --accent: #1955f9;         /* 科技蓝，链接/图标/辅助 */
  --accent-dark: #164ce0;
  --teal: #14299f;           /* 深蓝，大标题/高对比底 */
  --teal-dark: #0f1f7a;

  /* 中性色 */
  --ink: #262626;
  --muted: #666666;
  --bg: #f7f7f7;             /* 官网浅灰背景 */
  --card: #ffffff;
  --line: #e5e5e5;

  /* 语义色（新增，原主题缺失） */
  --warning: #b7791f;
  --error: #c0392b;
  --success: #238a2f;

  /* 形状与节奏 */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 8px 30px rgba(40, 50, 60, .08);
  --shadow-hover: 0 14px 40px rgba(40, 50, 60, .12);
  --maxw: 1180px;
  --space: 8px;              /* 间距基线（8 的倍数） */
}

/* ============ 基础（移动优先：单列窄屏） ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Heiti SC", "SimHei", system-ui, -apple-system, sans-serif;
  font-size: 1rem;           /* 移动基线 16px */
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* 避免移动端底部固定 CTA 遮挡内容 */
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 1.75rem; }   /* 移动 28px */
h2 { font-size: 1.375rem; }  /* 移动 22px */
h3 { font-size: 1.125rem; }  /* 移动 18px */
h4 { font-size: 1rem; }      /* 移动 16px */
p { margin: 0 0 1em; }
.text-caption { font-size: .875rem; color: var(--muted); line-height: 1.5; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 48px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 32px; }

/* ============ 详情页容器（自适应：窄屏易读，宽屏铺满） ============ */
/* 取代此前散落在各模板里的内联 max-width:820px / 900px。
   做法：用 clamp() 让宽度随视口平滑增长，宽屏不再留大片空白，
   同时保证「正文行长」不被拉得太长（配合 .detail-prose 限宽段落文本）。

   注意：详情页容器同时带有 .container 类（max-width: var(--maxw) = 1180px），
   两者特异度相同（均为单类），后声明者胜；若 .container--detail 写在前面会被
   1180px 覆盖，导致 clamp 失效、宽屏仍固定 1152px 内容宽。
   故此处用双类提高权重，确保 clamp 生效。 */
.container.container--detail {
  width: 100%;
  max-width: clamp(820px, 94vw, 1920px);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
  transition: max-width .2s ease;
}

/* 详情页正文：文本限制行长保证可读性；图片/表格可突破到容器满宽。

   关键：正文行长改用「视口 - 右侧浮动联系窗占位」计算，而不是固定 em。
   原因：
     1) 固定 52em 在容器铺满后仍会顶到右侧，被 .contact-float 压住文字（实测 1080px
        视口下正文宽 910px，而浮动窗占据右侧约 98px，末字被遮挡）；
     2) 浮动窗在 ≤768px 时隐藏（见下方媒体查询），此时不应再预留空白。

   取值：
     - 宽屏(≥1400px)：浮动窗存在，右减 130px 预留
     - 中屏(992~1399px)：浮动窗存在，右减 130px 预留
     - 窄屏(<992px)：浮动窗更靠边，预留减小
     - 移动(≤768px)：浮动窗隐藏，预留为 0
   上限 52em 保证行长不超过约 78 个汉字，兼顾铺满与可读。 */
.detail-prose { max-width: 62em; }
.detail-prose > p,
.detail-prose > ul,
.detail-prose > ol,
.detail-prose > blockquote,
.detail-prose > h2,
.detail-prose > h3,
.detail-prose > h4 {
  max-width: min(52em, calc(100vw - 260px));
}
/* 详情页标题与摘要同样避开浮动窗 */
.detail-header,
.solution-detail__header { max-width: min(52em, calc(100vw - 260px)); }

/* ===== 2026-10-26 改版：详情页纯文本居中，设计型区块保持满宽 =====
   背景：解决方案/爱普雷德介绍等详情页的正文本身就是「一整页设计好的 HTML」，
   需要满宽才不失真；若把整块限宽，整页会缩成一张窄卡片。
   因此这里只对直接段落做限宽+居中，图片与设计区块保持容器满宽。 */
.detail-prose > p,
.detail-prose > ul,
.detail-prose > ol,
.detail-prose > blockquote {
  margin-left: auto;
  margin-right: auto;
}
/* 图片、视频、表格、代码块等富媒体占满容器宽度 */
.detail-prose img,
.detail-prose video,
.detail-prose iframe,
.detail-prose table,
.detail-prose pre,
.detail-prose .wp-block-image,
.detail-prose .wp-block-gallery,
.detail-prose .wp-block-embed,
.detail-prose .wp-block-video,
.detail-prose .wp-block-table { max-width: 100%; }

/* 详情页内嵌视频：原生播放器 + 封面图（poster）
   封面由浏览器原生渲染（poster 属性），这里只负责尺寸、圆角与溢出防护。
   注意：不要用 background-size:cover 去"模拟" poster，会导致移动端横向溢出。 */
.detail-prose video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 12px;
  background-color: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
/* 竖版/异形比例的视频按原始比例显示，不裁切也不拉伸 */
.detail-prose video[poster] {
  object-fit: contain;
}

/* 详情页底部「返回新闻列表」
   按钮本身只有 ~173×49px，周围空白容易让人误以为整块可点、
   结果点到空白处「没反应」。这里让按钮的点击热区适度外扩，
   但宽度限制在按钮附近，避免整行 1100px 都可点造成误触。 */
.detail-back {
  margin-top: 30px;
}
.detail-back .btn {
  position: relative;
}
/* 热区向四周扩展：上下 12px、左右 24px，仍紧贴按钮 */
.detail-back .btn::after {
  content: "";
  position: absolute;
  inset: -12px -24px;
}
/* 悬停时轻微高亮，提示这里可点 */
.detail-back .btn:hover {
  background-color: rgba(0, 0, 0, .04);
}
@media (max-width: 768px) {
  .detail-back { margin-top: 24px; }
  /* 触摸设备热区再放宽一些，避免手指点不中 */
  .detail-back .btn::after { inset: -14px -20px; }
}
/* 凡科导出的 .jz_fix_ue_img 常带 max-width:100% + 居中样式，
   在窄屏会与 video 的 width:100% 叠加出溢出，这里兜一道 */
.detail-prose .jz_fix_ue_img,
.detail-prose .rich_media_content {
  max-width: 100%;
}
.detail-prose .jz_fix_ue_img > p,
.detail-prose .jz_fix_ue_img video {
  max-width: 100%;
}
@media (max-width: 768px) {
  .detail-prose video { margin: 16px 0; border-radius: 8px; }
}

/* 容器铺满后的溢出保护：宽表格 / 长英文串 / 长URL 不得横向溢出，
   否则会顶到右侧浮动联系窗下方被遮挡。 */
.detail-prose table { width: 100%; border-collapse: collapse; table-layout: auto; }
.detail-prose pre,
.detail-prose code {
  overflow-x: auto;
  word-break: break-word;
}
.detail-prose {
  overflow-wrap: break-word;
  word-break: normal;
}
/* 宽表格在窄屏可横向滚动查看，而不是撑破布局 */
@media (max-width: 992px) {
  .detail-prose table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* 详情页头图：宽屏铺满容器宽度 */
.detail-hero { width: 100%; max-width: 100%; overflow: hidden; }
.detail-hero img,
.detail-hero .case-detail-img,
.detail-hero .attachment-large {
  width: 100%;
  max-width: 100%;
  /* 只用 object-fit 控制尺寸，移除 max-height + contain 组合：
     竖版主图在 contain 下会按视口高度反推宽度，导致宽屏下图片缩在中间、两侧留白。 */
  height: auto;
  max-height: none;
  /* 详情页主图完整显示，不做 16:9 裁切 */
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 详情页标题区在超宽屏下也不至于散开 */
.detail-header h1 { margin-bottom: .4em; }

/* 中等桌面（≤1280px）收窄一点，避免 1024~1280 屏内容过散 */
@media (min-width: 992px) and (max-width: 1280px) {
  .container.container--detail { max-width: 1180px; }
}

/* 移动端沿用较小的内边距，避免内容贴边
   浮动联系窗在 ≤768px 隐藏（见 .contact-float 媒体查询），
   此处预留宽度归零，正文占满屏幕宽度。 */
@media (max-width: 768px) {
  .container.container--detail { padding: 0 20px; }
  .detail-prose > p,
  .detail-prose > ul,
  .detail-prose > ol,
  .detail-prose > blockquote,
  .detail-prose > h2,
  .detail-prose > h3,
  .detail-prose > h4,
  .detail-header,
  .solution-detail__header,
  .solution-detail__lead { max-width: 100%; }
}
.section-title .eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .1em; font-size: .875rem; }
.section-title h2 { margin: .2em 0; }
.section-title p { color: var(--muted); max-width: 720px; margin: 0 auto; }

/* ============ Header / 导航（移动优先） ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand .site-logo { height: 34px; width: auto; display: block; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

/* 移动端：导航默认隐藏，点击汉堡展开为全宽抽屉 */
.main-nav { display: none; }
.main-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 64px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(40,50,60,.10);
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.main-nav.open ul { list-style: none; margin: 0; padding: 10px 22px 16px; display: flex; flex-direction: column; gap: 4px; }
.main-nav.open a { display: block; padding: 13px 6px; font-weight: 500; color: #333; border-bottom: 1px solid var(--line); }
.main-nav.open a:last-child { border-bottom: 0; }
.main-nav.open a:hover { color: var(--brand); }
.main-nav.open .sub-menu { margin: 4px 0 4px 16px; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.main-nav.open .sub-menu a { padding: 10px 14px; font-size: .9375rem; border-bottom: 0; color: #555; }
.main-nav.open .sub-menu a:hover { color: var(--brand); }
.header-cta { display: none; }
.nav-toggle { display: block; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 6px; }

/* ============ 按钮（对比度修正：静态底用深绿） ============ */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  min-height: 44px; line-height: 1.2;
  transition: transform .12s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-darker); color: #fff; }   /* 白字对比度 4.9:1，过 AA */
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-outline { border-color: var(--brand-darker); color: var(--brand-darker); background: transparent; }
.btn-outline:hover { background: var(--brand-darker); color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
/* 移动端主操作全宽 */
.btn-block-mobile { display: block; width: 100%; text-align: center; }

/* ============ Hero（首屏横幅轮播） ============ */
.hero { padding: 16px 16px 0; }
.hero-slider {
  width: 100%; max-width: 1168px; margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-slider__track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.hero-slider__slide {
  flex: 0 0 100%;
  width: 100%;
}
.hero-banner__img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-banner__placeholder {
  width: 100%; min-height: 220px;
  background: linear-gradient(135deg, #eef1f3, #e4e9ec);
  border-radius: var(--radius);
  display: grid; place-items: center; color: var(--muted);
  font-size: 1rem; text-align: center; padding: 24px;
}
.hero-slider__dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-slider__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
}
.hero-slider__dot.is-active,
.hero-slider__dot:hover {
  background: #fff;
  transform: scale(1.15);
}
.stat { background: var(--bg); border-radius: 12px; padding: 16px; text-align: center; }
.stat b { display: block; font-size: 1.8rem; color: var(--teal-dark); }
.stat span { font-size: .9rem; color: var(--muted); }

/* ============ 卡片 / 栅格（移动 1 列） ============ */
.grid-3, .grid-2, .grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(42,163,57,.10); color: var(--brand); font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin: 0 0 .4em; }
.card p { color: var(--muted); margin: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card h3 { color: var(--ink); }
a.card:hover h3 { color: var(--brand-dark); }
.product-card { display: flex; flex-direction: column; }
.product-card-thumb { width: 100%; height: 160px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.product-card-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block; }
.product-card-thumb--placeholder {
  color: var(--muted); font-size: .85rem;
  background: #f6f7f9; border: 1px dashed #ccd4dc;
}
.product-card .btn-link { margin-top: auto; padding-top: 14px; }

/* 首页产品分类：当某分类产品不足 3 个时，居中并加宽/加装饰，避免 3 列布局下空旷不协调（B 方案） */
.grid-3.grid-few { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; position: relative; }
/* 单卡：加宽成大卡片，图片更高，两侧淡色光晕装饰平衡留白；去掉卡片外框（白底/边框/阴影/圆角），让内容直接悬浮在背景上 */
.grid-3.grid-few-1 > .product-card { flex: 1 1 520px; max-width: 720px; position: relative; z-index: 1; background: transparent; border: none; box-shadow: none; border-radius: 0; }
.grid-3.grid-few-1 > .product-card:hover { transform: none; }
.grid-3.grid-few-1 > .product-card .product-card-thumb { height: 240px; }
.grid-3.grid-few-1::before,
.grid-3.grid-few-1::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%); z-index: 0; pointer-events: none;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 85, 249, .10) 0%, rgba(25, 85, 249, 0) 70%);
}
.grid-3.grid-few-1::before { left: 1%; }
.grid-3.grid-few-1::after { right: 1%; }
/* 双卡：并排居中，各占约一半，两侧小光晕装饰 */
.grid-3.grid-few-2 > .product-card { flex: 1 1 360px; max-width: 460px; }
.grid-3.grid-few-2::before,
.grid-3.grid-few-2::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%); z-index: 0; pointer-events: none;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 85, 249, .08) 0%, rgba(25, 85, 249, 0) 70%);
}
.grid-3.grid-few-2::before { left: 2%; }
.grid-3.grid-few-2::after { right: 2%; }
/* 小屏：隐藏装饰，卡片满宽堆叠 */
@media (max-width: 768px) {
  .grid-3.grid-few-1::before,
  .grid-3.grid-few-1::after,
  .grid-3.grid-few-2::before,
  .grid-3.grid-few-2::after { display: none; }
  .grid-3.grid-few-1 > .product-card,
  .grid-3.grid-few-2 > .product-card { flex: 1 1 100%; max-width: none; }
}

/* ============ 产品中心（PDF 改版） ============ */
.products-page-title { text-align: center; margin-bottom: 42px; }
.products-page-title .eyebrow { color: var(--brand); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.products-page-title h2 { margin: 0 0 12px; font-size: 2.2rem; }
.products-page-title p { color: var(--muted); margin: 0; }

/* 首页 / 产品中心四通栏分类入口 */
.product-cat-grid { align-items: stretch; }
.product-category-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-category-card__thumb {
  width: 100%; height: 160px; overflow: hidden; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.product-category-card__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-category-card__thumb--placeholder {
  font-size: 3.2rem; background: linear-gradient(135deg, var(--bg) 0%, #eef 100%);
}
.product-category-card h3 { margin: 18px 22px 10px; font-size: 1.15rem; }
.product-category-card p { margin: 0 22px 14px; color: var(--muted); font-size: .95rem; line-height: 1.6; flex: 1; }
.product-category-card .btn-link { margin: auto 22px 22px; }

.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }

/* 左侧边栏 */
.products-sidebar { position: sticky; top: 24px; }
.products-filter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 20px; }
.products-filter h4 { margin: 0 0 14px; font-size: 1rem; }
.products-filter-list { list-style: none; padding: 0; margin: 0; }
.products-filter-list li { margin-bottom: 4px; }
.products-filter-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.products-filter-list a:hover { background: var(--bg); }
.products-filter-list li.is-active a { background: var(--brand); color: #fff; }
.products-filter-list li.is-active .count { background: rgba(255,255,255,.2); color: #fff; }
.products-filter-list .count { background: var(--bg); color: var(--muted); font-size: .75rem; padding: 2px 8px; border-radius: 999px; }

.products-cta { background: var(--brand); color: #fff; border-radius: var(--radius-sm); padding: 22px; text-align: center; }
.products-cta h4 { margin: 0 0 8px; font-size: 1.05rem; }
.products-cta p { margin: 0 0 16px; font-size: .85rem; opacity: .9; line-height: 1.6; }
.products-cta .btn { background: #fff; color: var(--brand); width: 100%; }
.products-cta .btn:hover { background: var(--bg); }

/* 右侧主内容 */
.products-main { min-width: 0; }
.product-category-section { margin-bottom: 48px; }
.product-category-header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.product-category-header h3 { margin: 0; font-size: 1.25rem; }
.product-category-header p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1 1 auto; }
.product-category-count { color: var(--muted); font-size: .85rem; }

/* 大卡片 */
.product-featured-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.product-featured-media { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); min-height: 260px; }
.product-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-featured-placeholder { width: 100%; height: 100%; min-height: 260px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg, var(--bg) 0%, #eef 100%); }
.product-featured-body { display: flex; flex-direction: column; }
.product-featured-body h4 { margin: 0 0 14px; font-size: 1.4rem; }
.product-featured-body h4 a { color: var(--ink); text-decoration: none; }
.product-featured-body h4 a:hover { color: var(--brand-dark); }
.product-featured-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.product-featured-tags span { background: rgba(25,85,249,.08); color: var(--accent); font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.product-featured-body p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; flex: 1; }
.product-featured-case { background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: .9rem; margin-bottom: 18px; }
.product-featured-case strong { color: var(--ink); }
.product-featured-body .btn { align-self: flex-start; }

/* 小卡片网格 */
.product-sub-grid { display: grid; gap: 20px; }
.product-sub-grid--2 { grid-template-columns: repeat(2, 1fr); }
.product-sub-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-sub-grid--5 { grid-template-columns: repeat(5, 1fr); }

.product-small-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; display: flex; flex-direction: column; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.product-small-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-small-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(25,85,249,.08); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 14px; }
.product-small-thumb { width: 100%; height: 140px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.product-small-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-small-card h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }
.product-small-card p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; line-height: 1.6; flex: 1; }
.product-small-link { color: var(--brand); font-size: .9rem; font-weight: 500; }
.product-small-card:hover .product-small-link { color: var(--brand-dark); }

/* 智能硬件卡片 */
.product-hardware-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 16px; text-align: center; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; align-items: center; }
.product-hardware-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-hardware-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(25,85,249,.08); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 14px; }
.product-hardware-thumb { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.product-hardware-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-hardware-card h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.product-hardware-subtitle { color: var(--muted); font-size: .8rem; margin-bottom: 14px; }
.product-hardware-link { color: var(--brand); font-size: .85rem; font-weight: 500; margin-top: auto; }
.product-hardware-card:hover .product-hardware-link { color: var(--brand-dark); }

/* 落地成果 */
.section-achievements { background: var(--bg); padding: 56px 0; }
.achievements-header { text-align: center; margin-bottom: 32px; }
.achievements-header h3 { margin: 0 0 8px; font-size: 1.5rem; }
.achievements-header p { margin: 0; color: var(--muted); }
.achievements-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; margin: 0 auto 40px; }
.achievement-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.achievement-card .num { display: block; font-size: 2.4rem; font-weight: 700; color: var(--brand); line-height: 1; }
.achievement-card .lbl { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.achievements-clients-title { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.client-logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client-logo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 12px; text-align: center; color: var(--muted); font-size: .85rem; }

@media (max-width: 1100px) {
  .products-layout { grid-template-columns: 1fr; gap: 28px; }
  .products-sidebar { position: static; }
  .products-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .products-filter-list li { margin-bottom: 0; }
  .product-featured-card { grid-template-columns: 1fr; }
  .product-sub-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .product-sub-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .client-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .product-sub-grid--2,
  .product-sub-grid--3,
  .product-sub-grid--5 { grid-template-columns: 1fr; }
  .achievements-stats { grid-template-columns: 1fr; }
  .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .product-featured-placeholder { min-height: 180px; }
}

/* ============ 关于 / 特性 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.feature-list .tick { color: var(--brand); font-weight: 700; flex: none; }
.about-img {
  border-radius: 20px; min-height: 220px;
  background: linear-gradient(135deg, var(--teal), var(--brand));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem; text-align: center; padding: 24px;
  overflow: hidden;
}
.about-img--photo { padding: 0; }
.about-img--photo img {
  width: 100%; height: 100%; min-height: 220px;
  object-fit: cover; object-position: center;
  display: block;
}

/* ============ 新闻 ============ */
.news-card { display: block; }
.news-card .meta { color: var(--muted); font-size: .9rem; }
.news-card h3 { font-size: 1.15rem; margin: .3em 0; }
.news-card p { color: var(--muted); font-size: .98rem; }

.home-news-grid { align-items: stretch; }
.home-news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.home-news-thumb { width: 100%; height: 180px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.home-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.home-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .85rem; }
.home-news-cat { background: rgba(25,85,249,.08); color: var(--accent); padding: 2px 10px; border-radius: 999px; }
.home-news-date { color: var(--muted); }
.home-news-card h3 { font-size: 1.1rem; margin: 0 0 10px; line-height: 1.45; }
.home-news-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; flex: 1; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(135deg, var(--teal), var(--brand-darker));
  color: #fff; border-radius: 22px; padding: 36px 22px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 620px; margin: 0 auto 22px; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-outline:hover { background: #fff; color: var(--teal); }
/* 移动端：主操作按钮全宽 */
.cta-band .btn { display: block; width: 100%; max-width: 340px; margin: 0 auto; }

/* ============ 联系 ============ */
.info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.info-item .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(25,85,249,.10); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 15px; margin-bottom: 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

/* 联系页 Hero（AI 重新设计的展现形式） */
.contact-hero {
  background: linear-gradient(135deg, var(--brand, #2aa339), var(--brand-darker, #1f6f27));
  color: #fff; border-radius: 22px; padding: 40px 32px; text-align: center; margin-bottom: 36px;
}
.contact-hero__lead { letter-spacing: .14em; font-size: .82rem; opacity: .9; margin: 0 0 8px; }
.contact-hero__title { color: #fff; font-size: 1.9rem; margin: 0 0 12px; }
.contact-hero__desc { color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0 auto 22px; line-height: 1.7; }
.contact-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-hero__actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .7); }
.contact-hero__actions .btn-outline:hover { background: #fff; color: var(--brand); }
@media (max-width: 575px) {
  .contact-hero__title { font-size: 1.5rem; }
  .contact-hero__actions .btn { flex: 1 1 100%; }
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--card);
  color: var(--muted);
  padding: 48px 0 28px;
  margin-top: 0;
  border-top: 4px solid var(--brand);
  box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.site-footer h4 { color: var(--ink); font-size: 1.05rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; line-height: 1.65; }
.footer-grid > div:nth-child(3) li { padding-left: 3em; text-indent: -3em; }
.footer-about { margin-top: 16px; font-size: .95rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .86rem; color: var(--muted); }

/* 页脚“关注我们”图片（后台「外观 → 自定义 → 页脚关注我们图片」上传） */
.footer-qrcodes { min-width: 0; }
.footer-qr-list { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-qr-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-qr-item img { width: 92px; height: 92px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.footer-qr-item span { font-size: .8rem; color: var(--muted); }
.footer-qr-placeholder { font-size: .82rem; color: var(--muted); max-width: 200px; line-height: 1.5; }

/* ============ 文章 / 面包屑 ============ */
.post-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.post-item h3 { margin: 0 0 .2em; }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--brand); }
.post-thumb {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.post-thumb:hover img { transform: scale(1.04); }
.post-thumb--video {
  background: #000;
}
.post-thumb--video video,
.post-thumb--video iframe,
.post-thumb--video embed,
.post-thumb--video object {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  background: #000;
}
.post-body { flex: 1 1 auto; }
.post-excerpt { color: var(--muted); margin: .4em 0 0; }
.entry-meta { color: var(--muted); font-size: .9rem; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--accent); }

/* 新闻资讯页分类标签 */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.news-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.news-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}
.news-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(42, 163, 57, .22);
}
.news-tab.is-active:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* ============ 解决方案卡片 ============ */
.sol-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 26px; }
.sol-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 22px; box-shadow: 0 2px 10px rgba(40,40,40,.05); transition: transform .15s ease, box-shadow .15s ease; }
.sol-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(40,40,40,.10); }
.sol-card h3 { margin: 0 0 .5em; font-size: 1.2rem; }
.sol-card h3 a { color: var(--teal); text-decoration: none; }
.sol-card h3 a:hover { color: var(--brand); }
.sol-card p { margin: 0 0 .8em; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.btn-link { display: inline-block; color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.btn-link:hover { color: var(--brand-darker); text-decoration: underline; }

/* ============ 解决方案列表页（CPT 动态管理） ============ */
.solutions-layout { display: block; }
.solutions-sidebar { display: none; }
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.solution-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; scroll-margin-top: 96px; }
.solution-card-thumb { width: 100%; height: 180px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.solution-card-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.solution-card-icon { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; background: rgba(42,163,57,.08); color: var(--brand); font-size: 3rem; }
.solution-card h3 { font-size: 1.15rem; margin: 0 0 10px; padding: 22px 22px 0; color: var(--ink); }
.solution-card h3 a { color: inherit; text-decoration: none; }
.solution-card h3 a:hover { color: var(--brand); }
.solution-card p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0; padding: 0 22px; flex: 1; }
.solution-card-link { display: block; color: var(--brand); font-weight: 500; font-size: .9rem; padding: 16px 22px 22px; margin-top: auto; text-decoration: none; }
.solution-card-link:hover { color: var(--brand-dark); }
.solution-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25,85,249,.12), 0 14px 36px rgba(25,85,249,.15); transform: translateY(-4px); }
.solution-card.is-active .solution-card-link { color: var(--accent-dark); }

/* ============ 解决方案详情页 ============ */
.section-solution-detail { padding-top: 32px; }
.solution-detail { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.solution-detail__header { margin-bottom: 24px; }
.solution-detail__header h1 { font-size: 1.75rem; margin: 0 0 12px; }
.solution-detail__lead { font-size: 1.1rem; color: var(--muted); margin: 0; line-height: 1.7; max-width: min(52em, calc(100vw - 260px)); }
.solution-detail__image { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.solution-detail__image img { width: 100%; height: auto; display: block; }
.solution-detail__content { color: var(--ink); font-size: 1.05rem; line-height: 1.85; }

/* ===== 2026-10-26：设计型详情页正文占满容器 =====
   解决方案/核心业务详情页的正文本身就是「一整页设计好的 HTML」，
   旧的 62em 限宽会把它压成一条窄柱（右侧大片空白），这里改为占满容器，
   与「爱普雷德介绍」页保持一致；产品详情仍保持可读宽度但居中。 */
/* ===== 2026-10-26：详情页版式统一（对齐「爱普雷德介绍」页） =====
   1) 正文是「整页设计 HTML」的详情页（解决方案/核心业务/案例）→ 占满容器，避免被压成窄柱；
   2) 纯文本详情页（新闻）→ 面包屑/标题/正文/返回统一收进居中窄栏；
   3) 产品详情 → 标题/正文/按钮统一居中。 */
.solution-detail__content.detail-prose,
.case-detail.detail-prose { max-width: 100%; }
/* 2026-10-26：案例详情页正文自带 CSS 会把外层 .section 压到 1200px，
   这里用专属类还原成与「爱普雷德介绍」页一致的满宽。 */
.section.section-case-detail { max-width: none; margin: 0; }


.container.container--detail > .breadcrumb,
.container.container--detail > .entry-meta,
.container.container--detail > .detail-header,
.container.container--detail > .entry-content.detail-prose,
.container.container--detail > .detail-back {
  max-width: min(52em, calc(100vw - 60px));
  margin-left: auto;
  margin-right: auto;
}

.product-detail > .product-detail__header,
.product-detail > .product-detail__content,
.product-detail > .product-detail__footer {
  max-width: min(62em, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* ===== 2026-10-26：产品详情若正文是「整页设计 HTML」（如智能硬件「呼小爱」），
   同样占满容器，与解决方案/案例详情保持一致；纯文字产品仍用居中窄栏。 ===== */
.product-detail__content.detail-prose:has(header.hero),
.product-detail__content.detail-prose:has(style) {
  max-width: 100%;
}
.solution-detail__content h2,
.solution-detail__content h3 { color: var(--ink); margin-top: 1.6em; margin-bottom: .6em; }
.solution-detail__content p { margin-bottom: 1em; }
.solution-detail__content ul { padding-left: 1.4em; margin-bottom: 1em; }
.solution-detail__content li { margin-bottom: .4em; }
.solution-detail__footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

@media (min-width: 576px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .solutions-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
  .solutions-sidebar { display: block; position: sticky; top: 100px; }
  .solutions-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
  .solutions-toc-title { font-weight: 600; color: var(--ink); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .solutions-toc ul { list-style: none; margin: 0; padding: 0; }
  .solutions-toc li + li { margin-top: 4px; }
  .solutions-toc a { position: relative; display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem; line-height: 1.45; overflow: hidden; transition: background .2s ease, color .2s ease, padding-left .2s ease; }
  .solutions-toc a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0); width: 3px; height: 60%; background: var(--accent); border-radius: 0 2px 2px 0; transition: transform .22s ease; }
  .solutions-toc a:hover { background: rgba(42,163,57,.08); color: var(--brand-dark); }
  .solutions-toc a.active { background: rgba(25,85,249,.10); color: var(--accent-dark); padding-left: 16px; font-weight: 600; }
  .solutions-toc a.active::before { transform: translateY(-50%) scaleY(1); }
  .solutions-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .solution-detail { padding: 0; }
  .solution-detail__header h1 { font-size: 2rem; }
}

/* ============ 成功案例页 ============ */
.case-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 32px; }
.case-stat { flex: 1 1 0; min-width: 130px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: 12px; padding: 20px 14px; text-align: center; box-shadow: 0 4px 14px rgba(42,163,57,.18); }
.case-stat .num { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.case-stat .lbl { display: block; margin-top: 6px; font-size: .85rem; opacity: .92; }
.case-section-title { font-size: 1.25rem; font-weight: 600; margin: 8px 0 18px; color: var(--ink); border-left: 4px solid var(--brand); padding-left: 12px; }
.case-detail { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 20px; box-shadow: none; }
.case-detail h3 { margin: 0 0 .6em; font-size: 1.2rem; color: var(--teal); }
.case-detail h4 { margin: 1em 0 .4em; font-size: 1rem; color: var(--ink); }
.case-detail p { margin: 0 0 .8em; color: var(--muted); font-size: .98rem; line-height: 1.75; }
.case-detail ul { margin: 0 0 .8em; padding-left: 1.2em; color: var(--muted); }
.case-detail li { margin-bottom: .4em; line-height: 1.7; }
.case-card-img { width: 100%; height: auto; display: block; border-radius: 12px 12px 0 0; margin: -22px -22px 18px; max-width: calc(100% + 44px); aspect-ratio: 16/9; object-fit: cover; background: #f5f5f5; }
.case-detail-img { width: 100%; height: auto; display: block; border-radius: 12px; margin: 0 0 18px; aspect-ratio: 16/9; object-fit: cover; background: #f5f5f5; }
@media (max-width: 768px) { .case-stat { min-width: 110px; padding: 18px 10px; } .case-stat .num { font-size: 1.5rem; } .case-detail { padding: 18px; } }

/* 案例画廊（aplid.com 真实案例） */
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 40px; }
.case-gallery-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(40,40,40,.05); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.case-gallery-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(40,40,40,.10); }
.case-gallery-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #f5f5f5; }
.case-gallery-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.case-gallery-body h3 { margin: 0 0 .5em; font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.case-gallery-body h3 a { color: var(--teal); text-decoration: none; }
.case-gallery-body h3 a:hover { color: var(--brand); }
.case-gallery-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; flex: 1; }
@media (max-width: 992px) { .case-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .case-gallery { grid-template-columns: 1fr; } .case-gallery-img { aspect-ratio: 16/9; } }

/* 自定义区块兼容 */
.sol-grid > .wp-block-group,
.sol-grid > .wp-block-column { margin: 0; }
.sol-card.wp-block-group { padding: 22px; }

/* ============ 详情页按钮（兼容古腾堡输出） ============ */
.btn.btn-primary { display: inline-block; background: var(--brand-darker); color: #fff; text-decoration: none; padding: 12px 26px; border-radius: var(--radius-sm); font-weight: 600; margin-top: 10px; }
.btn.btn-primary:hover { background: var(--brand); }

/* ============ 移动端底部固定 CTA（仅 <992 显示） ============ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(40,50,60,.12);
}
.mobile-cta a { flex: 1; text-align: center; padding: 12px 8px; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.mobile-cta .mc-call { background: var(--accent); color: #fff; }
.mobile-cta .mc-book { background: var(--brand-darker); color: #fff; }
.mobile-cta .mc-book:hover { background: var(--brand); }
/* 桌面隐藏后，首页 hero 与内容不需要额外底部留白处理；移动端给底部留出空间 */
body.has-mobile-cta { padding-bottom: 72px; }

/* ============ 响应式：向上扩展（Mobile-First @media min-width） ============ */
/* sm ≥ 576px：卡片双列、表单双列 */
@media (min-width: 576px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* md ≥ 768px：导航向横排过渡、关于/联系双列、解决方案三列 */
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .sol-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .btn-block-mobile { display: inline-block; width: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

/* lg ≥ 992px：完整导航横排 + 多列网格 + 隐藏移动 CTA */
@media (min-width: 992px) {
  body { font-size: 1.125rem; }              /* 桌面 18px */
  h1 { font-size: 2rem; }                     /* 32px */
  h2 { font-size: 1.625rem; }                 /* 26px */
  h3 { font-size: 1.25rem; }                  /* 20px */
  h4 { font-size: 1.125rem; }                 /* 18px */

  .section { padding: 72px 0; }
  .section-title { margin-bottom: 40px; }

  /* 导航横排 */
  .nav-toggle { display: none; }
  .header-cta { display: block; }
  .header-cta .btn { margin-left: 16px; }
  .main-nav { display: block; }
  .main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
  .main-nav a { font-weight: 500; font-size: .9375rem; letter-spacing: .01em; color: #333; padding: 6px 0; position: relative; }
  .main-nav a:hover { color: var(--brand); }
  .main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brand); transition: width .2s; }
  .main-nav a:hover::after { width: 100%; }

  /* 二级下拉菜单 */
  .main-nav li { position: relative; }
  .main-nav .sub-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 140px; padding: 8px 0; margin-top: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover); z-index: 200;
    list-style: none; flex-direction: column; gap: 0;
  }
  .main-nav .sub-menu::before {
    content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  }
  .main-nav li:hover > .sub-menu { display: flex; }
  .main-nav .sub-menu a {
    display: block; padding: 10px 18px; white-space: nowrap; font-size: .875rem; color: #333;
  }
  .main-nav .sub-menu a::after { display: none; }
  .main-nav .sub-menu a:hover { color: var(--brand); background: #f8fafc; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1.1fr 1.4fr 1.5fr auto; gap: 48px 48px; }
  .footer-about { max-width: 360px; }

  .cta-band { padding: 48px; }
  .cta-band .btn { display: inline-block; width: auto; max-width: none; margin: 0; }

  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }

  /* 文章列表：桌面端左图右文 */
  .post-item { flex-direction: row; align-items: flex-start; gap: 22px; }
  .post-item--no-thumb .post-body { margin-left: 0; }
  .post-thumb {
    width: 220px;
    max-width: 220px;
    aspect-ratio: 16 / 10;
  }
  .post-body { padding-top: 4px; }
}

/* ============ 产品详情页 ============ */
.product-detail__header { margin-bottom: 24px; }
.product-detail__icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(42,163,57,.10); color: var(--brand); font-size: 2rem;
  margin-bottom: 18px;
}
.product-detail__lead {
  font-size: 1.1rem; color: var(--muted); margin: 10px 0 0; line-height: 1.7;
}
.product-detail__image {
  margin: 0 0 28px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.product-detail__image img { width: 100%; height: auto; display: block; }
.product-detail__content { color: var(--ink); font-size: 1.05rem; line-height: 1.85; }
.product-detail__content h2,
.product-detail__content h3 { color: var(--ink); margin-top: 1.6em; margin-bottom: .6em; }
.product-detail__content p { margin-bottom: 1em; }
.product-detail__content ul { padding-left: 1.4em; margin-bottom: 1em; }
.product-detail__content li { margin-bottom: .4em; }
/* 覆盖正文内联网格，保证 4 个功能卡片在桌面端 2×2 整齐排列 */
.product-detail__content .feature-grid[style] {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  margin: 24px 0 !important;
}
@media (max-width: 640px) {
  .product-detail__content .feature-grid[style] {
    grid-template-columns: 1fr !important;
  }
}
.product-detail__content .feature-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--brand);
}
.product-detail__content .feature-card h4 {
  margin-top: 0;
  margin-bottom: .5em;
  color: var(--ink);
  font-size: 1.05rem;
}
.product-detail__content .feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
}
.product-detail__footer {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
/* 窄屏下按钮换行并占满宽度，避免被 space-between 挤出容器 */
@media (max-width: 640px) {
  .product-detail__footer,
  .solution-detail__footer,
  .case-detail .btn,
  .entry-content .btn { justify-content: center; }
  .product-detail__footer .btn,
  .solution-detail__footer .btn { flex: 1 1 100%; text-align: center; }
}

/* xl ≥ 1200px：容器已封顶，无需额外列数变化，仅微调留白 */
@media (min-width: 1200px) {
  .container { padding: 0 24px; }
}

/* ============ Hero 横幅桌面端通栏（突破容器宽度铺满） ============ */
/* PC 上横幅不再受 1168px 容器限制，左右不再出现大片空白。
   图片原图 1536×640（2.4:1）：默认按原比例完整显示、不裁剪任何文字；
   仅在超宽屏高度超出视口时，用 max-height + cover 做兜底裁剪。 */
@media (min-width: 992px) {
  .hero {
    padding: 0;
    width: 100%;
    max-width: none;
  }
  .hero-slider {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
  }
  .hero-banner__img {
    width: 100%;
    height: auto;
    max-height: 96vh;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-slider__dots {
    bottom: 22px;
  }
  .hero-banner__placeholder {
    width: 100%;
    height: auto;
    min-height: clamp(300px, 34vw, 560px);
  }
}

/* ===== 全站右下角浮动联系窗（竖向三入口：在线咨询 / 电话沟通 / 预约演示） ===== */
.contact-float {
  position: fixed;
  right: 22px;
  left: auto;
  bottom: 22px;
  z-index: 9999;
  font-family: var(--font, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif);
}
.contact-float--side { right: 22px; left: auto; }
.contact-float__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .14);
  border: 1px solid rgba(0, 0, 0, .06);
}
.contact-float__bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #555;
  font-size: .72rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.contact-float__bar-item:hover { transform: translateY(-2px); opacity: .9; text-decoration: none; }
.contact-float__bar-label { font-weight: 500; white-space: nowrap; }
.contact-float__bar-ico { font-size: 1.25rem; line-height: 1; }
/* 电话沟通：悬停/点击展开电话薄（对齐 hlnwl.com），弹层往左侧开（因本栏在右下角） */
.contact-float__bar-tel { position: relative; }
.contact-float__tel-pop {
  position: absolute;
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  width: 172px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  border: 1px solid rgba(0, 0, 0, .06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 5;
}
.contact-float__bar-tel:hover .contact-float__tel-pop,
.contact-float__bar-tel.is-open .contact-float__tel-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.contact-float__tel-pop a {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.contact-float__tel-pop a:hover { background: #f3fbfc; }
.contact-float__tel-pop .fz_t { font-size: .72rem; color: #888; }
.contact-float__tel-pop .tel { font-size: .95rem; font-weight: 600; color: #2aa7ad; }
@media (max-width: 400px) {
  .contact-float { right: 14px; left: auto; bottom: 14px; }
}
@media print {
  .contact-float { display: none; }
}


/* 文章内视频/嵌入自适应（新闻详情页等） */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.wp-block-embed iframe,
.wp-block-video video,
.wp-block-video .wp-video {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* WordPress 视频短代码容器 */
.entry-content .wp-video,
.entry-content .mejs-container,
.entry-content .mejs-inner,
.entry-content .mejs-mediaelement,
.entry-content .mejs-overlay,
.entry-content .wp-video-shortcode {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

.entry-content .mejs-overlay,
.entry-content .mejs-poster {
  width: 100% !important;
  height: 100% !important;
}

/* 图片也保持不溢出 */
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* =====================================================================
   2026-11-02 新闻/文章详情页：列宽对齐 + 层级重排（用户反馈：排版不好看）
   根因：面包屑 / 日期 / 标题 / 正文原来各自用 max-width: min(52em, …) 限宽，
   em 是按「各元素自己的 font-size」换算的，于是同一栏里出现三种宽度：
       面包屑 14.4px → 749px ／ 标题 18px → 936px ／ 正文 16.8px → 874px
   三条左边缘互相错开 40~54px，视觉上整块是歪的。
   改法：统一成同一个像素列宽 --detail-w，文章头重排为「面包屑→标题→日期→分隔线」。
   仅作用于 body.single-post（新闻文章），不影响解决方案/案例/产品详情。
   ===================================================================== */
body.single-post { --detail-w: 860px; }

body.single-post .container.container--detail > .detail-header,
body.single-post .container.container--detail > .entry-content.detail-prose,
body.single-post .container.container--detail > .detail-back {
  max-width: min(var(--detail-w), calc(100vw - 260px));
  margin-left: auto;
  margin-right: auto;
}

/* 文章头：底部细线把「标题区」和「正文」切开 */
body.single-post .container.container--detail > .detail-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* 面包屑：单行、过长省略，不再挤成两三行 */
body.single-post .detail-header .breadcrumb {
  display: block;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.single-post .detail-header .breadcrumb a { color: var(--muted); text-decoration: none; }
body.single-post .detail-header .breadcrumb a:hover { color: var(--brand); }
body.single-post .detail-header .breadcrumb .sep { margin: 0 .5em; color: #c8c8c8; }

/* 标题：24~31px 自适应，收紧行高、均衡断行 */
body.single-post .detail-header h1 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.95rem);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0;
  /* 2026-11-02 由 balance 改为 pretty：
     balance 会把 35 字长标题拆成「两行各 18 字」，右侧留出 300px 空白，像诗句；
     pretty 只防末行孤字，首行仍然顶满列宽，是正常文章标题的参差。 */
  text-wrap: pretty;
}

/* 日期 · 分类：与标题拉开距离，分类做成小胶囊 */
body.single-post .detail-header .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: .85rem;
  color: var(--muted);
}
body.single-post .detail-header .entry-meta a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(42, 163, 57, .09);
  color: var(--brand-dark);
  text-decoration: none;
}

/* 正文段落/引用跟随列宽，与标题严格左对齐 */
body.single-post .detail-prose > p,
body.single-post .detail-prose > ul,
body.single-post .detail-prose > ol,
body.single-post .detail-prose > blockquote,
body.single-post .detail-prose > h2,
body.single-post .detail-prose > h3,
body.single-post .detail-prose > h4 { max-width: 100%; }

/* 正文图片：撑满列宽、统一圆角（原图是 2048px 高清，缩小显示更锐利） */
body.single-post .detail-prose > figure.wp-block-image { margin: 2em 0; }
body.single-post .detail-prose > figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 10px;
}

/* 小节标题：正文里用的是 <h1>，与页面标题同为 32px，层级被拉平。
   视觉降为 22px + 品牌绿竖条，建立清晰的章节节奏。 */
body.single-post .detail-prose > h1.wp-block-heading,
body.single-post .detail-prose > h2.wp-block-heading,
body.single-post .detail-prose > h3.wp-block-heading {
  font-size: 1.375rem;
  line-height: 1.55;
  font-weight: 700;
  margin: 2.2em 0 .9em;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
}
body.single-post .detail-prose > .wp-block-heading:first-child { margin-top: 0; }

@media (max-width: 768px) {
  body.single-post .container.container--detail > .detail-header,
  body.single-post .container.container--detail > .entry-content.detail-prose,
  body.single-post .container.container--detail > .detail-back { max-width: 100%; }
  body.single-post .detail-header h1 { font-size: 1.375rem; }
  /* 小屏上标题 22px，若小节标题同为 22px 层级会再次拉平，这里降到 18px */
  body.single-post .detail-prose > h1.wp-block-heading,
  body.single-post .detail-prose > h2.wp-block-heading,
  body.single-post .detail-prose > h3.wp-block-heading { font-size: 1.125rem; }
}
/* =====================================================================
   2026-11-02 详情页（产品 / 案例 / 解决方案）页头统一
   ---------------------------------------------------------------------
   审计（1440 视口实测，左边缘 x）：
       页面        面包屑   标题    正文
       产品详情     346     162     86
       案例详情     346     252     86
       新闻详情     290     290    290   ← 已对齐
   面包屑和标题都在用 max-width: min(52em|62em, …) 居中，em 随各自字号变化，
   与正文列错开 76~260px。更关键的是：这三类详情页的正文本身就是
   「一整页设计好的 HTML」，里面已经有一块 42~45px 的大标题 hero，
   外层再放一次 h1，等于同一个标题上下写了两遍。
   处理：
     1) 面包屑按容器内容盒对齐，与正文同一左边缘；
     2) 正文带 hero 时隐藏外层重复标题，页面直接从大图开始；
     3) 无 hero 的纯文字详情页保留标题，规格与新闻详情页一致。
   ===================================================================== */

/* ---- 1. 面包屑：与正文同宽、同左边缘（原来 749px 居中，缩进 260px） ---- */
body.single-yanglao_product .container.container--detail > .breadcrumb,
body.single-case .container.container--detail > .breadcrumb {
  max-width: 100%;
  margin: 0 0 16px;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.single-yanglao_product .container.container--detail > .breadcrumb a,
body.single-case .container.container--detail > .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
body.single-yanglao_product .container.container--detail > .breadcrumb a:hover,
body.single-case .container.container--detail > .breadcrumb a:hover { color: var(--brand); }

/* ---- 2. 页头：与正文同宽、同左边缘，标题规格与新闻详情页一致 ---- */
body.single-yanglao_product .product-detail > .product-detail__header,
body.single-case .container.container--detail > .detail-header,
body.single-solution .solution-detail > .solution-detail__header {
  max-width: 100%;
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

body.single-yanglao_product .product-detail > .product-detail__header h1,
body.single-case .container.container--detail > .detail-header h1,
body.single-solution .solution-detail > .solution-detail__header h1 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.95rem);
  line-height: 1.45;
  font-weight: 700;
  margin: 0;
  text-wrap: pretty;
}

/* ---- 3. 正文自带 hero：去掉重复标题（只有标题的页头整块隐藏） ---- */
body.single-yanglao_product
  .product-detail > .product-detail__header:has(+ .product-detail__content header.hero):has(> h1:only-child),
body.single-case
  .container.container--detail > .detail-header:has(+ .case-detail header.hero):has(> h1:only-child),
body.single-solution
  .solution-detail > .solution-detail__header:has(+ .solution-detail__content header.hero):has(> h1:only-child) {
  display: none;
}
/* 带摘要的页头：只藏重复的 h1，保留摘要，并去掉分隔线 */
body.single-yanglao_product
  .product-detail > .product-detail__header:has(+ .product-detail__content header.hero),
body.single-case
  .container.container--detail > .detail-header:has(+ .case-detail header.hero),
body.single-solution
  .solution-detail > .solution-detail__header:has(+ .solution-detail__content header.hero) {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}
body.single-yanglao_product
  .product-detail > .product-detail__header:has(+ .product-detail__content header.hero) > h1,
body.single-case
  .container.container--detail > .detail-header:has(+ .case-detail header.hero) > h1,
body.single-solution
  .solution-detail > .solution-detail__header:has(+ .solution-detail__content header.hero) > h1 {
  display: none;
}

/* 案例页比较特殊：正文 hero 里的大标题是 <div class="hero-title">，不是 h1。
   直接藏掉外层 h1 会让整页没有 h1（伤 SEO / 读屏），所以改为「视觉隐藏」——
   屏幕上只看到大图标题，文档结构里 h1 仍然是页面标题。 */
body.single-case
  .container.container--detail > .detail-header:has(+ .case-detail .hero) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 纯文字详情页（正文没有 hero）：页头也收进正文那一栏。
   否则会出现「标题顶在 1267px 的最左边、正文缩进到中间 874px」的错位
   —— 产品 product-67 / product-4558 就是这种情况。 */
body.single-yanglao_product
  .product-detail:not(:has(.product-detail__content header.hero)) > .product-detail__header,
body.single-yanglao_product
  .product-detail:not(:has(.product-detail__content header.hero)) > .product-detail__content,
body.single-case
  .container.container--detail:not(:has(.case-detail .hero)) > .detail-header,
body.single-case
  .container.container--detail:not(:has(.case-detail .hero)) > .case-detail {
  max-width: min(874px, calc(100vw - 260px));
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  body.single-yanglao_product
    .product-detail:not(:has(.product-detail__content header.hero)) > .product-detail__header,
  body.single-yanglao_product
    .product-detail:not(:has(.product-detail__content header.hero)) > .product-detail__content,
  body.single-case
    .container.container--detail:not(:has(.case-detail .hero)) > .detail-header,
  body.single-case
    .container.container--detail:not(:has(.case-detail .hero)) > .case-detail {
    max-width: 100%;
  }
}

/* 同上，面包屑跟随这一栏（否则标题已在中间，面包屑还贴在容器最左边） */
body.single-yanglao_product
  .container.container--detail:not(:has(.product-detail__content header.hero)) > .breadcrumb,
body.single-case
  .container.container--detail:not(:has(.case-detail .hero)) > .breadcrumb {
  max-width: min(874px, calc(100vw - 260px));
  margin: 0 auto 16px;
}
@media (max-width: 768px) {
  body.single-yanglao_product
    .container.container--detail:not(:has(.product-detail__content header.hero)) > .breadcrumb,
  body.single-case
    .container.container--detail:not(:has(.case-detail .hero)) > .breadcrumb {
    max-width: 100%;
  }
}

/* ---- 3b. 通用内页（关于我们 / 联系我们）：同一套页头规格 ----
   关于我们同样有「标题写两遍」：外层 h1「爱普雷德」+ 大图里 51px 的「南京爱普雷德」。 */
body.page .container.container--detail > .detail-header {
  max-width: 100%;
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
body.page .container.container--detail > .detail-header h1 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.95rem);
  line-height: 1.45;
  font-weight: 700;
  margin: 0;
  text-wrap: pretty;
}
/* 内容自带 hero（关于我们）→ 外层标题隐藏，大图里的 h1 接管 */
body.page .container.container--detail > .detail-header:has(+ div header.hero) {
  display: none;
}

/* ---- 4. 页头之上留白收紧，面包屑不再悬在大片空白中间 ---- */
body.single-yanglao_product .section.section-product-detail,
body.single-case .section.section-case-detail,
body.single-solution .section.section-solution-detail { padding-top: 34px; }
@media (max-width: 768px) {
  body.single-yanglao_product .section.section-product-detail,
  body.single-case .section.section-case-detail,
  body.single-solution .section.section-solution-detail { padding-top: 24px; }
}

/* =====================================================================
   2026-11-02 站点外壳隔离（重要）
   ---------------------------------------------------------------------
   上面几类详情页的正文是「整页设计好的 HTML」，它自带的 <style> 里写着
       *{margin:0;padding:0}   body{font-family:'Noto Sans SC'…}
       .container{max-width:1200px;padding:0 24px}
   这些选择器没有作用域，会连导航栏、页脚一起改掉。实测同一站点：
       新闻页   导航宽 1180  字体 PingFang SC / 微软雅黑
       产品页   导航宽 1200  字体 Noto Sans SC
   于是「换个页面，导航栏就宽 20px、字也换了」——这才是全局『看着乱』的来源。
   这里用更高特异性把「站点外壳」拉回主题基调；
   注意只动 shell（.site-header / .site-footer），不动正文自身的品牌变量与配色，
   因为正文 hero 的渐变依赖它自己那套 --brand-darker / --brand-dark。
   ===================================================================== */
.site-header .container,
.site-footer .container {
  max-width: var(--maxw);
  padding-left: 22px;   /* 正文 style 里的 .container{padding:0 24px} 会把这里顶到 24px */
  padding-right: 22px;
}

.site-header,
.site-footer {
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Heiti SC", "SimHei", system-ui, -apple-system, sans-serif;
}
