/* 教育教学列表页 /education */

.page-banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.content-section {
  padding: 40px 0;
}

.highlight-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.highlight-banner {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.highlight-banner img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s;
}

.highlight-banner:hover img {
  transform: scale(1.05);
}

.highlight-date {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #8B1C31;
  color: #fff;
  padding: 10px 16px;
  text-align: center;
}

.highlight-date .day {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  display: block;
}

.highlight-date .ym {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.highlight-banner .banner-title {
  position: absolute;
  bottom: 0;
  left: 80px;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-list-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #FAFAF8;
  border-left: 3px solid #D4AF37;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.news-list-item:hover {
  background: #F5F3EE;
  border-left-color: #8B1C31;
}

.news-list-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F0EDE8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-list-item .icon svg {
  width: 20px;
  height: 20px;
  color: #8B1C31;
}

.news-list-item h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.news-list-item:hover h4 {
  color: #8B1C31;
}

.news-list-item p {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-item {
  background: #fff;
  border: 1px solid #F0EDE8;
  overflow: hidden;
  transition: all 0.4s;
}

.card-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: #E0DCD4;
  transform: translateY(-4px);
}

.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

.card-item:hover .card-img img {
  transform: scale(1.08);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .desc {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #bbb;
  margin-bottom: 14px;
}

.card-meta .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-meta svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 3px;
}

.card-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.card-btn:hover {
  background: #8B1C31;
  border-color: #8B1C31;
  color: #fff;
}

.card-btn::after {
  content: ' ›';
  font-size: 14px;
}

.education-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-bottom: 24px;
}

.education-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 280px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #8B1C31 0%, #a52540 100%);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(139, 28, 49, 0.28);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.education-more-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.education-more-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #731525 0%, #8B1C31 100%);
  box-shadow: 0 8px 24px rgba(139, 28, 49, 0.35);
  transform: translateY(-2px);
}

.education-more-btn:hover svg {
  transform: translateX(4px);
}

.education-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(139, 28, 49, 0.25);
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 220px;
  }

  .highlight-area {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .page-banner {
    height: 160px;
  }

  .education-more-btn {
    min-width: 0;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .news-list-item {
    padding: 10px 12px;
  }

  .highlight-banner .banner-title {
    left: 0;
    font-size: 12px;
  }

  .highlight-date {
    padding: 6px 10px;
  }

  .highlight-date .day {
    font-size: 20px;
  }
}
