/* 桌面优先修正：恢复原站桌面导航，避免被误判成移动端 */
.animsition { opacity: 1 !important; visibility: visible !important; }
header .header-logo img,
footer .header-logo img { display: none !important; }

/* ===== Desktop (>=901px) ===== */
@media (min-width: 901px) {
  html, body {
    width: 100% !important;
    max-width: none !important;
  }
  header, main, footer, .animsition, .index-banner-pc, .index-sec {
    width: 100% !important;
  }

  /* 强制桌面导航 */
  header #float-menu { display: none !important; }
  header #mm-menu { display: none !important; }
  header ul.header-left:not(#mm-menu) {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
  }
  header .header-right .nav-link,
  header .header-right #deco {
    display: inline-flex !important;
  }

  /* 无 slick：同一时间只显示一张全宽 banner */
  .index-banner-pc { width: 100%; display: block; }
  .index-banner-pc .banner-wrap {
    display: none !important;
    width: 100% !important;
    position: relative;
  }
  .index-banner-pc .banner-wrap.is-active,
  .index-banner-pc .banner-wrap:first-child:only-child,
  .index-banner-pc .banner-wrap.is-active:first-child {
    display: block !important;
  }
  /* 若尚未加上 is-active，至少显示第一张，避免空白 */
  .index-banner-pc:not(:has(.is-active)) .banner-wrap:first-child {
    display: block !important;
  }
  .index-banner-pc .banner-wrap img {
    display: block !important;
    width: 100% !important;
    height: 78vh !important;
    min-height: 520px !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* ===== Mobile / tablet (<=900px) ===== */
@media (max-width: 900px) {
  .index-banner-pc .banner-wrap { display: none !important; }
  .index-banner-pc .banner-wrap.is-active { display: block !important; }
  .index-banner-pc .banner-wrap img {
    width: 100% !important;
    height: 56vh !important;
    min-height: 320px !important;
    object-fit: cover !important;
  }
}
/* === sticky-footer-pc (auto) === */
html{height:100%;}
body{
  min-height:100vh !important;
  min-height:100dvh !important;
  display:flex !important;
  flex-direction:column !important;
}
body > header,
body > .site-header,
body > .promo,
body > .topbar,
body > .top-bar{
  flex:0 0 auto;
}
/* 主内容按实际高度，剩余留给页脚外层铺色 */
body > main,
body > main.animsition,
body > .animsition{
  flex:0 0 auto;
  width:100%;
  min-height:0 !important;
}
body > .page-hero{
  flex:0 0 auto;
  width:100%;
}
body > .page-content{
  flex:0 0 auto;
  width:100%;
}
.site-footer-outer{
  flex:1 0 auto !important;
  width:100%;
  min-height:0;
  box-sizing:border-box;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  background:#1a1a1a !important;
}
.site-footer-outer > .site-footer,
.site-footer-outer > footer{
  width:100%;
  box-sizing:border-box;
  flex:0 0 auto;
  background:#1a1a1a;
}
body > footer,
body > .site-footer{
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin-top: auto !important;
  width: 100% !important;
  z-index: 10 !important;
  background: #1a1a1a !important;
  color: #fff !important;
  flex: 0 0 auto !important;
}
body > footer a,
body > footer .nav-link,
body > footer .footer-links a,
body > footer .copyright{
  color: #fff !important;
}
body > footer .footer-links li::before{
  background: rgba(255,255,255,.35) !important;
}
body > footer .footer-wrap{
  border-top: none !important;
  border-bottom: none !important;
  /* 空区块不再撑高页尾 */
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 90% !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body > footer .footer-wrap ul.footer-info{
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
}
body > footer .footer-wrap ul.footer-info:empty,
body > footer .footer-wrap:has(ul.footer-info:empty){
  display: none !important;
}
/* 页尾整体更矮：链接下移贴近版权 */
body > footer{
  margin-top: 2.5rem !important;
  padding: 1.2rem 0 0.6rem !important;
  gap: 0 !important;
}
body > footer > .header-logo{
  margin: 0 auto 0.6rem !important;
  width: auto !important;
  max-width: 200px;
}
body > footer > .footer-links{
  margin: 0.2rem auto 0.15rem !important;
  padding: 0 !important;
  font-size: 14px !important;
}
body > footer > .footer-links li{
  padding-left: 1rem !important;
}
body > footer > .footer-links li::before{
  margin-right: 1rem !important;
}
body > footer > .copyright{
  padding: 0.55rem 1rem 0.9rem !important;
  margin: 0 !important;
  letter-spacing: 0.5px !important;
}
/* 文章区：与首页其他区块同排版节奏 */
body > main .index-sec#articles{
  flex: 0 0 auto;
  width: 100%;
}
#articles .j-wrapper .p-item .img img{
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: #f3f3f3;
}
@media (max-width:900px){
  body{min-height:auto !important;display:block !important;}
  .site-footer-outer{flex:none !important;}
  body > main, body > main.animsition{min-height:auto !important;}
  body > footer{position:relative !important;}
}
