/* ============================================================
   首页专属样式
   ============================================================ */

/* ---------- Banner 轮播 ---------- */
.tw-banner { position: relative; height: 7rem; overflow: hidden; background: var(--c-primary-deep); }
.tw-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.tw-slide.on { opacity: 1; visibility: visible; }
.tw-slide img { width: 100%; height: 100%; object-fit: cover; }
.tw-dots {
  position: absolute; bottom: 0.28rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.14rem; z-index: 5;
}
.tw-dots i {
  width: 0.32rem; height: 0.05rem; background: rgba(255, 255, 255, 0.4);
  border-radius: 0.03rem; cursor: pointer; transition: all .3s;
}
.tw-dots i.on { background: var(--c-gold); width: 0.5rem; }
.tw-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 0.52rem; height: 0.52rem; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, 0.25) center/0.22rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  opacity: 0; transition: all .3s;
}
.tw-arrow-next { right: 0.4rem; transform: translateY(-50%) scaleX(-1); }
.tw-arrow-prev { left: 0.4rem; }
.tw-banner:hover .tw-arrow { opacity: 1; }
.tw-arrow:hover { background-color: var(--c-primary-dark); }

/* ---------- 版块公共标题 ---------- */
.tw-sectit {
  display: flex; align-items: baseline; margin-bottom: 0.34rem; position: relative;
}
.tw-sectit h2 {
  font-size: 0.34rem; font-weight: 600; color: var(--c-text); letter-spacing: 0.03rem;
  padding-left: 0.2rem; position: relative;
}
.tw-sectit h2::before {
  content: ""; position: absolute; left: 0; top: 0.08rem; bottom: 0.08rem;
  width: 0.07rem; border-radius: 0.04rem;
  background: linear-gradient(180deg, var(--c-primary), var(--c-gold));
}
.tw-sectit .tw-en {
  margin-left: 0.18rem; font-size: 0.14rem; color: #C5BBB6; letter-spacing: 0.14rem;
  text-transform: uppercase;
}
.tw-sectit .tw-more {
  margin-left: auto; font-size: 0.14rem; color: var(--c-text-3); transition: all .25s;
}
.tw-sectit .tw-more:hover { color: var(--c-primary); }

/* ---------- 版块一：工作动态 ---------- */
.tw-sec1 { padding-top: 0.7rem; }
.tw-sec1-body { display: flex; gap: 0.4rem; }
.tw-sec1-pic {
  position: relative; width: 7.2rem; flex-shrink: 0; display: block;
  border-radius: 0.06rem; overflow: hidden; box-shadow: var(--shadow-card);
}
.tw-sec1-pic img { width: 100%; height: 4.35rem; object-fit: cover; transition: transform .6s; }
.tw-sec1-pic:hover img { transform: scale(1.05); }
.tw-sec1-pic-txt {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.28rem 0.2rem;
  background: linear-gradient(180deg, rgba(168, 8, 16, 0) 0%, rgba(168, 8, 16, 0.88) 100%);
  color: #fff;
}
.tw-sec1-pic-txt h3 { font-size: 0.2rem; font-weight: 600; line-height: 0.32rem; }
.tw-sec1-pic-txt .tw-date { font-size: 0.13rem; opacity: 0.7; display: block; margin-top: 0.08rem; }

