/**
 * 东泉顺环保｜公共样式 - 所有子页面共享
 * 深海蓝 #00509B + 森林绿 #27ae60
 * 容器宽度 1400px
 */

/* 2026-10-25 P0 修复记录（依据《官网A站配色系统设计规范 v2》）
 * 1) 全站标题色：父主题 Astra 的 h1~h6{color:#808285} 白底仅 3.85:1，用 body 前缀(0,0,2)压过；
 *    深色区块的 .xxx h1{color:inherit}(0,1,1) 仍胜出，不受影响。
 * 2) 绿底白字 CTA：原 #27ae60 白字仅 2.87:1 → 统一 #1E7E34（5.14:1），hover #146C2E（6.53:1）。
 * 3) Hero 遮罩分区化：基础层透图 + .hero-content::before 文字区补光。 */

/* === CSS 变量 === */
/* 配色优化方案 2026-09-07：4 级冷灰过渡 + slate 文字色阶，消除纯白断层，WCAG AA 达标 */
:root {
    --primary: #00509B;
    --primary-dark: #003D7A;
    --accent: #27ae60;
    --accent-hover: #34c176;
    --accent-light: #e8f8f0;
    /* 专用绿色文字变量 — --accent 在白底对比度仅 2.87:1 不达标 */
    --accent-text: #1a7a40;       /* 浅底绿色文字 — 白底 5.1:1，#e8f8f0 底 4.6:1 */
    --accent-on-dark: #5fd6a0;    /* 深底绿色文字 — #1c506a 上 4.83:1，#002A5C 上 7.82:1 */
    /* 背景色阶（冷灰带蓝调，呼应主色 #00509B）*/
    --bg-page: #edf2f7;          /* 页面底色 — 极淡冷灰蓝，替代纯白 #fff */
    --bg-card: #ffffff;          /* 卡片/面板/弹层底色 — 纯白，在浅灰底上浮起 */
    --bg-section-alt: #e2e8f0;   /* 交替板块底色 — 略深冷灰蓝，替代 #f8f9fa */
    --bg-soft: #f1f5f9;          /* 柔和底色 — hover/高亮/图框 */
    --bg-light: #f8fafc;         /* 最浅底色 — 保留变量名 */
    --bg-dark: #003D7A;
    --bg-darker: #002A5C;
    /* 文字色阶（冷调 slate 系列，与冷灰背景同色系）
       注意：--text-* 仅适用于浅色背景，深色底请用 --text-on-dark */
    --text-dark: #1e293b;        /* 标题/主文字 */
    --text-body: #334155;        /* 正文 */
    --text-gray: #475569;        /* 次要文字 */
    --text-light: #566275;       /* 辅助文字 — 确保 ≥4.5:1 */
    /* 深色底文字（页脚 / 深色块专用）
       --text-light #566275 在 #002A5C 上仅 2.29:1 不可用，必须用浅色 */
    --text-on-dark: #cbd5e0;         /* 深底正文 — 在 #002A5C 上 9.51:1 */
    --text-on-dark-strong: #ffffff;  /* 深底标题/强调 — 14.15:1 */
    /* 边框（冷调蓝灰）*/
    --border: #cbd5e0;
    --border-light: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,80,155,.06);
    --shadow-md: 0 4px 20px rgba(0,80,155,.08);
    --shadow-lg: 0 8px 40px rgba(0,80,155,.1);
    --radius: 8px;
    --font: -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Source Han Sans SC','Noto Sans SC',sans-serif;
    /* === 统一标题字号阶梯（2026-10-22 视觉审查修复）=== */
    --h1-fs: 40px;    /* 页面主标题 */
    --h2-fs: 40px;    /* section 标题（2026-10-23 全站放大：32px → 40px） */
    --h3-fs: 24px;    /* 卡片/子区标题 */
    --h4-fs: 20px;    /* 列表项标题 */
    /* === Section 间距统一（2026-10-22 修复：消除 100px 等极端值）=== */
    --section-padding: 60px 0;
    /* === P1 语义 Token 层（2026-10-25 建立，依据《官网A站配色系统设计规范 v2》第 6~10 层）===
       原则：Token 值 = 站点现有取值，本轮替换观感 0 变化；
       仍需合并的野生值（两个红 #C0392B / #D93025 等）列入 P1-B 清单，不在此强行合并。 */
    /* 成功态（绿底白字，P0 已统一压深）*/
    --ok: #1E7E34;                        /* 填充/按钮底 — 白字 5.14:1 */
    --ok-hover: #146C2E;                  /* 悬停底 — 白字 6.53:1 */
    --ok-soft: var(--accent-light);       /* 浅绿底 #e8f8f0 */
    --ok-text: var(--accent-text);        /* 浅底绿字 #1a7a40 */
    --ok-on-dark: var(--accent-on-dark);  /* 深底绿字 #5fd6a0 */
    /* 状态·错误 / 警示 / 信息（P1-B 完成：红系已合并为单一 --err）*/
    --err: #C0392B;        --err-text: #B3261E;   --err-soft: #FDECEA;   --err-border: #F5C6C2;
    --warn-soft: #FEF3C7;  --warn-text: #92400E;
    --info: #0F766E;       --info-text: #155E75;    --info-soft: #ECFEFF;
    /* 图片层 */
    --img-opacity: .7;                    /* hero 底图透明度 */
    /* P1-B 新增：结构白 / 禁用态绿 */
    --white: #FFFFFF;       /* 深底白描边、白底按钮描边 */
    --ok-disabled: #A9C4B4; /* 禁用态绿 — 无近似可并，保值命名 */
}

