/* 信息科技上课系统 - 全局活泼风格（面向中学生） */

:root {
  --xx-pink: #ff6b9d;
  --xx-purple: #845ef7;
  --xx-blue: #4dabf7;
  --xx-teal: #20c997;
  --xx-amber: #ffd43b;
  --xx-ink: #343a40;
}

body {
  background: #f6f8fa;
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- 导航 ---------- */
.navbar.bg-dark { background: #2b3a55 !important; }
.navbar-brand { font-weight: 800; letter-spacing: 1px; }

/* ---------- 卡片：圆角 + 悬浮上浮 ---------- */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(132, 94, 247, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(132, 94, 247, 0.20);
}

/* ---------- 按钮 ---------- */
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary {
  background: #2f6fd6;
  border: none;
}
.btn-primary:hover {
  background: #275cb4;
  transform: translateY(-1px);
}

/* ---------- 徽章 / 标签 ---------- */
.badge { border-radius: 999px; font-weight: 600; }

/* ---------- 表格 ---------- */
.table {
  border-radius: 1rem;
  overflow: hidden;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(132, 94, 247, 0.04);
}
.table thead th { border-bottom: 2px solid #e9ecef; }

/* ---------- 提示框 ---------- */
.alert { border-radius: 1rem; border: none; }

/* ---------- 首页专属 ---------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 底部轻微暗化保证文字可读，不做整体遮罩 */
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 70%);
}
.hero .hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 1rem;
  text-align: center;
}
.hero h1 {
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hero .hero-sub {
  font-size: 1.15rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.hero .hero-emoji {
  display: inline-block;
  animation: float 2.6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.stat-card .stat-num {
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.1;
}
.stat-card.t-teacher .stat-num { color: var(--xx-purple); }
.stat-card.t-student .stat-num { color: var(--xx-teal); }
.stat-card.t-class  .stat-num { color: var(--xx-blue); }
.stat-card.t-course .stat-num { color: var(--xx-pink); }
.stat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: bob 3.2s ease-in-out infinite;
  box-shadow: 0 6px 14px rgba(132, 94, 247, 0.25);
}
.stat-icon svg { width: 30px; height: 30px; }
.stat-icon.i-teacher { background: linear-gradient(135deg, #b197fc, #845ef7); animation-delay: 0s; }
.stat-icon.i-student { background: linear-gradient(135deg, #63e6be, #20c997); animation-delay: 0.4s; }
.stat-icon.i-class  { background: linear-gradient(135deg, #74c0fc, #4dabf7); animation-delay: 0.8s; }
.stat-icon.i-course { background: linear-gradient(135deg, #ffa8c5, #ff6b9d); animation-delay: 1.2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.feature-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin: 0.25rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
  background: #ffffff;
  color: #2b3a55;
  border: 1.5px solid #2b3a55;
}
.feature-chip:nth-child(2) { background: #ffd43b; color: #5c4400; border-color: #e0ac00; }
.feature-chip:nth-child(3) { background: #20c997; color: #ffffff; border-color: #17a07a; }
.feature-chip:nth-child(4) { background: #4dabf7; color: #ffffff; border-color: #2f8de0; }
.feature-chip:hover { transform: scale(1.08) rotate(-2deg); }

/* ---------- 页脚 ---------- */
footer.site-footer {
  background: #2b3a55;
  color: rgba(255, 255, 255, 0.92);
}
