/* 拦截浏览器插件「壹伴」注入的浮动入口 */
.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;
}

/* 隐藏末屏原站字标 */
.section-more-logo {
  display: none !important;
  background-image: none !important;
}

/* 仅保留 Windows 客户端下载，去掉 2.0 按钮与 Mac 芯片弹层 */
.section-kv .button-download-pc,
.section-kv .mac-popup,
.section-kv #header-mac-popup,
.wgheader-ft .mac-popup,
#header-mac-popup {
  display: none !important;
}

.section-kv a.button-download-mac,
.section-kv .button-download-mac,
.section-kv a.button-download-android,
.section-kv .button-download-android {
  display: block !important;
  color: inherit;
  text-decoration: none;
}

#widget-footer a.zhongye-footer-download {
  display: block;
  color: inherit;
  text-decoration: none;
}

.zhongye-footer-downloads {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: auto !important;
}

/* html/body 都带 in-mobile，禁止被组件样式改成 flex 导致内容收窄、右侧留白 */
html.in-mobile,
body.in-mobile,
html.lite-version,
body.lite-version {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  overflow-x: hidden;
}

html.in-mobile #app,
body.in-mobile #app,
.zy-site {
  width: 100%;
  max-width: 100%;
}

/* 移动端不提供 Windows 安装包下载 */
body.in-android {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.in-mobile .wgheader-download,
.in-mobile .section-kv .kv-download,
.in-mobile .section-kv .button-download,
.in-mobile .section-kv .button-download-mac,
.in-mobile .wgsite-item--wg,
.in-mobile .wgsite,
.in-mobile .wgnav-popup-btn,
.in-mobile .wgnav-popup,
.in-mobile .wgheader-bd {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .wgheader-download,
  .section-kv .kv-download,
  .section-kv .button-download,
  .section-kv .button-download-mac,
  .wgsite-item--wg,
  .wgsite,
  .wgnav-popup-btn,
  .wgnav-popup,
  .wgheader-bd {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

a.wgheader-download {
  text-decoration: none;
}

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

.section-kv .kv-download {
  left: 50% !important;
  right: auto !important;
  bottom: 3.1rem !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  height: 0.64rem !important;
  aspect-ratio: auto !important;
  display: flex !important;
  align-items: stretch;
  justify-content: center;
  gap: 0.2rem;
}

.section-kv .kv-download .button-download {
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 100%;
}

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

.section-kv .button-download-mac:after,
.section-kv .button-download-android:after,
#widget-footer .zhongye-footer-download: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 p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.zhongye-icp a {
  display: block;
  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);
}

.zhongye-icp-records {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.zhongye-icp-records a {
  display: inline-flex;
  align-items: center;
}

.zhongye-icp-divider {
  color: rgba(255, 255, 255, 0.28);
}

.zhongye-icp a.zhongye-police-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zhongye-icp .zhongye-police-record-icon {
  width: 14px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

/* 右侧 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(logo-zhongye-icon.png?v=2) !important;
}

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

/* 页脚品牌区随页面宽度缩放（与整站 rem 一致，1920 下 1rem=100px） */
#widget-footer .wglogo {
  width: 2.88rem !important;
  height: 1.2rem !important;
  padding-left: 1.14rem !important;
  background-size: 0.96rem 0.96rem !important;
  background-position: left center !important;
  font-size: 0.34rem !important;
  top: 0.5rem !important;
}

#widget-footer .wglogo::after {
  font-size: 0.14rem !important;
  margin-top: 0.08rem !important;
}

#widget-footer .wgsite-tit {
  font-size: 0.28rem !important;
  margin-bottom: 0.16rem !important;
}

#widget-footer .wgsite-link,
#widget-footer .wgsite-link-txt {
  font-size: 0.24rem !important;
  line-height: 0.24rem !important;
}

/* 移动端页脚：备案号跟在末屏 logo 下方，不再叠在猫头鹰上 */
.in-mobile .website-page-footer,
.lite-version.in-mobile .website-page-footer,
html.in-mobile .website-page-footer,
body.in-mobile .website-page-footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: all !important;
  z-index: 3;
}

.in-mobile .wgfooter {
  min-height: 0 !important;
  padding: 0 0 0.28rem !important;
  background: transparent;
}

.in-mobile .wgfooter-inner {
  width: 100% !important;
  padding: 0.16rem 0.2rem 0.2rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.in-mobile .wglogo,
.in-mobile #widget-footer .wglogo {
  display: flex !important;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  width: 42vw !important;
  height: 13vw !important;
  margin: 0 auto 8px;
  padding-left: 14vw !important;
  background-size: 11vw 11vw !important;
  font-size: 4vw !important;
}

.in-mobile #widget-footer .wglogo::after {
  font-size: 1.8vw !important;
  margin-top: 1vw !important;
}

.in-mobile .zhongye-icp {
  margin-top: 4px;
  padding: 8px 12px 0;
  position: relative;
  z-index: 4;
  font-size: 12px;
}

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .website-page-footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    height: auto !important;
    min-height: 0 !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  .wgfooter {
    min-height: 0 !important;
    padding: 0 0 0.28rem !important;
  }

  .wgfooter-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.16rem 0.2rem 0.2rem !important;
  }

  #widget-footer .wglogo {
    display: flex !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    width: 52vw !important;
    height: 16vw !important;
    margin: 0 auto 8px;
    padding-left: 17vw !important;
    background-size: 14vw 14vw !important;
    font-size: 5vw !important;
  }

  #widget-footer .wglogo::after {
    font-size: 2.3vw !important;
    margin-top: 1.2vw !important;
  }

  .zhongye-icp {
    margin-top: 4px;
    padding: 8px 12px 0;
    font-size: 12px;
  }
}

/* 帮助中心、协议及联系我们独立内容页 */
body.zhongye-inner-page {
  width: 100% !important;
  min-height: 100vh;
  min-width: 0 !important;
  overflow: auto !important;
  background: #08070c;
}

body.zhongye-inner-page #app {
  min-height: 100vh;
}
