/* 全站页头/页脚统一收尾：logo 等比、列表样式、容器宽度、右侧操作区、移动端安全 */
.header .logo-pic { width: auto; height: 34px; flex: 0 0 auto; }
.header .logo-pic .ub-logo-link { display: inline-flex; align-items: center; gap: 10px; height: 34px; white-space: nowrap; }
.header .logo-pic img { width: auto; height: 34px; display: block; }
.ub-page header .logo-pic { height: 34px; }
.ub-page header .logo-pic a { height: 34px; }

/* 旧版页面缺少全站 reset，补回页头/页脚的列表样式 */
.header ul, .header ol,
footer.footer-new ul, footer.footer-new ol { list-style: none; }

/* 与首页一致的内容容器宽度 */
footer.footer-new .yun-center { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; }

/* 页头右侧操作区统一为首页样式 */
.header .ub-login { font-size: 15px; color: #1b2c50; margin-right: 18px; line-height: 24px; display: inline-block; }
.header .ub-login:hover { color: #2d5aff; }
.header .ub-register {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 20px; border-radius: 18px;
  background: #2d5aff; color: #fff !important; font-size: 14px; font-weight: 500;
}
.header .ub-register:hover { background: #1e46e0; }
.ub-page header .navRight .ub-login {
  height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent;
  display: inline-block; color: #1b2c50; font-size: 15px; font-weight: 400; line-height: 24px;
}
.ub-page header .navRight .ub-login:hover { color: #2d5aff; }
.ub-page header .navRight .ub-register {
  height: 36px; padding: 0 20px; margin-left: 0; border: 0; border-radius: 18px;
  display: inline-flex; background: #2d5aff; color: #fff; font-size: 14px; font-weight: 500;
}
.ub-page header .navRight .ub-register:hover { background: #1e46e0; color: #fff; }

/* 旧模板遗留的重复登录/用户按钮，统一隐藏（与首页一致） */
.header .navRight .login-btn,
.header .navRight .user-btn,
.header .navRight .navRight820,
.header .navRight .login-btn.isShowLOginBtn,
.header .navRight .user-btn.isShowUserBtn { display: none !important; }

/* 品牌字标行高与首页一致 */
.ub-page header .ub-logo-text { line-height: 30px; }

/* 导航项间距与首页一致 */
.ub-page header .header-nav { gap: normal; margin: 0 auto; }
.ub-page header .header-nav > li { margin: 0 10px; }
.ub-page header .header-nav > li > a { padding: 0 10px; letter-spacing: .1px; }
.ub-page header nav { width: 100%; }
.ub-page header .navRight .space { width: 1px; }

@media (max-width: 1023px) {
  .header .logo-pic, .header .logo-pic .ub-logo-link { height: 30px; }
  .header .logo-pic img { height: 30px; }
  header .ub-logo-text { font-size: 16.5px; }
  footer.footer-new .yun-center { max-width: 100%; }
}
@media (max-width: 640px) {
  .dl-code { max-width: 100%; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }
  .dl-box { width: auto; max-width: 100%; min-width: 0; }
  .dl-box .dl-spec-row { flex-wrap: wrap; gap: 2px 14px; }
  .dl-box .dl-spec-row dd { min-width: 0; word-break: break-all; overflow-wrap: anywhere; text-align: left; }
}

/* 下载入口与品牌字标的垂直对齐与首页一致 */
.header .navRight .down-txt { line-height: 25px; }
.header .logo-pic .ub-logo-text { line-height: 30px !important; }

/* 移动端：隐藏桌面操作区，logo 尺寸与首页一致 */
@media (max-width: 1023px) {
  .ub-page header .navRight .ub-login,
  .ub-page header .navRight .ub-register,
  .ub-page header .navRight .down-txt,
  .ub-page header .navRight .space { display: none !important; }
  .ub-page header .logo-pic,
  .ub-page header .logo-pic a { height: 30px; }
  .ub-page header .logo-pic img { height: 30px !important; width: auto !important; object-fit: fill; }
  .ub-page header .ub-logo-text { font-size: 16.5px; line-height: 26px; }
}

/* 品牌字标强制使用 MiSansBrand（部分旧模板把 b 标签改成 Inter 导致文字不一致） */
.header .logo-pic .ub-logo-text,
.header .logo-pic .ub-logo-text b {
  font-family: 'MiSansBrand', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif !important;
}
.header .logo-pic .ub-logo-text b { font-weight: 700 !important; }

/* 右侧操作区分隔线（旧模板把 .space 背景覆盖为透明） */
.header .navRight .space { width: 1px !important; background: #ececec !important; }

/* 注册按钮行高统一 */
.header .navRight .ub-register { line-height: 22px; }

/* 右侧操作区字号/字重统一（下载与登录、导航一致，避免「下载」偏大） */
.header .navRight .down-txt { font-size: 15px; font-weight: 500; line-height: 24px; }
.header .navRight .ub-login { font-weight: 500; }
.ub-page header .navRight .ub-login { font-weight: 500; }
.ub-page header .navRight .down-txt { font-size: 15px; font-weight: 500; line-height: 24px; }

/* 页脚 CTA 容器：与首页一致居中（旧页面无全局 reset 时 margin:auto 失效） */
footer.footer-new .footer-top .yun-center {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* 旧版设计系统（styles-unb9 等）把 .footer-top 设为四列栅格，与新页脚冲突，强制恢复单列块 */
footer.footer-new .footer-top {
  display: block;
  grid-template-columns: none;
  gap: 0;
}
footer.footer-new .footer-bottom { gap: normal; }

/* 页脚基准字号与首页一致 */
footer.footer-new { font-size: 14px; }

/* 移动端页脚链接默认折叠，仅展开当前分组（帮助等旧页面被 .list 全局样式展开） */
@media (max-width: 1023px) {
  footer.footer-new .footer-middle .yun-center > li .list,
  footer.footer-new .footer-middle .yun-center > li .middle-list { display: none; }
  footer.footer-new .footer-middle .yun-center > li.active .list,
  footer.footer-new .footer-middle .yun-center > li.active .middle-list { display: block; }
}
