/*
 * 二级学院顶栏 —— 对齐主主题：fixed 透明悬于 Hero，滚动后红底
 * 仅做学院差异补充，不覆盖主主题 .site-header 定位/背景逻辑
 * 作用域：body.ejxy-site
 */
body.ejxy-site{
  --ejxy-primary:#e83521;
  --ejxy-accent:#e83521;
  --ejxy-text:#1f1f1f;
  --ejxy-muted:#777;
  --ejxy-wrap:1208px;
  --ejxy-content-width:1208px;
}

/* 顶栏内容区 1200 居中（覆盖主主题 min(1440px,92vw)） */
body.ejxy-site .site-header .header-inner{
  width:min(1200px,calc(100% - 48px)) !important;
  max-width:1200px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* 导航链接不加粗 */
body.ejxy-site .site-header .nav-item>a{
  font-weight:400 !important;
}

/* 学院名（主主题无此元素） */
body.ejxy-site .site-header .brand{
  gap:14px;
  min-width:0;
}

body.ejxy-site .site-header .brand img{
  height:41px !important;
  width:auto !important;
  max-height:41px !important;
}

body.ejxy-site .site-header .brand-name{
  color:#fff;
  font-size:30px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:min(360px,36vw);
  text-shadow:0 1px 8px rgba(0,0,0,.25);
}

/* 「官网」按钮沿用主主题 .lang-btn 尺寸 */
body.ejxy-site .site-header .lang-btn{
  font-size:12px;
  letter-spacing:.02em;
}

@media (max-width: 900px){
  body.ejxy-site .site-header .brand-name{
    font-size:16px;
    max-width:42vw;
  }
}

/* 列表页：只保留分类标题，隐藏主主题 kicker/tagline（若被父样式带入） */
body.ejxy-site.ejxy-list-page .list-hero > div > p,
body.ejxy-site.ejxy-list-page .list-hero > div > strong,
body.ejxy-site .list-tabs{
  display:none !important;
}

body.ejxy-site.ejxy-list-page .list-hero h1{
  margin-top:12px;
}

/* 详情页：不展示主主题 kicker / 侧栏多余说明 */
body.ejxy-site.ejxy-detail-page .article-kicker{
  display:none !important;
}
body.ejxy-site.ejxy-detail-page .article-side-card p{
  display:none !important;
}

/* 列表页封面：大图居中裁剪，小图标按实际尺寸居中（由 JS 切换 class） */
body.ejxy-site.ejxy-list-page .news-row-media{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  min-height:230px;
  background:#f3f3f3;
}

body.ejxy-site.ejxy-list-page .news-row-media img,
body.ejxy-site.ejxy-list-page .news-row img{
  width:auto !important;
  height:auto !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:unset !important;
  display:block;
}

body.ejxy-site.ejxy-list-page .news-row-media img.ejxy-thumb-cover{
  width:100% !important;
  height:100% !important;
  min-height:230px;
  object-fit:cover !important;
  object-position:center center !important;
}

body.ejxy-site.ejxy-list-page .news-row-media img.ejxy-thumb-natural{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:none !important;
}
