/* 清新全家首页与转化组件。新首页规则集中在此文件，避免继续向旧版 style.css 追加覆盖层。 */

/* 品牌与精简导航 */
body:not(.page_wrapper_admin) header.navbar .site_menu_brand_text {
  display: inline-block !important;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
}

body:not(.page_wrapper_admin) header.navbar .navbar-brand .brand_logo {
  width: 42px;
  height: 42px;
}

.qx-primary-nav {
  margin-left: auto !important;
}

.qx-primary-nav > li > a {
  white-space: nowrap;
}

.qx-primary-nav > li:last-child > a {
  margin-left: 8px;
  padding: 9px 18px !important;
  border-radius: 6px;
  background: #b10f15;
  color: #fff !important;
  font-weight: 700;
}

.qx-primary-nav > li:last-child > a:hover,
.qx-primary-nav > li:last-child > a:focus-visible {
  background: #8e0c11;
}

/* 对比度：主橙色文字和按钮统一使用可通过普通文本 AA 的深橙色。 */
.front_eyebrow,
.process_num,
.qx-case-eyebrow {
  color: #b10f15 !important;
}

body:not(.page_wrapper_admin) #content a.front_hero_cta {
  background: #b10f15;
}

body:not(.page_wrapper_admin) #content a.front_hero_cta:hover,
body:not(.page_wrapper_admin) #content a.front_hero_cta:focus-visible {
  background: #8e0c11;
}

.front_card_date {
  color: #59636f !important;
}

#footer .footer_addr,
#footer .footer_bottom {
  color: #aeb7c2 !important;
}

/* 键盘焦点 */
body:not(.page_wrapper_admin) a:focus-visible,
body:not(.page_wrapper_admin) button:focus-visible {
  outline: 3px solid #b10f15;
  outline-offset: 3px;
}

/* 真实值由 HTML 直接输出，数字动画不再决定页面内容。 */
.front_stat_num {
  font-variant-numeric: tabular-nums;
}

/* 移动端固定咨询入口 */
.qx-mobile-actions {
  display: none;
}

@media (max-width: 991.98px) {
  body:not(.page_wrapper_admin) header.navbar .site_menu_brand_text {
    font-size: 16px;
  }

  .qx-primary-nav {
    margin-left: 0 !important;
  }

  .qx-primary-nav > li:last-child > a {
    margin: 8px 0 2px;
    padding: 11px 16px !important;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  body:not(.page_wrapper_admin) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .qx-mobile-actions {
    position: fixed;
    z-index: 1040;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    min-height: 60px;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #d8dee7;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .10);
    backdrop-filter: blur(12px);
  }

  .qx-mobile-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: #0b5c96;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .qx-mobile-actions .qx-mobile-book {
    border-radius: 7px;
    background: #b10f15;
    color: #fff;
  }

  .back-to-top {
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 420px) {
  body:not(.page_wrapper_admin) header.navbar .navbar-brand .brand_logo {
    width: 36px;
    height: 36px;
  }

  body:not(.page_wrapper_admin) header.navbar .site_menu_brand_text {
    max-width: none;
    font-size: 15px;
  }
}

.front_about_points h3 {
  margin: 0 0 4px;
  color: var(--bc-text, #1f2937);
  font-size: 16px;
  font-weight: 600;
}

/* 2026-11 首页内容重排：证据优先、减少栏目堆叠。 */
body.front #main,
body.page_front #main {
  padding-bottom: 72px;
}

.qx-site-nav {
  margin-left: auto;
}

#content > .front_section {
  margin-top: 72px;
}

#content > .front_section.front_why {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}

.front_section_head_split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}

.front_section_head_split > div {
  min-width: 0;
}

.front_section_head_split .front_eyebrow {
  margin-bottom: 8px;
}

.front_section_all {
  flex: 0 0 auto;
  margin-bottom: 5px;
  color: #0b5c96 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.front_section_all:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 首屏文字更紧凑，重点落在预约和复检口径。 */
#content > .front_hero {
  padding: 48px 52px 44px;
}

.front_hero_inner {
  max-width: 820px;
}

.front_hero h1 {
  max-width: 760px;
}

.front_hero_scope {
  max-width: 760px;
}

/* 真实案例 */
.front_case_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.front_case_card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bc-line, #e6eaf0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.front_case_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.front_case_media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #eef2f6;
}

.front_case_media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.front_case_card:hover .front_case_media img {
  transform: scale(1.025);
}

.front_case_body {
  padding: 20px 20px 22px;
}

.front_case_meta {
  margin: 0 0 8px;
  color: #59636f;
  font-size: 12.5px;
}

.front_case_body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.5;
}