/* === 全局重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text-dark); line-height: 1.8; background: var(--bg-page); font-size: 16px; }
a { text-decoration: none; color: inherit; transition: .3s; }
img { max-width: 100%; height: auto; }

/* === 容器 === */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 修复：Astra 父主题对自定义页面模板施加的 body { max-width: 700px } 窄宽限制 */
body.page-template-page-bag-dust,
body.page-template-page-cartridge-dust,
body.page-template-page-filter-cartridge,
body.page-template-page-dust-treatment,
body.page-template-page-vocs,
body.page-template-page-cases,
body.page-template-page-contact,
body.page-template-page-about,
body.page-template-page-about-us,
body.page-template-page-team {
    max-width: 100% !important;
}

/* === 顶部信息栏 === */
.topbar { background: var(--primary); color: var(--text-on-dark-strong); padding: 10px 0; font-size: 16px; }
.topbar-inner { display: flex; justify-content: center; align-items: center; }
.topbar-contact { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 16px; }

/* === 头部导航 === */
.site-header { background: var(--bg-card); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { width: 200px; height: 68px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo-text { font-size: 27px; font-weight: 700; color: var(--primary); }
.logo-text span { color: var(--accent-text); }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }

/* === 主导航 === */
.main-nav { display: flex; gap: 2px; align-items: center; position: relative; flex: 1; padding-left: 14px; flex-wrap: nowrap; }
/* 字号/内边距随视口流式收敛：.container 封顶 1400px，而横向长版 LOGO(3.2:1) 占位较宽，
   9 个中文导航项 + 右侧 CTA 必须靠 clamp 才能在所有桌面宽度下都排得下（详见 responsive.css 说明）。
   2026-10-23 导航字号上调：17px→19px（宽屏），15px→15px（窄桌面下限），利用富余宽度 */
.main-nav > a,
.main-nav > .has-dropdown > a { color: var(--text-dark); font-weight: 500; padding: 8px clamp(8px, .75vw, 12px); border-radius: var(--radius); font-size: clamp(15px, 1.35vw, 19px); white-space: nowrap; }
.main-nav > a:hover,
.main-nav > a.active,
.main-nav > .has-dropdown:hover > a { color: var(--accent-text); background: var(--accent-light); }




/* === 下拉菜单 === */
/* 🔴 铁律：.has-dropdown 必须 white-space: nowrap。
   箭头 ▾ 由 ::after 生成，挂在 .has-dropdown 这个 div 上（不是挂在 <a> 上）。
   一旦 flex 把该 div 压缩到「<a> 文字宽 + ▾ 宽」之下，▾ 就会单独折到第二行：
   行高从 ~32px 涨到 ~61px，文字上移、栏底出现一排孤立小三角。
   给容器加 nowrap 可让 ▾ 与文字永远同排，且与视口宽度无关（是结构性保证，不是尺寸调参）。 */
.has-dropdown { position: relative; white-space: nowrap; }
.has-dropdown::after { content: ' ▾'; font-size: 11px; margin-left: 4px; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 260px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s; z-index: 100; border-top: 3px solid var(--accent); white-space: normal; }
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
/* [P2 ACC-002 2026-10-24] 键盘可达：Tab 进一级菜单时同样展开二级菜单。
   原先只有 :hover，键盘用户无法进入下拉项（WCAG 2.1.1）。
   用 :focus-within 覆盖「焦点在父级或任一子项」，Tab 序列可完整走完二级菜单。 */
.has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:focus-within > a { color: var(--accent-text); background: var(--accent-light); }
.dropdown-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dropdown-menu a { display: flex; align-items: center; padding: 14px 24px; font-size: 17px; color: var(--text-dark); border-radius: 0; min-height: 44px; } /* 2026-10-23 16→17px 与放大后的导航保持层级 */
.dropdown-menu a:hover { background: var(--accent-light); color: var(--accent-text); }
/* === 除尘滤筒 双分组二级菜单（左右两栏） === */
.dropdown-menu.dropdown-menu-cols { display: flex; align-items: stretch; min-width: 560px; padding: 10px 12px 12px; }
.dropdown-menu-cols .dropdown-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dropdown-menu-cols .dropdown-col + .dropdown-col { border-left: 1px solid var(--border); margin-left: 12px; padding-left: 12px; }
.dropdown-menu-cols .dropdown-section { display: block; padding: 6px 12px 10px; font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: .3px; }
.dropdown-menu-cols .dropdown-col a { padding: 10px 12px; font-size: 16px; min-height: 40px; } /* 2026-10-23 15→16px */
@media (max-width: 1024px) {
    .dropdown-menu.dropdown-menu-cols { flex-direction: column; min-width: 0; }
    .dropdown-menu-cols .dropdown-col + .dropdown-col { border-left: none; margin-left: 0; padding-left: 0; }
    .dropdown-menu-cols .dropdown-section { padding-top: 12px; }
}

/* === 移动端菜单按钮 === */
.mobile-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--primary); }
.nav-close { display: none !important; }

