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

body.gqt-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;
  z-index:100 !important;
}

body.gqt-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.gqt-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.gqt-site .site-header .container{
  width:min(var(--gqt-wrap),calc(100% - 48px)) !important;
  margin:0 auto !important;
  max-width:none !important;
  padding:0 !important;
}

body.gqt-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.gqt-site .site-header .brand{
  display:block !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
}

/* 原图 355×52：按原始高度显示，避免放大发虚；并禁用父主题 filter/transform/opacity */
body.gqt-site .site-header .brand img,
body.gqt-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.gqt-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.gqt-site .site-header .header-tools > a,
body.gqt-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.gqt-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.gqt-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.gqt-site .site-header .search input::placeholder{color:rgba(255,255,255,.88)}
body.gqt-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，支持下拉 */
body.gqt-site .site-header .nav,
body.gqt-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;
  overflow:visible !important;
  z-index:20 !important;
}

body.gqt-site .site-header .nav-inner{
  height:60px !important;
  display:flex !important;
  align-items:stretch !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;
  overflow:visible !important;
  position:relative !important;
}

body.gqt-site .site-header .nav-item{
  flex:1 1 0 !important;
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:60px !important;
  margin:0 !important;
}

body.gqt-site .site-header .nav-item > .nav-link{
  flex:1 1 auto !important;
  width:100% !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;
  /* 覆盖父主题 .nav-item>a 的上移与旧下划线 */
  opacity:1 !important;
  transform:none !important;
  transition:color .2s ease !important;
}

body.gqt-site .site-header .nav-item:hover > .nav-link,
body.gqt-site .site-header .nav-item > .nav-link:hover{
  opacity:1 !important;
  transform:none !important;
}

body.gqt-site .site-header .nav-item.is-active > .nav-link,
body.gqt-site .site-header .nav-item > .nav-link.active,
body.gqt-site .site-header .nav-item:hover > .nav-link,
body.gqt-site .site-header .nav-item > .nav-link:hover{
  color:var(--gqt-red) !important;
}

/* 对齐 jsfzzx：下划线贴齐 nav 底边；并关掉父主题 scaleX / bottom:17px */
body.gqt-site .site-header .nav-item > .nav-link:after,
body.gqt-site .site-header .nav-item:hover > .nav-link:after{
  content:none !important;
  transform:none !important;
  transition:none !important;
}

body.gqt-site .site-header .nav-item.is-active > .nav-link:after,
body.gqt-site .site-header .nav-item > .nav-link.active:after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:3px !important;
  background:var(--gqt-red) !important;
  border-radius:0 !important;
  transform:none !important;
  transform-origin:left !important;
  transition:none !important;
}

body.gqt-site .site-header .nav-item .sub-menu{
  display:none;
  position:absolute;
  left:50%;
  top:100%;
  transform:translateX(-50%);
  min-width:100%;
  width:max-content;
  max-width:240px;
  margin:0;
  padding:8px 0;
  background:#fff;
  border:1px solid #eee;
  border-top:0;
  box-shadow:0 12px 28px rgba(0,0,0,.1);
  z-index:30;
  text-align:left;
}

body.gqt-site .site-header .nav-item:hover > .sub-menu,
body.gqt-site .site-header .nav-item.is-open > .sub-menu{
  display:block;
}

body.gqt-site .site-header .nav-item .sub-link{
  display:block !important;
  height:auto !important;
  padding:10px 18px !important;
  margin:0 !important;
  color:#333 !important;
  font-size:14px !important;
  font-weight:600 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  line-height:1.4 !important;
}

body.gqt-site .site-header .nav-item .sub-link:hover,
body.gqt-site .site-header .nav-item .sub-link.active{
  color:var(--gqt-red) !important;
  background:#fafafa !important;
}

body.gqt-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.gqt-site .site-header .menu-toggle span{
  display:block;
  height:2px;
  margin:6px 0;
  background:#1f1f1f;
  border-radius:1px;
}

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

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

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

body.gqt-site.secondary-page .site-header,
body.gqt-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.gqt-site .site-header .topbar{height:auto}
  body.gqt-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.gqt-site .site-header .brand img,
  body.gqt-site .site-header .brand:hover img{height:46px !important;max-width:100% !important}
  body.gqt-site .site-header .header-tools{width:100% !important;justify-content:space-between !important}
  body.gqt-site .site-header .search{width:190px}
  body.gqt-site .site-header .nav,
  body.gqt-site .site-header .mainnav{height:auto !important;min-height:54px;overflow:visible !important}
  body.gqt-site .site-header .menu-toggle{display:block}
  body.gqt-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);
    overflow:visible !important;
  }
  body.gqt-site .site-header .nav-inner.show{display:flex !important}
  body.gqt-site .site-header .nav-item{
    flex:none !important;
    height:auto !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }
  body.gqt-site .site-header .nav-item > .nav-link{
    height:48px !important;
    justify-content:flex-start !important;
    padding:0 16px !important;
  }
  body.gqt-site .site-header .nav-item.is-active > .nav-link:after,
  body.gqt-site .site-header .nav-item > .nav-link.active:after{
    left:16px !important;
    right:auto !important;
    width:28px !important;
    bottom:8px !important;
    height:3px !important;
    transform:none !important;
  }
  body.gqt-site .site-header .nav-item .sub-menu{
    position:static;
    left:auto;
    top:auto;
    transform:none;
    display:none;
    width:100%;
    max-width:none;
    min-width:0;
    border:0;
    box-shadow:none;
    padding:0 0 8px;
    background:transparent;
  }
  body.gqt-site .site-header .nav-item.is-open > .sub-menu{
    display:block;
  }
  body.gqt-site .site-header .nav-item:hover > .sub-menu{
    display:none;
  }
  body.gqt-site .site-header .nav-item.is-open:hover > .sub-menu,
  body.gqt-site .site-header .nav-item.is-open > .sub-menu{
    display:block;
  }
  body.gqt-site .site-header .nav-item .sub-link{
    padding:10px 16px 10px 28px !important;
  }
  body.gqt-site .site-header .container{
    width:min(var(--gqt-wrap),calc(100% - 28px)) !important;
  }
}
