/*
 * 工会首页样式（设计稿 lncu_union_site）
 * 仅 front page 加载，全部置于 body.gh-home-page 作用域
 */
body.gh-home-page{
  --gh-red:#bd0008;
  --gh-text:#1f1f1f;
  --gh-muted:#777;
  --gh-line:#e7e7e7;
  --gh-wrap:1120px;
  color:var(--gh-text);
  background:#fff;
}

body.gh-home-page a{text-decoration:none;color:inherit}
body.gh-home-page img{display:block;max-width:100%}

body.gh-home-page .page-main-wrap{
  background:#fff;
}

/*
 * Hero：严格按设计稿 height:401px
 * 覆盖父主题 .hero{height:100vh;min-height:760px}
 */
body.gh-home-page .hero{
  width:100% !important;
  height:401px !important;
  min-height:401px !important;
  max-height:401px !important;
  overflow:hidden !important;
  background:#ba1414 !important;
  position:relative !important;
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  align-items:initial !important;
}
body.gh-home-page .hero::before,
body.gh-home-page .hero::after{
  display:none !important;
  content:none !important;
}
body.gh-home-page .hero img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center !important;
}

body.gh-home-page .page-main{
  width:min(var(--gh-wrap),calc(100% - 72px));
  margin:0 auto;
  padding:58px 0 70px;
}

body.gh-home-page .section-card{margin-bottom:62px}
body.gh-home-page .section-card:last-child{margin-bottom:0}

body.gh-home-page .section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:34px;
}

body.gh-home-page .section-title{
  display:flex;
  align-items:center;
  gap:16px;
}

body.gh-home-page .section-title span{
  width:6px;
  height:26px;
  background:var(--gh-red);
  display:inline-block;
  border-radius:1px;
  flex:0 0 auto;
}

body.gh-home-page .section-title h2{
  margin:0;
  font-size:24px;
  font-weight:800;
  letter-spacing:.5px;
  color:var(--gh-text);
  padding:0;
  position:static;
}

body.gh-home-page .section-title h2::before{display:none;content:none}

body.gh-home-page .more{
  color:#777;
  font-size:15px;
  font-weight:600;
}
body.gh-home-page .more:hover{color:var(--gh-red)}

/* 工会简介 */
body.gh-home-page .intro .section-title{margin-bottom:0}
body.gh-home-page .intro p{
  margin:40px 0 28px;
  max-width:1090px;
  font-size:17px;
  line-height:2.4;
  font-weight:600;
  color:#333;
  text-align:justify;
}

body.gh-home-page .red-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:40px;
  padding:0 24px;
  border-radius:3px;
  background:#ce0008;
  color:#fff !important;
  font-size:15px;
  font-weight:700;
  box-shadow:0 6px 14px rgba(190,0,8,.16);
  transition:.22s;
}
body.gh-home-page .red-btn b{
  font-style:normal;
  font-weight:700;
}
body.gh-home-page .red-btn:hover{
  background:var(--gh-red-dark,#aa0007);
  transform:translateY(-1px);
}

/* 活动新闻 */
body.gh-home-page .news-grid{
  display:grid;
  grid-template-columns:470px 1fr;
  gap:48px;
  align-items:start;
}

body.gh-home-page .news-photo{
  display:block;
  border-radius:9px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
body.gh-home-page .news-photo img{
  display:block;
  width:100%;
  height:320px;
  object-fit:cover;
  object-position:center;
  transition:.35s;
}
body.gh-home-page .news-photo:hover img{transform:scale(1.03)}

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

body.gh-home-page .news-list li,
body.gh-home-page .notice-list li{
  min-height:49px;
  border-bottom:1px solid var(--gh-line);
  display:grid;
  grid-template-columns:1fr 64px;
  align-items:center;
  gap:16px;
  color:#222;
}

body.gh-home-page .news-list a,
body.gh-home-page .notice-list a{
  font-size:16px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  position:relative;
  padding-left:21px;
  min-width:0;
  color:#222;
}
body.gh-home-page .news-list a:hover,
body.gh-home-page .notice-list a:hover{color:var(--gh-red)}

body.gh-home-page .news-list a::before,
body.gh-home-page .notice-list a::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:5px;
  height:5px;
  margin-top:-2.5px;
  background:#e20012;
  border-radius:50%;
}

body.gh-home-page .news-list time,
body.gh-home-page .notice-list time{
  text-align:right;
  font-size:16px;
  font-weight:800;
  color:#333;
  white-space:nowrap;
}

body.gh-home-page .notice-list{
  padding:8px 16px;
  border:1px solid #e8e8e8;
  border-radius:5px;
}
body.gh-home-page .notice-list li{min-height:50px}
body.gh-home-page .notice-list li:last-child{border-bottom:0}

@media (max-width:1160px){
  body.gh-home-page .page-main{width:min(var(--gh-wrap),calc(100% - 72px))}
  body.gh-home-page .news-grid{
    grid-template-columns:43% 1fr;
    gap:34px;
  }
}

@media (max-width:760px){
  body.gh-home-page .hero{
    height:260px !important;
    min-height:260px !important;
    max-height:260px !important;
  }
  body.gh-home-page .page-main{
    width:calc(100% - 30px);
    padding-top:36px;
    padding-bottom:48px;
  }
  body.gh-home-page .section-card{margin-bottom:42px}
  body.gh-home-page .intro p{
    margin:24px 0 20px;
    font-size:15px;
    line-height:2;
  }
  body.gh-home-page .news-grid{grid-template-columns:1fr}
  body.gh-home-page .news-photo img{height:240px}
  body.gh-home-page .news-list li,
  body.gh-home-page .notice-list li{
    grid-template-columns:1fr;
    gap:2px;
    padding:10px 0;
  }
  body.gh-home-page .news-list time,
  body.gh-home-page .notice-list time{
    text-align:left;
    padding-left:21px;
    font-size:13px;
  }
}