/* === 移动端导航 === */
@media(max-width: 1024px) {
    .main-nav { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--bg-soft); flex-direction: column; padding: 80px 20px 20px; box-shadow: var(--shadow-lg); transition: .3s; z-index: 999; align-items: flex-start; }
    .main-nav.open { right: 0; }
    .mobile-toggle { display: block; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 20px; }
}

/* === 页面 Hero === */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--text-on-dark-strong); padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: var(--h1-fs); margin-bottom: 16px; }
.page-hero p { font-size: 18px; opacity: .9; max-width: 700px; margin: 0 auto; }

/* === 通用 Section === */
.section { padding: var(--section-padding); }
.section-light { background: var(--bg-section-alt); }
.section-title { font-size: var(--h2-fs); text-align: center; margin-bottom: 16px; color: var(--primary); }
.section-subtitle { text-align: center; color: var(--text-gray); max-width: 1100px; margin: 0 auto 50px; font-size: 20px; line-height: 1.7; }

/* === 产品卡片 === */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.product-img { height: 280px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 80px; position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-soft); }
.product-body { padding: 28px; }
.product-body h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.product-body p { color: var(--text-gray); font-size: 16px; line-height: 1.8; margin-bottom: 14px; }
.product-features { list-style: none; margin-bottom: 18px; }
.product-features li { padding: 5px 0; font-size: 15px; color: var(--text-gray); display: flex; align-items: center; gap: 8px; }
.product-features li::before { content: "✓"; color: var(--accent-text); font-weight: 700; font-size: 14px; }

/* === 产品卡片按钮组 === */
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* === 按钮 === */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: .3s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--text-dark); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--text-on-dark-strong); }