.front_case_body h3 a {
  color: var(--bc-text, #1f2937) !important;
  text-decoration: none;
}

.front_case_body > p:not(.front_case_meta) {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: var(--bc-sub, #6b7280);
  font-size: 14px;
  line-height: 1.7;
}

.front_case_more,
.front_knowledge_more,
.rv_strip_detail,
.front_about_link {
  color: #0b5c96 !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.front_evidence_note {
  margin: 18px 0 0;
  color: #59636f;
  font-size: 12.5px;
  line-height: 1.7;
}

/* 首页评价直接展示凭证缩略图。 */
.front_reviews .rv_strip_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.front_reviews .rv_strip_item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--bc-line, #e6eaf0);
  border-left: 3px solid #0b5c96;
  border-radius: 10px;
  background: #fff;
}

.rv_strip_shot {
  display: block;
  color: #0b5c96 !important;
  font-size: 11.5px;
  text-align: center;
  text-decoration: none;
}

.rv_strip_shot img {
  display: block;
  width: 104px;
  height: 142px;
  margin-bottom: 7px;
  border: 1px solid #d9e0e8;
  border-radius: 7px;
  object-fit: cover;
  object-position: top;
  background: #f5f7fa;
}

.rv_strip_body {
  min-width: 0;
}

.front_reviews .rv_strip_quote {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: #374151;
  font-size: 13.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.front_reviews .rv_meta {
  margin: 0 0 9px;
  color: #59636f;
  font-size: 12px;
}

/* 关于我们、服务场景。 */
.front_about_link {
  display: inline-block;
  margin-top: 6px;
}

.front_scenes > .front_scene {
  padding: 0;
}

.front_scenes > .front_scene > a {
  display: flex;
  width: 100%;
  min-height: 132px;
  padding: 22px 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--bc-text, #1f2937) !important;
  text-decoration: none;
}

.front_stats {
  margin-top: 54px;
}

.front_stat_num {
  white-space: nowrap;
}

/* 精选科普取代首页八个完整栏目。 */
.front_knowledge_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.front_knowledge_card {
  min-width: 0;
  padding: 22px 22px 24px;
  border: 1px solid var(--bc-line, #e6eaf0);
  border-radius: 10px;
  background: #f7f8fa;
}

.front_knowledge_meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 11px;
  color: #59636f;
  font-size: 12px;
}

.front_knowledge_meta span {
  padding: 3px 7px;
  border: 1px solid #b9d8ef;
  border-radius: 4px;
  color: #0b5c96;
  background: #eef7fd;
}

.front_knowledge_card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.55;
}

.front_knowledge_card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--bc-text, #1f2937) !important;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.front_knowledge_card > p:not(.front_knowledge_meta) {
  display: -webkit-box;
  overflow: hidden;
  min-height: 5.1em;
  margin: 0 0 14px;
  color: var(--bc-sub, #6b7280);
  font-size: 13.5px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* 页尾转化横幅 */
.front_final_cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 72px;
  padding: 38px 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(125deg, #172536, #0b5c96);
}

.front_final_cta .front_eyebrow {
  color: #f4a3a7 !important;
}

.front_final_cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 26px;
}

.front_final_cta p {
  margin: 0;
  color: #d6e0eb;
  font-size: 14px;
  line-height: 1.7;
}

.front_final_actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
}

.front_final_primary {
  padding: 12px 22px;
  border-radius: 7px;
  color: #fff !important;
  background: #b10f15;
  font-weight: 700;
  text-decoration: none;
}

.front_final_phone {
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .front_reviews .rv_strip_grid,
  .front_case_grid,
  .front_knowledge_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front_reviews .rv_strip_item:last-child,
  .front_case_card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .qx-site-nav {
    width: 100%;
    margin-left: 0;
  }

  #content > .front_section {
    margin-top: 56px;
  }

  .front_section_head_split {
    align-items: flex-start;
  }

  .front_final_cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  #content > .front_hero {
    padding: 28px 20px 26px;
  }

  .front_hero_lead {
    font-size: 15px;
  }

  .front_section_head_split {
    flex-direction: column;
    gap: 12px;
  }

  .front_section_all {
    margin-bottom: 0;
  }

  .front_reviews .rv_strip_grid,
  .front_case_grid,
  .front_knowledge_grid {
    grid-template-columns: 1fr;
  }

  .front_reviews .rv_strip_item:last-child,
  .front_case_card:last-child {
    grid-column: auto;
  }

  .front_case_body > p:not(.front_case_meta),
  .front_knowledge_card > p:not(.front_knowledge_meta) {
    min-height: 0;
  }

  .front_final_cta {
    margin-top: 56px;
    padding: 30px 22px;
  }

  .front_final_cta h2 {
    font-size: 22px;
  }

  .front_final_actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .front_reviews .rv_strip_item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .rv_strip_shot img {
    width: 88px;
    height: 124px;
  }

  .front_reviews .rv_strip_quote {
    -webkit-line-clamp: 5;
  }

  .front_scenes > .front_scene > a {
    min-height: 116px;
    padding: 16px 10px;
  }

  .front_stat_num {
    font-size: 22px !important;
  }
}

