/* 学院新闻模块 - 天青色渐变背景 */

/* 天青色色值定义 */
:root {
  --sky-cyan: #7FDBDA;  /* 主天青色 */
  --sky-cyan-light: #A8E6E5;  /* 浅天青色 */
  --sky-cyan-dark: #5BC0BE;  /* 深天青色 */
}

/* 满宽度背景容器 - 移除背景（使用外层共用背景） */
.news-section-wrapper {
  background: transparent;
  width: auto;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  padding: 0; /* 改为0，避免背景重叠 */
  margin-bottom: 0;
  border-top: none;
  border-bottom: none;
}

/* 新闻模块容器 - 外层容器（CMS生成的第一层） */
/* 外层不要padding，避免嵌套时出现边框效果 */
.news-section-wrapper > .news-module {

  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: transparent; /* 外层透明 */
  border-radius: 0;
  padding: 0; /* 外层不要padding */
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}

/* 新闻模块容器 - 内层容器（实际显示的内容） */
/* 内层才有背景、圆角、padding和阴影 */
.news-section-wrapper .news-section-wrapper > .news-module {
  max-width: 1440px ;
  margin: 100px auto 100px auto ; /* 添加底部间隔 */
  position: relative;
  z-index: 1 ;
  background: rgba(250, 248, 243, 0.75) ; /* 道林纸色半透明 */
  border-radius: 16px ;
  padding: 40px; /* 内层才有padding */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) ;
  backdrop-filter: none ;
  -webkit-backdrop-filter: none ;
  border: none ;
}

/* 模块标题 */
.news-module-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 0; /* 移除底部内边距 */
  border-bottom: none; /* 移除底部边框 */
  position: relative;
  min-height: 40px; /* 确保有足够的高度用于垂直居中 */
}

/* 标题容器 - 使用flex布局实现装饰线 */
.news-module-header .title-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none; /* 允许点击穿透到下层 */
}

/* 恢复标题内元素的点击 */
.news-module-header .title-wrapper * {
  pointer-events: auto;
}

/* 装饰线样式 */
.news-module-header .title-line {
  width: 50px;
  height: 2px;
  background: rgba(139, 115, 85, 0.5);
  display: inline-block;
}

.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;
  letter-spacing: 3px;
  writing-mode: horizontal-tb !important; /* 强制横向显示 */
  white-space: nowrap !important; /* 防止换行 */
}

.news-more-btn {
  background: transparent; /* 改为透明背景 */
  color: #8b7355; /* 改为棕色 */
  padding: 0; /* 移除内边距 */
  border-radius: 0; /* 移除圆角 */
  text-decoration: none;
  font-size: 16px;
  font-weight: 400; /* 改为正常字重 */
  transition: all 0.3s ease;
  border: none; /* 移除边框 */
  backdrop-filter: none; /* 移除毛玻璃效果 */
  position: absolute !important;
  right: 0 !important;

}

.news-more-btn::after {
  content: ' ›';
  margin-left: 4px;
}

.news-more-btn:hover {
  background: transparent;
  color: #5a4a3a; /* 悬停时变深 */
  text-decoration: none;
  border: none;
  box-shadow: none; /* 移除阴影 */
}

/* 新闻内容区域 */
.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;
  object-position: center center;
  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.6;
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  max-height: 3.2em; /* 两行的高度 */
}

.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;
    gap: 25px;
  }
  
  .news-slider-section,
  .news-list-section {
    flex: 0 0 100%;
  }
  
  .news-slider-container img {
    height: 320px;
  }
  
  .news-section-wrapper {
    padding: 30px 15px;
  }
  
  .news-section-wrapper > .news-module {
    padding: 30px 20px;
  }
  
  .news-section-wrapper .news-section-wrapper > .news-module {
    margin: 0 auto;
  }
  
  .news-module-header .title-line {
    width: 30px;
  }
  
  .news-module-title {
    font-size: 26px;
    letter-spacing: 2px;
  }
}

@media (max-width: 768px) {
  .news-section-wrapper {
    padding: 20px 0;
  }
  
  .news-section-wrapper > .news-module {
    padding: 25px 0px;
    border-radius: 0;
  }
  
  .news-section-wrapper .news-section-wrapper > .news-module {
    padding: 25px 15px !important;
    margin: 0 auto !important;
  }
  
  .news-module-header {
    margin-bottom: 25px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  
  .news-module-header .title-wrapper {
    gap: 12px;
    margin-bottom: 0;
  }
  
  .news-module-header .title-line {
    width: 25px;
    height: 2px;
  }
  
  .news-module-title {
    font-size: 22px;
    letter-spacing: 2px;
  }
  
  .news-more-btn {
    font-size: 14px;
    transform: none;
    margin: 0;
    width: auto;
    text-align: right;
    padding: 0;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
  }
  
  .news-more-btn:hover {
    background: transparent;
  }
  
  .news-content-wrapper {
    gap: 22px;
  }
  
  .news-slider-container {
    border-radius: 10px;
    border-width: 2px;
  }
  
  .news-slider-container img {
    height: 240px;
  }
  
  .news-slide-caption {
    padding: 30px 15px 15px;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .news-list-item {
    padding: 14px 12px;
    margin-bottom: 12px;
    gap: 10px;
    border-radius: 8px;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .news-list-item:hover {
    transform: translateX(3px);
  }
  
  .news-date-badge {
    min-width: 60px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .news-date-day {
    font-size: 24px;
    margin-bottom: 0;
    display: block;
    line-height: 1;
  }
  
  .news-date-month {
    font-size: 11px;
    display: block;
  }
  
  .news-date-day::after {
    content: '';
    display: none;
  }
  
  .news-item-content {
    flex: 1;
    min-width: 0;
  }
  
  .news-item-title {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    font-weight: 500;
  }
  
  .news-item-excerpt {
    display: none;
  }
}

@media (max-width: 480px) {
  .news-section-wrapper {
    padding: 15px 0;
  }
  
  .news-section-wrapper > .news-module {
    padding: 20px 12px;
  }
  
  .news-section-wrapper .news-section-wrapper > .news-module {
    padding: 20px 12px !important;
    margin: 0 auto !important;
  }
  
  .news-module-header {
    margin-bottom: 20px;
  }
  
  .news-module-header .title-line {
    width: 20px;
  }
  
  .news-module-title {
    font-size: 20px;
    letter-spacing: 1.5px;
  }
  
  .news-more-btn {
    font-size: 15px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  
  .news-more-btn:hover {
    background: transparent;
  }
  
  .news-content-wrapper {
    gap: 18px;
  }
  
  .news-slider-container img {
    height: 200px;
  }
  
  .news-slide-caption {
    font-size: 14px;
    padding: 25px 12px 12px;
  }
  
  .news-list-item {
    padding: 12px 10px;
    margin-bottom: 10px;
  }
  
  .news-date-badge {
    min-width: 55px;
    padding: 6px 5px;
  }
  
  .news-date-day {
    font-size: 22px;
  }
  
  .news-date-month {
    font-size: 10px;
  }
  
  .news-item-title {
    font-size: 14px;
    line-height: 1.5;
  }
}