/* === 技术表格 === */
.tech-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 17px; }
.tech-table th { background: var(--primary); color: var(--text-on-dark-strong); padding: 14px 18px; text-align: left; font-weight: 600; font-size: 17px; }
.tech-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 17px; }
.tech-table tr:nth-child(even) td { background: var(--bg-section-alt); }
.tech-table tr:hover td { background: var(--accent-light); }

/* === FAQ === */
.faq-section { padding: var(--section-padding); min-height: 600px; }

/* 滚动头条区 */
.faq-ticker-wrap {
  overflow: hidden;
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
  padding: 14px 0;
  position: relative;
}
.faq-ticker-wrap::before,
.faq-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.faq-ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-section-alt), transparent);
}
.faq-ticker-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-section-alt), transparent);
}
.faq-ticker-track {
  display: flex;
  gap: 30px;
  animation: faqScroll 30s linear infinite;
  width: max-content;
}
.faq-ticker-wrap:hover .faq-ticker-track {
  animation-play-state: paused;
}
@keyframes faqScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.faq-ticker-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 280px;
  max-width: 320px;
  padding: 6px 16px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: .2s;
}
.faq-ticker-item:hover { background: var(--accent-light); }
.faq-ticker-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.faq-ticker-summary {
  font-size: 12px;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文章列表 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  transition: .3s;
}
.faq-article:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(39,174,96,.15);
}
.faq-title {
  padding: 22px 28px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-title a {
  color: inherit;
  flex: 1;
}
.faq-title a:hover { color: var(--accent-text); }
.faq-permalink::before {
  content: '#';
  margin-right: 6px;
  color: var(--accent-text);
  opacity: 0;
  transition: .2s;
}
.faq-title:hover .faq-permalink::before { opacity: 1; }
.faq-share-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: .2s;
}
.faq-share-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.faq-summary {
  padding: 0 28px 10px;
  font-size: 14px;
  color: var(--text-gray);
  font-style: italic;
}
.faq-body {
  padding: 0 28px 22px;
  color: var(--text-gray);
  line-height: 1.9;
  font-size: 15px;
}

/* 环保技术中心 - 外部引流链接 */
.main-nav > a.nav-external { font-size: 20px; font-weight: 700; color: var(--text-on-dark-strong); background: var(--ok); padding: 10px 20px; border-radius: var(--radius); margin-left: auto; }
.main-nav > a.nav-external:hover { background: var(--ok-hover); color: var(--text-on-dark-strong); }

/* === CTA Section === */
/* === 环保技术中心按钮（全站 CTA 通用，原仅首页 front-page.css 定义） === */
.cta-section .btn-eco {
    background: var(--ok);
    color: var(--text-on-dark-strong);
    border-color: var(--ok);
}
.cta-section .btn-eco:hover {
    background: var(--ok-hover);
    border-color: var(--ok-hover);
}





