/* Basic Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}


/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10004;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-left .logo {
  height: 42px;
  width: auto;
}

/* 红色标语（logo右侧） */
.header-slogan {
    display: block;
    font-size: 12px;
    color: red;
    margin-right: 60px;
    flex-shrink: 0; /* 确保不被压缩 */
    white-space: nowrap; /* 防止换行 */
}
/* ===== 汉堡菜单（图片） ===== */
.hamburger-menu {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger-menu img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 53%;
  height: 60%;
  background-color: #fff;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 10002;
  padding-top: 70px;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.mobile-nav a {
  display: block;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}




/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(to bottom, #e0f2f7, #c0e0e8); /* Light blue gradient */
  padding: 20px 0;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  bottom: 0;
  right: -20px; /* Adjust as needed to match image */
  width: 60%; /* Adjust size */
  max-width: 300px;
  height: auto;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  text-align: left;
  max-width: 90%;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 28px;
  color: #ff8c00; /* Orange color */
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-button {
  background-color: #ff8c00; /* Orange */
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

.hero-banner {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

/* Carousel Section */
.carousel-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* 设置合理的高度范围 */
  min-height: 200px;
  max-height: 50vh; /* 最大高度为视口高度的50% */
  height: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  display: flex;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 确保图片完整显示在容器内 */
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  padding: 0;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: #e69170;
  border-color: #e69170;
  transform: scale(1.2);
}

/* General Section Styling */
.section {
  padding: 30px 20px;
  background-color: #fff;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #ff8c00;
  margin: 10px auto 0;
  border-radius: 2px;
}






/* Training Section */

/* Training Section */

/* 整体容器 */
.training-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* 单个卡片（统一外框线） */
.training-item {
  width: calc(25% - 15px);
  background-color: #FFFFFF;
  border: 1px solid #e5e5e5; /* ⭐ 统一浅灰框线 */
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 悬浮效果 */
.training-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* 图片区域 */
.training-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* 文字区域（顶部虚线分隔） */
.training-content {
  padding: 20px;
  text-align: left;
  border-top: 1px dashed #e5e5e5; /* ⭐ 图片与文字之间虚线 */
}

/* 标题 */
.training-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

/* 正文 */
.training-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 900px) {
  .training-item {
    width: calc(50% - 10px);
  }
}

@media (max-width: 500px) {
  .training-item {
    width: 100%;
  }
}







/* Alternating layout for mobile too */
.training-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (min-width: 768px) {
  .training-item {
    margin-bottom: 30px;
  }

  .training-item img {
    min-height: 200px;
  }

  .training-item .training-content {
    padding: 20px;
  }

  /* Alternating layout */
  .training-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .training-item:nth-child(even) .training-content {
    margin-right: 15px;
  }

  .training-item:nth-child(odd) .training-content {
    margin-left: 15px;
  }
}

/* Video Section */
.video-section {
  background-color: #f0f0f0;
  padding: 0; /* No padding for full-width video */
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full Width Image Sections */
.full-width-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.instructor-section-header {
  background-color: #f1abce;
  color: #fff;
  padding: 8px 20px; /* 减小内边距 */
  border-radius: 25px;
  font-size: 16px; /* 减小字体大小 */
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px; /* 减小下边距 */
  box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}

/* Small Class Section - Remove button styles */
.small-class-section .class-details {
  text-align: center;
  margin-bottom: 20px;
}

.small-class-section .class-details p {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
}

.small-class-section .class-details span {
  font-weight: 700;
  color: #ff8c00;
}




/* ===== 可调参数（你只改这里🔥）===== */
:root {
  --side-gap: 15px;      /* 👈 左右留白 */
  --block-width: 400px;  /* 👈 图片=文字宽度 */
  --gap: 30px;           /* 👈 中间间距 */
}


/* ===== 外层：强制左右留白 + 居中 ===== */
#instructor {
  width: 100%;
  padding: 0 var(--side-gap);
  box-sizing: border-box;
}


/* ===== 卡片：关键布局 ===== */
.instructor-card {
  display: flex;
  justify-content: center; /* 👈 核心：整体居中 */
  align-items: flex-start;

  gap: var(--gap);
  padding: 20px 0;

  border-bottom: 1px dashed #eee;
}

.instructor-card:last-child {
  border-bottom: none;
}


/* ===== 图片 ===== */
.instructor-card img {
  width: var(--block-width);
  height: calc(var(--block-width) * 1.35);
  object-fit: cover;

  border-radius: 6px;
  flex-shrink: 0;
}


/* ===== 文字（和图片等宽🔥）===== */
.instructor-info {
  width: var(--block-width);
  flex-shrink: 0;
}


/* ===== 标题 ===== */
.instructor-info h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #333;
}


/* ===== 内容 ===== */
.instructor-info p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}


/* ===== 移动端 ===== */
@media (max-width: 768px) {

  :root {
    --block-width: 140px;
    --gap: 12px;
  }

  .instructor-card {
    justify-content: flex-start;
  }

  .instructor-info {
    width: auto;
    flex: 1;
  }

  .instructor-info h3 {
    font-size: 16px;
  }

  .instructor-info p {
    font-size: 12px;
  }
}





/* Why Us Section */
.why-us-section .why-us-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  text-align: center;
  margin-top: 20px;
}

