/* 官网首页顶栏上方公告横幅（与弹窗公告无关） */
:root {
  --home-ann-banner-h: 0px;
  --home-ann-hd-h: 70px;
}

.home-theme-ann-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: #0b5fff;
  color: #fff;
  box-sizing: border-box;
  will-change: height;
  transition: height .38s cubic-bezier(.22, 1, .36, 1);
}

.home-theme-ann-banner.is-open {
  height: var(--home-ann-banner-h);
}

.home-theme-ann-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  min-height: 40px;
  height: 100%;
  padding: 0 48px 0 20px;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.home-theme-ann-banner__main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
  text-align: center;
}

.home-theme-ann-banner__tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.home-theme-ann-banner__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  word-break: break-word;
}

.home-theme-ann-banner__sub {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.home-theme-ann-banner__actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-theme-ann-banner__dismiss {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0 !important;
}

.home-theme-ann-banner__dismiss:hover {
  text-decoration: underline;
}

.home-theme-ann-banner__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.home-theme-ann-banner__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.home-theme-ann-banner,
.home-theme-ann-banner button,
.home-theme-ann-banner .home-theme-ann-banner__tag,
.home-theme-ann-banner .home-theme-ann-banner__close,
.home-theme-ann-banner .home-theme-ann-banner__dismiss {
  border-radius: 0 !important;
}

body.jdc-rwd.has-home-ann-banner .jc_hd {
  top: var(--home-ann-banner-h) !important;
  transition: top .38s cubic-bezier(.22, 1, .36, 1), background .25s, box-shadow .25s, backdrop-filter .25s !important;
}

body.jdc-rwd.has-home-ann-banner:not(:has(.jdc-first-screen)) #start {
  padding-top: calc(var(--home-ann-hd-h) + var(--home-ann-banner-h)) !important;
  transition: padding-top .38s cubic-bezier(.22, 1, .36, 1);
}

body.jdc-rwd.has-home-ann-banner:has(.jdc-first-screen) #start,
body.jdc-rwd.has-home-ann-banner.home-ann-banner-covered:has(.jdc-first-screen) #start {
  padding-top: 0 !important;
}

body.jdc-rwd.has-home-ann-banner.home-ann-banner-covered .jc_hd {
  top: 0 !important;
}

body.jdc-rwd.has-home-ann-banner.home-ann-banner-covered:not(:has(.jdc-first-screen)) #start {
  padding-top: var(--home-ann-hd-h) !important;
}

@media (max-width: 575.98px) {
  .home-theme-ann-banner__sub {
    display: none;
  }
  .home-theme-ann-banner__inner {
    padding-right: 44px;
    justify-content: flex-start;
  }
  .home-theme-ann-banner__main {
    justify-content: flex-start;
    text-align: left;
  }
}
