/*
 * 教师发展中心顶栏 —— 结构对齐党建子主题，导航高度按设计稿 60px
 * 作用域：body.jsfz-site
 */
body.jsfz-site{
  --jsfz-red:#d81716;
  --jsfz-deep-red:#b4000a;
  --jsfz-text:#242424;
  --jsfz-wrap:980px;
}

body.jsfz-site .site-header{
  color:#222 !important;
  background:#fff !important;
  position:relative !important;
  overflow:visible !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none !important;
  box-shadow:0 1px 0 rgba(0,0,0,.04) !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  transition:none !important;
}

body.jsfz-site .site-header.scrolled{
  background:#fff !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  filter:none !important;
  box-shadow:0 1px 0 rgba(0,0,0,.04) !important;
  border-bottom:0 !important;
}

body.jsfz-site .site-header .topbar{
  height:76px;
  background:linear-gradient(90deg,#c70009 0%,#d71919 55%,#bd0008 100%);
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  -webkit-font-smoothing:auto;
  text-rendering:auto;
}

body.jsfz-site .site-header .container{
  width:min(var(--jsfz-wrap),calc(100% - 48px)) !important;
  margin:0 auto !important;
  max-width:none !important;
  padding:0 !important;
}

body.jsfz-site .site-header .header-inner{
  height:76px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  position:relative !important;
}

body.jsfz-site .site-header .brand{
  display:block !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
}

/* 原图 355×52：按原始高度显示，避免放大发虚；并禁用父主题 filter/transform/opacity */
body.jsfz-site .site-header .brand img,
body.jsfz-site .site-header .brand:hover img{
  display:block !important;
  height:52px !important;
  width:auto !important;
  max-width:480px !important;
  max-height:none !important;
  object-fit:contain !important;
  filter:none !important;
  opacity:1 !important;
  transform:none !important;
  transition:none !important;
  image-rendering:auto;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}

body.jsfz-site .site-header .header-tools{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
  color:#fff !important;
  font-size:15px !important;
  white-space:nowrap !important;
  position:static !important;
  margin:0 !important;
  opacity:1 !important;
  filter:none !important;
  transform:none !important;
  text-shadow:none !important;
  -webkit-font-smoothing:auto;
}

body.jsfz-site .site-header .header-tools > a,
body.jsfz-site .site-header .header-tools > a:hover{
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700 !important;
  opacity:1 !important;
  filter:none !important;
  transform:none !important;
  text-shadow:none !important;
  transition:none !important;
}

body.jsfz-site .site-header .search{
  width:245px;
  height:28px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:0;
  display:flex;
  align-items:center;
  padding:0;
  background:rgba(255,255,255,.04);
  margin:0;
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body.jsfz-site .site-header .search input{
  flex:1;
  min-width:0;
  height:100%;
  background:transparent;
  border:0;
  outline:0;
  color:#fff;
  font-size:12px;
  box-shadow:none;
  padding:0 10px;
  opacity:1 !important;
  filter:none !important;
  -webkit-font-smoothing:auto;
}

body.jsfz-site .site-header .search input::placeholder{color:rgba(255,255,255,.88)}
body.jsfz-site .site-header .search button{
  width:34px;
  height:100%;
  border:0;
  background:transparent;
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  padding:0;
  opacity:1 !important;
  filter:none !important;
  transform:none !important;
}

/* 导航：设计稿 60px（低于党建 82px） */
body.jsfz-site .site-header .nav,
body.jsfz-site .site-header .mainnav{
  height:60px !important;
  background:#fff !important;
  border-bottom:1px solid #eee !important;
  box-shadow:0 1px 0 rgba(0,0,0,.03) !important;
  position:relative !important;
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

body.jsfz-site .site-header .nav-inner{
  height:60px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:stretch !important;
  gap:0 !important;
  text-align:center !important;
  font-weight:700 !important;
  color:#333 !important;
  font-size:15px !important;
  flex-wrap:nowrap !important;
}

body.jsfz-site .site-header .nav a{
  flex:1 1 0 !important;
  height:60px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:0 !important;
  position:relative !important;
  margin:0 !important;
  padding:0 6px !important;
  color:#333 !important;
  background:transparent !important;
  font-size:15px !important;
  font-weight:700 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  border-radius:0 !important;
  box-shadow:none !important;
  line-height:1 !important;
}

body.jsfz-site .site-header .nav a.active,
body.jsfz-site .site-header .nav a:hover{
  color:var(--jsfz-red) !important;
}

body.jsfz-site .site-header .nav a.active:after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:3px !important;
  background:var(--jsfz-red) !important;
  border-radius:0 !important;
}

body.jsfz-site .site-header .menu-toggle{
  display:none;
  position:absolute;
  right:14px;
  top:10px;
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  padding:8px;
  cursor:pointer;
  z-index:5;
}
body.jsfz-site .site-header .menu-toggle span{
  display:block;
  height:2px;
  margin:6px 0;
  background:#1f1f1f;
  border-radius:1px;
}

body.jsfz-site .jsfz-list-tabs a.active{
  color:var(--jsfz-red);
  border-color:var(--jsfz-red);
}

body.jsfz-site .news-row-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

body.jsfz-site:not(.jsfz-home-page) .list-hero,
body.jsfz-site:not(.jsfz-home-page) .article-hero{
  padding-top:calc(44px + 20px) !important;
}

body.jsfz-site.secondary-page .site-header,
body.jsfz-site.secondary-page header.site-header{
  background:#fff !important;
  box-shadow:0 1px 0 rgba(0,0,0,.04) !important;
}

@media (max-width:1020px){
  body.jsfz-site .site-header .topbar{height:auto}
  body.jsfz-site .site-header .header-inner{
    height:auto !important;
    min-height:78px !important;
    align-items:flex-start !important;
    flex-direction:column !important;
    gap:10px !important;
    padding:14px 0 !important;
  }
  body.jsfz-site .site-header .brand img,
  body.jsfz-site .site-header .brand:hover img{height:46px !important;max-width:100% !important}
  body.jsfz-site .site-header .header-tools{width:100% !important;justify-content:space-between !important}
  body.jsfz-site .site-header .search{width:190px}
  body.jsfz-site .site-header .nav,
  body.jsfz-site .site-header .mainnav{height:auto !important;min-height:54px}
  body.jsfz-site .site-header .menu-toggle{display:block}
  body.jsfz-site .site-header .nav-inner{
    display:none !important;
    height:auto !important;
    flex-direction:column !important;
    align-items:stretch !important;
    background:#fff;
    border:1px solid #eee;
    border-radius:8px;
    margin:8px 0 12px;
    padding:8px;
    box-shadow:0 12px 28px rgba(0,0,0,.08);
  }
  body.jsfz-site .site-header .nav-inner.show{display:flex !important}
  body.jsfz-site .site-header .nav a{
    height:48px !important;
    flex:none !important;
    justify-content:flex-start !important;
    padding:0 16px !important;
  }
  body.jsfz-site .site-header .nav a.active:after{
    left:16px !important;
    right:auto !important;
    width:28px !important;
    bottom:8px !important;
    height:3px !important;
  }
  body.jsfz-site .site-header .container{
    width:min(var(--jsfz-wrap),calc(100% - 28px)) !important;
  }
}
