/* =========================================
   云南天翼无人机培训中心 - 主样式
   ========================================= */

:root {
  --primary: #0052CC;
  --primary-dark: #003D99;
  --secondary: #FF6B00;
  --text-main: #222;
  --text-sub: #666;
  --bg-light: #f5f7fa;
  --border: #e0e4ea;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text-main); background: #fff; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
img { max-width: 100%; }

/* ── 顶部栏 ── */
.top-bar {
  background: #1a1a2e;
  color: #aaa;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .top-contact, .top-bar .top-links { line-height: 1; }
.top-bar i { color: var(--secondary); }

/* ── 主导航 ── */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 0;
}
.main-nav .nav-logo { height: 52px; }
.brand-text { font-size: 18px; font-weight: 700; color: var(--primary); }
.main-nav .nav-link {
  font-size: 15px;
  color: #333;
  padding: 18px 14px !important;
  transition: color .2s;
  border-bottom: 3px solid transparent;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.btn-enroll {
  background: var(--secondary);
  color: #fff !important;
  border-radius: 4px;
  font-size: 14px;
  padding: 8px 20px;
  font-weight: 600;
}
.btn-enroll:hover { background: #e05500; }

/* ── 轮播 ── */
.main-carousel .carousel-item {
  height: 540px;
  background: #111 center/cover no-repeat;
}
.carousel-placeholder {
  height: 540px;
  background: linear-gradient(135deg, #0052CC 0%, #003D99 60%, #001a66 100%);
  position: relative;
  overflow: hidden;
}
.carousel-placeholder::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.carousel-caption { bottom: 80px; text-align: left; left: 10%; }
.carousel-caption h2 { font-size: 42px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.carousel-caption p { font-size: 18px; opacity: .9; }
.carousel-caption .btn-primary { background: var(--secondary); border: none; padding: 12px 30px; font-size: 16px; }
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }

/* ── 通用区块 ── */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.section-title p { color: var(--text-sub); font-size: 16px; }
.section-title .divider {
  width: 60px; height: 4px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── 优势区块 ── */
.advantage-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.advantage-item:hover { transform: translateY(-5px); }
.advantage-icon {
  width: 72px; height: 72px; line-height: 72px;
  background: linear-gradient(135deg, var(--primary), #0073e6);
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  margin: 0 auto 16px;
}
.advantage-item h5 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.advantage-item p { font-size: 14px; color: var(--text-sub); margin: 0; }

/* ── 课程卡片 ── */
.course-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.course-card:hover { box-shadow: 0 8px 30px rgba(0,82,204,.15); transform: translateY(-4px); }
.course-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #0052CC 0%, #003399 100%);
}
.course-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #0052CC 0%, #003399 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 48px;
}
.course-card .badge-hot {
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  position: absolute;
  top: 10px; right: 10px;
}
.course-card .card-body { padding: 18px; }
.course-card .card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.course-card .card-text { font-size: 13px; color: var(--text-sub); }
.course-card .course-meta { font-size: 13px; color: #888; }
.course-card .price { font-size: 24px; font-weight: 700; color: var(--secondary); }
.course-card .original-price { font-size: 13px; color: #aaa; text-decoration: line-through; }

/* ── 关于我们 ── */
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-item .unit { font-size: 14px; color: var(--text-sub); }
.about-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.about-features i { color: var(--secondary); width: 20px; }

/* ── 讲师 ── */
.teacher-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.teacher-card:hover { transform: translateY(-5px); }
.teacher-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  margin-bottom: 16px;
}
.teacher-avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0073e6);
  color: #fff;
  font-size: 36px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 4px solid var(--primary);
}
.teacher-card h5 { font-size: 18px; font-weight: 700; }
.teacher-card .title { color: var(--secondary); font-size: 14px; margin-bottom: 8px; }
.teacher-card .intro { font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.cert-badge {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-sub);
  margin: 2px;
}

/* ── 学员评价 ── */
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.review-card .stars { color: #ffc107; }
.review-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-text { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* ── 新闻 ── */
.news-item {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  min-width: 52px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 6px;
  line-height: 1.2;
}
.news-date .day { font-size: 22px; font-weight: 700; }
.news-date .mon { font-size: 11px; }
.news-title { font-size: 15px; font-weight: 600; display: block; margin-bottom: 5px; }
.news-title:hover { color: var(--secondary); }
.news-summary { font-size: 13px; color: var(--text-sub); }

/* ── 页面横幅 ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}
.page-hero h1 { font-size: 34px; font-weight: 700; }
.page-hero .breadcrumb { justify-content: center; background: none; margin: 0; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active { color: #fff; }

/* ── 联系 ── */
.contact-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon {
  width: 44px; height: 44px; line-height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── 报名表单 ── */
.enroll-section { background: var(--bg-light); padding: 60px 0; }
.enroll-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-label { font-weight: 500; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,82,204,.2); }
.btn-submit {
  background: var(--secondary);
  border: none;
  color: #fff;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
}
.btn-submit:hover { background: #e05500; color: #fff; }

/* ── 底部CTA ── */
.footer-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 50px 0;
  color: #fff;
}
.footer-cta h3 { font-size: 26px; font-weight: 700; }
.footer-cta p { font-size: 16px; opacity: .85; }

/* ── 主Footer ── */
.main-footer { background: #1a1a2e; color: #aaa; padding: 60px 0 0; }
.footer-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--secondary); }
.footer-about { font-size: 13px; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #aaa; font-size: 13px; }
.footer-links a:hover { color: var(--secondary); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 13px; }
.footer-contact i { color: var(--secondary); margin-top: 3px; min-width: 14px; }
.footer-bottom { background: rgba(0,0,0,.2); padding: 14px 0; margin-top: 40px; font-size: 12px; color: #777; }
.footer-bottom a { color: #777; }
.footer-bottom a:hover { color: var(--secondary); }
.qr-code { width: 90px; border-radius: 4px; }

/* ── 右侧悬浮 ── */
.float-contact {
  position: fixed;
  right: 20px; bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-item {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.fc-item i { font-size: 16px; margin-bottom: 1px; }
.fc-item span { line-height: 1; }
.fc-item:hover { background: var(--secondary); color: #fff; transform: scale(1.1); }
.fc-enroll { background: var(--secondary); }
.fc-top { background: #555; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .main-carousel .carousel-item, .carousel-placeholder { height: 300px; }
  .carousel-caption h2 { font-size: 22px; }
  .carousel-caption p { font-size: 14px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
  .stat-item .num { font-size: 28px; }
  .enroll-box { padding: 20px; }
}
