/* 上海站无障碍层（2026-11-13）。只做无障碍：跳到正文、可见焦点、吸顶不遮焦点、二级菜单键盘展开、减少动效、点击目标。不改内容与视觉结构。 */
:root{--a11y-focus:#1e50ae;--a11y-focus-dark:#9cc4ff}

/* 视觉隐藏（读屏可读） */
.vh{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

/* 跳到正文：平时隐藏，聚焦时出现在左上角 */
.skip-link{position:absolute;left:12px;top:8px;z-index:1000;padding:8px 16px;background:#fff;color:#1e50ae;font-size:15px;line-height:1.6;text-decoration:underline;clip-path:inset(50%);overflow:hidden;width:1px;height:1px;white-space:nowrap}
.skip-link:focus{position:fixed;clip-path:none;width:auto;height:auto;overflow:visible}
#main-content:focus{outline:none}

/* 统一可见焦点：2px 实线精密蓝 + 白色衬圈（白底对比 7.7:1）；深色/蓝色底用浅色描边 */
:focus-visible{outline:2px solid var(--a11y-focus)!important;outline-offset:2px!important;box-shadow:0 0 0 2px #fff!important}
.t-footer :focus-visible,.t-about .l :focus-visible,.t-appraise :focus-visible,.t-pagebanner :focus-visible,.leti-footer :focus-visible{outline-color:var(--a11y-focus-dark)!important;box-shadow:0 0 0 2px #303030!important}
.t-about .l :focus-visible,.t-appraise :focus-visible,.t-pagebanner :focus-visible{outline-color:#fff!important;box-shadow:0 0 0 2px #1e50ae!important}

/* 吸顶页头不遮焦点 */
html{scroll-padding-top:140px}
@media (max-width:960px){html{scroll-padding-top:64px}}

/* 二级菜单：原生 details/summary，禁用 JS 也能用键盘（Tab 到箭头按钮，Enter/空格展开）；鼠标悬停照旧展开 */
.t-nav>ul>li{display:flex;align-items:stretch}
.t-nav>ul>li>a{min-height:24px}
.t-nav details.t-sub{display:flex;align-items:stretch}
.t-nav details.t-sub::details-content{content-visibility:visible}
.t-nav summary{display:flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;margin-left:-8px;padding:0 4px;cursor:pointer;list-style:none;color:var(--text,#212121)}
.t-nav summary::-webkit-details-marker{display:none}
.t-nav .t-caret{display:block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor}
.t-nav details[open]>summary .t-caret{transform:rotate(180deg)}
.t-nav li ul{display:none}
.t-nav li:hover>details>ul,.t-nav li:focus-within>details>ul,.t-nav details[open]>ul{display:block}
.t-nav li ul a{min-height:24px}

/* 点击目标 ≥24px（行内正文链接按 WCAG 2.5.8 例外不处理） */
.btn,.t-nav a,.t-logo,.skip-link{min-height:24px;min-width:24px}

/* 减少动效 */
@media (prefers-reduced-motion:reduce){
*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
html{scroll-behavior:auto!important}
}

/* 对比度（只改颜色深浅，不改文字）：页头模块 1601/1597 的棕色标签、t184191 次要灰字 */
:root{--muted:#666}
[data-fk-module="1601"] b[style*="8b7355"],[data-fk-module="1597"] td[style*="8b7355"]{color:#6e5a3c!important}

/* 链接与周围文字只靠颜色区分时加下划线（WCAG 1.4.1） */
.t-crumb a,#main-content :is(p,td,li,dd,div) a:not([class]):not([style*="text-decoration"]){text-decoration:underline}
.t-appraise .note{opacity:1}


/* 对比度补丁（2026-11-16，只改颜色，不改文字与版式，配色留在精密蓝体系内）
   首页 axe 4.14.0 报 11 处 WCAG AA 不足：正文须 ≥4.5:1（12–14px，含 12/13px 加粗，均非大号字）。 */
/* 凡科模块灰字 #9195a3（2.98:1）、#a9a9a9（2.35:1）落在白底：改用已在本文件定义的无障碍次要色 --muted #666（白底 5.74:1） */
#main-content font[color="#9195a3"],
#main-content font[color="#a9a9a9"]{color:#666!important}
/* 报价/案例标签 #A88A64 在 #eff6ff（2.97:1）、#f5f7fb（3.01:1）上不足：改用本文件已用于 1601/1597 棕色标签的 #6e5a3c（#eff6ff 上 6.05:1，#f5f7fb 上 6.14:1） */
#main-content [style*="color:#A88A64"],
#main-content [style*="color: #A88A64"]{color:#6e5a3c!important}
/* 现网 row174 左栏背景为 #2150aa（主题 --primary2）；Hugo 未保留栏包裹，#ffffff / #dedede 落在白底（#dedede 实测 1.34:1）。只补回该栏三个模块的背景，不改文字。#dedede 在 #2150aa 上 5.59:1，#fff 上 7.52:1 */
[data-fk-module="311"],
[data-fk-module="310"],
[data-fk-module="312"]{background-color:#2150aa}
/* 电话建议句（2026-11-16 刘先生 12:04 JST）：紧跟「服务时间」行；继承所在区块文字颜色，不另设浅色，保持 AA 对比度 */
.leti-phone-hint{margin:4px 0 0;font-size:inherit;color:inherit;font-weight:normal}
/* 2026-11-19 视觉会审 FINAL 2.6A：页头改为吸顶，滚动留白见上方规则。 */
.t-header{position:sticky}
.t-header .t-navwrap{min-height:0;justify-content:flex-start}
.t-header .legacy-sitewide[data-fk-module="1597"]{max-width:1200px;margin:0 auto;padding:0 20px;box-sizing:border-box}
.t-footer .ft-copy{margin:0;padding:4px 0 0;font-size:13px;color:inherit}
/* 窄屏：1607 品牌块文字可换行，不溢出 */
[data-fk-module="1607"] a{max-width:100%}
[data-fk-module="1607"] a>div{min-width:0;flex:1 1 160px}
@media (max-width:600px){[data-fk-module="1607"] img{height:52px!important;margin-left:0!important}}
/* 2026-11-17 /contact-us/ 实验室地址说明 .contact-intro：#64748b 在 #f5f7fb 上 4.43:1 不足 AA，只改颜色为已用无障碍次要色 #666（5.35:1），文字不改 */
#leti-contact-v2 #leti-contact-location .contact-intro{color:#666}
/* 2026-11-17 /sys-faq/：新增唯一 H1 后，85 道问答标题由 h3 改为 h2（修 heading-order）；此处让 h2 保持原 h3 的字号与上下间距，外观不变 */
.legacy-faq .legacy-faq-item>h2{font-size:1.17em;margin:1em 0}

/* 2026-11-17 a11y target-size（WCAG 2.2 2.5.8）：只加行距与上下内边距，不改文字；选择器限定到两页的唯一容器。
   /cleanroom-testing-point-layout-guide-a.html 标准外链列表；/service-areas/ 区域专题入口段落（#module1665，仅 *-testing-services/ 链接） */
.cp-standard-links{line-height:2.1}
.cp-standard-links a{padding:4px 0}
#module1665 .module_content p:has(> a[href$="-testing-services/"]){line-height:2.1}
#module1665 .module_content p > a[href$="-testing-services/"]{padding:4px 0}

/* PC header: preserve the native disclosure; keep mobile rules unchanged. */
.t-head-tel{display:none}
@media (min-width:961px){
  .t-head-utility{display:flex;align-items:center;justify-content:center;gap:0 18px;flex-wrap:wrap;background:#f7f3ee;border-bottom:1px solid #e2d8cc;padding:0 20px}
  .t-head-utility>[data-fk-module="1601"]{display:block;white-space:normal;max-width:100%;min-width:0}
  .t-head-utility>[data-fk-module="1601"]>div{border-bottom:0!important}
  .t-head-utility [data-fk-module="1601"] a{display:inline-block;min-width:24px;min-height:24px;line-height:24px}
  .t-header .t-head-tel,.t-header .t-head-tel:visited{display:inline-flex;align-items:center;min-height:32px;white-space:nowrap;padding:0 10px;color:#15366f;background:#fff;font-size:13px;font-weight:700;border:1px solid #b8c9e3;border-radius:5px;text-decoration:underline;text-underline-offset:2px}
  .t-header .t-header-row{min-height:82px;gap:clamp(12px,2vw,32px)}
  .t-header .t-nav-desktop{min-width:0}
  .t-header .t-nav-desktop>ul{gap:clamp(4px,1vw,14px);justify-content:flex-end;flex-wrap:wrap}
  .t-header .t-nav-desktop>ul>li>a{padding:16px 6px;font-weight:600;min-height:44px;display:flex;align-items:center}
  .t-header .t-nav-desktop summary{margin:0;min-width:28px;min-height:44px;color:#15366f}
  .t-header .t-nav-desktop details:not([open])>ul{display:none}
  .t-header .t-nav-desktop details[open]>ul{display:block;z-index:5;top:100%;min-width:0;width:min(18rem,calc(100vw - 2rem));max-height:min(65vh,28rem);overflow:auto;box-sizing:border-box;padding:6px;border:1px solid #d4dfef;border-top:3px solid #1e50ae;border-radius:0 0 6px 6px}
  .t-header .t-nav-desktop>ul>li:nth-child(n+4) details[open]>ul{left:auto;right:0}
  .t-header .t-nav-desktop details[open]>ul a{padding:8px 12px;min-height:36px;box-sizing:border-box;white-space:normal}
  .t-header .t-nav-desktop details[open]>ul a:focus-visible{outline-offset:-2px!important}
  .t-header .t-nav-desktop details[open]>ul a[aria-current="page"]{background:#eff6ff;color:#15366f;font-weight:700}
}
@media (min-width:961px) and (max-width:1100px){
  .t-head-utility{gap:0 8px;padding:0 12px}
  .t-header .t-header-row{gap:10px;padding:0 16px}
  .t-header .t-logo{font-size:18px;gap:8px}
  .t-header .t-logo img{height:40px}
  .t-header .t-nav-desktop>ul{gap:3px}
  .t-header .t-nav-desktop>ul>li>a{padding-inline:5px}
}

/* 2026-11-21 a11y target-size：文末「标题 →」相关入口段落（同一 p 内连续 a>strong 链接）。
   只加行距与上下内边距，不改文字。覆盖 /home-formaldehyde-testing/、/renovation-handover-formaldehyde-testing/ 等同类段落。 */
#main-content p:has(> a > strong):has(> a:nth-of-type(2)){line-height:2.1}
#main-content p:has(> a > strong):has(> a:nth-of-type(2)) > a{display:inline-block;box-sizing:border-box;min-width:24px;min-height:24px;padding:4px 0}
