/* 原站 CSS 之外的必要补充 —— 只包含首页复刻真正需要的内容 */

/* 封面骨架层: 图片就绪后淡出 */
.loading-CDmfwg {
  transition: opacity 0.28s ease-out;
}

/* 下载二维码弹窗: 原站由 React 控制显隐, 这里用 .is-open 接管 */
.pc-container-wwTlqi.is-open {
  visibility: visible !important;
}
.pc-container-wwTlqi .pc-mask-LyQukG {
  background-color: transparent;
  transition: background-color 0.2s ease;
}
.pc-container-wwTlqi.is-open .pc-mask-LyQukG {
  background-color: rgba(0, 0, 0, 0.6);
}

/* 轻提示 */
.hg-toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  z-index: 2000;
  transform: translate(-50%, 16px);
  max-width: 80vw;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(28, 29, 31, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.hg-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 窄屏下日/韩/英/马来语的导航文案比中文长: 缩小字号并隐藏搜索入口腾出空间 */
@media (max-width: 480px) {
  html:not([data-locale="zh-cn"]):not([data-locale="zh-tw"]):not([data-locale="zh-hk"])
    .m-feed-nav-LytHGo
    .pc-links-GdW40M {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
    gap: 5px;
    margin-left: 8px;
  }
  html:not([data-locale="zh-cn"]):not([data-locale="zh-tw"]):not([data-locale="zh-hk"])
    .m-feed-nav-LytHGo
    .pc-links-GdW40M::-webkit-scrollbar {
    display: none;
  }
  html:not([data-locale="zh-cn"]):not([data-locale="zh-tw"]):not([data-locale="zh-hk"])
    .m-feed-nav-LytHGo
    .m-link-MAkZDJ {
    font-size: 12px;
  }
  html:not([data-locale="zh-cn"]):not([data-locale="zh-tw"]):not([data-locale="zh-hk"])
    .m-feed-nav-LytHGo
    .m-search-entry-yTtTEx {
    display: none;
  }
}

/* 未复刻路由的说明页 */
.hg-notice {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: #131414;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  text-align: center;
}
.hg-notice h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}
.hg-notice p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 26px;
}
.hg-notice a {
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(99.86deg, #ff7e0d 0.27%, #ff9233);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.hg-notice a:hover {
  filter: brightness(1.06);
}
