/* ===== REVIEWS PAGE ===== */

/* 页面英雄区 */
.page-hero {
  background: linear-gradient(135deg, #1f488a 0%, #2d5aa0 50%, #1f488a 100%);
  padding: 140px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
}

/* 主内容区 */
.main-content {
  min-height: calc(100vh - 400px);
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 评价区域 */
.reviews-section {
  padding: 60px 0 80px;
}

/* 筛选按钮 */
.reviews-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  background: #fff;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: #1f488a;
  color: #1f488a;
}

.filter-btn.active {
  background: #1f488a;
  border-color: #1f488a;
  color: #fff;
}

/* 评价统计 */
.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #f8fafc, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: #1f488a;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #888;
  letter-spacing: 2px;
}

/* 评价网格 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(31, 72, 138, 0.15);
}

.review-card.hidden {
  display: none;
}

.review-image {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  background: #f0f4f8;
}

.review-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.review-card:hover .review-image img {
  transform: scale(1.05);
}

.review-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 72, 138, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.review-card:hover .review-overlay {
  opacity: 1;
}

.view-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.view-text {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}

.review-info {
  padding: 20px;
}

.review-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.review-tag.exam {
  background: #e6f4ea;
  color: #1e8e3e;
}

.review-tag.instructor {
  background: #fef7e0;
  color: #b07800;
}

.review-tag.service {
  background: #e8f0fe;
  color: #1a56d6;
}

.review-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #999;
}

/* 没有更多 */
.no-more {
  text-align: center;
  padding: 40px 0;
  color: #bbb;
  font-size: 14px;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: -20px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-info {
  text-align: center;
  margin-bottom: 20px;
}

.modal-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  background: #1f488a;
  color: #fff;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.modal-image-wrapper {
  max-width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.modal-image-wrapper img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
}

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.nav-btn {
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-indicator {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 60px;
  text-align: center;
}

/* 弹窗动画 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal.active .modal-content {
  animation: modalSlideIn 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .page-hero {
    padding: 120px 20px 60px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .reviews-stats {
    gap: 40px;
    padding: 24px;
  }

  .stat-number {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .page-hero h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .reviews-filter {
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-stats {
    flex-direction: column;
    gap: 24px;
  }

  .modal-nav {
    gap: 12px;
  }

  .nav-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
