/*
 * 教师发展中心首页 —— 对齐设计稿 lncu_teacher_dev_site
 */
body.jsfz-home-page{
  --jsfz-red:#d81716;
  --jsfz-wrap:980px;
  background:#fff;
  color:#242424;
}

body.jsfz-home-page .container{
  width:min(var(--jsfz-wrap),calc(100% - 48px));
  margin:0 auto;
}

body.jsfz-home-page .hero{
  position:relative !important;
  width:100%;
  height:407px !important;
  min-height:0 !important;
  max-height:none !important;
  display:block !important;
  align-items:normal !important;
  background:#920000;
  overflow:hidden;
}

body.jsfz-home-page .hero img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

body.jsfz-home-page .panel-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:35px;
}

body.jsfz-home-page .bottom-panels{
  margin-top:32px;
  margin-bottom:44px;
  align-items:stretch;
}

body.jsfz-home-page .training-panel,
body.jsfz-home-page .resource-panel{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
}

body.jsfz-home-page .training-panel .cards,
body.jsfz-home-page .resource-panel .resource-list{
  flex:1 1 auto;
}

body.jsfz-home-page .panel{min-width:0}

body.jsfz-home-page .section-title{
  height:32px;
  display:flex;
  align-items:center;
  border-bottom:1px solid #d8d8d8;
  margin-bottom:18px;
  position:relative;
}

body.jsfz-home-page .section-title i{
  display:block;
  width:4px;
  height:18px;
  background:var(--jsfz-red);
  margin-right:10px;
}

body.jsfz-home-page .section-title h2{
  margin:0;
  font-size:18px;
  font-weight:800;
  line-height:1;
}

body.jsfz-home-page .section-title a{
  margin-left:auto;
  color:#777;
  font-size:13px;
}

body.jsfz-home-page .section-title a:hover{color:var(--jsfz-red)}

body.jsfz-home-page .feature-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

body.jsfz-home-page .feature-card{
  display:block;
  margin:0;
  position:relative;
  overflow:hidden;
  border-radius:3px;
  background:#ddd;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  color:#fff;
}

body.jsfz-home-page .feature-card img{
  width:100%;
  height:272px;
  object-fit:cover;
  object-position:center;
  display:block;
}

body.jsfz-home-page .feature-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(transparent,rgba(0,0,0,.78));
  color:#fff;
  padding:34px 14px 13px;
  font-weight:700;
  font-size:14px;
  line-height:1.4;
}

body.jsfz-home-page .date-badge{
  position:absolute;
  z-index:2;
  left:0;
  top:0;
  width:66px;
  height:75px;
  background:var(--jsfz-red);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

body.jsfz-home-page .date-badge strong{font-size:30px;line-height:1}
body.jsfz-home-page .date-badge span{font-size:12px;margin-top:2px}

body.jsfz-home-page .news-list{
  list-style:none;
  padding:0;
  margin:0;
}

body.jsfz-home-page .news-list li{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center;
  height:34px;
  border-bottom:1px solid #eee;
  font-size:13px;
  position:relative;
  padding-left:14px;
}

body.jsfz-home-page .news-list li:before{
  content:"";
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--jsfz-red);
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
}

body.jsfz-home-page .news-list a{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#333;
  min-width:0;
}

body.jsfz-home-page .news-list time{
  color:#444;
  font-weight:600;
  flex:0 0 auto;
}

body.jsfz-home-page .cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  align-items:stretch;
}

body.jsfz-home-page .train-card{
  display:flex;
  flex-direction:column;
  height:100%;
  border:1px solid #e5e5e5;
  border-radius:4px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  padding-bottom:14px;
  color:inherit;
  box-sizing:border-box;
}

body.jsfz-home-page .train-card img{
  width:100%;
  height:90px;
  object-fit:cover;
  object-position:center;
  display:block;
}

body.jsfz-home-page .train-card h3{
  font-size:13px;
  line-height:1.35;
  margin:10px 10px 6px;
  font-weight:800;
  min-height:36px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

body.jsfz-home-page .tag{
  display:inline-block;
  margin-left:10px;
  padding:2px 7px;
  border-radius:2px;
  color:#fff;
  font-size:11px;
  font-weight:700;
}

body.jsfz-home-page .tag.active{background:var(--jsfz-red)}
body.jsfz-home-page .tag.done{background:#8e8e8e}

body.jsfz-home-page .train-card p{
  margin:6px 10px;
  color:#555;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

body.jsfz-home-page .train-btn{
  display:block;
  width:fit-content;
  margin:auto auto 0;
  border:0;
  background:var(--jsfz-red);
  color:#fff;
  border-radius:2px;
  padding:5px 18px;
  font-size:12px;
  font-weight:700;
  text-align:center;
}

body.jsfz-home-page .train-btn.ghost{
  background:#fff;
  color:#555;
  border:1px solid #999;
}

body.jsfz-home-page .resource-list{
  list-style:none;
  margin:0;
  border:1px solid #eee;
  border-radius:4px;
  padding:12px 18px;
  background:#fff;
}

body.jsfz-home-page .resource-list li{
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center;
  height:39px;
  border-bottom:1px solid #eee;
  font-size:13px;
  position:relative;
  padding-left:22px;
}

body.jsfz-home-page .resource-list li:last-child{border-bottom:0}

body.jsfz-home-page .resource-list li:before{
  content:"▣";
  color:var(--jsfz-red);
  position:absolute;
  left:0;
  font-size:14px;
}

body.jsfz-home-page .resource-list a{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

body.jsfz-home-page .resource-list time{color:#333;font-weight:600}

@media (max-width:1020px){
  body.jsfz-home-page .container{width:min(92vw,980px)}
  body.jsfz-home-page .hero{height:auto !important;aspect-ratio:16 / 7}
  body.jsfz-home-page .panel-grid,
  body.jsfz-home-page .feature-content{grid-template-columns:1fr}
  body.jsfz-home-page .feature-card img{height:220px}
  body.jsfz-home-page .cards{grid-template-columns:1fr}
}
