/* 拦截浏览器插件「壹伴」注入的浮动入口 */
.entry-bar,
section .entry-bar,
.panel-entry,
img.panel-entry,
[class*='panel-entry'],
[id*='yiban' i],
[class*='yiban' i],
[id*='YiBan'],
[class*='YiBan'],
iframe[src*='yiban.io'] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.wglogin,
.wglogin-user,
#wglogin-box,
.btn-wglogin,
.btn-wglogin-text,
.widget-login,
.widget-login-mask,
.widget-login--app,
.unregister-login-mask,
.unregister-login-popbox {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 隐藏页脚官方渠道（微信）入口 */
.wgsite-item--og {
  display: none !important;
}

/* 隐藏页脚友情链接与腾讯版权信息 */
.wg-copyright,
.wg-copyright-link,
.wg-copyright-info,
.wg-copyright-owner {
  display: none !important;
}

/* 首页：Mac 芯片弹层改为 Windows 直链下载 */
.section-kv .mac-popup,
.section-kv #header-mac-popup {
  display: none !important;
}

/* 首页 KV：品牌与下载按钮整体上移 */
.section-kv .kv-slogan.new {
  top: 47% !important;
  transform: translate(-50%, -50%) !important;
}

.section-kv .kv-download {
  bottom: 3.1rem !important;
}

/* 下载按钮：持续呼吸 + 边框光晕，引导点击 */
.section-kv .button-download-mac {
  animation: zhongye-download-breathe 2.6s ease-in-out infinite;
}

.section-kv .button-download-mac:after {
  animation: zhongye-download-border 2.6s ease-in-out infinite;
}

@keyframes zhongye-download-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0.04rem rgba(156, 127, 248, 0.25));
  }
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 0 0.2rem rgba(156, 127, 248, 0.9));
  }
}

@keyframes zhongye-download-border {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

/* 进入页 3s / 6s 及之后每 8s 自动播放 hover 扫光 */
.section-kv .button-download.zhongye-auto-sweep .button-dowload-inner:before {
  transform: translate3d(-10%, 0, 0);
  transition: all 0.3s ease-in-out;
}

.section-kv .button-download.zhongye-auto-sweep .button-dowload-inner:after {
  transform: translate3d(-10%, 0, 0);
  transition: all 0.3s ease-in-out 0.3s;
}

.section-kv .button-download.zhongye-auto-sweep {
  animation: zhongye-download-sweep 0.85s ease-in-out;
}

@keyframes zhongye-download-sweep {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0.04rem rgba(156, 127, 248, 0.25));
  }
  35% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 0.28rem rgba(255, 132, 51, 0.95));
  }
  70% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 0.22rem rgba(156, 127, 248, 0.85));
  }
}

/* 页脚备案号 */
.zhongye-icp {
  margin-top: 28px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.zhongye-icp a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.zhongye-icp a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* 右侧 5 屏导航：替换原 2 项导航，随滚动高亮 */
.sidenav > .sidenav-item {
  display: none !important;
}

.zhongye-sidenav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.8rem;
  z-index: 11;
  display: flex;
  flex-direction: column;
}

.zhongye-sidenav .sidenav-item.current .sidenav-item-text {
  opacity: 1;
  color: #fff;
}

.zhongye-sidenav .sidenav-item.current .sidenav-item-num {
  opacity: 0;
}

.lite-version .zhongye-sidenav,
.in-mobile .zhongye-sidenav {
  display: none !important;
}

/* 官网循环音轨：放在顶栏「下载客户端」左侧 */
.zhongye-bgm-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.zhongye-bgm-toggle:hover {
  transform: scale(1.06);
  border-color: rgba(156, 127, 248, 0.9);
  background: rgba(156, 127, 248, 0.18);
  box-shadow: 0 0 12px rgba(156, 127, 248, 0.45);
}

.zhongye-bgm-toggle.is-playing {
  border-color: rgba(156, 127, 248, 0.7);
  animation: zhongye-bgm-pulse 2.6s ease-in-out infinite;
}

.zhongye-bgm-icon {
  width: 18px;
  height: 18px;
  display: none;
  line-height: 0;
}

.zhongye-bgm-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.zhongye-bgm-toggle.is-playing .zhongye-bgm-icon-on,
.zhongye-bgm-toggle.is-paused .zhongye-bgm-icon-off {
  display: block;
}

.zhongye-bgm-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(12, 8, 24, 0.86);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.zhongye-bgm-toggle:hover .zhongye-bgm-label {
  opacity: 1;
}

@keyframes zhongye-bgm-pulse {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(156, 127, 248, 0.25);
  }
  50% {
    box-shadow: 0 0 14px rgba(156, 127, 248, 0.7);
  }
}

.in-mobile .zhongye-bgm-toggle,
.lite-version .zhongye-bgm-toggle {
  width: 32px;
  height: 32px;
}

.in-mobile .zhongye-bgm-icon,
.lite-version .zhongye-bgm-icon {
  width: 16px;
  height: 16px;
}

.in-mobile .zhongye-bgm-label,
.lite-version .zhongye-bgm-label {
  display: none;
}

/* 官网 logo：顶栏 / 页脚统一使用新猫头鹰图标 */
.wgheader-logo {
  background-image: url(/zhongye/assets/logo-zhongye-icon.png?v=2) !important;
}

.wglogo {
  background-image: url(/zhongye/assets/logo-zhongye-icon.png?v=2) !important;
}
