/* 用户中心主题公告弹窗 */
.uc-theme-ann-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.uc-theme-ann-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.uc-theme-ann-dialog {
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0 !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  transition: transform .28s ease;
}
.uc-theme-ann-backdrop.is-open .uc-theme-ann-dialog {
  transform: none;
}
/* 关闭时原弹窗立刻藏到飞行体下（飞行体才是关窗过程） */
.uc-theme-ann-dialog.is-soft-out {
  opacity: 0 !important;
  transform: none !important;
  transition: opacity .05s linear !important;
  pointer-events: none !important;
}
.uc-theme-ann-backdrop.is-closing {
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  pointer-events: none;
}
.uc-theme-ann-fly {
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  /* 切断弹窗自身 transform 过渡，避免和飞入动画打架导致「翻转」 */
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), opacity .36s cubic-bezier(.22, 1, .36, 1), box-shadow .36s ease !important;
}
.uc-theme-ann-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.uc-theme-ann-head__main {
  min-width: 0;
  flex: 1;
}
.uc-theme-ann-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-bottom: 8px;
  border-radius: 0 !important;
  background: #e8f3ff;
  color: #1677ff;
  font-size: 12px;
  line-height: 1;
}
.uc-theme-ann-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #1d2129;
  line-height: 1.35;
  word-break: break-word;
}
.uc-theme-ann-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #86909c;
  line-height: 1.5;
  word-break: break-word;
}
.uc-theme-ann-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  color: #86909c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.uc-theme-ann-close:hover {
  background: #f2f3f5;
  color: #1d2129;
}
.uc-theme-ann-body {
  padding: 16px 20px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #4e5969;
}
.uc-theme-ann-body p {
  margin: 0 0 .75em;
}
.uc-theme-ann-body p:last-child {
  margin-bottom: 0;
}
.uc-theme-ann-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  color: #86909c;
}
.uc-theme-ann-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafbfc;
}
.uc-theme-ann-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 0 !important;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  background: #fff;
  color: #4e5969;
}
.uc-theme-ann-btn--primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.uc-theme-ann-btn--primary:hover {
  background: #4096ff;
  border-color: #4096ff;
}
.uc-theme-ann-btn--ghost {
  background: #fff;
  border-color: #d9d9d9;
  color: #4e5969;
}
.uc-theme-ann-btn--ghost:hover {
  border-color: #1677ff;
  color: #1677ff;
}
/* 压过官网 button-radius.css */
.uc-theme-ann-backdrop .uc-theme-ann-dialog,
.uc-theme-ann-backdrop .uc-theme-ann-dialog *,
.uc-theme-ann-backdrop button,
.uc-theme-ann-banner,
.uc-theme-ann-banner button,
.uc-theme-ann-banner__tag,
.uc-theme-ann-banner__close,
.uc-theme-ann-banner__dismiss {
  border-radius: 0 !important;
}
body.uc-theme-ann-open {
  overflow: hidden;
}

/* 用户中心首页副顶栏横幅 */
.uc-theme-ann-banner-host {
  display: none;
  width: calc(100% + 2 * var(--uc-page-x-pad, 16px));
  margin: 0 calc(-1 * var(--uc-page-x-pad, 16px)) 10px;
  box-sizing: border-box;
}
.uc-theme-ann-banner-host.is-visible,
.uc-theme-ann-banner-host:not([hidden]) {
  display: block;
}
.uc-theme-ann-banner {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  background: #f0f7ff;
  border-bottom: 1px solid #d6e8ff;
  color: var(--uc-text, #1d2129);
}
.uc-theme-ann-banner.is-open {
  opacity: 1;
  transform: none;
}
.uc-theme-ann-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 40px;
  padding: 8px var(--uc-page-x-pad, 16px);
  box-sizing: border-box;
}
.uc-theme-ann-banner__main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
  flex: 1;
}
.uc-theme-ann-banner__tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 0;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.uc-theme-ann-banner__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--uc-text, #1d2129);
  word-break: break-word;
}
.uc-theme-ann-banner__sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--uc-text-secondary, #4e5969);
  word-break: break-word;
}
.uc-theme-ann-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.uc-theme-ann-banner__dismiss {
  border: 0;
  background: transparent;
  color: #1677ff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.uc-theme-ann-banner__dismiss:hover {
  text-decoration: underline;
}
.uc-theme-ann-banner__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #86909c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.uc-theme-ann-banner__close:hover {
  background: rgba(22, 119, 255, 0.08);
  color: #1d2129;
}
@media (max-width: 575.98px) {
  .uc-theme-ann-banner__sub {
    display: none;
  }
}