.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--text-on-dark-strong); padding: 50px 0; text-align: center; } /* 2026-10-23 对齐全站 CTA 规范 padding 50px 0 */
.cta-section h2 { font-size: 44px; margin-bottom: 18px; line-height: 1.8; } /* 2026-10-23 对齐全站 CTA 规范 h2 44px */
.cta-section p { font-size: 22px; opacity: .9; max-width: 900px; margin: 0 auto 36px; line-height: 1.5; }
.cta-buttons { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn { padding: 18px 36px; font-size: 20px; font-weight: 700; }
.cta-section .btn-outline { border-color: var(--white); color: var(--primary); background: var(--bg-card); } /* 2026-10-23 CTA 三个按钮统一白底蓝字 */
.cta-section .btn-outline:hover { background: var(--ok); color: var(--text-on-dark-strong); border-color: var(--ok); }
/* 2026-10-23 主按钮与 outline 完全同款：白底蓝字，悬停统一变绿（全站 CTA 三按钮视觉与交互一致） */
.cta-section .btn-primary { border-color: var(--white); color: var(--primary); background: var(--bg-card); }
.cta-section .btn-primary:hover { background: var(--ok); color: var(--text-on-dark-strong); border-color: var(--ok); transform: none; }

/* 2026-10-23 CTA 左右布局：左文右图（微信二维码卡片） */
.cta-inner { display: flex; align-items: center; justify-content: center; gap: 70px; text-align: left; }
.cta-text { flex: 0 1 auto; }
.cta-text p { margin-left: 0; margin-right: 0; }
.cta-buttons { justify-content: flex-start; }
.cta-qr { flex-shrink: 0; background: var(--bg-card); padding: 16px; border-radius: 12px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.cta-qr img { width: 140px; height: 140px; display: block; }
.cta-qr p { margin: 10px 0 0; font-size: 15px; color: var(--text-body); opacity: 1; }
@media(max-width: 900px) {
    .cta-inner { flex-direction: column; text-align: center; gap: 30px; }
    .cta-text p { margin-left: auto; margin-right: auto; }
    .cta-buttons { justify-content: center; }
}

/* === 页脚（四行紧凑布局：标题 + 内容同排）===
   用 body 前缀提升优先级，压过 header.php 内联的旧页脚规则 */
/* 页脚为深色底(#002A5C)，正文须用 --text-on-dark 浅色（--text-light 在此仅 2.29:1） */
body .site-footer { background: var(--bg-darker); color: var(--text-on-dark); padding: 32px 0 18px; }
body .footer h3 { color: var(--text-on-dark-strong); margin-bottom: 18px; font-size: 17px; }
body .footer ul { list-style: none; }
body .footer ul li { padding: 7px 0; font-size: 15px; }
body .footer a:hover { color: var(--accent-on-dark); }
body .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; margin-top: 14px; text-align: center; font-size: 14px; color: var(--text-on-dark); }

/* 四行通用容器：标题与内容同排 */
body .footer-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px 16px; padding: 10px 0; line-height: 1.8; }
/* h3. 前缀(0,1,2) 压过 header.php 内联 .site-footer h3(0,1,1) 的 margin-bottom:18px */
body h3.footer-row-title { color: var(--text-on-dark-strong); font-size: 18px; font-weight: 700; margin: 0; flex-shrink: 0; min-width: 88px; line-height: 1.8; }

/* 行1：品牌介绍（单行，字号与后两行统一） */
/* p. 前缀(0,1,2) 压过内联 .site-footer p(0,1,1) 的 font-size:15px */
body p.footer-brand-desc { color: var(--text-on-dark); font-size: 18px; line-height: 1.8; margin: 0; padding: 0; }
body p.footer-brand-desc strong { color: var(--text-on-dark-strong); font-weight: 700; }

/* 行2：联系我们（标题 + 地址/电话/邮箱横排） */
body .footer-contact-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 30px; }
/* span. 前缀(0,1,2) 压过内联 .footer-contact-item(0,1,1) 与 responsive.css 的 font-size:15px */
body span.footer-contact-item { display: inline-flex; align-items: center; gap: 8px; padding: 0; font-size: 18px; line-height: 1.8; }

/* 行3：快速链接（强制单行，使用 inline-flex 让内容自适应） */
body .footer-quick-links { margin: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px 12px; }
body .footer-quick-links-list { list-style: none; display: inline-flex; flex-wrap: nowrap; gap: 0 8px; margin: 0; padding: 0; align-items: center; }
body ul.footer-quick-links-list li { font-size: 14px; line-height: 1.6; padding: 0; white-space: nowrap; display: inline-block; }
body .footer-quick-links-list a { color: var(--text-on-dark); text-decoration: none; transition: .2s; white-space: nowrap; font-size: 18px; display: inline-block; }
body .footer-quick-links-list a:hover { color: var(--accent-on-dark); }

/* === WCAG 2.4.1 Skip Navigation Link === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--accent);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: top .25s ease;
}
.skip-link:focus {
    top: 0;
    color: var(--text-dark);
    outline: 3px solid var(--text-on-dark-strong);
    outline-offset: 2px;
}

/* === WCAG 2.4.7 全局焦点指示器 === */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

/* === WCAG 2.3.3 动画减弱支持 === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === Skip Link 锚点偏移（避免被 sticky header 遮挡） === */
#site-main {
    scroll-margin-top: 60px;
}

