/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
  color: #333;
  background-color: #faf9f7;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  background: linear-gradient(135deg, #2d5a4b, #437a6b);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  color: #f4d03f;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #f4d03f;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* 页脚 */
.footer {
  background: #1e3a32;
  color: rgba(255,255,255,0.8);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer h3 {
  color: #f4d03f;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer p, .footer a {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a:hover {
  color: #f4d03f;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* 通用标题 */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #2d5a4b;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f4d03f;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #f4d03f;
  color: #2d5a4b;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.btn:hover {
  background: #e5c235;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244,208,63,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #f4d03f;
  color: #f4d03f;
}

.btn-outline:hover {
  background: #f4d03f;
  color: #2d5a4b;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 8px 22px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  color: #555;
  font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
  background: #2d5a4b;
  color: #fff;
  border-color: #2d5a4b;
}

/* 课程网格 */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-info {
  padding: 20px;
}

.course-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #2d5a4b;
}

.course-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.course-meta span {
  background: #f0f0f0;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #555;
}

.course-info p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 教练卡片 */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.coach-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
}

.coach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.coach-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 4px solid #f4d03f;
}

.coach-card h3 {
  font-size: 1.2rem;
  color: #2d5a4b;
}

.coach-card .qual {
  color: #888;
  font-size: 0.85rem;
  margin: 5px 0 10px;
}

.coach-card .style {
  color: #555;
  font-size: 0.9rem;
  background: #f9f0e6;
  padding: 6px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.coach-card p {
  color: #666;
  font-size: 0.9rem;
}

/* 评价 */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.testimonial-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-header .name {
  font-weight: 600;
  color: #2d5a4b;
}

.stars {
  color: #f4d03f;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 轮播 */
.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 60px;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slider img.active {
  opacity: 1;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.slider-controls button.active {
  background: #fff;
}

/* 预约表单 */
.booking-form {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #2d5a4b;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border 0.3s;
  background: #fafafa;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #2d5a4b;
}

/* 联系信息 */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-box {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-info-box .item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-box .item .icon {
  font-size: 1.5rem;
  color: #2d5a4b;
}

.contact-info-box .item .text {
  color: #555;
  font-size: 0.95rem;
}

.map-placeholder {
  background: #e8e4df;
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.1rem;
}

/* 成功消息 */
.success-msg {
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #2d5a4b;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .slider {
    height: 300px;
  }
  .contact-section {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .course-grid, .coach-grid, .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .booking-form {
    padding: 20px;
  }
}

/* 内页通用 */
.page-hero {
  background: linear-gradient(135deg, #2d5a4b, #437a6b);
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.9;
}

.page-section {
  padding: 60px 0;
}

/* 评分星星 */
.star-rating {
  display: inline-flex;
  gap: 3px;
  color: #f4d03f;
  font-size: 1.2rem;
}

/* 课程详情页 */
.course-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.course-detail img {
  border-radius: 16px;
  height: 400px;
  object-fit: cover;
}

.course-detail .info h2 {
  font-size: 1.8rem;
  color: #2d5a4b;
  margin-bottom: 15px;
}

.course-detail .info .meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.course-detail .info .meta span {
  background: #f0f0f0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.course-detail .info p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .course-detail {
    grid-template-columns: 1fr;
  }
  .course-detail img {
    height: 250px;
  }
}