/* 移动端将证据和科普卡片改为无脚本横向浏览，缩短首页纵向长度。 */
@media (max-width: 767.98px) {
  .front_case_grid,
  .front_reviews .rv_strip_grid,
  .front_knowledge_grid {
    display: flex;
    gap: 14px;
    margin-right: -15px;
    padding: 2px 15px 12px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #b8c4d1 transparent;
  }

  .front_case_card,
  .front_reviews .rv_strip_item,
  .front_knowledge_card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
}

/* 2026-11 品牌配色：原“室内空气治理”深红 + 专业深海军蓝。 */
body:not(.page_wrapper_admin) {
  --bc-accent: #b10f15;
  --bc-brand: #0b5c96;
  --bc-brand-deep: #172536;
  --bc-bg: #fbfaf8;
  --bc-bg-alt: #f7f6f4;
  --bc-text: #172033;
  --bc-sub: #5b6470;
  --bc-line: #dde2e7;
  --bc-line-soft: #e9ecef;
  background: var(--bc-bg);
}

body:not(.page_wrapper_admin) header.navbar,
body:not(.page_wrapper_admin) #footer {
  background-color: #172536 !important;
}

.front_hero_em {
  color: #b10f15;
}

.front_why_icon,
.front_about_points_icon,
.front_scene_icon {
  color: #b10f15 !important;
  background: #fbedef !important;
}

.front_about_points li,
.front_reviews .rv_strip_item,
.front_faq_item {
  border-left-color: #b10f15 !important;
}

.front_knowledge_meta span {
  border-color: #d7a9ad;
  color: #8e0c11;
  background: #fbedef;
}

.front_final_cta {
  background: linear-gradient(125deg, #172536, #214567);
}

body:not(.page_wrapper_admin) #content a.front_hero_cta,
.qx-primary-nav > li:last-child > a,
.qx-mobile-actions .qx-mobile-book,
.front_final_primary {
  background: #b10f15 !important;
}

body:not(.page_wrapper_admin) #content a.front_hero_cta:hover,
body:not(.page_wrapper_admin) #content a.front_hero_cta:focus-visible,
.qx-primary-nav > li:last-child > a:hover,
.qx-primary-nav > li:last-child > a:focus-visible,
.qx-mobile-actions .qx-mobile-book:hover,
.qx-mobile-actions .qx-mobile-book:focus-visible,
.front_final_primary:hover,
.front_final_primary:focus-visible {
  background: #8e0c11 !important;
}

body:not(.page_wrapper_admin) #content a.front_hero_cta:focus-visible,
.qx-primary-nav > li:last-child > a:focus-visible,
.qx-mobile-actions .qx-mobile-book:focus-visible,
.front_final_primary:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px #b10f15;
}

@media (max-width: 575.98px) {
  .front_hero_em {
    display: block;
  }
}

/* 页脚高对比修正：深色背景上的辅助信息不使用正文灰度。 */
body:not(.page_wrapper_admin) #footer .footer_slogan {
  color: #d3dce6 !important;
}

body:not(.page_wrapper_admin) #footer .fc_label {
  color: #bac6d4 !important;
}

body:not(.page_wrapper_admin) #footer .fc_value,
body:not(.page_wrapper_admin) #footer a.fc_value {
  color: #ffffff !important;
}

body:not(.page_wrapper_admin) #footer .fc_icon {
  color: #ff858b !important;
  background: #22344a !important;
  border-color: #506176;
}

body:not(.page_wrapper_admin) #footer .footer_bottom,
body:not(.page_wrapper_admin) #footer .footer_bottom_left,
body:not(.page_wrapper_admin) #footer .footer_addr {
  color: #c3cdd8 !important;
}

body:not(.page_wrapper_admin) #footer .footer_bottom a,
body:not(.page_wrapper_admin) #footer .footer_bottom .footer_legal a {
  color: #e0e7ef !important;
}

body:not(.page_wrapper_admin) #footer .footer_bottom a:hover,
body:not(.page_wrapper_admin) #footer .footer_bottom .footer_legal a:hover {
  color: #ffffff !important;
}

body:not(.page_wrapper_admin) #footer .footer_sep,
body:not(.page_wrapper_admin) #footer .footer_bottom .footer_legal .footer_sep {
  color: #7f8ea1 !important;
}