/* === 锚点偏移 === */
.anchor-target { scroll-margin-top: 60px; }

/* 隐藏 Astra 默认返回顶部按钮（与自定义按钮重复，统一使用 .back-to-top） */
#ast-scroll-top { display: none !important; }

/* === 返回顶部按钮 === */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    background: var(--ok);
    color: var(--text-on-dark-strong);
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    letter-spacing: .5px;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--ok-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.back-to-top:active {
    transform: translateY(0);
}

/* === 移动端悬浮咨询栏（LEAD-05）：桌面默认隐藏，移动端在 responsive.css 显示 === */
.mobile-contact-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
}
.mobile-contact-bar .mcb-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}
.mobile-contact-bar .mcb-phone {
    background: var(--accent);
    color: var(--text-on-dark-strong);
}
.mobile-contact-bar .mcb-form {
    background: var(--primary);
    color: var(--text-on-dark-strong);
}
.mobile-contact-bar .mcb-item:active { filter: brightness(.94); }

/* === 无障碍：仅屏幕阅读器可见 === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* === 响应式 === */
@media(max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero h1 { font-size: 30px; }
    .section-title { font-size: 28px; }
}

/* ============================================================
 * 内容区标题色（2026-10-25 P0）—— 压过父主题 h1~h6{color:#808285} (0,0,1)
 * ============================================================ */
body h1, body h2, body h3, body h4, body h5, body h6 { color: var(--text-dark); }

/* ============================================================
 * 深色区块标题覆盖 — 压过父主题 Astra 的 h1~h6{color:#808285}
 * 父主题用元素选择器 (0,0,1) 直接命中 h1~h6，优先级高于子主题
 * 靠继承传下来的白色。用 (0,1,1) 压过，color:inherit 跟随父区块声明。
 * ============================================================ */
.page-hero h1,.page-hero h2,.page-hero h3,.page-hero h4,
.cta-section h1,.cta-section h2,.cta-section h3,.cta-section h4,
.hero h1,.hero h2,.hero h3,
.hero-content h1,.hero-content h2,.hero-content h3,
.cat-card-content h3,.cat-card-content h4,.cat-card-content p,
.cases-section h2,.cases-section h3,.cases-section h4,
.topbar h1,.topbar h2,.topbar h3,
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4 { color: inherit; }

/* ============================================================
 * 资质证书区（竖版展示，全局通用）
 * 证书扫描件多为 A4 竖版，统一用 3:4 容器 + object-fit:contain，
 * 保证竖版证书完整显示不裁切；横版扫描件也不会变形。
 * ============================================================ */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    /* [P1 CONT-004 2026-10-24] 卡片内容长度不一（编号行数不同）会导致
       同一行标题基线错位。用 stretch 让卡片等高，再把内部内容按列排布，
       标题就自然对齐到同一高度。 */
    align-items: stretch;
}
.cert-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-card);
    border-radius: var(--radius, 8px);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s;
}
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.cert-card h4 {
    font-size: 16px;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
    line-height: 1.5;
}
.cert-card p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 6px 0 0;
}
/* 竖版证书图框：3:4 + 浅灰底 + contain */
.cert-grid .cert-img,
.cert-card .cert-img {
    aspect-ratio: 3 / 4;
    height: auto;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: var(--radius, 8px);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}
.cert-grid .cert-img img,
.cert-card .cert-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* 横版证书图框：浅灰底 + contain
   [P1 CONT-004 2026-10-24] 原来横向用 4:3、纵向用 3:4，导致同一网格里
   图片区高度差 120px（158 vs 281），标题基线参差。
   现改为与纵版等高的横向比例（约 3:2.2），并去掉 max-height，
   让同一行卡片的图片区高度一致。
   ⚠️ 上线新证书时请保持同一比例，否则会再次出现参差。 */
.cert-grid .cert-img--horizontal,
.cert-card .cert-img--horizontal {
    aspect-ratio: auto;
    height: 280px;   /* 2026-10-29 与竖版图框等高,白底对齐 */
    max-height: none;
}
.cert-grid .cert-img--horizontal img,
.cert-card .cert-img--horizontal img { object-fit: cover; padding: 0; }
.advantage-img--horizontal {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
}

