/* 所有模块标题统一样式 - 居中 + 书法字 + 装饰 */

/* 通用标题容器样式 */
.post-head {
  text-align: center !important;
  position: relative !important;
  padding: 25px 20px 20px 20px !important;
  flex-direction: column !important;
}

/* 学院新闻和通知公告的标题容器 - 横向布局，标题居中 */
.notice-module-header,
.news-module-header {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  padding: 25px 20px 20px 20px !important;
  text-align: center !important;
}

.head-bar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

/* 标题文字样式 - 书法字体 */
.post-title,
.notice-module-title,
.news-module-title {
  font-family: 'KaiTi', 'STKaiti', '楷体', 'SimKai', serif !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  margin: 0 !important;
  position: relative !important;
  display: inline-block !important;
  padding: 0 !important;
}

.post-title span {
  position: relative !important;
  padding: 0 !important;
  display: inline-block !important;
}

/* 更多按钮样式 */
.post-more {
  position: absolute !important;
  right: 20px !important;
  top: 25px !important;
  margin: 0 !important;
}

/* 学院新闻和通知公告的more按钮 - 绝对定位到右侧 */
.notice-more-btn,
.news-more-btn {
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}

.post-more a,
.notice-more-btn,
.news-more-btn {
  font-size: 16px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 统一使用 "more" 文字 */
.post-more a span {
  display: none !important;
}

.post-more a::before {
  content: 'more' !important;
}

.post-more a::after,
.notice-more-btn::after,
.news-more-btn::after {
  content: ' \203A' !important; /* 使用Unicode转义序列代替 › */
  margin-left: 4px !important;
  font-size: 18px !important;
}

/* 党群园地和教学科研 - 深色文字（无背景） */
.sidebar .post-title,
.cbox-left .post-title {
  color: #5a4a3a !important;
}

.sidebar .post-title::before,
.sidebar .post-title::after,
.cbox-left .post-title::before,
.cbox-left .post-title::after {
  background: rgba(139, 115, 85, 0.5) !important;
}

.sidebar .post-more a,
.cbox-left .post-more a {
  color: #8b7355 !important;
  border: none !important;
  background: transparent !important;
}

.sidebar .post-more a:hover,
.cbox-left .post-more a:hover {
  color: #5a4a3a !important;
  background: transparent !important;
  border: none !important;
}

/* 青春人文 - 深色文字（无背景） */
.col-md-12 .post-title {
  color: #5a4a3a !important;
}

.col-md-12 .post-title::before,
.col-md-12 .post-title::after {
  background: rgba(139, 115, 85, 0.5) !important;
}

.col-md-12 .post-more a {
  color: #5a4a3a !important;
  border: 2px solid rgba(139, 115, 85, 0.3) !important;
  background: rgba(139, 115, 85, 0.15) !important;
}

.col-md-12 .post-more a:hover {
  background: rgba(139, 115, 85, 0.25) !important;
  border-color: rgba(139, 115, 85, 0.5) !important;
}

/* 通知公告 - 深色文字 + 天青色装饰 */
.notice-module-title {
  color: #2c3e50 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 保留通知公告的装饰线 */
.notice-module-title::before,
.notice-module-title::after {
  background: #5BC0BE !important;
}

.notice-module-header {
  border-bottom: none !important;
  padding-bottom: 25px !important;
}

.notice-more-btn {
  background: transparent !important;
  color: #8b7355 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.notice-more-btn:hover {
  background: transparent !important;
  color: #5a4a3a !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 学院新闻 - 白色文字 */
.news-module-title {
  color: #5a4a3a !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-shadow: none !important;
}

/* 保留学院新闻的装饰线 */
.news-module-title::before,
.news-module-title::after {
  background: rgba(139, 115, 85, 0.5) !important;
}

.news-module-header {
  border-bottom: none !important;
  padding-bottom: 25px !important;
}

.news-more-btn {
  background: transparent !important;
  color: #8b7355 !important;
  border: none !important;
  backdrop-filter: none !important;
}

.news-more-btn:hover {
  background: transparent !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
  color: #5a4a3a !important;
}

/* 响应式 */
@media (max-width: 768px) {
  .post-title,
  .notice-module-title,
  .news-module-title {
    font-size: 24px !important;
    letter-spacing: 2px !important;
    padding: 0 30px !important;
  }
  
  .post-title::before,
  .post-title::after,
  .notice-module-title::before,
  .notice-module-title::after,
  .news-module-title::before,
  .news-module-title::after {
    width: 18px !important;
  }
  
  .post-head,
  .notice-module-header,
  .news-module-header {
    padding: 20px 15px 18px 15px !important;
  }
}
