/* 基础样式重置与通用设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: #f9fbff;
  color: #333;
  line-height: 1.6;
}

h3 {
  color: #1a56db;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

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

/* 两列布局样式 - 完全自适应 */
.main-layout {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.left-column, .right-column {
  flex: 1;
  min-width: 300px; /* 最小宽度确保在小屏幕上不挤压 */
  width: 100%; /* 确保在任何屏幕都能正确计算宽度 */
}

/* 置顶消息样式 */
.banner0 {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  width: 100%;
}

.banner0 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner0 img:hover {
  transform: scale(1.02);
}

/* 活动风采和通知公告共用标题样式 */
.section-title {
  border-bottom: 2px solid #1a56db;
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: inline-block;
}

/* 活动风采样式 - 自适应卡片布局（核心调整） */
.activity-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  width: 100%;
}

.activity-cards {
  display: grid;
  /* 关键调整：大屏幕强制一行两列，小屏幕自动适配 */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px;
  margin-bottom: 20px;
}

/* 大屏幕强制两列布局（核心新增） */
@media (min-width: 768px) {
  .activity-cards {
    grid-template-columns: repeat(2, 1fr); /* 无论屏幕多大，始终显示两列 */
  }
}

.activity-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-img {
  height: 220px; /* 调整图片高度，提升展示效果 */
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .card-img img {
  transform: scale(1.1);
}

.card-info {
  padding: 15px;
  background-color: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-info h4 {
  color: #1a56db;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.card-info p {
  color: #666;
  font-size: 0.9rem;
}

/* 通知公告样式 */
.announcement-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.announcement-list {
  list-style: none;
  margin-bottom: 20px;
}

.announcement-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.announcement-list li:last-child {
  border-bottom: none;
}

.announcement-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-list a:hover {
  color: #1a56db;
}

.date {
  color: #999;
  font-size: 0.85rem;
  white-space: nowrap;
}

.title {
  flex-grow: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 更多链接样式 */
.more-link {
  display: inline-block;
  color: #1a56db;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.more-link:hover {
  color: #0d2e86;
  padding-left: 5px;
}

/* 原有内容区域样式 */
.original-content {
  margin-top: 20px;
  width: 100%;
}

.w {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%; /* 确保容器占满宽度 */
}

/* 走进毓秀样式 - 自适应卡片 */
.lishi {
  margin-bottom: 60px;
  width: 100%;
}

.lishi-title {
  font-size: 1.8rem;
  color: #1a56db;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e7ff;
}

.lishi-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.lishi-li {
  flex: 1;
  min-width: 280px; /* 更小的最小宽度，适应手机 */
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  width: calc(33.333% - 14px); /* 默认三列布局 */
}

/* 自动调整列数 */
@media (max-width: 992px) {
  .lishi-li {
    width: calc(50% - 10px); /* 中等屏幕两列 */
  }
}

@media (max-width: 576px) {
  .lishi-li {
    width: 100%; /* 小屏幕单列 */
  }
}

.lishi-li:hover {
  transform: translateY(-5px);
}

.lishi-li-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.lishi-li-op {
  position: relative;
}

.lishi-li-op-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.lishi-li-txt {
  font-size: 1.2rem;
  color: #1a56db;
  padding: 15px 15px 5px;
  font-weight: 600;
}

.lishi-li-cont {
  padding: 0 15px 15px;
  color: #666;
  line-height: 1.7;
}

/* 了解毓秀样式 - 自适应布局 */
.history {
  margin-bottom: 60px;
  width: 100%;
}

.history-title {
  font-size: 1.8rem;
  color: #1a56db;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e7ff;
}

.history-cont {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}

.history-left, .history-right {
  flex: 1;
  min-width: 280px; /* 适应小屏幕 */
  width: 100%;
}

.intro-title {
  font-size: 1.2rem;
  color: white;
  background-color: #1a56db;
  padding: 10px 15px;
  border-radius: 4px 4px 0 0;
}

.intro-list {
  list-style: none;
  border: 1px solid #e0e7ff;
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.intro-list-li {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e7ff;
  transition: background-color 0.3s ease;
}

.intro-list-li:last-child {
  border-bottom: none;
}

.intro-list-li:hover {
  background-color: #f0f7ff;
}

.intro-t {
  font-size: 1rem;
}

.intro-t a {
  color: #333;
  transition: color 0.3s ease;
}

.intro-t a:hover {
  color: #1a56db;
}

.history-right-intro {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 100%;
}

.intro-tit {
  margin: 15px 0;
}

.intro-txt {
  font-size: 1.4rem;
  color: #1a56db;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e7ff;
}

.intro-content {
  padding-top: 15px;
  line-height: 1.8;
  color: #555;
}

.intro-content p {
  margin-bottom: 15px;
}

/* 毓秀风采样式 - 自适应网格 */
.view {
  margin-bottom: 60px;
  width: 100%;
}

.view-title {
  font-size: 1.8rem;
  color: #1a56db;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e7ff;
}

.travel {
  margin-bottom: 60px;
  width: 100%;
}

.travel-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.travel-list-li {
  list-style: none;
  width: calc(25% - 15px); /* 默认四列 */
  min-width: 200px;
}

/* 根据屏幕宽度自动调整列数 */
@media (max-width: 1024px) {
  .travel-list-li {
    width: calc(33.333% - 14px); /* 大屏幕三列 */
  }
}

@media (max-width: 768px) {
  .travel-list-li {
    width: calc(50% - 10px); /* 平板两列 */
  }
}

@media (max-width: 576px) {
  .travel-list-li {
    width: 100%; /* 手机单列 */
  }
}

.avatar {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.travel-list-li-img, .hot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar:hover img {
  transform: scale(1.05);
}

.travel-list-li-box {
  text-align: center;
}

.box-border {
  display: inline-block;
  border: 1px solid #e0e7ff;
  border-radius: 4px;
  padding: 10px 15px;
  width: 100%;
}

.border-tit {
  font-weight: 600;
  color: #1a56db;
  margin-bottom: 5px;
}

.border-txt {
  color: #666;
  font-size: 0.9rem;
}

/* 社团活动样式 - 智能网格布局 */
.hot {
  margin-bottom: 60px;
  width: 100%;
}

.hot-title {
  font-size: 1.4rem;
  color: #1a56db;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e7ff;
  display: inline-block;
}

.hot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 自动计算列数 */
  gap: 20px;
  list-style: none;
  padding: 0;
  width: 100%;
}

.hot-li {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  width: 100%;
}

/* 卡片容器样式 */
.card-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 图片容器样式 */
.avatar {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.hot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 鼠标悬停效果 */
.hot-li:hover {
  transform: translateY(-5px);
}

.hot-li:hover .hot-img {
  transform: scale(1.05);
}

/* 文字区域样式 */
.card-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hot-tit {
  font-weight: 600;
  padding: 15px 15px 5px;
  color: #333;
  margin: 0;
}

.hot-txt {
  padding: 0 15px 15px;
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  flex-grow: 1;
}

/* 风采展示样式 - 自适应交替布局 */
.jingbox {
  margin-bottom: 60px;
  width: 100%;
}

.jianbox-list {
  list-style: none;
  width: 100%;
}

.jianbox-li {
  display: flex;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.jianbox-li:nth-child(even) {
  flex-direction: row-reverse;
}

.jianbox-img, .jianbox-txt {
  flex: 1;
  min-width: 280px; /* 确保在小屏幕上正常显示 */
  width: 100%;
}

.jianbox-img {
  border-radius: 8px;
  overflow: hidden;
}

.jianbox-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.jianbox-txt {
  line-height: 1.8;
  color: #555;
}

/* FAQ样式 - 自适应折叠面板 */
.faq-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 60px;
  text-align: center;
  width: 100%;
}

.faq-container h2 {
  text-align: center;
  color: #1a56db;
  margin-bottom: 30px;
  font-size: 1.6rem;
}

.faq-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 500;
  padding: 15px 0;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
  transition: color 0.3s ease;
  text-align: center;
}

.faq-question:hover {
  color: #1a56db;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #1a56db;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  padding: 0 0 15px;
  color: #666;
  display: none;
  line-height: 1.8;
  text-align: center;
}

.faq-answer.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 - 分阶段适配 */

/* 大屏幕 (桌面，1200px以上) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
  }
  .activity-cards {
    gap: 25px; /* 大屏幕加大卡片间距 */
  }
}

/* 中等屏幕 (平板/桌面，992px以下) */
@media (max-width: 992px) {
  .main-layout {
    gap: 25px;
  }
  
  .activity-cards {
    gap: 15px;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

/* 小屏幕 (平板/手机，768px以下) */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .activity-cards {
    gap: 15px;
  }
  
  .jianbox-li, 
  .jianbox-li:nth-child(even) {
    flex-direction: column;
  }
  
  .faq-container {
    padding: 20px 15px;
  }
  
  .lishi-title,
  .history-title,
  .view-title {
    font-size: 1.5rem;
  }
}

/* 超小屏幕 (手机，576px以下) */
@media (max-width: 576px) {
  .main-layout {
    padding: 0 10px;
  }
  
  .activity-section,
  .announcement-section,
  .history-right-intro {
    padding: 15px;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .section-title,
  .hot-title {
    font-size: 1.2rem;
  }
  
  .lishi-title,
  .history-title,
  .view-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .avatar {
    height: 160px;
  }
  
  .card-img {
    height: 140px; /* 小屏幕缩小图片高度 */
  }
  
  .faq-container h2 {
    font-size: 1.4rem;
  }
}

/* 添加全局过渡效果，提升响应式体验 */
* {
  transition: all 0.3s ease;
}