/* 青春人文（学生天地）- 瀑布流布局样式 */

/* 满宽度背景容器 */
.youth-culture-section-wrapper {
  background: #faf8f3 url('../img/back/6.jpg') center/cover ; /* 改为道林纸色 #faf8f3 */
  background-blend-mode: multiply;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  margin-bottom: 0;
  border-top: 3px solid rgba(139, 115, 85, 0.3);
  border-bottom: 3px solid rgba(139, 115, 85, 0.3);
}

/* 添加蒙版层 - 只用半透明背景，不用毛玻璃 */
.youth-culture-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 248, 243, 0.75);
  pointer-events: none;
  z-index: 0;
}

/* 外层容器 - 不要padding，避免嵌套时出现边框效果 */
.youth-culture-section-wrapper > .youth-culture-module {
  max-width: 1440px;
  margin: 60px auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
}

/* 移除重复的内层容器样式 */

/* 标题区域 */
.youth-culture-module-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
  min-height: 40px;
}

/* 标题容器 - 使用flex布局实现装饰线 */
.youth-culture-module-header .title-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 装饰线样式 */
.youth-culture-module-header .title-line {
  width: 50px;
  height: 2px;
  background: rgba(139, 115, 85, 0.5);
  display: inline-block;
}

.youth-culture-module-title {
  font-size: 32px;
  font-weight: 700;
  color: #5a4a3a;
  margin: 0;
  position: relative;
  padding-left: 0;
  font-family: 'KaiTi', 'STKaiti', '楷体', 'SimKai', serif;
  letter-spacing: 3px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* More按钮 */
.youth-culture-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;
  box-shadow: none;
  border: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.youth-culture-more-btn::after {
  content: ' \203A';
  margin-left: 4px;
  font-size: 18px;
}

.youth-culture-more-btn:hover {
  background: transparent;
  color: #5a4a3a;
  text-decoration: none;
  transform: translateY(-50%);
  box-shadow: none;
  border: none;
}

/* 瀑布流网格容器 */
.youth-culture-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

/* 卡片样式 */
.youth-culture-card {
  background: rgba(250, 248, 243, 0.75);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.youth-culture-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.youth-culture-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 卡片图片 */
.youth-culture-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.youth-culture-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.youth-culture-card:hover .youth-culture-card-image img {
  transform: scale(1.05);
}

/* 卡片内容 */
.youth-culture-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(250, 248, 243, 0.75);
}

/* 卡片标题 */
.youth-culture-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #5a4a3a;
  line-height: 1.6;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 51px;
}

.youth-culture-card:hover .youth-culture-card-title {
  color: #8b7355;
}

/* 卡片日期 */
.youth-culture-card-date {
  font-size: 14px;
  color: #8b7355;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .youth-culture-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 991px) {
  .youth-culture-section-wrapper > .youth-culture-module {
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .youth-culture-module-header {
    margin-bottom: 35px;
  }
  
  .youth-culture-module-header .title-wrapper {
    gap: 15px;
  }
  
  .youth-culture-module-header .title-line {
    width: 30px;
  }
  
  .youth-culture-module-title {
    font-size: 26px;
    letter-spacing: 2px;
  }
  
  .youth-culture-cards-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .youth-culture-section-wrapper {
    padding: 0;
  }
  
  .youth-culture-section-wrapper > .youth-culture-module {
    margin: 30px auto;
    padding: 0 15px;
  }
  
  .youth-culture-module-header {
    margin-bottom: 25px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  
  .youth-culture-module-header .title-wrapper {
    gap: 12px;
    margin-bottom: 0;
  }
  
  .youth-culture-module-header .title-line {
    width: 25px;
    height: 2px;
  }
  
  .youth-culture-module-title {
    font-size: 22px;
    letter-spacing: 2px;
  }
  
  .youth-culture-more-btn {
    font-size: 13px;
    top:25%;
    transform: none;
    margin: 0;
    width: auto;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  
  .youth-culture-more-btn:hover {
    transform: none;
  }
  
  .youth-culture-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .youth-culture-card {
    border-radius: 10px;
  }
  
  .youth-culture-card-image {
    height: 200px;
  }
  
  .youth-culture-card-content {
    padding: 16px;
  }
  
  .youth-culture-card-title {
    font-size: 15px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: auto;
    margin: 0 0 10px 0;
  }
  
  .youth-culture-card-date {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .youth-culture-section-wrapper > .youth-culture-module {
    margin: 20px auto;
    padding: 0 10px;
  }
  
  .youth-culture-module-header {
    margin-bottom: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .youth-culture-module-header .title-line {
    width: 20px;
  }
  
  .youth-culture-module-title {
    font-size: 20px;
    letter-spacing: 1.5px;
  }
  
  .youth-culture-more-btn {
    font-size: 15px;
    margin: 0;
    width: auto;
    text-align: right;
  }
  
  .youth-culture-cards-grid {
    gap: 15px;
  }
  
  .youth-culture-card {
    border-radius: 8px;
  }
  
  .youth-culture-card-image {
    height: 180px;
  }
  
  .youth-culture-card-content {
    padding: 14px;
  }
  
  .youth-culture-card-title {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .youth-culture-card-date {
    font-size: 11px;
  }
}