/* 首页视觉细节修正（2026-11-30）：只改样式，不改任何文字、网址、标题与结构。
 * 1. 手机底部咨询栏：操作首屏查找器时自动让位，聚焦的控件不会被遮挡。
 * 2. 可横向滑动的标签行：右侧渐隐，提示还有更多选项。
 * 3. 浅色区块的辅助小字统一不小于 13px，颜色加深（对比度约 7:1）。
 * 4. 客户反馈卡片：签名与跳转链接固定为左右两栏，所有卡片底部对齐。
 * 只在首页加载（inc/home-polish.php），排在合并样式与提醒插件样式之后。 */

/* ---------- 1. 手机底部咨询栏让位 ---------- */
@media (max-width: 800px) {
  html:has(body.p2-home) { scroll-padding-bottom: calc(var(--p2-mc-h, 54px) + env(safe-area-inset-bottom) + 16px); }
  body.p2-home .mobile-consult { transition: transform .22s ease, opacity .22s ease; }
  body.p2-home:has(.hero--lite .finder-band :is(:focus-within, [aria-expanded="true"])) .mobile-consult {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  body.p2-home .mobile-consult { transition: none; }
}

/* ---------- 2. 横向滑动标签行：右侧渐隐提示 ---------- */
@media (max-width: 800px) {
  body.p2-home :is(.finder-band .route-hot, .industry-tabs, .office-tabs):not(.has-edge-fade) {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    padding-right: 36px;
    scroll-padding-right: 36px;
  }
}

/* ---------- 3. 辅助小字：不小于 13px，浅色区块颜色加深 ----------
 * 只覆盖线上实测小于 13px 的元素，并沿用原样式的断点，原本 ≥13px 的文字一律不动（不会变小）。 */
body.kqw-b26.p2-home .finder-band .route-step-no { font-size: 13px; }
body.kqw-b26.p2-home #business :is(.business-ask-q > span, .business-query span),
body.kqw-b26.p2-home .business .business-facts small,
body.kqw-b26.p2-home #why .risk-ladder span { font-size: 13px; }
body.kqw-b26.p2-home :is(.home-personal-small, .home-personal-need-links small, .existing-entry-check > .existing-entry-note, .kqw-assure-shot figcaption) { font-size: 13px; }
body.kqw-b26.p2-home #remind :is(.home-remind-head .eyebrow, .home-remind-news li span, time) { font-size: 13px; }
body.kqw-b26.p2-home .kqw-reminders-v2 :is(.kqw-rv2-status, .kqw-rv2-meta, time) { font-size: 13px; }
@media (max-width: 800px) {
  body.kqw-b26.p2-home :is(.hero--lite, .home-trust) .trust-band li > span { font-size: 13px; }
  body.kqw-b26.p2-home .kqw-stab-no { font-size: 13px; }
  body.kqw-b26.p2-home #why .standards-facts li > span { font-size: 13px; }
}
@media (max-width: 560px) {
  body.kqw-b26.p2-home :is(.hero--lite, .home-trust) .trust-band :is(.trust-unit, li > strong) { font-size: 13px; }
}

/* 浅色区块辅助文字加深：#585e6b → #474d59（白底约 8:1）。深色区块各自声明的浅色值不受影响。 */
body.kqw-b26.p2-home,
body.kqw-b26.p2-home :is([data-header-theme="light"], .section-light) { --muted: #474d59; }
body.kqw-b26.p2-home .kqw-reminders-v2 { --rv2-muted: #474d59; }

/* ---------- 4. 客户反馈卡片底部对齐 ---------- */
body.kqw-b26.p2-home #voices .voice-item-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 14px;
}
body.kqw-b26.p2-home #voices .voice-item-sign { min-width: 0; }
/* 职务行只在“·”两侧换行，避免姓氏称呼单独落到下一行。 */
body.kqw-b26.p2-home #voices .voice-item-sign span { word-break: keep-all; overflow-wrap: anywhere; }
body.kqw-b26.p2-home #voices .voice-item-link { justify-self: end; }
