@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #0058cc;
  --primary-light: #2377ed;
  --gray-bg: #f7f9fc;
  --text-dark: #1a1a1a;
  --red-price: #e63946;
}
body {
  font-family: "Microsoft YaHei",sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
/* 修复导航置顶空白 */
html {
  scroll-padding-top: 82px;
}
.nav-item:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.fixed-side {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.btn-tel {background: var(--red-price);}
.btn-book {background: var(--primary);}
.btn-top {background: #333;}
.banner-swiper {
  height: clamp(320px, 52vw, 620px);
}
.old-price {text-decoration: line-through; color:#999;}
.new-price {color:var(--red-price); font-weight:bold;}
.course-card {transition: all 0.3s ease;}
.course-card:hover {transform: translateY(-8px); box-shadow: 0 10px 28px rgba(0,88,204,0.15);}

/* 通用左对齐标题 */
.module-title {
  position: relative;
  padding-bottom:14px;
  margin-bottom:32px;
}
.module-title::after {
  content:"";
  width:64px;
  height:3px;
  background:var(--primary);
  position:absolute;
  left:0;
  bottom:0;
}
/* 居中标题专用 */
.module-title-center {
  position: relative;
  padding-bottom:14px;
  margin-bottom:32px;
  text-align: center;
}
.module-title-center::after {
  content:"";
  width:100px;
  height:3px;
  background:var(--primary);
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom:0;
}

/* 放大优势图标 恢复浅蓝色背景 */
.advantage-icon {
  width: 90px;
  height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background: rgba(0, 88, 204, 0.1);
  font-size:40px;
  color:var(--primary);
  margin:0 auto 16px;
}
.comment-card {
  background:#fff;
  border-left:4px solid var(--primary);
}
.coach-avatar {
  width:90px;
  height:90px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--primary-light);
}
/* 修复FAQ折叠样式，收缩无空白、无变形 */
.faq-item {
  border:1px solid #eee;
  border-radius:8px;
  overflow:hidden;
  margin-bottom:12px;
}
.faq-question {
  padding:16px 20px;
  background:#f8faff;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.faq-answer {
  max-height:0;
  overflow:hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p {
  padding:16px 20px;
  margin:0;
}
.faq-item.active .faq-answer {
  overflow: visible;
}