/* ==========================================================================
   学生成长页面 (Student Development) 专属样式 - 完整终极版
   ========================================================================== */

/* 让点击跳转变平滑 */
html {
  scroll-behavior: smooth;
}

/* 强行规范内容容器，防止全局样式干扰跑位 */
.student-main-container {
  display: block !important;
  position: relative !important;
  width: 100%;
}

/* ── 右侧固定悬浮目录 ── */
.side-toc-right {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 999;
  width: 170px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
}

.toc-item {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  line-height: 1.4;
}

.toc-item:hover {
  color: #1a56db;
  font-weight: 600;
  transform: translateX(4px);
}

/* ── 交错大型图文区块 (强行拉开上下距离) ── */
.student-program-section {
  margin-bottom: 160px !important; 
  position: relative;
  display: block;
  width: 100%;
  clear: both; 
}

/* 双列网格骨架 (强行拉开左右图文距离) */
.program-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important; 
  gap: 100px !important;
  align-items: center;
  max-width: 1000px !important;
  margin: 0 auto !important;
  position: relative;
}

/* 左右交错的反转机制 */
.program-grid.reverse {
  grid-template-columns: 0.85fr 1.15fr !important;
}
.program-grid.reverse .program-text {
  grid-column: 2 !important;
}
.program-grid.reverse .program-image-slot {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

/* 文字部分 */
.program-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.program-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.program-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
  line-height: 1.3;
}

.program-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: justify;
}

/* 关键字基础骨架 */
.program-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* 公共基础样式（字号、圆角等） */
.program-keywords span {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* ── 🔵 蓝色项目关键字 ── */
.program-keywords span.kw-blue {
  background: #f0f7ff; 
  color: #1a56db;
  border: 1px solid rgba(26, 86, 219, 0.15);
}
.program-keywords span.kw-blue:hover {
  background: #1a56db;
  color: #fff;
}

/* ── 🔵 绿色项目关键字 ── */
.program-keywords span.kw-green {
  background: #f0fdf4;
  color: #16a34a;     
  border: 1px solid rgba(22, 163, 74, 0.15);
}
.program-keywords span.kw-green:hover {
  background: #16a34a;
  color: #fff;
}

/* ── 🟠 橙色项目关键字 ── */
.program-keywords span.kw-orange {
  background: #fff7ed;
  color: #ea580c;      
  border: 1px solid rgba(234, 88, 12, 0.15);
}
.program-keywords span.kw-orange:hover {
  background: #ea580c;
  color: #fff;
}

/* ── 🟣 紫色项目关键字 ── */
.program-keywords span.kw-purple {
  background: #fdf4ff; 
  color: #9333ea;     
  border: 1px solid rgba(147, 51, 234, 0.15);
}
.program-keywords span.kw-purple:hover {
  background: #9333ea;
  color: #fff;
}

/* ── ✨ 专属精美按钮样式 ── */
.student-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.1);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.student-btn i {
  font-size: 12px; 
  transition: transform 0.25s ease;
}

/* 鼠标悬浮时的变深蓝与微动动画 */
.student-btn:hover {
  background: #1a56db;
  color: #fff;
  box-shadow: 0 10px 25px rgba(26, 86, 219, 0.25);
  transform: translateY(-2px);
}

.student-btn:hover i {
  transform: translate(2px, -2px); 
}

.program-image-slot {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  height: 300px !important; 
  border-radius: 20px;
  overflow: hidden !important; 
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.image-placeholder, 
.program-image-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #fcfcfd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 15px;
  font-weight: 500;
}

/* ── 手机与平板端响应式 ── */
@media (max-width: 850px) {
  .program-grid, .program-grid.reverse {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    max-width: 100% !important;
  }
  .program-grid.reverse .program-text,
  .program-grid.reverse .program-image-slot {
    grid-column: unset !important;
    grid-row: unset !important;
  }
  .program-image-slot {
    height: 240px !important;
  }
  .side-toc-right {
    display: none !important; 
  }
  .student-program-section {
    margin-bottom: 80px !important; 
  }
}

/* ==========================================================================
   📬 来临活动 (Upcoming Events) 补充升级版样式
   ========================================================================== */

/* ── 活动板块外层与标题 ── */
.events-section {
  padding: 80px 20px 140px; /* 拉大下方空白，让页面结束得更舒展 */
  max-width: 1040px; /* 和上面的图文卡片宽度保持一致和谐 */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.events-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.events-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a56db;
  margin-bottom: 12px;
  display: block;
}

.events-title {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.events-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* ── 无图片时的美观占位符 ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  gap: 8px;
  transition: transform 0.5s ease;
}
.event-card:hover .img-placeholder {
  transform: scale(1.03); /* 鼠标悬浮时占位背景也会放大 */
}

/* ── 底部“查看更多”空心按钮 ── */
.events-more {
  text-align: center;
  margin-top: 50px;
}

.student-btn.btn-outline {
  background: transparent;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: none;
}

.student-btn.btn-outline:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.student-btn.btn-outline:hover i {
  /* 覆盖原本右上角微动的动效，改为向右平移 */
  transform: translateX(4px); 
}

/* ── 响应式适配 ── */
@media (max-width: 850px) {
  .events-grid {
    grid-template-columns: 1fr; /* 手机端变为一排一个卡片 */
    gap: 24px;
  }
}
/* ==========================================================================
   🎪 来临活动 — 轮播卡片区块完整样式
   ========================================================================== */

/* ── 整体两栏布局 ── */
.events-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

/* ── 左侧卡片轨道容器 ── */
.event-viewport {
  overflow: hidden;
  position: relative;
  padding: 24px 0 40px; /* 底部留给 dots */
}

/* 三张卡片横排 */
.event-track {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 单张活动卡片 ── */
.event-item {
  flex: 0 0 200px;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.45;
  transform: scale(0.88);
  filter: blur(0.5px);
}

/* Active（中间大图）状态 */
.event-item.active {
  flex: 0 0 280px;
  opacity: 1;
  transform: scale(1);
  filter: none;
  z-index: 2;
}

/* 图片卡片容器 */
.event-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.35s ease;
}

.event-item.active .event-card {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.event-item:hover .event-card img {
  transform: scale(1.04);
}

/* 卡片下方文字 */
.event-info {
  padding: 12px 4px 0;
  text-align: center;
}

.event-info h3 {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-info p {
  font-size: 11px;
  color: #888;
  margin: 0;
}

/* ── 底部指示点 ── */
.detail-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #111;
  width: 20px;
}

/* ── 右侧活动详情面板 ── */
.event-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 8px 48px;
  margin-left: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* 状态标签 */
.detail-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}

/* 活动标题 */
.detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

/* 日期 & 地点 */
.detail-meta {
  font-size: 13px;
  color: #888;
  margin: 0 0 16px;
  font-weight: 500;
}

/* 活动描述 */
.detail-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 28px;
  text-align: justify;
}

/* 详情按钮 */
.event-btn {
  display: inline-flex;
  align-items: center;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 999px;
  width: fit-content;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.1);
  margin: auto;
}

.event-btn:hover {
  background: #1a56db;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(26, 86, 219, 0.25);
}

/* ── 响应式 ── */
@media (max-width: 850px) {
  .events-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .event-item {
    flex: 0 0 160px;
  }

  .event-item.active {
    flex: 0 0 220px;
  }

  .detail-title {
    font-size: 22px;
  }
}