/* —— 首页弹窗公告：侧栏回收按钮 —— */
.uc-theme-ann-fly,
.uc-theme-ann-fly * {
  border-radius: 0 !important;
}
button.uc-theme-ann-reopen,
button.uc-theme-ann-reopen:hover,
button.uc-theme-ann-reopen:focus,
button.uc-theme-ann-reopen:active,
button.uc-theme-ann-reopen *,
.uc-theme-ann-reopen,
.uc-theme-ann-reopen * {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}
.uc-theme-ann-reopen {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: #fff;
  box-shadow: none;
  color: #1f2329;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
  transform-origin: center top;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  /* 出场：尽快淡入 */
  transition:
    height .28s cubic-bezier(.22, 1, .36, 1),
    max-height .28s cubic-bezier(.22, 1, .36, 1),
    margin-top .28s cubic-bezier(.22, 1, .36, 1),
    opacity .14s ease,
    transform .16s cubic-bezier(.22, 1, .36, 1),
    box-shadow .16s ease,
    color .2s ease,
    background-color .2s ease;
  animation: none;
  z-index: 9001;
  pointer-events: none;
}
.uc-theme-ann-reopen[hidden] {
  display: none !important;
}
/* 飞入中：占好高度但透明，避免落点再「拉开」 */
.uc-theme-ann-reopen.is-pre {
  height: 52px;
  max-height: 52px;
  opacity: 0;
  transform: scale(0.94);
  background: transparent;
  box-shadow: none !important;
  pointer-events: none;
  color: transparent;
}
.uc-theme-ann-reopen--in-dock.is-pre {
  margin-top: 14px;
  width: 100%;
}
.uc-theme-ann-reopen.is-on {
  height: 52px;
  max-height: 52px;
  opacity: 1;
  transform: scale(1);
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
  pointer-events: auto;
  color: #1f2329;
}
.uc-theme-ann-reopen--in-dock.is-on {
  margin-top: 14px;
  width: 100%;
}
.uc-theme-ann-reopen.is-measure {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  display: flex !important;
}
.uc-theme-ann-reopen--in-dock {
  width: 100%;
  flex: 0 0 auto;
}
.uc-theme-ann-reopen--solo {
  position: fixed;
  right: 16px;
  top: 58%;
}
.uc-theme-ann-reopen.is-on:hover {
  height: 100px;
  max-height: 100px;
  background: #006eff !important;
  box-shadow: 0 6px 20px rgba(0, 110, 255, 0.28) !important;
  color: #fff !important;
}
.uc-theme-ann-reopen__ico,
.uc-theme-ann-reopen__lab {
  position: absolute;
  left: 50%;
  top: 50%;
  color: inherit;
  transition: opacity .24s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}
.uc-theme-ann-reopen__ico {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  opacity: 1;
}
.uc-theme-ann-reopen__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.uc-theme-ann-reopen__lab {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.9);
  pointer-events: none;
}
.uc-theme-ann-reopen.is-on:hover .uc-theme-ann-reopen__ico {
  opacity: 0;
  transform: translate(-50%, -68%) scale(0.75);
}
.uc-theme-ann-reopen.is-on:hover .uc-theme-ann-reopen__lab {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@keyframes uc-theme-ann-reopen-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .uc-theme-ann-reopen--solo {
    right: 12px;
    top: auto;
    bottom: 240px;
  }
  .uc-theme-ann-reopen {
    width: 46px;
  }
  .uc-theme-ann-reopen.is-pre,
  .uc-theme-ann-reopen.is-on {
    height: 46px;
    max-height: 46px;
  }
  .uc-theme-ann-reopen.is-on:hover {
    height: 88px;
    max-height: 88px;
  }
}
