﻿
/* 下半部：数据列表 — 所有卡片正常摆放（无旋转） */
.page-down {
  margin-top: 16px;
}

.list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 20px;
}

.item {
  flex: 1 1 160px;
  min-width: 150px;
  max-width: 300px;
  transition: all 0.2s;
}

/* 卡片样式：完全正常摆放，无任何旋转/倾斜 */
.item-box {
  border-radius: 20px 20px 50px 20px;
  transform: none;
  padding: 28px 12px 22px;
  transition: transform 0.2s ease, border-color 0.2s;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-box:hover {
  transform: scale(1.02);
  border-color: #ffbb33;
  background: rgba(20, 28, 45, 0.8);
}

.text-box {
  width: 100%;
}

/* 数字超大，电脑端大字 */
.font60 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  color: #0069c1;
  letter-spacing: 1px;
}

/* 内联span数字部分 */
.num {
  display: inline-block;
  background: linear-gradient(145deg, #fff3d1, #ffcd7e);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  margin-right: 4px;
}

/* 说明文字 */
.font24 {
  font-size: 20px;
  font-weight: 500;
  color: #00000094;
  margin-top: 10px;
  padding: 0 4px;
  border-top: 1px dashed rgb(179 179 179 / 50%);
  padding-top: 10px;
  letter-spacing: 0.5px;
}

/* 对不同屏幕微调间距 - 保留但调整内部padding单位 */
@media (max-width: 700px) {
  .page-main {
    padding: 32px 20px 28px;
    border-radius: 40px 40px 30px 30px;
  }
  .list {
    gap: 16px;
  }
  .item {
    min-width: 130px;
    flex: 1 1 130px;
  }
  .item-box {
    padding: 20px 8px 16px;
  }
  .more {
    padding: 12px 24px 12px 28px;
  }
  .btn-container {
    margin-top: 28px;
  }
  .font48 {
    font-size: 42px;
  }
  .font18 {
    font-size: 18px;
  }
  .font60 {
    font-size: 42px;
  }
  .font24 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-main {
    padding: 24px 12px 20px;
    border-radius: 32px;
  }
  .list {
    gap: 12px;
  }
  .item {
    min-width: 115px;
    flex: 1 1 115px;
  }
  .font48 {
    font-size: 32px;
  }
  .font18 {
    font-size: 16px;
  }
  .font60 {
    font-size: 32px;
  }
  .font24 {
    font-size: 14px;
  }
  .font18 span {
    padding: 2px 4px;
    display: inline;
  }
}

/* 覆盖内联宽度，保证自适应 */
span.num {
  width: auto !important;
  min-width: 0.5em;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
}

/* 数字微光动画 */
@keyframes gentleGlow {
  0% { text-shadow: 0 0 10px #ffae42, 0 0 20px #ff8c00; }
  50% { text-shadow: 0 0 20px #ffdb7c, 0 0 40px #ffb347; }
  100% { text-shadow: 0 0 10px #ffae42, 0 0 20px #ff8c00; }
}

/* 移除之前可能存在的奇偶倾斜，保证所有.item-box完全方正 */
.page-down .item:nth-child(odd) .item-box,
.page-down .item:nth-child(even) .item-box {
  transform: none !important;
}




/* 学员风采 */


.carousel-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* 头部区域：左侧大标题 + 右侧切换按钮 */
.xyfc {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;  /* 2.5rem */
  padding: 50px 8px;  /* 0.5rem */
}

.main-title {
  font-size: var(--font50);
  font-weight: 700;
  background: #333;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.nav-buttons {
  display: flex;
  gap: 16px;  /* 1rem */
}

.nav-btn {
  background: white;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;  /* 2rem */
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 8px 18px -6px rgba(0,32,64,0.25), 0 0 0 1px rgba(255,255,255,0.8) inset;
  transition: all 0.2s ease;
  color: #0069c1;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(2px);
  line-height: 1;
}

.nav-btn:hover {
  background: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 14px 24px -8px rgba(21,50,80,0.4);
  color: #0b1c2b;
}

.nav-btn:active {
  transform: scale(0.98);
  background: #ecf3f9;
}

/* 四图网格区域——四个卡片直接写在HTML里，通过JS控制显示哪一组（切换类） */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;  /* 1.4rem */
  margin-top: 16px;  /* 1rem */
}

/* 图片卡片 */
.card {
  background: #ffffffcc;
  backdrop-filter: blur(2px);
  border-radius:10px;  /* 2rem */
  overflow: hidden;
  box-shadow: 0 20px 30px -10px rgba(20, 40, 60, 0.25);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  border: 1px solid rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 38px -10px #1a3349;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #bdd3e3;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

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

.card-caption {
  padding: 13px 16px 16px 16px;  /* 0.8rem 1rem 1rem 1rem */
  font-weight: 600;
  color: #1f3a4f;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  font-size: 18px;  /* 1.1rem */
  border-top: 1px solid rgba(255,255,255,0.9);
}

.card-caption span {
  opacity: 0.8;
  font-size: 14px;  /* 0.9rem */
  font-weight: 400;
  color: #4d6272;
}

/* 指示点 */
.dots-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;  /* 2rem */
  gap: 13px;  /* 0.8rem */
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 20px;
  background: #b4c7d6;
  border: none;
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dot.active {
  background: #1e3f5c;
  width: 32px;
  background: #234c6b;
  box-shadow: 0 0 0 3px rgba(33, 94, 143, 0.3);
}

.dot:hover {
  background: #3b6f96;
}

.live-badge {
  display: inline-block;
  background: #dbeafe;
  border-radius: 40px;
  padding: 5px 16px 5px 19px;  /* 0.3rem 1rem 0.3rem 1.2rem */
  font-size: 14px;  /* 0.85rem */
  font-weight: 600;
  color: #113853;
  margin-left: 16px;  /* 1rem */
  box-shadow: inset 0 -1px 0 #bbd1e4;
}

.live-badge::before {
  content: "●";
  color: #2b825b;
  font-size: 19px;  /* 1.2rem */
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } }

/* 所有图片组初始隐藏，仅显示当前组（通过JS控制类） */
.group {
  display: none;
}
.group.active-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;  /* 1.4rem */
}

/* 保证group作为容器占位正常 */
.grid-gallery {
  display: block;
}

@media (max-width: 700px) {
  .carousel-container { padding: 24px; }  /* 1.5rem */
  .group.active-group { gap: 11px; }  /* 0.7rem */
  .card-caption { font-size: 14px; padding: 6px; }  /* 0.9rem, 0.4rem */
}
@media (max-width: 550px) {
  .main-title { font-size: 38px; }  /* 2.4rem */
  .nav-btn { width: 48px; height: 48px; font-size: 29px; }  /* 1.8rem */
}