
.component-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-color);
    height: 50px;
    --header-text-color: var(--color-light-text);

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 0 120px;
    gap: 40px;
}

.component-header.high-level-than-header {
  z-index: 31;
}

.component-header_left {
    /* position: absolute;
    left: 120px;
    top: 0; */
    height: 100%;
    display: flex;
    align-items: center;
    color: rgb(var(--header-text-color));
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    gap: 16px;
}

.component-header_left_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 20px;
}

.component-header_left_icon img {
    width: 100%;
    height: auto;
}

.component-header_left_icon-default {
    width: 30px;
    height: 20px;
    background-color: #ddd;
}

.component-header_left_text {
    margin-left: 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
}

.component-header_center {
    /* padding-right: 90px; */
    /* font-size: 18px;
    font-weight: 400;
    line-height: 25.2px; */
    color: rgb(var(--header-text-color));
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.component-header_center .announcement-text {
  white-space: nowrap;
}

.component-header_center .announcement-text:nth-child(2) {
  display: none;
}

.component-header_center.scrolling .announcement-text {
  animation: scroll-x var(--scroll-duration, 10s) 1s linear infinite;
  display: flex;
  padding-right: 40px;
  white-space: pre;
}

.component-header_center.scrolling:hover .announcement-text {
  animation-play-state: paused;
}

.component-header_center a,
.component-header_center a:hover {
    text-decoration: underline;
    color: inherit;
}

.component-header_right {
    /* position: absolute;
    right: 120px;
    top: 0; */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    color: rgb(var(--header-text-color));
}

.component-header_right_text {
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    text-align: left;
}

.component-header_right_text a,
.component-header_right_text a:hover {
    text-decoration: underline;
}

.component-header_right_text count-down {
    min-width: 130px;
    display: inline-block;
}

.component-header_right_line {
    margin: 0 30px;
    height: 21px;
    border-left: 1px solid rgb(var(--header-text-color));
}

.component-header_right_login {
    display: flex;
    align-items: center;
}

.component-header_right_login_icon {
    margin-right: 8px;
    color: rgb(var(--header-text-color));
}

.component-header_right_login_icon_default {
    width: 28px;
    height: 28px;
    background: #D9D9D9;
    margin-right: 6px;
}

.component-header_right_login_text {
    text-align: left;
    color: rgb(var(--header-text-color)) !important;
}

@media (max-width: 1200px) {
  .component-header, .component-menu-header_title-block {
    padding: 0 60px !important;
  }
}
/* ---- 首页改版（Figma 23:838）---------------------------------------------
   内容区按设计稿收进 1280px 居中（1570 画板两侧各 145px），不再用固定 120px 内边距，
   这样宽屏上左右两组不会被甩到屏幕边缘。底色、图标色走公告栏板块的设置。 */
.component-header {
  height: 52px;
  background: var(--bz-bar-bg, var(--theme-color));
  padding: 0 max(24px, calc((100% - 1280px) / 2));
  font-family: 'Manrope', var(--body-font), sans-serif;
  /* 深底白字在 macOS 默认次像素渲染下会显粗，设计稿是灰度抗锯齿 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.component-header_center {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #fff;
}

/* richtext 会把文案包进 <p>，不压成行内的话图标会单独占一行 */
.component-header_center .announcement-text p {
  display: inline;
  margin: 0;
}

.component-header_center .announcement-icon {
  color: var(--bz-bar-icon, #eeb8d0);
  margin-right: 6px;
}

.component-header_right_line {
  margin: 0 28px 0 30px;
  height: 20px;
  border-left-color: rgba(255, 255, 255, 0.35);
}

.component-header_right_login_icon {
  display: inline-flex;
}

.component-header_right_login_icon svg {
  width: 20px;
  height: 20px;
}

.component-header_right_login a {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #fff;
}

/* ---- 移动端公告栏（Figma 移动稿 2:3）—— 34px 高，10px 字，无登录入口 -------- */
@media screen and (max-width: 959px) {
  /* 加 div 限定：component-header-mobile.css 同名规则特异性相同且后加载 */
  div.header-mobile__announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    background: var(--bz-bar-bg, var(--theme-color));
    font-family: 'Manrope', var(--body-font), sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .header-mobile__announcement-top {
    font-size: 10px;
    font-weight: 400;
    line-height: 15px;
    color: #fff;
    white-space: nowrap;
  }

  .header-mobile__announcement-top p {
    display: inline;
    margin: 0;
  }

  .header-mobile__announcement-top .announcement-icon {
    color: var(--bz-bar-icon, #eeb8d0);
    margin-right: 7px;
  }
}