/* Benefits Section */
.benefits-section .benefits-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.benefits-section .hotline {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.benefits-section .hotline span {
  color: #28a745; /* Green for phone number */
}

/* Contact Section */
.contact-section {
  text-align: left;
  font-size: 16px;
  color: #333;
  padding-bottom: 80px; /* Space for fixed footer */
}

.contact-section p {
  margin-bottom: 5px;
}

/* Fixed Bottom Navigation */
.fixed-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 1000;
}

.fixed-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #666;
  gap: 3px;
  flex: 1;
  text-align: center;
}

.fixed-bottom-nav .nav-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.fixed-bottom-nav .nav-item:nth-child(3) img {
  /* Douyin icon is orange */
  filter: hue-rotate(200deg) saturate(200%) brightness(120%); /* Adjust to get orange */
}

.fixed-bottom-nav .nav-item svg {
  width: 24px;
  height: 24px;
  stroke: #666; /* Default icon color */
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Specific color for Douyin-like icon (PlayCircle) */
.fixed-bottom-nav .nav-item:nth-child(3) svg {
  stroke: #ff8c00; /* Orange for Douyin-like icon */
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 90px; /* Above the fixed bottom nav */
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 990;
}

.floating-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.floating-btn img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.floating-btn svg {
  width: 30px;
  height: 30px;
  stroke: #333; /* Default color for floating icons */
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wechat-btn img {
  filter: hue-rotate(100deg) saturate(200%); /* Green for WeChat */
}

.wechat-btn svg {
  stroke: #28a745; /* Green for WeChat icon */
}

/* Media Queries for larger screens (e.g., tablets) */
@media (min-width: 768px) {
  .header-slogan {
    font-size: 14px;
    align: left;
  }

  .hamburger-menu {
    display: none; /* Hide hamburger on larger screens */
  }

  .mobile-nav {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    padding-top: 0;
    transition: none;
    display: block; /* Always show nav on larger screens */
  }

  .mobile-nav ul {
    display: flex;
    gap: 20px;
  }

  .mobile-nav li {
    border-bottom: none;
    padding: 0;
  }

  .mobile-nav a {
    font-size: 14px;
    font-weight: 400;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-image {
    width: 40%;
    max-width: 400px;
    right: 0;
  }

  .hero-content {
    max-width: 60%;
    padding-left: 50px;
  }

  .hero-title {
    font-size: 40px;
  }

  .carousel-container {
    max-height: 60vh; /* 桌面端可以稍微高一些 */
  }

  .training-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .training-item {
    flex: 0 0 45%; /* Two items per row */
    max-width: 45%;
  }

  .instructor-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
  }

  .instructor-card img {
    width: 200px;
    height: 200px;
  }










  .why-us-section .full-width-image {
    height: 400px;
  }

  .fixed-bottom-nav {
    display: none; /* Hide fixed bottom nav on larger screens if not needed */
  }

  .floating-buttons {
    bottom: 20px; /* Adjust position */
    right: 20px;
  }
}




.hero-carousel .carousel-container {
  display: flex;
  transition: transform 0.5s ease;
  /* 去除容器边框 */
  border-radius: 0;
  box-shadow: none;
}

.decorative-dots1 {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px; /* 增加间距 */
}

.decorative-dots1 .dot {
  width: 30px; /* 横杠宽度 */
  height: 3px; /* 横杠高度 */
  background-color: #1e90ff; /* 蓝色 */
  border-radius: 2px; /* 轻微圆角 */
  transition: all 0.3s ease;
}

.decorative-dots1 .dot.active {
  background-color: #1e90ff; /* 保持蓝色 */
  width: 40px; /* 激活状态稍长 */
}

/* 零基础瑜伽教培轮播样式 */
.beginner-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.beginner-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.beginner-slide {
  min-width: 100%;
  display: none;
}

.beginner-slide.active {
  display: block;
}

.beginner-dots {
  text-align: center;
  padding: 15px 0;
}

.beginner-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.beginner-dots .dot.active {
  background-color: #ff8c00;
}

/* 名师介绍轮播样式 */
.instructor-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.instructor-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.instructor-slide {
  min-width: 100%;
  display: none;
}

.instructor-slide.active {
  display: block;
}

.instructor-dots {
  text-align: center;
  padding: 15px 0;
}

.instructor-dots .dot {
  display: inline-block;
  width: 20px;
  height: 4px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 2px;
  cursor: pointer;
}

.instructor-dots .dot.active {
  background-color: #5295ec;
  width: 30px;
}

/* 响应式轮播高度控制 */
@media (max-width: 480px) {
  .carousel-container {
    min-height: 180px;
    max-height: 40vh; /* 小屏幕限制更严格 */
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .carousel-container {
    min-height: 220px;
    max-height: 45vh;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .carousel-container {
    min-height: 250px;
    max-height: 55vh;
  }
}

@media (min-width: 1025px) {
  .carousel-container {
    min-height: 300px;
    max-height: 65vh;
  }
}
