/* 官网首页：嵌入百度云快照 + 本站头尾（勿覆盖快照内 Ant/BCE 组件样式） */
body.official-home-body .bce-main-minimal {
  min-height: 0;
  padding: 0;
  background: #fff;
}

/* 百度云首页 rem 缩放（b00032 主 CSS 不完整时兜底） */
html:has(body.official-home-body) {
  font-size: calc(100vw / 120);
}

@media screen and (max-width: 1200px) {
  html:has(body.official-home-body) {
    font-size: 10px;
  }
}

@media screen and (min-width: 1800px) {
  html:has(body.official-home-body) {
    font-size: 15px;
  }
}

/* 隔离 site.css 全局链接色，避免快照内链接变蓝 */
body.official-home-body #official-home-campaign a {
  color: inherit;
  text-decoration: none;
}

body.official-home-body #official-home-campaign ul,
body.official-home-body #official-home-campaign ol {
  list-style: none;
}

.official-home-campaign {
  width: 100%;
  min-height: 480px;
  background: #fff;
  overflow-x: clip;
  isolation: isolate;
}

.official-home-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  background: #f5f7fa;
  text-align: center;
}

.official-home-empty__text {
  margin: 0;
  color: #545b66;
  font-size: 15px;
}

.official-home-empty__hint {
  margin: 0;
  color: #8a9199;
  font-size: 13px;
  line-height: 1.7;
  max-width: 640px;
}

.official-home-empty__hint code {
  font-size: 12px;
  background: #eef1f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.official-home-empty--warn {
  min-height: auto;
  padding: 16px 24px;
  background: #fff7e6;
  border-bottom: 1px solid #ffe7ba;
}

/* 外层已有本站导航，重置快照内百度顶栏占位变量 */
body.official-home-body #official-home-campaign {
  --cloud-nav-height: 0px;
}

body.official-home-body #official-home-campaign .ew2Jp0mK {
  padding-top: 0;
}

body.official-home-body #official-home-campaign .KkhwhwiM {
  scroll-margin-top: 72px;
}

@media screen and (max-width: 768px) {
  body.official-home-body {
    min-width: 0;
  }
}

/* 隐藏快照内残留的百度顶栏/侧栏/页脚（本站头尾在外层 layout）；BoKSMHOY 底部三宫格保留展示 */
.official-home-campaign .XaILuPf4,
.official-home-campaign .cloud-footer,
.official-home-campaign .cloud-header,
.official-home-campaign .cloud-nav-wrapper,
.official-home-campaign .portal-assistant,
.official-home-campaign .header-cloud {
  display: none !important;
}

/* PC 首页外层页脚（layout 渲染，独立于 bce-page 防止嵌入 HTML 提前闭合布局） */
body.official-home-body .official-home-footer.cloud-footer,
body.official-home-body .official-site-footer.cloud-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1;
  width: 100%;
  margin-top: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  clear: both;
}
body.official-home-body .bce-page--minimal {
  display: flex;
  flex-direction: column;
  min-height: auto;
}
body.official-home-body .bce-main-minimal {
  flex: 1 0 auto;
}
body.official-home-body .official-home-footer .footer-pc {
  box-sizing: border-box;
}
@media screen and (min-width: 769px) {
  body.official-home-body .official-home-footer .footer-pc {
    width: calc(100% - 140px);
    max-width: 1635px;
  }
}
@media screen and (max-width: 768px) {
  body.official-home-body .official-home-footer .footer-pc {
    width: calc(100% - 32px);
  }
  body.official-home-body .official-home-footer .bce-foot-main .left-link {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 页脚三栏固定栅格，避免 752.css 与缺列时错位重叠 */
body.official-home-body .official-site-footer .official-footer-grid,
.official-site-footer .official-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(200px, 1.05fr) minmax(0, 2.6fr) minmax(300px, 1.55fr) !important;
  grid-template-areas: 'contact links qr' !important;
  gap: 32px 40px !important;
  align-items: start !important;
  padding: 40px 0 36px !important;
}

.official-site-footer .official-footer-grid__contact {
  grid-area: contact;
  min-width: 0;
}

.official-site-footer .official-footer-grid__links {
  grid-area: links;
  min-width: 0;
}

.official-site-footer .official-footer-grid__qr {
  grid-area: qr;
  min-width: 0;
}

.official-site-footer .official-footer-grid__contact.is-empty,
.official-site-footer .official-footer-grid__links.is-empty,
.official-site-footer .official-footer-grid__qr.is-empty {
  display: none !important;
}

.official-site-footer .official-footer-grid .contact-link dl,
.official-site-footer .official-footer-grid .contact-link dd {
  margin: 0;
  padding: 0;
}

.official-site-footer .official-footer-qr__title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  text-align: center;
}

.official-site-footer .official-footer-qr__list {
  display: grid;
  grid-template-columns: repeat(var(--qr-cols, 3), minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  align-items: start;
}

.official-site-footer .official-footer-qr__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.official-site-footer .official-footer-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.official-site-footer .official-footer-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.official-site-footer .official-footer-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.official-site-footer .official-footer-line--inline {
  display: inline-flex;
}

.official-site-footer .official-footer-line__icon {
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}

.official-site-footer .official-footer-line__text {
  line-height: inherit;
}

.official-site-footer .bce-foot-info .official-footer-line,
.official-site-footer .bce-foot-col .official-footer-line,
.official-site-footer .contact-link .official-footer-line {
  text-decoration: none;
}

.official-site-footer .official-footer-presale-link .official-footer-line {
  display: inline-flex !important;
  position: static !important;
  margin: 0;
  padding: 5px 0;
  white-space: normal;
  word-break: break-word;
}

.official-site-footer .official-footer-qr__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: 100%;
  word-break: break-all;
}

@media screen and (max-width: 1200px) {
  .official-site-footer .official-footer-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'contact'
      'links'
      'qr' !important;
  }

  .official-site-footer .official-footer-qr__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}
