/* 学院新闻模块 - 天青色渐变背景 */

/* 天青色色值定义 */
:root {
  --sky-cyan: #7FDBDA;  /* 主天青色 */
  --sky-cyan-light: #A8E6E5;  /* 浅天青色 */
  --sky-cyan-dark: #5BC0BE;  /* 深天青色 */
}

/* 满宽度背景容器 - 移除背景（使用外层共用背景） */
.news-section-wrapper {
  background: transparent ;
  width: auto !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important; /* 改为0，避免背景重叠 */
  margin-bottom: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* 新闻模块容器 - 外层容器（CMS生成的第一层） */
/* 外层不要padding，避免嵌套时出现边框效果 */
.news-section-wrapper > .news-module {
  max-width: 1440px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important; /* 外层透明 */
  border-radius: 0 !important;
  padding: 0 !important; /* 外层不要padding */
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

/* 新闻模块容器 - 内层容器（实际显示的内容） */
/* 内层才有背景、圆角、padding和阴影 */
.news-section-wrapper .news-section-wrapper > .news-module {
  max-width: 1440px !important;
  margin: 50px auto 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
  background: rgba(250, 248, 243, 0.75) !important; /* 道林纸色半透明 */
  border-radius: 16px !important;
  padding: 40px !important; /* 内层才有padding */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

/* 模块标题 */
.news-module-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 0 !important; /* 移除底部内边距 */
  border-bottom: none !important; /* 移除底部边框 */
  position: relative;
}

/* 标题容器 - 使用flex布局实现装饰线 */
.news-module-header .title-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

/* 装饰线样式 */
.news-module-header .title-line {
  width: 50px !important;
  height: 2px !important;
  background: rgba(139, 115, 85, 0.5) !important;
  display: inline-block !important;
}

.news-module-title {
  font-size: 32px;
  font-weight: 700;
  color: #5a4a3a;
  margin: 0;
  position: relative;
  padding-left: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  font-family: 'KaiTi', 'STKaiti', '楷体', 'SimKai', serif !important;
  letter-spacing: 3px !important;
}

.news-more-btn {
  background: transparent !important; /* 改为透明背景 */
  color: #8b7355 !important; /* 改为棕色 */
  padding: 0 !important; /* 移除内边距 */
  border-radius: 0 !important; /* 移除圆角 */
  text-decoration: none;
  font-size: 16px;
  font-weight: 400 !important; /* 改为正常字重 */
  transition: all 0.3s ease;
  border: none !important; /* 移除边框 */
  backdrop-filter: none !important; /* 移除毛玻璃效果 */
  position: absolute !important; /* 绝对定位到右侧 */
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.news-more-btn:hover {
  background: transparent !important;
  color: #5a4a3a !important; /* 悬停时变深 */
  text-decoration: none;
  border: none !important;
  transform: translateY(-50%) !important; /* 保持垂直居中 */
  box-shadow: none !important; /* 移除阴影 */
}

/* 新闻内容区域 */
.news-content-wrapper {
  display: flex;
  gap: 35px;
  justify-content:space-between;
  width: 100%; /* 确保占满整个容器宽度 */
}

/* 左侧轮播图区域 */
.news-slider-section {
  flex: 0 0 58%;
  position: relative;
}

.news-slider-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.news-slider-container img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.news-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
  padding: 40px 25px 25px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 轮播指示器 */
.news-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.news-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.news-slider-dot.active {
  background: #ffffff;
  width: 36px;
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.8);
}

/* 右侧新闻列表 */
.news-list-section {
  flex: 0 0 38%;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(139, 115, 85, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.news-list-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(139, 115, 85, 0.4);
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-list-item:last-child {
  margin-bottom: 0;
}

/* 日期标签 */
.news-date-badge {
  flex-shrink: 0;
  text-align: center;
  min-width: 65px;
  background: rgba(139, 115, 85, 0.1);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(139, 115, 85, 0.2);
}

.news-date-day {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #5a4a3a;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.news-date-month {
  display: block;
  font-size: 13px;
  color: #8b7355;
  font-weight: 600;
}

/* 新闻标题和摘要 */
.news-item-content {
  flex: 1;
}

.news-item-title {
  font-size: 16px;
  color: #5a4a3a;
  margin: 0 0 8px 0;
  line-height: 1.5;
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-list-item:hover .news-item-title {
  color: #8b7355;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.news-item-title a {
  color: inherit;
  text-decoration: none;
}

.news-item-excerpt {
  font-size: 13px;
  color: #8b7355;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .news-content-wrapper {
    flex-direction: column !important;
    gap: 25px !important;
  }
  
  .news-slider-section,
  .news-list-section {
    flex: 0 0 100% !important;
  }
  
  .news-slider-container img {
    height: 320px !important;
  }
  
  .news-section-wrapper {
    padding: 30px 15px !important;
  }
  
  .news-section-wrapper > .news-module {
    padding: 30px 20px !important;
  }
  
  .news-module-header .title-line {
    width: 30px !important;
  }
  
  .news-module-title {
    font-size: 26px !important;
    letter-spacing: 2px !important;
  }
}

@media (max-width: 768px) {
  .news-section-wrapper {
    padding: 20px 10px !important;
  }
  
  .news-section-wrapper > .news-module {
    padding: 25px 15px !important;
    border-radius: 12px !important;
  }
  
  .news-module-header {
    margin-bottom: 20px !important;
  }
  
  .news-module-header .title-line {
    width: 25px !important;
    height: 1.5px !important;
  }
  
  .news-module-title {
    font-size: 22px !important;
    letter-spacing: 1.5px !important;
  }
  
  .news-more-btn {
    font-size: 14px !important;
    right: 0 !important;
  }
  
  .news-content-wrapper {
    gap: 20px !important;
  }
  
  .news-slider-container {
    border-radius: 8px !important;
    border-width: 2px !important;
  }
  
  .news-slider-container img {
    height: 220px !important;
  }
  
  .news-slide-caption {
    padding: 30px 15px 15px !important;
    font-size: 15px !important;
  }
  
  .news-list-item {
    padding: 15px !important;
    margin-bottom: 12px !important;
    gap: 12px !important;
  }
  
  .news-list-item:hover {
    transform: translateX(5px) !important;
  }
  
  .news-date-badge {
    min-width: 55px !important;
    padding: 6px !important;
  }
  
  .news-date-day {
    font-size: 22px !important;
  }
  
  .news-date-month {
    font-size: 11px !important;
  }
  
  .news-item-title {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
  
  .news-item-excerpt {
    font-size: 12px !important;
    -webkit-line-clamp: 2 !important;
  }
}

@media (max-width: 480px) {
  .news-section-wrapper > .news-module {
    padding: 20px 12px !important;
  }
  
  .news-module-title {
    font-size: 20px !important;
  }
  
  .news-slider-container img {
    height: 180px !important;
  }
  
  .news-slide-caption {
    font-size: 14px !important;
    padding: 25px 12px 12px !important;
  }
  
  .news-list-item {
    padding: 12px !important;
  }
  
  .news-date-badge {
    min-width: 50px !important;
  }
  
  .news-date-day {
    font-size: 20px !important;
  }
}
