/* 单语言白底站点：显式声明画布底色，防止强制暗色模式/深色 webview 下透明页面透出黑底 */
html { background: #ffffff; }
/* huagong 定制：PC 头部（LOGO / 导航 / WhatsApp·Tel 按钮）
   说明：yyb 模板的头部在按钮组内部大量使用百分比内边距（.c8sEPg8 1%、rowcol 2%），
   与 width:auto 的自适应按钮叠加后形成循环计算，导致按钮组比自身容器宽约 35px，
   在 1280–1600 视口下最右侧的 Tel 框被裁掉（导航右侧溢出）。这里统一改为固定间距。 */

/* 按钮文字不换行、宽度随内容 */
.cmrFcPPTe, .cloEhWuTe { white-space: nowrap !important; }
.cmrFcPPA, .cloEhWuA { width: auto !important; min-width: 0 !important; }
.cmrFcPPTextBox, .cloEhWuTextBox, .cmrFcPPA .btnText, .cloEhWuA .btnText { width: auto !important; }

.cXJAEiJrow_col, .c8sEPg8, .c8sEPg8 .contentAutoDom, .cxjU5oarow_col, .ctvLWturow_col {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

/* 头部三列重排：LOGO 最左 / 导航居中 / 联系按钮最右（≥961px 桌面端） */
@media (min-width: 961px) {
  /* 头部行贴边：yyb 模板 7% 内边距 + contentAutoDom 120px 边距双重叠加，
     挤压可用宽度，是窄桌面下右侧溢出的主因 */
  #cuoaDPm { padding-left: 24px !important; padding-right: 24px !important; }
  #cuoaDPm > .contentAutoDom { margin: 0 !important; padding: 0 !important; max-width: none !important; flex-wrap: nowrap; align-items: center; }
  #cuZH7vm { order: 1; margin-right: 12px; }
  #cxQmbD3 { order: 2; flex: 1 1 auto; }
  #cXJAEiJ { order: 3; margin-left: auto; }

  /* 按钮组内部：全部固定尺寸/间距 */
  .c8sEPg8 { margin: 0 !important; padding: 0 !important; }
  .c8sEPg8 .contentAutoDom { display: flex; flex-wrap: nowrap; gap: 10px; }
  .cxjU5oarow_col, .ctvLWturow_col { padding: 0 !important; }
}

/* 窄桌面（≤1500px）：压缩 logo 高度与按钮字号，保证一行放下 */
@media (min-width: 961px) and (max-width: 1500px) {
  #cuZH7vm .cnfcF1mImg { height: 40px !important; }
  .cmrFcPPA, .cloEhWuA { font-size: 1.4rem !important; }
}