/* ============================================================
 * 证书/图片放大预览 Lightbox
 * ============================================================ */
.idt-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}
.idt-lightbox.is-open { display: flex; }
.idt-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-card);
}
.idt-lightbox .idt-lb-close {
    position: absolute;
    top: 20px; right: 28px;
    background: none;
    border: none;
    color: var(--text-on-dark-strong);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 12px;
}
.idt-lightbox .idt-lb-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.idt-lightbox .idt-lb-caption {
    position: absolute;
    bottom: 28px; left: 0; right: 0;
    text-align: center;
    color: var(--text-on-dark);
    font-size: 15px;
}
@media(max-width: 768px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cert-card { padding: 14px 10px; }
    .cert-card h4 { font-size: 14px; }
    .idt-lightbox { padding: 20px; }
}

/* === 案例详情（case-detail）共用样式：焊接/打磨等案例文章复用 === */
.case-detail{background:var(--bg-page);padding:50px 0 30px}
.case-detail .case-detail-inner{max-width:1000px;margin:0 auto}
.case-lead-img{margin:28px 0 0;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.case-lead-img img{width:100%;height:auto;display:block}
.case-lead-cap{font-size:13px;color:var(--text-gray);text-align:center;margin:10px 0 0}
.case-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:36px 0 10px}
.case-metric{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:24px 18px;text-align:center;box-shadow:var(--shadow-sm);transition:.3s}
.case-metric:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);border-color:var(--accent)}
.case-metric .m-num{font-size:30px;font-weight:700;color:var(--primary);line-height:1.2}
.case-metric .m-num small{font-size:15px;font-weight:600;color:var(--text-gray)}
.case-metric .m-label{margin-top:8px;font-size:14px;color:var(--text-gray)}
.case-detail h2.case-h2{font-size:30px;color:var(--primary);margin:52px 0 18px;padding-left:16px;border-left:5px solid var(--accent);line-height:1.4}
.case-detail h3.case-h3{font-size:19px;color:var(--text-dark);margin:26px 0 10px}
.case-detail .page-hero p{color:var(--text-on-dark)}
.page-hero .dqs-pubdate{color:var(--text-on-dark)}
.case-detail p{font-size:16px;line-height:1.9;color:var(--text-body);margin-bottom:14px}
.case-detail .lead{font-size:17px;color:var(--text-gray);margin-bottom:18px}
.case-emphasis{background:var(--accent-light);border-left:4px solid var(--accent);padding:14px 20px;border-radius:0 var(--radius) var(--radius) 0;margin:18px 0;font-size:16px;color:var(--text-body);line-height:1.85}
.case-emphasis strong{color:var(--accent-text)}
.case-ul{list-style:none;margin:14px 0 18px;padding:0}
.case-ul li{position:relative;padding:7px 0 7px 28px;font-size:16px;line-height:1.8;color:var(--text-body);border-bottom:1px dashed var(--border-light)}
.case-ul li:last-child{border-bottom:none}
.case-ul li::before{content:"✓";position:absolute;left:0;top:7px;color:var(--accent-text);font-weight:700}
.case-formula{background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--radius);padding:14px 20px;margin:14px 0;font-size:16px;color:var(--text-dark);font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace}
.case-formula b{color:var(--accent-text)}
.case-result{display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:var(--text-on-dark-strong);border-radius:var(--radius);padding:30px 24px;margin:26px 0}
.case-result .r-item{text-align:center}
.case-result .r-num{font-size:34px;font-weight:800;line-height:1.1}
.case-result .r-num small{font-size:16px;font-weight:600;opacity:.9}
.case-result .r-label{font-size:14px;opacity:.9;margin-top:6px}
.case-result .r-divider{width:1px;height:46px;background:rgba(255,255,255,.25)}
.case-exp-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin:20px 0 8px}
.case-exp{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow-sm)}
.case-exp .e-no{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--ok);color:var(--text-on-dark-strong);font-weight:700;font-size:15px;margin-right:10px;flex-shrink:0}
.case-exp h4{display:inline;font-size:17px;color:var(--primary);font-weight:700}
.case-exp p{font-size:15px;margin:10px 0 0;color:var(--text-gray);line-height:1.8}

