/* ============================================================
   念瑜伽普拉提 — 品牌官网样式
   设计基调：柔和大地色系 / 大量留白 / 禅意排版
   移动端优先（375px → 768px → 1024px+）
   ============================================================ */

/* === CSS 变量（设计令牌） === */
:root {
  --color-bg:         #FAF8F5;   /* 暖白底色 */
  --color-bg-alt:     #F0EDE8;   /* 浅米色背景 */
  --color-bg-dark:    #3A3A3A;   /* 深色背景（页脚） */
  --color-text:       #3D3D3D;   /* 主文字色 */
  --color-text-light: #6B6B6B;   /* 辅助文字色 */
  --color-text-on-dark: #E8E4DD; /* 深色底上的文字 */
  --color-primary:    #8B9D83;   /* 鼠尾草绿 — 主色调 */
  --color-primary-dark: #6B7D66; /* 深绿 — hover */
  --color-accent:     #C9A96E;   /* 暖金色 — 点缀 */
  --color-accent-light: #E8D5B0; /* 浅金 — 柔和点缀 */
  --color-border:     #E0DCD5;   /* 边框色 */
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-heading: "PingFang SC", "Microsoft YaHei", "Noto Serif SC", serif;
  --container-max: 1200px;
  --header-height: 64px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
strong { font-weight: 600; }
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* === 标题系统 === */
.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 48px;
}

/* === 按钮 === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   导航栏
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.header--scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.header__logo {
  font-family: var(--font-heading);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.header__logo-cn {
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--color-text);
}
.header__logo-en {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--color-text-light);
  text-transform: uppercase;
}

/* 桌面导航 */
.nav__list { display: flex; gap: 32px; }
.nav__link {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--color-text-light);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--color-primary); }
.nav__link--active { color: var(--color-primary); }

/* 移动端菜单按钮 */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}
.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  border-radius: 2px;
}
.header__menu-btn--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__menu-btn--open span:nth-child(2) { opacity: 0; }
.header__menu-btn--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   Hero 首屏
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #E8E2D8 0%, #F2EFE9 30%, #FAF8F5 60%, #EFF0EC 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139, 157, 131, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 169, 110, 0.06) 0%, transparent 50%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}
.hero__since {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--color-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero__tagline {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 12px;
  color: var(--color-text);
  margin-bottom: 8px;
}
.hero__subtitle {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--color-text-light);
  margin-bottom: 40px;
}
.hero__quote {
  font-size: 15px;
  color: var(--color-text-light);
  font-style: italic;
  letter-spacing: 1px;
  line-height: 2;
}
.hero__author {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 48px;
  letter-spacing: 2px;
}
.hero__cta {
  font-size: 14px;
  letter-spacing: 3px;
}

/* 滚动指示器 */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--color-text-light);
  opacity: 0.3;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(1.4); }
}

/* ============================================================
   区块通用间距
   ============================================================ */
.about, .intro, .philosophy, .courses, .team, .environment, .faq, .contact {
  padding: 80px 0;
}

/* ============================================================
   何为「念」
   ============================================================ */
.about__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.about__text {
  max-width: 600px;
}
.about__text .section-title { text-align: left; }
.about__lead {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.about__text p {
  color: var(--color-text-light);
  line-height: 2;
  letter-spacing: 0.5px;
}
.about__image {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2/3;
}

/* ============================================================
   品牌简介
   ============================================================ */
.intro { background: var(--color-bg-alt); }
.intro__content {
  max-width: 720px;
  margin: 0 auto;
}
.intro__content p {
  color: var(--color-text-light);
  line-height: 2.2;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.intro__content p:last-child { margin-bottom: 0; }

/* ============================================================
   教学理念
   ============================================================ */
.philosophy__quote {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  border: none;
  position: relative;
  padding: 40px 20px;
}
.philosophy__quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--color-accent-light);
  line-height: 1;
  opacity: 0.5;
}
.philosophy__quote p {
  font-size: 18px;
  line-height: 2.2;
  letter-spacing: 2px;
  color: var(--color-text);
}
.philosophy__quote p + p { margin-top: 12px; }
.philosophy__values {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.value-card {
  text-align: center;
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 140px;
  flex: 1;
  max-width: 200px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-card__icon { font-size: 30px; display: block; margin-bottom: 12px; color: var(--color-primary); }
.value-card h3 { font-size: 15px; letter-spacing: 2px; font-weight: 500; }

/* ============================================================
   王牌课程
   ============================================================ */
.courses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--color-primary);
}
.course-card__num {
  font-family: Georgia, serif;
  font-size: 48px;
  color: var(--color-accent-light);
  opacity: 0.6;
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}
.course-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.course-card__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  padding: 2px 14px;
  margin-bottom: 16px;
}
.course-card__desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* ============================================================
   师资团队
   ============================================================ */
