/*! 快企务原创，请尊重产权。抄袭必究 · Copyright © 快企务 www.kuaiqiwu.com */
/* D2：44px 点击区域只扩展命中盒；不改变颜色、字号及三级操作语义。 */
body.p2 :is(button, summary, [role="button"], input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
body.p2 :is(a.button, .p2-textlink, .p2-text-link, .p2-card-link, .p2-cost-cta,
  .p2-faq-help-link, .p2-ph-ask, .p2-ph-path-next, .p2-ph-talent-link,
  .p2-channel-btn, .tm-scene-go, .tm-market-go, .tm-subnav-cta, .ss-chip,
  .sr-chip-finder, .sr-tel, .skip-link) {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
/* 原来是行内文字的独立导航/操作，必须成为可设置高度的盒；正文行文链接不在此列。 */
body.p2 :is(.site-header a, .main-nav a, .site-footer a:not(.footer-legal a),
  .p2-breadcrumb a, .p2-crumbs a, .p2-toc a, .p2-filter a, .p2-pager a,
  .p2-era-nav a, .p2-history-nav a, .p2-decision a, .p2-decision-links a,
  .p2-materials a, .p2-costs a, .p2-material-note a, .p2-faq-help a,
  .p2-office a, .p2-hotline-card a, .p2-channel-btn, .p2-card-link, .p2-text-link,
  .p2-ph-ask, .p2-ph-path-next, .p2-ph-talent-link, .p2-ph-need a,
  .p2-ph-path a, .p2-ph-paths a, .p2-ph-verify a, .p2-ph-hk-main a,
  .p2-ph-resource a, .tm-scene-go, .tm-market-go, .tm-subnav-cta,
  .p2-news-row h2 a, .p2-news-row h3 a, .p2-news-feature-list h3 a,
  .ss-chip, .sr-chip-finder, .sr-tel, .sr-item h2 a, .sr-item h3 a, .sr-related a,
  .hero-hot a, .hero-proof-links a, .hero-shortcuts a, .hero-links a,
  .home-maint-shortcut-links a, .route-hot a, .maint-case a, .maint-new a,
  .business-tags a, .city-panel a, .p2-textlink, .p2-cost-cta, .p2-faq-help-link) {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
body.p2 :is(.p2-brief-actions a, .p2-mat-actions a, .p2-ph-plan a, .p2-ph-talent-teaser a,
  .p2-news-title a, .p2-insight-title a, .sr-chips a, .sr-result h2 a, .sr-result h3 a,
  .home-maint-shortcuts h2 a, .home-fact-proof a, .hero-personal a, .delivery-note > a,
  .p2-office-strip a, .p2-matrix h3 a, .p2-formation-scroll :is(th, td) a,
  .tg-routes h3 a, .tp-contact-ways a, .p2-ph-hague a) {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
/* 这两处既有组件规则的选择器更具体；只覆盖尺寸，不修改其外观。 */
body.p2.kqw-b26 .hero .home-fact-proof a { min-height: 44px; min-width: 44px; }
body.p2.kqw-b26 .tm-subnav .tm-subnav-cta { min-height: 44px !important; min-width: 44px; }
/* 电话/邮箱的两行结构保持原有竖向排版。 */
body.p2 .footer-contact-list a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
body.p2 .footer-places-grid a { display: flex; }
/* 复选框仍保持 18px 视觉大小；关联 label 作为完整的可点击区域。 */
body.p2 :is(.p2-consent, .privacy-consent, .p2-form-consent, .p2-check, .tm-consent,
  label:has(> input[type="checkbox"]), label:has(> input[type="radio"])) {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  padding-block: 8px;
}
body.p2 :is(label:has(> input[type="checkbox"]), label:has(> input[type="radio"])) { cursor: pointer; }
body.p2 :is(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid #3558f0; outline-offset: 3px; }
@media (max-width: 700px) {
  body.p2 .site-header .header-phone { min-width: 0; }
  body.p2.kqw-b26 .site-header { padding-inline: 12px; }
  body.p2.kqw-b26 .site-header .header-actions { margin-left: auto; gap: 8px; flex: 0 0 auto; }
  body.p2.kqw-b26 .site-header .menu-toggle { margin-left: 8px; flex: 0 0 44px; }
  body.p2 :is(.hero-hot, .maint-new, .p2-toc, .ss-chips) { row-gap: 8px; }
  body.p2 .site-footer a { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  /* 保留完整 Logo、44px 搜索与菜单；电话仍在底部“拨打电话”常驻可用。 */
  body.p2.kqw-b26 .site-header .header-phone { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.p2 :is(a, button, summary):focus-visible { scroll-behavior: auto; }
}

/* ---------- 页头宽度分档（2026-11-03） ----------
   导航文字与右侧按钮一律不换行、不被压缩；搜索只保留图标；按钮文字为“企业微信”“获取方案”。
   ≥1536 完整：搜索图标 · 热线 · 企业微信 · 获取方案；
   1200–1535 页头不放“企业微信”（右侧悬浮咨询、联系页与页脚仍可添加客服微信）；
   1200–1439 导航字号 14px；1200–1279 再收起页头热线；
   ≤1199 导航收进菜单按钮（沿用原规则），801–1023 页头不放“企业微信”。
   宽度按实测自然宽度留出不少于 60px 余量，避免不同系统字体下再次挤压。 */
body.p2.kqw-b26 .site-header .header-search { width: 44px; padding: 0; justify-content: center; }
body.p2.kqw-b26 .site-header .header-search :is(span, kbd) { display: none; }
body.p2.kqw-b26 .site-header :is(.main-nav > a, .nav-field-trigger, .header-actions > *) { white-space: nowrap; }
body.p2.kqw-b26 .site-header .header-actions > * { flex-shrink: 0; }
@media (min-width: 1200px) {
  body.p2.kqw-b26 .site-header .main-nav { gap: clamp(14px, 1.15vw, 24px); margin-right: clamp(16px, 1.6vw, 32px); min-width: 0; }
  body.p2.kqw-b26 .site-header :is(.main-nav > a, .nav-field) { flex-shrink: 0; }
  body.p2.kqw-b26 .site-header .header-actions { flex: 0 0 auto; gap: 10px; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  body.p2.kqw-b26 .site-header :is(.main-nav > a, .nav-field-trigger) { font-size: 14px; letter-spacing: 0; }
}
/* 11-10 顶栏改名（国家与地区 / 个人服务 / 企业服务）后，1280–1365 宽度显示电话时余量不足：收紧导航间距。 */
@media (min-width: 1200px) and (max-width: 1365px) {
  body.p2.kqw-b26 .site-header .main-nav { gap: 12px; margin-right: 14px; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  body.p2.kqw-b26 .site-header .header-phone { display: none; }
}
@media (min-width: 1200px) and (max-width: 1535px) {
  body.p2.kqw-b26 .site-header .header-actions [data-wechat-open] { display: none; }
}
@media (min-width: 1536px) {
  body.p2.kqw-b26 .site-header .header-actions [data-wechat-open] { display: inline-flex; }
}
@media (min-width: 801px) and (max-width: 1023px) {
  body.p2.kqw-b26 .site-header .header-actions [data-wechat-open] { display: none; }
}

/* 页内锚点偏移（2026-11-04）：页头固定在顶部，跳转到页内位置时须留出页头高度，
   否则标题会被页头遮住（如首页“查找办理路径”→ #route-finder-title）。
   全部写在 :where() 内，优先级为 0：已有专门 scroll-margin-top 的区块保持原设定。
   区块（section 等自带上内边距）只让出页头高度；标题、表单、卡片等再多留 24px。 */
:root { --kqw-anchor-header: 82px; }
@media (max-width: 800px) { :root { --kqw-anchor-header: 72px; } }
:where(section[id], [id].p2-section) { scroll-margin-top: var(--kqw-anchor-header); }
:where([id]:not(section, .p2-section, input, select, textarea, button, option, label, a, span, img, svg, path, li, dialog, body, html)) {
  scroll-margin-top: calc(var(--kqw-anchor-header) + 24px);
}

/* ---------- 手机端点按区域（11-05 手机端检查） ----------
   句中电话链接只扩大可点区域、不改变行高；业务卡片标签让链接铺满整枚标签。 */
@media (max-width: 800px) {
  :is(.p2-m-cty-process p, .p2-lead-note, .p2-404-help) a[href^="tel:"] { padding-block: 10px; }
  .p2-chips li > a:only-child { display: block; min-width: 20px; margin: -6px -12px; padding: 6px 12px; text-align: center; }
}
@media (max-width: 700px) and (max-height: 739px) {
  .kqw-b26 .advisor-card-points { display: none; }
  .kqw-b26 .advisor-card-title { margin-bottom: 10px; }
}
