/* ========================================
   党群园地和教学科研 - 新设计样式（参考学院新闻风格）
   ======================================== */

/* 整体容器 - 满宽度背景，包含两个模块 */
.content-sections-wrapper {
  background: #faf8f3 url('../img/new/ba_2.jpg') center/cover ; /* 改为道林纸色 #faf8f3 */
  background-attachment: fixed;
  width: auto;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  padding: 100px 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(139, 115, 85, 0.2);
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

/* 背景蒙版 - 半透明白色覆盖层 */
.content-sections-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 0;
}

/* 嵌套的 content-sections-wrapper - 移除背景和边框 */
.content-section .content-sections-wrapper {
  background: none;
  padding: 0;
  border: none;
}

/* 单个内容区块 */
.content-section {
  max-width: 1440px;
  margin: 0 auto 60px auto;
  position: relative;
  z-index: 1;
  background: rgba(250, 248, 243, 0.75);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 最后一个模块 - 移除底部间距 */
.content-section:last-child {
  margin-bottom: 0;
}

/* 嵌套的 content-section - 移除背景、边框、padding、margin */
.content-section .content-section {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
}

/* 区块标题 */
.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
  min-height: 40px;
}

/* 标题容器 - 使用flex布局实现装饰线 */
.section-header .title-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.section-header .title-wrapper * {
  pointer-events: auto;
}

/* 装饰线样式 */
.section-header .title-line {
  width: 50px;
  height: 2px;
  background: rgba(139, 115, 85, 0.5);
  display: inline-block;
}

.section-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;
}

.section-more {
  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;
}

.section-more::after {
  content: ' ›';
  margin-left: 4px;
}

.section-more:hover {
  background: transparent;
  color: #5a4a3a;
  text-decoration: none;
  border: none;
  box-shadow: none;
}

/* 内容布局容器 */
.content-layout {
  display: flex;
  gap: 35px;
  justify-content: space-between;
  width: 100%;
  align-items: stretch; /* 改回拉伸，让图片和列表高度一致 */
}

/* 大图区域 */
.content-image {
  flex: 0 0 58%;
  position: relative;
  display: flex; /* 使用flex布局 */
}

.content-image a {
  display: block;
  position: relative;
  text-decoration: none;
  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);
  width: 100%;
  height: 100%; /* 撑满父容器高度 */
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.image-overlay {
  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;
}

.image-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.image-date {
  font-size: 14px;
  opacity: 0.9;
}

/* 列表区域 */
.content-list {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 让列表项均匀分布 */
}

.list-item {
  display: flex;
  gap: 18px;
  padding: 15px 18px; /* 减少padding：20px → 15px 18px */
  margin-bottom: 12px; /* 减少间距：15px → 12px */
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(139, 115, 85, 0.2);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.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);
}

.list-item:last-child {
  margin-bottom: 0;
}

/* 移除列表图标 */
.list-icon {
  display: none;
}

.list-content {
  flex: 1;
}

.list-title {
  font-size: 16px; /* 减少字号：16px → 15px */
  color: #5a4a3a;
  margin: 0 0 6px 0; /* 减少底部间距：8px → 6px */
  line-height: 1.5; /* 减少行高：1.6 → 1.5 */
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  max-height: 3em; /* 调整最大高度 */
}

.list-item:hover .list-title {
  color: #8b7355;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.list-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #8b7355;
  margin: 0;
}

.list-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 移除日期图标 */
.list-date::before {
  display: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .content-sections-wrapper {
    padding: 60px 15px;
    background-image: none; /* 手机端移除背景图片 */
  }

  .content-layout {
    flex-direction: column;
    gap: 25px;
  }

  .content-image,
  .content-list {
    flex: 0 0 100%;
  }

  /* 手机端：大图在前，列表在后 */
  .content-image {
    order: 1;
  }
  
  .content-list {
    order: 2;
  }

  .content-image a {
    min-height: 320px;
  }
  
  .content-section {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  
  .content-section:last-child {
    margin-bottom: 0;
  }
  
  .section-header .title-line {
    width: 30px;
  }
  
  .section-title {
    font-size: 26px;
    letter-spacing: 2px;
  }
}

@media (max-width: 768px) {
  .content-sections-wrapper {
    padding: 40px 0;
  }

  .content-section {
    padding: 25px 15px;
    margin-bottom: 30px;
    border-radius: 0;
  }
  
  .content-section:last-child {
    margin-bottom: 0;
  }

  .section-header {
    margin-bottom: 25px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .section-header .title-wrapper {
    gap: 12px;
    margin-bottom: 0;
  }

  .section-header .title-line {
    width: 25px;
    height: 2px;
  }

  .section-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .section-more {
    font-size: 14px;
    transform: none;
    margin: 0;
    width: auto;
    text-align: right;
    padding: 0;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
  }

  .section-more:hover {
    background: transparent;
  }

  .content-layout {
    gap: 22px;
  }

  .content-image a {
    border-radius: 10px;
    border-width: 2px;
    min-height: 240px;
  }

  .image-overlay {
    padding: 30px 15px 15px;
  }

  .image-title {
    font-size: 15px;
    line-height: 1.6;
  }

  .list-item {
    padding: 14px 12px;
    margin-bottom: 12px;
    gap: 10px;
    border-radius: 8px;
  }

  .list-item:hover {
    transform: translateX(3px);
  }

  .list-title {
    font-size: 15px;
    font-weight: 500;
  }
}

@media (max-width: 480px) {
  .content-sections-wrapper {
    padding: 30px 0;
  }

  .content-section {
    padding: 20px 12px;
    margin-bottom: 25px;
  }
  
  .content-section:last-child {
    margin-bottom: 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-header .title-line {
    width: 20px;
  }

  .section-title {
    font-size: 20px;
    letter-spacing: 1.5px;
  }

  .section-more {
    font-size: 15px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .section-more:hover {
    background: transparent;
  }

  .content-layout {
    gap: 18px;
  }

  .content-image a {
    min-height: 200px;
  }

  .image-overlay {
    font-size: 14px;
    padding: 25px 12px 12px;
  }

  .list-item {
    padding: 12px 10px;
    margin-bottom: 10px;
  }

  .list-title {
    font-size: 14px;
    line-height: 1.5;
  }
}