.team { background: var(--color-bg-alt); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.team-card {
  text-align: center;
}
.team-card__avatar {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.team-card:hover .team-card__avatar img { transform: scale(1.05); }
.team-card__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

/* ============================================================
   场馆环境
   ============================================================ */
.environment__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.env-photo {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.env-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.env-photo:hover .env-photo__img { transform: scale(1.08); }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox--open { opacity: 1; pointer-events: auto; }
.lightbox__content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 40px;
  color: #fff;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: #fff;
  opacity: 0.6;
  padding: 12px;
  transition: opacity var(--transition);
}
.lightbox__prev:hover, .lightbox__next:hover { opacity: 1; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ============================================================
   常见问题（FAQ）
   ============================================================ */
.faq { background: var(--color-bg-alt); }
.faq__list {
  max-width: 720px;
  margin: 0 auto;
}
.faq__item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.faq__item:hover {
  box-shadow: var(--shadow-md);
}
.faq__question {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}
.faq__question::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.faq__answer {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 2;
  letter-spacing: 0.5px;
}
.faq__answer a {
  color: var(--color-primary);
  transition: color var(--transition);
}
.faq__answer a:hover { color: var(--color-primary-dark); }

/* ============================================================
   联系我们
   ============================================================ */
.contact__grid {
  max-width: 640px;
  margin: 0 auto;
}
.contact__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact__icon { font-size: 22px; flex-shrink: 0; margin-top: 3px; color: var(--color-primary); }
.contact__item h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.contact__item p {
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}
/* 操作按钮组（复制 / 地图） */
.contact__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact__action-btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 3px 12px;
  transition: all var(--transition);
  cursor: pointer;
  line-height: 1.6;
  text-decoration: none;
}
.contact__action-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.contact__action-btn--copied {
  color: #fff !important;
  background: var(--color-primary);
  border-color: var(--color-primary);
  pointer-events: none;
}
.contact__cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact__cta p {
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 48px 0 32px;
  font-size: 13px;
  letter-spacing: 1px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer__brand h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.footer__brand p { font-size: 11px; letter-spacing: 3px; opacity: 0.5; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { opacity: 0.6; transition: opacity var(--transition); }
.footer__links a:hover { opacity: 1; }
.footer__copy { opacity: 0.4; font-size: 11px; }
.footer__icp { opacity: 0.4; font-size: 11px; }
.footer__icp a { transition: opacity var(--transition); }
.footer__icp a:hover { opacity: 0.7; }

/* ============================================================
   滚动渐入动画
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in--visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式 — 平板（768px+）
   ============================================================ */
@media (min-width: 768px) {
  .hero__title { font-size: 56px; letter-spacing: 18px; }
  .hero__subtitle { font-size: 15px; letter-spacing: 10px; }
  .hero__quote { font-size: 17px; }
  .section-title { font-size: 34px; letter-spacing: 6px; }
  .about__grid {
    flex-direction: row;
    gap: 64px;
    align-items: center;
  }
  .about__text { flex: 1; }
  .about__image { flex: 0 0 320px; }
  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .team__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .environment__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .philosophy__quote { padding: 48px 32px; }
  .philosophy__quote p { font-size: 20px; }
  .about, .intro, .philosophy, .courses, .team, .environment, .contact {
    padding: 100px 0;
  }
}

/* ============================================================
   响应式 — 桌面（1024px+）
   ============================================================ */
@media (min-width: 1024px) {
  .hero__title { font-size: 64px; letter-spacing: 24px; }
  .hero__quote { font-size: 18px; }
  .container { padding: 0 40px; }
  .courses__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .about__lead { font-size: 20px; }
  .about__image { flex: 0 0 380px; }
  .about, .intro, .philosophy, .courses, .team, .environment, .contact {
    padding: 120px 0;
  }
}

/* ============================================================
   响应式 — 移动端（<768px）
   导航改为全屏覆盖菜单
   ============================================================ */
@media (max-width: 767px) {
  .header__menu-btn { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav--open { opacity: 1; pointer-events: auto; }
  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }
  .nav__link {
    font-size: 18px;
    letter-spacing: 4px;
  }
}
