/* 全局重置 & 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}

:root {
  --primary: #4CAF50;
  --secondary: #E3F2FD;
  --text: #333333;
  --light: #FFFFFF;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 导航栏 */
.navbar {
  background-color: var(--light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.navbar ul {
  display: flex;
  gap: 1.5rem;
}

.navbar a:hover {
  color: var(--primary);
}

/* Banner */
.banner {
  height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("images/hezhao1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
}
.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn {
  background-color: var(--primary);
  color: var(--light);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #388E3C;
}

/* 通用板块样式 
.section {
  padding: 4rem 2rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}*/


/* 简介区 */
.intro {
  background-color: var(--secondary);
}

.intro h2 {
  color: var(--primary);
}

.intro p {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 文章列表 */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-list article {
  background-color: var(--light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s;
}

.article-list article:hover {
  transform: translateY(-5px);
}

.article-list h3 {
  padding: 1rem;
  color: var(--primary);
}

.basic_title {
    padding: 2rem;
    margin: 2rem;
    color: darkgreen;
    text-align: center;
}
.article-list p {
  padding: 0 1rem 1rem;
}

.article-list .date {
  display: block;
  padding: 0 1rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* 关于我们 */
.team, .contact {
  max-width: 800px;
  margin: 2rem auto;
}

.member {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* 长图样式 
.long-image-container {

  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.long-image {
  width: 80%;
  height: auto;
  border-radius: 0;
}*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* 卡片式 section 样式 */
.card-section {
  flex: 1;
  min-width: 280px; /* 确保移动设备上有合适的最小宽度 */
  max-width: calc(25% - 2rem); /* 四列布局 */
  background-color: var(--light);
  border-radius: 12px; /* 圆角 */
  box-shadow: var(--shadow); /* 阴影效果 */
  padding: 2rem 1.5rem; /* 内部间距 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 卡片hover效果 */
.card-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 卡片内标题样式 */
.card-section h2 {
  text-align: left; /* 左对齐标题 */
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--secondary);
}

/* 调整文章列表在卡片中的样式 */
.card-section .article-list {
  grid-template-columns: 1fr; /* 确保单列布局 */
  gap: 0;
}

.card-section .article-list article {
  box-shadow: none; /* 移除内部卡片阴影 */
  transition: none;
}

.card-section .article-list article:hover {
  transform: none; /* 移除内部卡片hover效果 */
}
/* style.css 添加的样式 */


/* 主要卡片容器样式 */
.card-container-major {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* 容器标题样式 */
.container-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* 蓝色分隔线 */
.divider {
  height: 2px;
  background-color: #BBDEFB; /* 浅蓝色 */
  margin-bottom: 1.5rem;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* 小卡片容器 */
.small-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 卡片之间的间距 */
}

/* 小卡片样式 */
.small-card {
  background-color: var(--light);
  border-radius: 12px;
  width: 70%; /* 统一宽度 */
  padding: 2.5rem 1rem;
  margin: 0 auto 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  font-size: 1.4rem;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  position: relative; /* 确保日期标签定位正常 */
  /* 背景图基础配置（所有卡片通用） */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /* 半透明白色叠加 + 混合模式，保障文字可读性 */
  background-color: rgba(255, 255, 255, 0.6);
  background-blend-mode: overlay;
}

/* 1. 校内活动卡片 - 分别设置专属背景图 */
.small-card-xiaoban {
  background-image: url('images/xiaoban-bg.jpg'); /* 替换为实际图片路径 */
}
.small-card-buddy {
  background-image: url('images/buddy-bg.jpg');
}
.small-card-sunshine {
  background-image: url('images/sunshine-bg.jpg');
}
.small-card-labor {
  background-image: url('images/labor-bg.jpg');
}

/* 2. 校外活动卡片 - 分别设置专属背景图 */
.small-card-eryuan {
  background-image: url('images/eryuan-bg.jpg');
}
.small-card-jiaoyang {
  background-image: url('images/jiaoyang-bg.jpg');
}
.small-card-xunmi {
  background-image: url('images/xunmi-bg.jpg');
}
.small-card-yinghuo {
  background-image: url('images/yinghuo-bg.jpg');
}
.small-card-others {
  background-image: url('images/others-bg.jpg');
}

/* 3. 时间顺序板块卡片（示例） */
.small-card-callback {
  background-image: url('images/callback-bg.jpg');
}
/* 日期标签样式 */
.small-card-date {
  position: absolute;
  top: 0.5rem;
  left: 0.8rem;
  font-size: 0.9rem;
  color: #666;
  background-color: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* 小卡片悬停效果 */
.small-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  color: var(--primary);
}

/* 往期回顾板块 - 卡片样式（公众号模式） */
.callback-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* 卡片之间间距，与 activity 小卡片一致 */
  margin-bottom: 2rem;
}

/* 单个卡片：左内容右图片，圆角长方形 */
.callback-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--light);
  border-radius: 12px; /* 与 activity 小卡片圆角一致 */
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
  transition: all 0.3s ease; /* 复用 hover 过渡效果 */
}

/* 卡片 hover 效果：与 activity 小卡片统一 */
.callback-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* 卡片左侧内容区：日期+标题+元数据 */
.callback-card-content {
  flex: 1; 
  position: relative; 
  padding-top: 1.8rem; /* 核心修改：从0.5rem增至1.8rem，避免标题与日期重叠 */
  padding-right: 0.5rem; /* 小屏幕下标题换行时更美观 */
}

/* 卡片日期：微调位置，与标题距离更合理 */
.callback-card-date {
  position: absolute;
  top: 0.1rem; /* 轻微下移，避免贴紧顶部 */
  left: 0;
  font-size: 0.85rem;
  color: #666;
  background-color: #f0f0f0;
  padding: 0.1rem 0.3rem; /* 增大内边距，日期文本更舒展 */
  border-radius: 4px;
  z-index: 1; /* 确保日期在标题上方，不被覆盖 */
}

/* 卡片标题：增加底部间距，与元数据区分更清晰 */
.callback-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.8rem; /* 从0.5rem增至0.8rem，避免标题与元数据拥挤 */
  line-height: 1.5; /* 优化行高，多行标题更易读 */
}
/* 卡片 hover 时标题变绿色（与 activity 统一） */
.callback-card:hover h3 {
  color: var(--primary);
}

/* 卡片元数据（阅读/赞/转发）：灰色小字 */
.callback-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #888;
}

/* 卡片右侧图片区：圆角正方形 */
.callback-card-img {
  width: 283px;
  height: 120px;
  border-radius: 8px; /* 图片圆角（略小于卡片） */
  overflow: hidden; /* 确保图片不溢出圆角 */
  flex-shrink: 0; /* 防止图片被压缩 */
}

/* 图片自适应：填充容器且不变形 */
.callback-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* 取消原有图片默认圆角（避免双重圆角） */
}

/* 分页控件样式：居中、简约 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* 分页按钮：风格参考 activity 按钮 */
.pagination-btn {
  background-color: var(--light);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* 按钮 hover 效果：与 activity btn 统一 */
.pagination-btn:hover:not(:disabled) {
  background-color: var(--primary);
  color: var(--light);
}

/* 禁用按钮样式：灰色不可点击 */
.pagination-btn:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
}

/* 分页页码文本：灰色常规字体 */
.pagination-current {
  font-size: 0.9rem;
  color: #666;
}

/* 响应式调整：小屏幕（手机）卡片垂直布局 */
@media (max-width: 768px) {
  .callback-card {
    flex-direction: column; /* 图片在标题下方 */
    gap: 1rem;
    padding: 1rem;
  }

  .callback-card-img {
    width: 100%;
    height: auto; /* 自适应宽度，保持图片比例 */
    max-height: 200px;
  }

  .callback-card-meta {
    flex-wrap: wrap; /* 元数据换行，避免溢出 */
    gap: 0.5rem;
  }
}

.qrcode-section {
  text-align: center; /* 整体居中 */
  margin: 3rem auto 2rem; /* 上下间距，左右自动居中 */
  max-width: 300px; /* 限制最大宽度，避免二维码过大 */
}

/* 二维码文字描述 */
.qrcode-desc {
  font-size: 1.2rem;
  color: var(--primary); /* 用主绿色，与网站风格统一 */
  margin-bottom: 1rem; /* 文字与二维码间距 */
  font-weight: 500; /* 轻微加粗，提升可读性 */
}

/* 二维码图片样式 */
.qrcode-img {
  max-width: 180px; /* 控制二维码大小，避免过大或过小 */
  height: auto;
  border-radius: 8px; /* 轻微圆角，与卡片风格呼应 */
  box-shadow: var(--shadow); /* 加阴影，提升层次感 */
  padding: 0.5rem; /* 白色内边距，模拟边框效果 */
  background-color: var(--light); /* 背景色，确保内边距可见 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .card-container-major {
    margin: 2rem auto;
  }
  
  .container-title {
    font-size: 1.5rem;
  }
  
  .small-card {
    width: 90%; /* 移动端宽度略宽 */
    min-height: 120px;
    padding: 2rem 0.8rem;
    font-size: 1rem;
  }
  .small-card-date {
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
  }
}
/* 响应式调整 - 中等屏幕显示2列 */
@media (max-width: 992px) {
  .card-section {
    max-width: calc(50% - 2rem);
  }
}

/* 响应式调整 - 小屏幕显示1列 */
@media (max-width: 768px) {
  .card-section {
    max-width: 100%;
  }
}

footer {
  background-color: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 2rem;
}