.tw-sec1-list { flex: 1; min-width: 0; }
.tw-nitem {
  display: flex; gap: 0.22rem; padding: 0.17rem 0.06rem;
  border-bottom: 0.01rem dashed var(--c-line); transition: background .25s;
}
.tw-nitem:last-child { border-bottom: 0; }
.tw-nitem:hover { background: #FBF7F4; }
.tw-nitem-date {
  flex-shrink: 0; width: 0.72rem; text-align: center; padding-top: 0.02rem;
}
.tw-nitem-date strong {
  display: block; font-size: 0.34rem; line-height: 1.1; color: var(--c-primary);
  font-weight: 600; transition: color .25s;
}
.tw-nitem-date em { font-style: normal; font-size: 0.12rem; color: var(--c-text-3); }
.tw-nitem:hover .tw-nitem-date strong { color: var(--c-gold); }
.tw-nitem-txt { flex: 1; min-width: 0; }
.tw-nitem-txt h4 {
  font-size: 0.17rem; font-weight: 600; color: var(--c-text); margin-bottom: 0.06rem;
  transition: color .25s;
}
.tw-nitem:hover .tw-nitem-txt h4 { color: var(--c-primary); }
.tw-nitem-txt p { font-size: 0.14rem; color: var(--c-text-3); line-height: 0.24rem; }

/* ---------- 版块二：通知公告 ---------- */
.tw-sec2 { padding-top: 0.7rem; background: var(--c-bg-gray); margin-top: 0.7rem; padding-bottom: 0.7rem; }
.tw-sec2-box { background: #fff; border-radius: 0.08rem; box-shadow: var(--shadow-card); padding: 0.4rem 0.5rem 0.36rem; }
.tw-sec2-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 0.02rem solid var(--c-primary); padding-bottom: 0.14rem; margin-bottom: 0.1rem; }
.tw-sec2-head h2 {
  font-size: 0.26rem; font-weight: 600; position: relative; padding-left: 0.18rem;
}
.tw-sec2-head h2::before {
  content: ""; position: absolute; left: 0; top: 0.05rem; bottom: 0.05rem;
  width: 0.06rem; background: var(--c-primary); border-radius: 0.03rem;
}
.tw-sec2-head .tw-more { font-size: 0.14rem; color: var(--c-text-3); }
.tw-sec2-head .tw-more:hover { color: var(--c-primary); }
.tw-gg-list li a {
  display: flex; align-items: center; padding: 0.135rem 0.04rem;
  font-size: 0.16rem; color: var(--c-text-2); border-bottom: 0.01rem dashed var(--c-line);
  transition: all .2s;
}
.tw-gg-list .tw-t { flex: 1; min-width: 0; }
.tw-gg-list li:last-child a { border-bottom: 0; }
.tw-gg-list li a i { font-style: normal; color: var(--c-gold); margin-right: 0.12rem; }
.tw-gg-list li a .tw-date { margin-left: auto; padding-left: 0.3rem; font-size: 0.13rem; color: var(--c-text-3); flex-shrink: 0; }
.tw-gg-list li a:hover { color: var(--c-primary); padding-left: 0.12rem; }

/* ---------- 版块三：青年风采 ---------- */
.tw-sec3 { padding-top: 0.7rem; }
.tw-fc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.24rem; }
.tw-fc-item {
  position: relative; display: block; border-radius: 0.06rem; overflow: hidden;
  box-shadow: var(--shadow-card); aspect-ratio: 3 / 4;
}
.tw-fc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tw-fc-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.5rem 0.14rem 0.12rem;
  color: #fff; font-size: 0.15rem;
  background: linear-gradient(180deg, rgba(168, 8, 16, 0) 0%, rgba(168, 8, 16, 0.85) 100%);
  transition: padding .3s;
}
.tw-fc-item:hover img { transform: scale(1.06); }
.tw-fc-item:hover span { padding-top: 0.7rem; }

/* ---------- 版块四：双栏列表 ---------- */
.tw-sec4 { padding-top: 0.7rem; display: flex; gap: 0.4rem; }
.tw-sec4-col { flex: 1; min-width: 0; }
.tw-tw-list { border-top: 0.02rem solid var(--c-primary); }
.tw-tw-list li a {
  display: flex; align-items: center; padding: 0.15rem 0.06rem;
  font-size: 0.16rem; color: var(--c-text-2); border-bottom: 0.01rem dashed var(--c-line);
  transition: all .2s;
}
.tw-tw-list li a::before {
  content: ""; flex-shrink: 0; width: 0.07rem; height: 0.07rem; border-radius: 50%;
  background: var(--c-line); margin-right: 0.14rem; transition: background .2s;
}
.tw-tw-list li a:hover { color: var(--c-primary); padding-left: 0.14rem; }
.tw-tw-list li a:hover::before { background: var(--c-gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .tw-banner { height: 5.4rem; }
  .tw-fc-grid { gap: 0.16rem; }
}
@media (max-width: 768px) {
  .tw-banner { height: 3rem; }
  .tw-sec1-body { display: block; }
  .tw-sec1-pic { width: 100%; margin-bottom: 0.2rem; }
  .tw-sec1-pic img { height: 2.4rem; }
  .tw-fc-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-sec2-box { padding: 0.26rem 0.24rem; }
  .tw-sec4 { display: block; }
  .tw-sec4-col + .tw-sec4-col { margin-top: 0.4rem; }
}