/* [2026-10-27] V2.0 P0-9：案例页首发日期公示行 */
.dqs-pubdate{font-size:13px;color:var(--text-gray);text-align:center;margin:6px 0 0;letter-spacing:.3px}

/* [2026-10-27] V2.0 P1-7：蜜罐隐蔽引用（display:none 使正常浏览器不加载该 url，
   仅按 CSS 解析链接的批量采集工具可能跟随；nginx 对该路径返回 403 并记录） */
.dqs-honeypot-link{display:none;background-image:url('/wp-content/themes/astra-child/assets/honeypot.txt')}
.case-apply{background:var(--bg-section-alt);border-radius:var(--radius);padding:24px 26px;margin:22px 0}
.case-apply h3{font-size:18px;color:var(--primary);margin-bottom:12px}
.case-apply .tags{display:flex;flex-wrap:wrap;gap:10px}
.case-apply .tag{background:var(--bg-card);border:1px solid var(--border);border-radius:20px;padding:6px 16px;font-size:14px;color:var(--text-gray)}
@media(max-width:768px){
    .case-detail{padding:40px 0 20px}
    .case-detail .page-hero{padding:38px 18px}
    .case-detail .page-hero h1{font-size:24px}
    .case-detail .page-hero p{font-size:15px}
    .case-metrics{grid-template-columns:repeat(2,1fr);gap:12px;margin:24px 0 6px}
    .case-metric{padding:16px 10px}
    .case-metric .m-num{font-size:22px}
    .case-detail h2.case-h2{font-size:24px;margin:38px 0 14px;padding-left:12px}
    .case-detail h3.case-h3{font-size:17px}
    .case-detail p,.case-detail .lead{font-size:15px}
    .case-emphasis{font-size:15px;padding:12px 16px}
    .case-formula{font-size:15px;padding:12px 16px}
    .case-result{padding:22px 14px;gap:14px}
    .case-result .r-num{font-size:24px}
    .case-result .r-divider{height:34px}
    .case-exp-grid{grid-template-columns:1fr;gap:14px}
    .case-apply{padding:18px 18px}
    .case-apply .tag{font-size:13px;padding:5px 12px}
}
@media(max-width:480px){
    .case-metrics{grid-template-columns:1fr 1fr}
    .case-detail .page-hero h1{font-size:21px}
    .cta-buttons{flex-direction:column;align-items:stretch;gap:12px}
    .cta-buttons .btn{justify-content:center;width:100%}
}

/* ==========================================================================
   [P1 ACC-003 2026-10-24] 表单校验失败的可见反馈
   --------------------------------------------------------------------------
   原状态：前端只给字段设 aria-invalid="true"，但全站没有任何对应样式，
   用户填错后页面毫无变化，主观感受是「按钮点了没反应」。
   这里补齐三件事：
     ① 错误字段：红框 + 浅红底（不只靠颜色，配合下方文字提示）
     ② 字段下方：错误文案（由页面模板按 form_error 渲染）
     ③ 提示区：role="alert" / aria-live，读屏即时播报
   ========================================================================== */

/* ① 错误字段外观：颜色不是唯一线索，同时加粗边框 */
body [aria-invalid="true"] {
    border-color: var(--err) !important;
    background-color: var(--err-soft) !important;
    box-shadow: 0 0 0 1px var(--err) inset !important;
}
body [aria-invalid="true"]:focus,
body [aria-invalid="true"]:focus-visible {
    outline: 2px solid var(--err);
    outline-offset: 1px;
}
/* 勾选框不适用边框样式 */
body input[type="checkbox"][aria-invalid="true"] {
    outline: 2px solid var(--err);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ② 字段级错误文案 */
body .field-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--err-text);
    font-weight: 500;
}
body .field-error:empty { display: none; }

/* ③ 汇总提示区（表单顶部） */
body .form-alert {
    display: block;
    animation: idt-alert-in .25s ease-out;
}
@keyframes idt-alert-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    body .form-alert { animation: none; }
}
