/*
 * 学生处首页样式（设计稿 lncu_student_affairs_site）
 * 成果展示：Swiper 无缝卡片滚动（参考 2022_xueshengchu）
 * 仅 front page 加载，全部置于 body.xsc-home-page 作用域
 */
body.xsc-home-page{
  --xsc-red:#b40814;
  --xsc-accent:#d71920;
  --xsc-text:#222;
  --xsc-muted:#777;
  --xsc-line:#ededed;
  --xsc-max:1052px;
  --xsc-content:952px;
  color:var(--xsc-text);
  background:#fff;
}

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

/* 覆盖父主题 .section{padding:104px min(6vw,86px)}，宽度对齐设计稿 --content:952px */
body.xsc-home-page .wrap{
  width:min(952px,calc(100% - 80px)) !important;
  max-width:952px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
body.xsc-home-page .section{
  padding:54px 0 0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.xsc-home-page .section.news-grid{
  padding-top:46px !important;
  padding-bottom:52px !important;
}

/*
 * Hero：设计稿 height:372px，覆盖父主题全屏 hero
 */
body.xsc-home-page .hero{
  position:relative !important;
  height:372px !important;
  min-height:372px !important;
  max-height:372px !important;
  max-width:var(--xsc-max) !important;
  width:100% !important;
  margin:0 auto !important;
  overflow:hidden !important;
  background:#ba1414 !important;
  display:block !important;
  padding:0 !important;
  align-items:initial !important;
}
body.xsc-home-page .hero::before,
body.xsc-home-page .hero::after{
  display:none !important;
  content:none !important;
}

body.xsc-home-page .hero-track{
  position:absolute;
  inset:0;
}

body.xsc-home-page .hero-slide{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity .55s ease;
}

body.xsc-home-page .hero-slide.is-active{
  opacity:1;
  z-index:1;
}

body.xsc-home-page .hero-arrow{
  position:absolute;
  z-index:3;
  top:45%;
  width:40px;
  height:54px;
  border:0;
  background:rgba(190,0,10,.88);
  cursor:pointer;
  padding:0;
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
}
body.xsc-home-page .hero-arrow:disabled{
  cursor:default;
  opacity:.85 !important;
}
body.xsc-home-page .hero-arrow::before{
  content:"";
  position:absolute;
  top:18px;
  width:15px;
  height:15px;
  border-top:3px solid #fff;
  border-left:3px solid #fff;
}
body.xsc-home-page .hero-prev{left:0}
body.xsc-home-page .hero-prev::before{
  left:15px;
  transform:rotate(-45deg);
}
body.xsc-home-page .hero-next{right:0}
body.xsc-home-page .hero-next::before{
  right:15px;
  transform:rotate(135deg);
}

/* 区块标题：覆盖父主题 .section-head span{font-size:56px} */
body.xsc-home-page .section-head{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  grid-template-columns:none !important;
  gap:0 !important;
  margin-bottom:26px;
}
body.xsc-home-page .section-head h2{
  margin:0;
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px !important;
  line-height:1;
  font-weight:700;
  color:var(--xsc-text);
  padding:0;
  letter-spacing:0 !important;
}
body.xsc-home-page .section-head h2::before{display:none;content:none}
body.xsc-home-page .section-head h2::after{
  content:"";
  display:block;
  width:18px;
  height:2px;
  margin-left:10px;
  background:var(--xsc-accent);
}
body.xsc-home-page .section-head span,
body.xsc-home-page .section-head .icon{
  font-size:20px !important;
  font-weight:700 !important;
  color:#bb6a35 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
}
body.xsc-home-page .more{
  color:#555 !important;
  font-size:13px !important;
  font-weight:600 !important;
  transition:color .2s ease;
  line-height:1.2 !important;
}
body.xsc-home-page .section-head .more span,
body.xsc-home-page .more span{
  font-size:13px !important;
  font-weight:700 !important;
  color:var(--xsc-accent) !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  display:inline !important;
}
body.xsc-home-page .more:hover{color:var(--xsc-accent) !important}

/* 成果展示 + Swiper */
body.xsc-home-page .achievement-slider{
  position:relative;
  padding:0 36px;
}

body.xsc-home-page .xsc-achievements-swiper{
  overflow:hidden;
  width:100%;
  margin:0;
  padding:0;
}

body.xsc-home-page .xsc-achievements-swiper .swiper-slide{
  height:auto;
}

body.xsc-home-page .achievement-card{
  display:block;
  text-align:center;
  color:inherit;
  transition:transform .25s ease;
}
body.xsc-home-page .achievement-card:hover{
  transform:translateY(-3px);
}
body.xsc-home-page .achievement-card img{
  display:block;
  width:100%;
  aspect-ratio:224 / 151;
  object-fit:cover;
  object-position:center;
  border-radius:4px;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
  background:#f3f3f3;
}
body.xsc-home-page .achievement-card h3{
  margin:20px 0 0;
  color:#c82127;
  font-size:16px;
  font-weight:700;
  line-height:1.5;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.xsc-home-page .slide-arrow{
  position:absolute;
  z-index:2;
  top:64px;
  width:30px;
  height:44px;
  border:0;
  border-radius:5px;
  color:#fff;
  background:#9da0a3;
  font-size:38px;
  line-height:38px;
  cursor:pointer;
  padding:0;
  transition:background .2s ease;
}
body.xsc-home-page .slide-arrow:hover{background:var(--xsc-accent)}
body.xsc-home-page .slide-arrow.left{left:0}
body.xsc-home-page .slide-arrow.right{right:0}

/* 双栏资讯 */
body.xsc-home-page .news-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  padding-top:46px;
  padding-bottom:52px;
}
body.xsc-home-page .panel{min-width:0}
body.xsc-home-page .panel-head{margin-bottom:18px}
body.xsc-home-page .panel-head h2{font-size:22px}

body.xsc-home-page .news-list{
  margin:0;
  padding:0;
  list-style:none;
  border-radius:6px;
}
body.xsc-home-page .news-list li{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:44px;
  padding:0 14px;
  border:1px solid #f0f0f0;
  border-bottom:0;
  color:#444;
  font-size:14px;
  background:rgba(255,255,255,.88);
}
body.xsc-home-page .news-list li:first-child{border-radius:6px 6px 0 0}
body.xsc-home-page .news-list li:last-child{
  border-bottom:1px solid #f0f0f0;
  border-radius:0 0 6px 6px;
}
body.xsc-home-page .news-list li::before{
  content:"◈";
  color:#aaa;
  font-size:12px;
  flex:0 0 auto;
}
body.xsc-home-page .news-list a{
  flex:1 1 auto;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  min-width:0;
}
body.xsc-home-page .news-list a:hover{color:var(--xsc-accent)}
body.xsc-home-page .news-list time{
  flex:0 0 auto;
  color:#333;
  font-weight:600;
}

@media (max-width:800px){
  body.xsc-home-page .wrap{
    width:calc(100% - 32px) !important;
    max-width:none !important;
  }
  body.xsc-home-page .hero{
    height:42vw !important;
    min-height:220px !important;
    max-height:none !important;
  }
  body.xsc-home-page .achievement-slider{padding:0}
  body.xsc-home-page .slide-arrow{display:none}
  body.xsc-home-page .news-grid{
    grid-template-columns:1fr;
    gap:28px;
  }
  body.xsc-home-page .news-list li{
    gap:10px;
    padding:8px 12px;
    min-height:auto;
  }
  body.xsc-home-page .news-list a{white-space:normal}
}
