/* ========================================
   网站公告模块 - 左右轮播风格
   ======================================== */

.notice-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 50%, #f5f7fa 100%);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.notice-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.notice-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* 标题区 */
.notice-section .section-top {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
  z-index: 1;
}

.notice-section .section-top .notice-icon-badge {
  display: inline-block;
  width: 56px;
  height: 56px;
  line-height: 56px;
  background: #1a56db;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  margin-bottom: 16px;
  -webkit-box-shadow: 0 8px 24px rgba(26, 86, 219, 0.25);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.25);
}

.notice-section .section-top h3 {
  font-size: 30px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.notice-section .section-top p {
  font-size: 14px;
  color: #718096;
}

/* ========================================
   轮播容器
   ======================================== */

.notice-carousel-wrap {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 50px;
}

.notice-carousel-wrap .owl-carousel .owl-stage-outer {
  padding: 10px 0 20px;
}

/* ========================================
   轮播导航按钮
   ======================================== */

.notice-carousel-wrap .notice-nav {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #fff;
  color: #1a56db;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.notice-carousel-wrap .notice-nav:hover {
  background: #1a56db;
  color: #fff;
  -webkit-box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.notice-carousel-wrap .notice-prev {
  left: 0;
}

.notice-carousel-wrap .notice-next {
  right: 0;
}

/* ========================================
   单条公告卡片
   ======================================== */

.notice-item {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px 24px;
  text-decoration: none;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 180px;
}

/* 顶部彩色条 */
.notice-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  -webkit-transition: height 0.3s ease;
  transition: height 0.3s ease;
}

.notice-item:nth-child(4n+1)::before { background: #1a56db; }
.notice-item:nth-child(4n+2)::before { background: #047857; }
.notice-item:nth-child(4n+3)::before { background: #d97706; }
.notice-item:nth-child(4n+4)::before { background: #7c3aed; }

.notice-item:hover {
  -webkit-transform: translateY(-8px);
  transform: translateY(-8px);
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.notice-item:hover::before {
  height: 6px;
}

/* 序号圆圈 */
.notice-item .notice-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.notice-item:nth-child(4n+1) .notice-num { background: #1a56db; }
.notice-item:nth-child(4n+2) .notice-num { background: #047857; }
.notice-item:nth-child(4n+3) .notice-num { background: #d97706; }
.notice-item:nth-child(4n+4) .notice-num { background: #7c3aed; }

/* 标题 */
.notice-item .notice-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.notice-item:hover .notice-title {
  color: #1a56db;
}

/* 日期 */
.notice-item .notice-date {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 12px;
}

.notice-item .notice-date i {
  margin-right: 5px;
}

/* 描述 */
.notice-item .notice-desc {
  font-size: 14px;
  color: #718096;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Owl Carousel 覆写
   ======================================== */

.notice-carousel-wrap .owl-dots {
  text-align: center;
  margin-top: 24px;
  line-height: 1;
}

.notice-carousel-wrap .owl-dot {
  display: inline-block;
  margin: 0 5px;
}

.notice-carousel-wrap .owl-dot span {
  display: block;
  width: 10px;
  height: 10px;
  background: #d1d5db;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.notice-carousel-wrap .owl-dot.active span {
  background: #1a56db;
  width: 28px;
  border-radius: 6px;
}

/* 更多链接 */
.notice-more-link {
  text-align: center;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.notice-more-link a {
  display: inline-block;
  font-size: 14px;
  color: #1a56db;
  text-decoration: none;
  font-weight: 500;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.notice-more-link a i {
  margin-left: 4px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.notice-more-link a:hover {
  color: #1e40af;
}

.notice-more-link a:hover i {
  -webkit-transform: translateX(3px);
  transform: translateX(3px);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 767px) {
  .notice-section {
    padding: 45px 0 50px;
  }

  .notice-carousel-wrap {
    padding: 0 40px;
  }

  .notice-item {
    padding: 22px 18px 18px;
    min-height: 160px;
  }

  .notice-item .notice-title {
    font-size: 15px;
  }

  .notice-item .notice-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .notice-section .section-top h3 {
    font-size: 24px;
  }
}