/* GEO 证据页、编辑规范、城市服务页与文章答案摘要。 */
.front_city_links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.front_city_links a {
  color: #8e0c11 !important;
  text-decoration: underline;
  text-decoration-color: #d7a9ad;
  text-underline-offset: 3px;
}

.geo_page {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 54px 54px;
  border: 1px solid var(--bc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23, 32, 51, .06);
}
.geo_page > header {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bc-line);
}
.geo_page_eyebrow {
  color: var(--bc-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.geo_page h1 {
  margin: 10px 0 14px;
  color: var(--bc-text);
  font-size: 34px;
  line-height: 1.3;
}
.geo_page header p,
.geo_page section > p {
  margin: 0;
  color: var(--bc-sub);
  font-size: 15.5px;
  line-height: 1.9;
}
.geo_page section {
  margin-top: 34px;
}
.geo_page section h2 {
  margin: 0 0 14px;
  color: var(--bc-text);
  font-size: 22px;
}
.geo_compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.geo_compare article {
  padding: 22px;
  border: 1px solid var(--bc-line);
  border-left: 3px solid var(--bc-accent);
  border-radius: 10px;
  background: var(--bc-bg-alt);
}
.geo_compare h3 {
  margin: 0 0 9px;
  font-size: 17px;
}
.geo_compare p {
  margin: 0;
  color: var(--bc-sub);
  line-height: 1.8;
}
.geo_answer,
.geo_direct_answer {
  display: block;
  padding: 20px 22px;
  border: 1px solid #d7a9ad;
  border-left: 4px solid var(--bc-accent);
  border-radius: 8px;
  background: #fbedef;
}
.geo_answer strong,
.geo_direct_answer strong {
  display: block;
  margin-bottom: 8px;
  color: #8e0c11;
  font-size: 14px;
}
.geo_answer p,
.geo_direct_answer p {
  margin: 0;
  color: var(--bc-text);
  font-size: 15px;
  line-height: 1.85;
}
.geo_direct_answer span {
  display: block;
  margin-top: 9px;
  color: var(--bc-sub);
  font-size: 12.5px;
  line-height: 1.7;
}
.geo_content_trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: -8px 0 20px;
  padding: 12px 14px;
  border-radius: 7px;
  color: #59636f;
  background: #f7f8fa;
  font-size: 12.5px;
}
.geo_content_trust a {
  color: var(--bc-brand) !important;
  font-weight: 600;
}
.content_view .geo_direct_answer {
  margin: 0 0 24px;
}
.geo_city_notice {
  margin: 0 0 22px !important;
  padding: 12px 14px;
  border: 1px solid #d9e1e8;
  border-radius: 7px;
  color: #4f5b67;
  background: #f7f9fb;
  font-size: 13px;
  line-height: 1.75;
}
.geo_checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
}
#content .geo_checklist li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border: 1px solid var(--bc-line);
  border-radius: 8px;
  background: var(--bc-bg-alt);
  list-style: none;
}
#content .geo_checklist li::before {
  content: "✓";
  position: absolute;
  top: 11px;
  left: 14px;
  color: var(--bc-accent);
  font-weight: 700;
}
.geo_policy_steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: geo-step;
}
#content .geo_policy_steps li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--bc-line);
  border-radius: 8px;
  background: var(--bc-bg-alt);
  list-style: none;
}
#content .geo_policy_steps li::before { display: none; }
.geo_policy_steps span { color: var(--bc-sub); line-height: 1.75; }
.geo_city_cases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.geo_city_cases a,
.geo_city_cases span {
  padding: 11px 14px;
  border: 1px solid var(--bc-line);
  border-radius: 7px;
  color: var(--bc-brand) !important;
  background: var(--bc-bg-alt);
}
.geo_page_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--bc-line);
}
.geo_page_actions a {
  padding: 10px 16px;
  border: 1px solid var(--bc-brand);
  border-radius: 7px;
  color: var(--bc-brand) !important;
  font-weight: 700;
  text-decoration: none;
}
.geo_page_actions a.primary {
  border-color: var(--bc-accent);
  color: #fff !important;
  background: var(--bc-accent);
}

@media (max-width: 767.98px) {
  .geo_page { padding: 28px 20px 34px; }
  .geo_page h1 { font-size: 26px; }
  .geo_compare,
  .geo_checklist { grid-template-columns: 1fr; }
  #content .geo_policy_steps li { grid-template-columns: 1fr; gap: 5px; }
  .geo_content_trust { flex-direction: column; }
}

/* GEO 页脚链接触控区：保持紧凑视觉，同时满足至少 24px 可点击高度。 */
body:not(.page_wrapper_admin) #footer .footer_bottom .footer_legal a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 2px;
}
body:not(.page_wrapper_admin) #footer .footer_bottom .footer_legal .footer_sep {
  margin: 0 6px !important;
}
