/* ============================================================
   悠见瑜伽·普拉提 — 高端轻奢设计系统 v3
   配色: 高端黑 / 纯白 / 原木 + 香槟金 hairline
   字体: 微软雅黑
   原则: 移动端不纯堆叠，保持多列布局感
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --black:        #111111;
  --ink:          #1a1a1a;
  --ink-2:        #2b2b2b;
  --ink-3:        #444444;
  --white:        #ffffff;
  --warm-white:   #faf8f5;
  --cream:        #f6f2ec;
  --beige:        #ede7da;

  /* Accent */
  --wood:         #b08968;
  --wood-deep:    #8a6a47;
  --wood-light:   #ece3d6;
  --gold:         #c9a86c;
  --gold-light:   #e8d5a8;

  /* Neutral */
  --gray-100:     #f5f5f5;
  --gray-200:     #e6e0d8;
  --gray-300:     #ccc5ba;
  --gray-500:     #888880;
  --gray-700:     #5a5a5a;
  --gray-900:     #333333;

  /* Semantic */
  --success:      #4a7c59;
  --warning:      #c98b4a;
  --error:        #c44536;
  --info:         #5a7fa0;

  /* Typography */
  --sans:         "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", sans-serif;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;

  /* Spacing */
  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     40px;
  --space-2xl:    64px;
  --space-3xl:    96px;
  --space-4xl:    120px;

  /* Radius */
  --r-xs:         4px;
  --r-sm:         8px;
  --r-md:         12px;
  --r-lg:         20px;
  --r-xl:         28px;
  --r-full:       999px;

  /* Shadow */
  --sh-card:      0 2px 12px rgba(17,17,17,.06);
  --sh-card-hv:   0 8px 30px rgba(17,17,17,.12);
  --sh-float:     0 12px 40px rgba(17,17,17,.15);
  --sh-nav:       0 1px 3px rgba(17,17,17,.08);

  /* Transitions */
  --ease:         .3s cubic-bezier(.25,.46,.45,.94);
  --ease-out:     .25s ease-out;

  /* Layout */
  --container:    1200px;
  --nav-height:   84px;

  /* Hero banner (通栏) — 统一文字与蒙版配置，全站通栏一处管理 */
  --hero-fg:       #ffffff;                                  /* 通栏统一文字主色 */
  --hero-fg-soft:  rgba(255,255,255,.85);                    /* 通栏副标题/元信息 */
  --hero-overlay:  linear-gradient(180deg, rgba(26,26,26,.32) 0%, rgba(26,26,26,.60) 100%); /* 统一蒙版：保证白字在任意底图可读 */
  --hero-min-h:    360px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust:100%; font-size:16px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition:color var(--ease); }
ul, ol { list-style:none; }
button, input, select, textarea { font-family:inherit; font-size:inherit; }
button { cursor:pointer; border:none; background:none; }

/* ---------- Utility ---------- */
.container { max-width:var(--container); margin:0 auto; padding:0 var(--space-lg); }
.section { padding:var(--space-3xl) 0; }
/* about.html：认识悠见介绍 与 创始人一念起 之间收紧间距 */
.section.section--intro { padding-bottom: var(--space-xl); }
.section.section--founder { padding-top: var(--space-lg); padding-bottom:0; }
.section.section--founder .brand-gallery { margin-bottom:var(--space-2xl); }
.section.section--culture { padding-top: var(--space-2xl); }
.section--cream { background: var(--warm-white); }
.section--dark { background: var(--black); color: var(--white); }
.text-center { text-align:center; }
.sr-only { position:absolute; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-weight:var(--fw-bold); line-height:1.3; letter-spacing:.02em; }
h1 { font-size:clamp(32px, 4vw, 52px); }  /* Display Hero */
h2 { font-size:clamp(26px, 3vw, 38px); }  /* Section Title */
h3 { font-size:clamp(20px, 2vw, 26px); }  /* Card Title */
h4 { font-size:18px; }                    /* Subheading */
p { color:var(--gray-700); line-height:1.8; }

/* Prevent orphan words on single lines (CJK + Latin) */
h1, h2, h3, h4, .hero-text p, .nc-title, blockquote {
  text-wrap: balance;
}
p, li, .price-desc, .card-cat-card p, .testimonial-card blockquote {
  text-wrap: pretty;
}
.label-tag {
  display:inline-block; padding:4px 14px; border-radius:var(--r-full);
  font-size:13px; font-weight:var(--fw-medium);
  letter-spacing:1px; text-transform:uppercase;
}
.label-gold  { background:var(--gold-light); color:var(--wood-deep); }
.label-dark  { background:var(--ink); color:var(--white); }
.label-wood  { background:var(--wood-light); color:var(--wood-deep); }

/* Section heading pattern */
.section-head { text-align:center; margin-bottom:var(--space-2xl); }
.section-head h2 { margin-bottom:var(--space-sm); }
.section-head p { max-width:560px; margin:0 auto; color:var(--gray-700); }
.section-head .line {
  display:inline-block; width:48px; height:2px;
  background:var(--gold); margin-top:var(--space-md);
}
/* 安心之选版块：标题与三卡之间的间距收紧 */
.section--guarantee .section-head { margin-bottom:var(--space-xl); }

/* Page-hero subtitle: keep on a single line (GEO request) */
.page-hero-sub {
  max-width:none;
  margin:var(--space-md) auto 0;
  color:var(--gray-700);
  white-space:nowrap;
}

/* ---------- Navigation ---------- */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:var(--nav-height); background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(12px); -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:2px solid var(--gold);
  transition:border-color var(--ease), box-shadow var(--ease);
}
.navbar.scrolled { box-shadow:var(--sh-nav); }

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

/* Logo image (horizontal rectangle, trimmed) */
.nav-logo img { height:64px; width:auto; max-width:240px; object-fit:contain; }

/* Nav links — anti-wrap: never split item names across lines */
.nav-links {
  display:flex; align-items:center; gap:32px;
  flex-wrap:nowrap; white-space:nowrap;
}
.nav-links a {
  font-size:16px; font-weight:var(--fw-medium);
  color:var(--ink-2); position:relative;
  padding:4px 0;
  flex-shrink:0; white-space:nowrap; /* prevent individual items from wrapping */
}
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; left:0; width:0;
  height:2px; background:var(--gold);
  transition:width var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color:var(--black); }
.nav-links a:hover::after,
.nav-links a.active::after { width:100%; }

/* Nav CTA button */
.nav-cta {
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 22px; border-radius:var(--r-full);
  background:var(--black); color:var(--white);
  font-size:14px; font-weight:var(--fw-medium);
  transition:background var(--ease), transform var(--ease);
}
.nav-cta:hover { background:var(--wood); transform:translateY(-1px); }

/* Mobile hamburger */
.hamburger {
  display:none; flex-direction:column; gap:5px;
  cursor:pointer; padding:8px; z-index:1001;
}
.hamburger span {
  display:block; width:24px; height:2px;
  background:var(--ink); transition:all var(--ease);
  border-radius:2px;
}
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* Mobile nav: centered translucent floating panel (width = 2/3), no scroll lock */
.mobile-nav {
  display:none; position:fixed; z-index:999;
  top:50%; left:50%; right:auto;
  width:calc((100vw - 40px) * 2 / 3);
  transform:translate(-50%, -50%) scale(.98);
  background:rgba(255,255,255,.8);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  flex-direction:column; align-items:center; justify-content:center;
  gap:14px; padding:var(--space-xl) var(--space-md);
  border-radius:var(--r-lg);
  box-shadow:0 16px 40px rgba(0,0,0,.18);
  opacity:0; visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.mobile-nav.show { opacity:1; visibility:visible; transform:translate(-50%, -50%) scale(1); display:flex; }
/* Close X at top-right of the panel, made obvious */
.menu-close {
  position:absolute; top:8px; right:10px;
  width:34px; height:34px; line-height:32px; text-align:center;
  font-size:26px; font-weight:700; color:var(--ink-2);
  background:rgba(0,0,0,.06); border:none; border-radius:50%;
  cursor:pointer; padding:0; z-index:2;
}
.menu-close:hover { color:var(--gold); background:rgba(0,0,0,.10); }
.mobile-nav a {
  font-size:18px; font-weight:var(--fw-semibold); color:var(--ink-2);
  width:100%; text-align:center; padding:5px 0;
}
.mobile-nav a:hover { color:var(--gold); }

/* ---------- Hero Section (Light Premium) ---------- */
.hero {
  min-height:64vh; min-height:64svh;
  display:flex; align-items:center;
  padding-top:calc(var(--nav-height) + 40px);
  position:relative; overflow:hidden;
  background:var(--white);
  color:var(--ink);
}
.hero-inner {
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-2xl);
  align-items:center;
}
.hero-text h1 { margin-top:4px; margin-bottom:var(--space-sm); }
.hero-text h1 span { color:var(--gold); }
.hero-text > p {
  font-size:17px; margin-bottom:var(--space-md);
  max-width:480px; color:var(--gray-700);
}
.hero-text .hero-quote {
  display:block; font-size:15px; line-height:1.8;
  color:#8b6f47; margin-bottom:var(--space-lg);
  padding-left:14px; border-left:3px solid var(--gold);
  font-style:italic;
}
.hero-text .hero-sub {
  display:block; font-size:44px; line-height:1.3; font-weight:600;
  color:var(--gold); letter-spacing:1px; margin:0 0 var(--space-lg);
  white-space:nowrap;
}
.hero-buttons { display:flex; gap:var(--space-md); flex-wrap:wrap; }
.hero-image { position:relative; border-radius:var(--r-lg); overflow:hidden; }
.hero-image img {
  width:100%; height:auto; object-fit:cover;
  aspect-ratio:4/3; border-radius:var(--r-lg);
  box-shadow:var(--sh-float);
}

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 32px; border-radius:var(--r-full);
  font-size:15px; font-weight:var(--fw-semibold);
  transition:all var(--ease);
  border:2px solid transparent;
  cursor:pointer;
}
.btn-primary { background:var(--black); color:var(--white); }
.btn-primary:hover { background:var(--wood); border-color:var(--wood); transform:translateY(-2px); }
.btn-secondary {
  background:transparent; color:var(--ink-2);
  border-color:var(--ink-2);
}
.btn-secondary:hover { background:var(--ink-2); color:var(--white); }
.btn-gold { background:var(--gold); color:var(--white); }
.btn-gold:hover { background:var(--wood-deep); transform:translateY(-2px); }
.btn-outline-gold {
  background:transparent; color:var(--gold);
  border-color:var(--gold);
}
.btn-outline-gold:hover { background:var(--gold); color:var(--white); }
.btn-sm { padding:10px 22px; font-size:14px; }
.btn-block { width:100%; }

/* ---------- Philosophy Banner ---------- */
.philosophy-banner {
  padding:var(--space-2xl) 0; text-align:center;
  background:linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
  color:var(--ink);
  border-top:1px solid var(--gray-200);
  border-bottom:1px solid var(--gray-200);
  position:relative;
}
.philosophy-banner h2 { font-size:clamp(28px,3.5vw,44px); letter-spacing:4px; color:var(--ink); }
.philosophy-banner h2::after { content:''; display:block; width:60px; height:3px; margin:18px auto 0; background:var(--gold); border-radius:2px; }
.philosophy-banner p { margin-top:var(--space-md); font-size:17px; color:var(--gray-700); }

/* ---------- Course Category Grid ----------
   Desktop: 3 columns | Tablet: 2 columns | Mobile: 2 columns (NOT stacked)
*/
.course-grid {
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:var(--space-lg);
}
.course-cat-card {
  background:var(--white); border-radius:var(--r-lg);
  overflow:hidden; box-shadow:var(--sh-card);
  transition:transform var(--ease), box-shadow var(--ease);
  border:1px solid var(--gray-200);
}
.course-cat-card:hover {
  transform:translateY(-6px); box-shadow:var(--sh-card-hv);
  border-color:var(--gold-light);
}
.course-cat-card .card-img {
  height:200px; overflow:hidden; position:relative;
}
.course-cat-card .card-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease;
}
.course-cat-card:hover .card-img img { transform:scale(1.05); }
.course-cat-card .card-body { padding:var(--space-lg); }
.course-cat-card .card-head { display:flex; align-items:center; gap:10px; margin-bottom:var(--space-sm); }
.course-cat-card .card-icon {
  width:24px; height:24px; flex-shrink:0;
  color:var(--wood);
}
.course-cat-card h3 { font-size:19px; margin-bottom:0; }
.course-cat-card p { font-size:14px; color:var(--gray-700); margin-bottom:var(--space-md); }
.course-cat-card .card-link {
  font-size:14px; font-weight:var(--fw-semibold); color:var(--wood);
  display:flex; justify-content:flex-end; width:100%; align-items:center; gap:4px;
}
.course-cat-card .card-link::after { content:'→'; transition:margin-left var(--ease); }
.course-cat-card .card-link:hover::after { margin-left:6px; }
.course-cat-card .card-feats { list-style:none; margin:0 0 var(--space-md); padding:0; display:flex; flex-direction:column; gap:7px; }
.course-cat-card .card-feats li { position:relative; padding-left:18px; font-size:13px; line-height:1.5; color:var(--gray-700); }
.course-cat-card .card-feats li::before { content:''; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:50%; background:var(--wood); }
.course-cat-card.feature .card-feats li { color:rgba(255,255,255,.78); }
.course-cat-card.feature .card-feats li::before { background:var(--gold); }

/* Feature card (dark variant) */
.course-cat-card.feature {
  background:var(--ink); color:var(--white);
  border:none; grid-column:span 1;
}
.course-cat-card.feature p { color:rgba(255,255,255,.75); }
.course-cat-card.feature .card-link { color:var(--gold); }

/* ---------- Why Choose Us (Values) ----------
   Always multi-col, even on small screens
*/
.values-grid {
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:var(--space-xl);
  text-align:center;
}
.value-item { padding:var(--space-xl) var(--space-md); }
.value-icon {
  width:96px; height:96px; margin:0 auto var(--space-md);
  border-radius:50%;
  background:var(--cream); color:var(--wood);
  display:flex; align-items:center; justify-content:center;
}
.value-icon svg { width:44%; height:44%; }
.value-eyebrow { display:inline-block; font-size:13px; font-weight:var(--fw-semibold); letter-spacing:.04em; color:var(--gold); margin-bottom:var(--space-xs); }
.value-item h4 { font-size:20px; margin-bottom:var(--space-sm); }
.value-item p { font-size:16px; }

/* ---------- Gallery Masonry ---------- */
.gallery-grid {
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.gallery-grid .gallery-item {
  border-radius:var(--r-md); overflow:hidden;
  position:relative;
}
.gallery-grid .gallery-item:first-child { grid-row:span 2; }
.gallery-grid .gallery-item img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease; min-height:220px;
}
.gallery-grid .gallery-item:hover img { transform:scale(1.04); }
.gallery-grid .gallery-item .overlay {
  position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.35), transparent);
  opacity:0; transition:opacity var(--ease);
  display:flex; align-items:flex-end; padding:var(--space-md);
}
.gallery-grid .gallery-item:hover .overlay { opacity:1; }
.gallery-grid .gallery-item .overlay span {
  color:#fff; font-size:14px; font-weight:var(--fw-medium);

}

/* 横排小图模式（首页场馆空间）：7 张等宽，点击弹出大图，无 hover 放大 */
.gallery-row {
  display:flex; flex-wrap:nowrap; gap:12px;
}
.gallery-row .gallery-item {
  flex:1 1 0;
  min-width:0;
  background:#f3efe9;
  cursor:pointer;
  transition:opacity .25s ease;
}
.gallery-row .gallery-item:first-child { grid-row:auto; }
.gallery-row .gallery-item img { min-height:0; height:220px; aspect-ratio:auto; object-fit:cover; }
.gallery-row .gallery-item:hover { opacity:.85; }

/* ---------- Instructor Cards ---------- */
/* ---------- Instructors (feature founder + duo) ---------- */
.team-feature {
  display:grid; grid-template-columns:300px 1fr; gap:var(--space-2xl);
  align-items:center;
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--r-lg); padding:var(--space-xl);
  box-shadow:var(--sh-card); margin-bottom:var(--space-2xl);
}
.team-feature .tf-img {
  width:100%; aspect-ratio:4/5; border-radius:var(--r-md);
  overflow:hidden; box-shadow:var(--sh-card);
}
.team-feature .tf-img img { width:100%; height:100%; object-fit:cover; display:block; }
.team-feature .tf-body .title { font-size:13px; color:var(--gray-700); margin:0 0 var(--space-sm); }
.team-feature .tf-body .bio { font-size:14px; color:var(--gray-700); }
.team-feature .instructor-certs { justify-content:flex-start; }

.team-duo { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-xl); }
.team-subhead { margin-top:var(--space-3xl); }
.team-member {
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-card);
  display:flex; flex-direction:column;
}
.team-member .tm-img {
  width:100%; aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#f3ece1,#e3d8c7); color:var(--wood);
  font-size:56px; font-weight:700;
}
.team-member .tm-img img { width:100%; height:100%; object-fit:cover; }
.team-member .tm-body { padding:var(--space-lg); }
.team-member .tm-body h4 { margin-bottom:4px; }
.team-member .tm-body .title { font-size:13px; color:var(--gray-700); margin-bottom:var(--space-sm); }
.team-member .tm-body .bio { font-size:14px; color:var(--gray-700); }
.team-member .instructor-certs { justify-content:flex-start; }
.instructor-certs {
  display:flex; flex-wrap:wrap; gap:6px; justify-content:center;
  margin-top:var(--space-sm);
}
.cert-tag {
  font-size:11px; padding:3px 10px; border-radius:var(--r-full);
  background:var(--cream); color:var(--ink-3);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display:grid; grid-template-columns:repeat(4, 1fr);
  gap:var(--space-lg);
}
/* 学员案例页：一行 3 个，分两行（首页保持 4 列不变） */
.testimonial-grid--3col {
  grid-template-columns:repeat(3, 1fr);
}
.testimonial-card {
  background:var(--warm-white); border-radius:var(--r-lg);
  padding:var(--space-xl);
  border:1px solid var(--gray-200);
  position:relative;
}
.testimonial-card::before {
  content:'"'; font-size:48px; color:var(--gold-light);
  position:absolute; top:12px; left:20px; line-height:1;
  font-family:Georgia, serif;
}
.testimonial-card blockquote {
  font-style:italic; font-size:15px;
  margin-bottom:var(--space-md); padding-top:30px;
}
.testimonial-author { display:flex; align-items:center; gap:var(--space-md); }
.testimonial-author .ta-avatar {
  width:44px; height:44px; border-radius:50%; object-fit:cover;
  background:var(--gray-200);
}
.testimonial-author .ta-name { font-weight:var(--fw-semibold); font-size:14px; }
.testimonial-author .ta-info { font-size:12px; color:var(--gray-500); }

/* ---------- Student Photo Wall ----------
   24 images in a dense masonry-like grid, small thumbnails
*/
.student-photo-wall {
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:8px;
  justify-content:center;
}
.student-photo-wall .sp-item {
  border-radius:var(--r-md);
  overflow:hidden;
  aspect-ratio:3/4;
  position:relative;
}
.student-photo-wall .sp-item img {
  width:100%; height:100%;
  object-fit:cover;
  border-radius:var(--r-md);
  transition:transform var(--ease), box-shadow var(--ease);
}
.student-photo-wall .sp-item:hover img {
  transform:scale(1.05);
  box-shadow:0 4px 16px rgba(0,0,0,.12);
}

/* ---------- News / Articles Grid ----------
   Desktop: 3 col | Tablet/Mobile: 2 col (not 1)
*/
.news-grid {
  display:grid; grid-template-columns:repeat(4, 1fr);
  gap:var(--space-lg);
}
.news-card {
  background:var(--white); border-radius:var(--r-lg);
  overflow:hidden; box-shadow:var(--sh-card);
  transition:transform var(--ease), box-shadow var(--ease);
  border:1px solid var(--gray-200);
}
.news-card:hover { transform:translateY(-4px); box-shadow:var(--sh-card-hv); }
.news-card .nc-img { height:190px; overflow:hidden; }
.news-card .nc-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease;
}
.news-card:hover .nc-img img { transform:scale(1.04); }
.news-card .nc-body { padding:var(--space-lg); }
.news-card .nc-meta {
  display:flex; align-items:center; gap:var(--space-md);
  font-size:12px; color:var(--gray-500); margin-bottom:var(--space-sm);
}
.news-card .nc-category {
  background:var(--cream); color:var(--wood-deep);
  padding:2px 10px; border-radius:var(--r-full);
  font-weight:var(--fw-medium);
}
.news-card .nc-title {
  font-size:17px; font-weight:var(--fw-semibold);
  margin-bottom:var(--space-sm); line-height:1.5;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.news-card .nc-excerpt {
  font-size:14px; color:var(--gray-700);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  margin-bottom:var(--space-md);
}
.news-card .nc-link {
  font-size:14px; font-weight:var(--fw-semibold); color:var(--wood);
  display:inline-flex; align-items:center; gap:4px;
}
.news-card .nc-link:hover { color:var(--gold); }

/* News pager (每页 6 条：第一页 / 上一页 / 页码 / 下一页 / 最后一页) */
.news-pager-wrap {
  margin-top:var(--space-2xl);
  display:flex; flex-direction:column; align-items:center; gap:var(--space-md);
}
.news-pager-info {
  font-size:13px; color:var(--gray-500); margin:0;
}
.news-pager {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:8px;
}
.np-btn {
  min-width:44px; height:38px; padding:0 14px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:14px; line-height:1;
  color:var(--ink); background:var(--white);
  border:1px solid var(--gray-200); border-radius:var(--r-sm);
  cursor:pointer; user-select:none;
  transition:border-color var(--ease), color var(--ease), background var(--ease);
}
.np-btn:hover:not(:disabled):not(.active) {
  border-color:var(--gold); color:var(--gold);
}
.np-btn.active {
  background:var(--gold); border-color:var(--gold); color:var(--white);
  cursor:default; font-weight:var(--fw-semibold);
}
.np-btn:disabled {
  opacity:.42; cursor:not-allowed;
}
@media (max-width:480px) {
  .np-btn { height:36px; padding:0 11px; font-size:13px; min-width:40px; }
}

/* News category filter (single row, with reverse-on-active icons) */
.news-filter { display:flex; gap:10px; flex-wrap:nowrap; }
.nf-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; }
.nf-ico {
  flex:none; width:18px; height:18px; border-radius:50%;
  border:1.5px solid currentColor;
  display:inline-flex; align-items:center; justify-content:center;
  transition:background var(--ease);
}
.nf-ico svg { width:11px; height:11px; display:block; }
.nf-btn.active .nf-ico { background:rgba(255,255,255,.28); }   /* icon badge reverses when its column is active */

/* News detail page */
.news-detail-meta {
  display:flex; align-items:center; gap:var(--space-md);
  font-size:14px; color:var(--gray-500);
  justify-content:center; margin-bottom:var(--space-2xl);
}
.news-detail-body { max-width:720px; margin:0 auto; padding-bottom:var(--space-3xl); }
.news-detail-body p { margin-bottom:var(--space-lg); font-size:16px; }
.news-detail-body h3 { margin:var(--space-xl) 0 var(--space-md); }

/* News detail title: smaller + single line (scoped to detail page only) */
#articleTitle { font-size:clamp(20px, 3.4vw, 30px); line-height:1.3; white-space:nowrap; }
.news-related { background:var(--warm-white); padding:var(--space-3xl) 0; }

/* ---------- Pricing Table ---------- */
.pricing-grid {
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:var(--space-lg);
  align-items:start;
}
/* Two flagship product cards (高定私教 + 精品小班) displayed side by side */
.pricing-duo {
  display:grid; grid-template-columns:1fr 1fr;
  gap:var(--space-lg); align-items:start;
}
.price-trial { max-width:560px; margin:0 auto var(--space-lg); }
.trial-split { display:grid; grid-template-columns:minmax(300px,380px) 1fr; gap:var(--space-2xl); align-items:stretch; margin-bottom:var(--space-2xl); }
.trial-split .price-trial { max-width:100%; margin:0; height:100%; }
.trial-values { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-md); }
.trial-value { background:var(--warm-white); border:1px solid var(--gray-200); border-radius:var(--r-md); padding:var(--space-lg); display:flex; flex-direction:column; }
.trial-value h4 { font-size:18px; margin:0 0 6px; color:var(--ink); }
.trial-value p { font-size:15px; line-height:1.8; color:var(--gray-700); margin:0; }
.tv-icon { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(201,168,108,.12); color:var(--gold); margin-bottom:var(--space-sm); }
.tv-icon svg { width:22px; height:22px; }
.price-card {
  position:relative;
  background:var(--white); border-radius:var(--r-lg);
  border:2px solid var(--gray-200);
  padding:var(--space-2xl) var(--space-xl);
  text-align:center;
  transition:border-color var(--ease), transform var(--ease);
  position:relative;
}
.price-card.popular {
  border-color:var(--gold); transform:scale(1.03);
  box-shadow:var(--sh-card-hv);
}
.price-card .popular-badge {
  position:absolute; top:-24px; left:50%; transform:translateX(-50%);
  background:var(--gold); color:#fff; padding:8px 36px;
  border-radius:var(--r-full); font-size:24px; font-weight:var(--fw-semibold);
}
.price-card .price-value { font-size:42px; font-weight:var(--fw-bold); color:var(--ink); }
.price-card .price-unit { font-size:16px; color:var(--gray-500); }
.price-card .price-name { font-size:18px; font-weight:var(--fw-semibold); margin:var(--space-sm) 0; }
.price-card .price-desc { font-size:14px; color:var(--gray-700); margin-bottom:var(--space-lg); }
.price-card ul { text-align:left; margin-bottom:var(--space-xl); }
.price-card li {
  padding:8px 0; font-size:14px; color:var(--gray-700);
  border-bottom:1px solid var(--gray-100);
  display:flex; align-items:center; gap:8px;
}
.price-card li::before { content:'✓'; color:var(--success); font-weight:bold; }

/* Mini price table inside cards */
.mini-price-table {
  width:100%; border-collapse:collapse; font-size:13px; margin-top:var(--space-md);
}
.mini-price-table th {
  padding:8px 6px; text-align:center; background:var(--ink); color:#fff; font-weight:500;
}
.mini-price-table td {
  padding:7px 6px; text-align:center; border-bottom:1px solid var(--gray-200); color:var(--gray-700);
}
.mini-price-table tbody tr:hover { background:var(--cream); }

/* ---------- Booking Form (Rich) ---------- */
.booking-section { background:var(--warm-white); }
.booking-split { display:grid; grid-template-columns:1.4fr 1fr; gap:var(--space-2xl); align-items:start; }
.booking-form-wrap {
  max-width:680px; margin:0 auto;
  background:var(--white); border-radius:var(--r-lg);
  padding:var(--space-2xl);
  box-shadow:var(--sh-card);
  border:1px solid var(--gray-200);
}
.form-group {
  display:grid;
  grid-template-columns:84px 1fr;
  align-items:start;
  column-gap:14px;
  margin-bottom:var(--space-lg);
}
.form-group > label {
  font-weight:var(--fw-semibold);
  font-size:14px; color:var(--ink-2);
  margin-bottom:0; padding-top:12px; line-height:1.5;
}
/* Keep hint & error-msg under input (column 2), not under label */
.form-group > .date-hint,
.form-group > .form-error-msg { grid-column:2; }
.form-group label .required { color:var(--error); margin-left:2px; }
.form-control {
  width:100%; padding:12px 16px; border:1.5px solid var(--gray-200);
  border-radius:var(--r-sm); font-size:15px;
  color:var(--ink); background:var(--white);
  transition:border-color var(--ease), box-shadow var(--ease);
  outline:none;
}
.form-control:focus {
  border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-light);
}
.form-control::placeholder { color:var(--gray-500); }
.form-control.error { border-color:var(--error); }
.form-error-msg {
  font-size:12px; color:var(--error); margin-top:4px; display:none;
}
.form-group.has-error .form-error-msg { display:block; }
.form-group.has-error .form-control { border-color:var(--error); }

/* Date & Time row */
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-md); }

select.form-control { appearance:auto; cursor:pointer; }

textarea.form-control { resize:vertical; min-height:100px; }

/* Form hint text below date field */
.date-hint {
  font-size:12px; color:var(--gray-500); margin-top:4px;
}

/* Booking success state */
.booking-success {
  display:none; text-align:center; padding:var(--space-2xl);
}
.booking-success.show { display:block; }
.booking-success .check-icon {
  width:72px; height:72px; margin:0 auto var(--space-lg);
  background:var(--success); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:white; font-size:32px;
}
.booking-success h3 { margin-bottom:var(--space-sm); }
.booking-success p { color:var(--gray-700); }

/* ---------- Contact Page ---------- */
.contact-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:var(--space-2xl);
}
.contact-info-list { margin-top:var(--space-xl); }
.contact-info-item {
  display:flex; gap:var(--space-md); align-items:flex-start;
  margin-bottom:var(--space-lg);
}
.contact-info-item .cii-icon {
  width:48px; height:48px; flex-shrink:0;
  border-radius:var(--r-sm);
  background:var(--cream); color:var(--wood);
  display:flex; align-items:center; justify-content:center;
}
.contact-info-item h4 { font-size:16px; margin-bottom:2px; }
.contact-info-item p { font-size:14px; }
.contact-map { border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-card); }
.contact-map img { width:100%; height:auto; }
.map-nav-btns { display:flex; gap:var(--space-sm); margin-top:var(--space-md); flex-wrap:wrap; }
.map-nav-btns .btn { font-size:13px; padding:8px 18px; }

/* ============ Unified Page Hero (通栏) ============
   统一配置见 :root 的 --hero-fg / --hero-fg-soft / --hero-overlay / --hero-min-h。
   - 通栏文字色统一为白，靠统一蒙版在任意底图上保证可读性；
   - 若某栏目底图偏亮需改用深色文字，覆写该 data-banner 的
     --hero-fg / --hero-fg-soft / --hero-overlay 即可，其余通栏不受影响。
   按栏目动态加载：data-banner 属性决定 --hero-image（图片路径集中在此维护）。 */
.page-hero{
  position:relative; width:100%;
  min-height:var(--hero-min-h);
  padding:calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-2xl);
  display:flex; align-items:center; justify-content:center;
  background-color:var(--ink);                 /* 图缺失兜底底色 */
  background-image:var(--hero-image);
  background-size:cover; background-position:center; background-repeat:no-repeat;
  color:var(--hero-fg);
  overflow:hidden;
}
.page-hero::before{                            /* 统一蒙版，保证白字可读 */
  content:""; position:absolute; inset:0;
  background:var(--hero-overlay); pointer-events:none;
}
.page-hero > .container{ position:relative; z-index:1; }
.page-hero h1{
  color:var(--hero-fg);
  max-width:900px; margin-left:auto; margin-right:auto;
}
.page-hero .page-hero-sub{ color:var(--hero-fg-soft); }
.page-hero .news-detail-meta{ color:var(--hero-fg-soft); }
.page-hero .label-gold{                       /* 通栏上的小标签：透白描边，统一对比 */
  background:rgba(255,255,255,.14); color:#fff;
  border:1px solid rgba(255,255,255,.35);
}
/* —— 按栏目映射通栏底图（动态加载） —— */
/* 通栏底图：9 张 AI 生成的简约意境背景，每栏目独立一张，统一视觉风格 */
.page-hero[data-banner="about"]      { --hero-image:url(../assets/images/hero-1.png); }  /* 拱窗柔光 */
.page-hero[data-banner="contact"]    { --hero-image:url(../assets/images/hero-4.png); }  /* 暖色拱门光 */
.page-hero[data-banner="booking"]    { --hero-image:url(../assets/images/hero-5.png); }  /* 开阔小径地平线 */
.page-hero[data-banner="courses"]    { --hero-image:url(../assets/images/hero-2.png); }  /* 流动人形/漂浮垫 */
.page-hero[data-banner="instructors"]{ --hero-image:url(../assets/images/hero-6.png); }  /* 双人和谐人形 */
.page-hero[data-banner="students"]   { --hero-image:url(../assets/images/hero-7.png); }  /* 静卧人形 */
.page-hero[data-banner="pricing"]    { --hero-image:url(../assets/images/hero-3.png); }  /* 卵石与叶 */
.page-hero[data-banner="news"]       { --hero-image:url(../assets/images/hero-8.png); }  /* 纸墨涟漪 */
.page-hero[data-banner="faq"]        { --hero-image:url(../assets/images/hero-9.png); }  /* 流云 */
.about-story { display:block; }
.story-body { max-width:880px; margin:0 auto; }
.story-body::after { content:""; display:block; clear:both; }
.story-float {
  float:left;
  width:42%;
  max-width:360px;
  margin:6px var(--space-lg) var(--space-md) 0;
  height:auto;
  border-radius:var(--r-lg);
  box-shadow:var(--sh-card);
}
.story-body p {
  text-indent:2em;
  margin-bottom:var(--space-md);
  line-height:1.9;
  color:var(--ink);
  text-align:justify;
}
.story-body p:last-child { margin-bottom:0; }

/* ---------- Founder (yuplus-style feature) ---------- */
.founder-block {
  display:grid; grid-template-columns:320px 1fr; gap:var(--space-2xl);
  align-items:stretch;
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--r-lg); padding:var(--space-xl);
  box-shadow:var(--sh-card);
}
.founder-img {
  width:100%; aspect-ratio:4/5; border-radius:var(--r-md);
  overflow:hidden; box-shadow:var(--sh-card);
}
.founder-img img { width:100%; height:100%; object-fit:cover; display:block; }
.founder-text { display:flex; flex-direction:column; justify-content:center; }
.founder-text h3 { font-size:30px; margin:var(--space-sm) 0 4px; letter-spacing:1px; }
.founder-text .founder-role { font-size:13px; color:var(--gray-700); margin:0 0 var(--space-md); }
.founder-quote {
  margin:0 0 var(--space-lg); padding:var(--space-md) 0 var(--space-md) var(--space-lg);
  border-left:3px solid var(--gold);
  font-size:22px; line-height:1.7; font-weight:600; color:var(--ink);
  letter-spacing:.5px;
}
.founder-bio { font-size:15px; line-height:2; color:var(--gray-700); margin:0 0 var(--space-lg); }
.founder-meta {
  display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-md);
  margin-top:var(--space-xl);
}
.founder-meta-item {
  padding:var(--space-md) var(--space-lg);
  background:var(--warm-white); border:1px solid var(--gray-200);
  border-radius:var(--r-md);
}
.founder-meta-item h5 { font-size:13px; color:var(--wood); margin-bottom:6px; letter-spacing:.5px; }
.founder-meta-item p { font-size:13px; color:var(--gray-700); line-height:1.7; margin:0; }

/* ---------- 品牌动作画廊（教练页主理人与教练之间）---------- */
/* 独立类名，避免与首页 masonry 画廊 .gallery-grid 互相覆盖 */
.brand-gallery {
  display:grid; grid-template-columns:repeat(8, 1fr);
  gap:var(--space-sm); margin:var(--space-2xl) 0;
}
.brand-gallery .gallery-item {
  background:var(--warm-white); border-radius:var(--r-lg);
  overflow:hidden; border:1px solid var(--gray-200);
  aspect-ratio:3/4; /* 竖版为主，横图自动居中留白 */
}
.brand-gallery .gallery-item img {
  width:100%; height:100%;
  object-fit:contain;   /* 保证人物肢体完整，不裁切 */
  object-position:center;
  display:block;
  transition:transform .35s ease, box-shadow .35s ease;
}
.brand-gallery .gallery-item:hover img { transform:scale(1.03); }
.brand-gallery .gallery-item:hover { box-shadow:0 6px 24px rgba(0,0,0,.08); }
/* 平板 / 手机：一行 4 张 */
@media (max-width:1023px) {
  .brand-gallery { grid-template-columns:repeat(4, 1fr); gap:var(--space-sm); }
}
@media (max-width:767px) {
  .brand-gallery { grid-template-columns:repeat(4, 1fr); gap:8px; }
}

.about-values { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-xl); }
.value-block { padding:var(--space-xl); background:var(--warm-white); border-radius:var(--r-lg); }
.value-block h4 { margin-bottom:var(--space-sm); color:var(--wood); display:flex; align-items:center; gap:10px; }
.vb-icon { width:22px; height:22px; flex:0 0 auto; display:inline-flex; }
.vb-icon svg { width:100%; height:100%; display:block; }

/* Brand manifesto grid (about page) — desktop 2-col, mobile rebalanced */
.manifesto-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-2xl);
  align-items:center; max-width:1000px; margin:0 auto;
}

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width:760px; margin:0 auto; }
.faq-item {
  border-bottom:1px solid var(--gray-200);
}
.faq-q {
  display:flex; align-items:center; gap:12px;
  padding:var(--space-lg) 0; cursor:pointer;
  font-weight:var(--fw-semibold); font-size:16px;
  transition:color var(--ease);
}
.faq-q::before {
  content:"Q"; flex:none; width:24px; height:24px; border-radius:50%;
  background:var(--gold-light); color:var(--wood-deep);
  font-size:13px; font-weight:var(--fw-bold);
  display:inline-flex; align-items:center; justify-content:center;
}
.faq-q:hover { color:var(--wood); }
.faq-q .faq-arrow {
  margin-left:auto; flex:none;
  transition:transform var(--ease);
  font-size:18px; color:var(--gray-500);
  transform:rotate(-90deg);   /* collapsed: arrow points right, toward the question */
}
.faq-item.open .faq-arrow { transform:rotate(0deg); }  /* open: arrow points down */
.faq-a {
  max-height:0; overflow:hidden; transition:max-height .3s ease, padding .3s ease;
  font-size:15px; color:var(--gray-700); line-height:1.8;
}
.faq-item.open .faq-a { max-height:300px; padding-bottom:var(--space-lg); }

/* FAQ intent-cluster sticky nav (topic clusters) */
.faq-cluster { scroll-margin-top: calc(var(--nav-height) + 64px); }
.faq-cluster-nav {
  position:sticky; top:var(--nav-height); z-index:90;
  background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(8px); -webkit-backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--gray-200);
  padding:var(--space-md) 0;
}
.faq-cluster-nav .container { display:flex; gap:10px; flex-wrap:wrap; }
.fcn-btn {
  display:inline-flex; align-items:center; padding:8px 18px;
  border-radius:var(--r-full); font-size:14px; font-weight:var(--fw-medium);
  background:var(--warm-white); color:var(--ink-2);
  border:1px solid var(--gray-200); transition:all var(--ease);
}
.fcn-btn:hover { color:var(--wood); border-color:var(--gold); }
.fcn-btn.active { background:var(--gold); color:#fff; border-color:var(--gold); }

/* Compact FAQ mini-module (courses / pricing pages) — answers always visible for GEO */
.faq-mini { max-width:820px; margin:0 auto; }
.faq-mini-item {
  padding:var(--space-lg) 0; border-bottom:1px solid var(--gray-200);
}
.faq-mini-item:last-child { border-bottom:none; }
.faq-mini-q {
  display:flex; align-items:flex-start; gap:10px;
  font-size:16px; font-weight:var(--fw-semibold); color:var(--ink);
  margin-bottom:var(--space-sm);
}
.faq-mini-q::before {
  content:"Q"; flex:none; width:24px; height:24px; border-radius:50%;
  background:var(--gold-light); color:var(--wood-deep);
  font-size:13px; font-weight:var(--fw-bold);
  display:inline-flex; align-items:center; justify-content:center; margin-top:2px;
}
.faq-mini-a { font-size:14px; color:var(--gray-700); line-height:1.85; padding-left:34px; }
.faq-mini-a a { color:var(--wood); font-weight:var(--fw-semibold); }

/* Topic-cluster anchor links (topic clusters) */
.topic-cluster { text-align:center; }
.tc-links { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:var(--space-lg); }
.tc-link {
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 20px; border-radius:var(--r-full);
  background:var(--warm-white); border:1px solid var(--gray-200);
  font-size:14px; font-weight:var(--fw-medium); color:var(--ink-2);
  transition:all var(--ease);
}
.tc-link:hover { color:var(--wood); border-color:var(--gold); transform:translateY(-2px); }
.tc-link .tc-arrow { color:var(--gold); }

/* ---------- CTA Band (Dark) ---------- */
.cta-band {
  background:var(--ink); color:var(--white);
  padding:var(--space-3xl) 0;
  text-align:center; position:relative; overflow:hidden;
}
.cta-band::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:3px; background:linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-band h2 { margin-bottom:var(--space-md); }
.cta-band p { color:rgba(255,255,255,.7); margin-bottom:var(--space-xl); max-width:520px; margin-left:auto; margin-right:auto; }

/* ---------- Footer ---------- */
.footer {
  background:var(--black); color:rgba(255,255,255,.65);
  padding:var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:var(--space-2xl);
}
.footer-brand .f-logo img { height:48px; margin-bottom:var(--space-md); }
.footer-brand p { font-size:14px; margin-bottom:var(--space-md); max-width:280px; }
.footer h5 {
  color:var(--white); font-size:15px; margin-bottom:var(--space-md);
  font-weight:var(--fw-semibold);
}
.footer ul li { margin-bottom:8px; }
.footer ul a { font-size:14px; color:rgba(255,255,255,.55); }
.footer ul a:hover { color:var(--gold); }
.footer-contact li {
  display:flex; gap:10px; font-size:14px;
  align-items:flex-start;
}
.footer-contact li svg { flex-shrink:0; margin-top:3px; color:var(--gold); width:18px; height:18px; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:var(--space-2xl); padding-top:var(--space-lg);
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; color:rgba(255,255,255,.35);
}

/* Footer map-nav row (高德/百度/腾讯) below contact column */
.footer-map-nav {
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:var(--space-lg); padding-top:var(--space-lg);
  display:flex; align-items:center; gap:var(--space-md); flex-wrap:wrap;
}
.footer-map-nav .fmn-label {
  font-size:14px; font-weight:var(--fw-semibold); color:rgba(255,255,255,.7);
}
.footer-map-nav .fmn-btns { display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- Mobile Bottom CTA Bar (Re-layout) ----------
   Top: prominent 预约体验 button (full-width gold)
   Bottom row: 拨号 + 微信 (compact text links)
*/
.mobile-cta-bar {
  display:none; position:fixed; bottom:0; left:0; right:0;
  z-index:998; background:var(--white);
  border-top:2px solid var(--gold);
  box-shadow:0 -3px 16px rgba(0,0,0,.1);
  padding:7px 12px;
  padding-bottom:max(7px, env(safe-area-inset-bottom));
}
.mobile-cta-inner {
  display:flex; flex-direction:row; align-items:center; gap:8px;
}
/* Primary booking button — full width gold */
.mcta-book {
  display:flex; align-items:center; justify-content:center;
  flex:1 1 auto; gap:6px; padding:9px 12px;
  background:linear-gradient(135deg,var(--gold),var(--wood-deep));
  color:#fff !important; font-size:14px; font-weight:var(--fw-semibold);
  border-radius:var(--r-md); letter-spacing:1px;
  transition:transform var(--ease), opacity var(--ease);
  text-decoration:none;
}
.mcta-book:hover { transform:scale(1.02); }
.mcta-book svg { width:20px; height:20px; flex-shrink:0; }

/* Secondary actions row (phone + wechat side by side) */
.mcta-row {
  display:flex; flex:0 0 auto; gap:8px;
}
.mcta-item {
  display:flex; align-items:center; justify-content:center; gap:4px;
  font-size:12px; font-weight:500; color:var(--ink-2);
  padding:9px 10px; background:var(--cream);
  border:1px solid var(--gray-200); border-radius:var(--r-md);
  white-space:nowrap; transition:background var(--ease);
}
.mcta-item:hover { background:var(--cream); color:var(--ink-2); }
.mcta-item svg { width:18px; height:18px; color:var(--wood); }

/* ====== WeChat QR Popup Modal (Mobile Bottom Bar) ====== */
.wc-qr-overlay {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.6);
  align-items:center; justify-content:center;
  opacity:0; transition:opacity .25s ease;
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.wc-qr-overlay.show { display:flex; opacity:1; }
.wc-qr-card {
  background:#fff; border-radius:16px; padding:32px 24px;
  text-align:center; max-width:310px; width:90%;
  box-shadow:0 24px 64px rgba(0,0,0,.35);
  transform:translateY(20px) scale(.92);
  transition:transform .3s cubic-bezier(.2,.8,.2,1);
}
.wc-qr-overlay.show .wc-qr-card {
  transform:translateY(0) scale(1);
}
.wc-qr-card img {
  display:block; width:200px; height:200px; border-radius:12px;
  margin:0 auto 18px; box-shadow:0 2px 12px rgba(0,0,0,.08);
}
.wc-qr-card h4 {
  font-size:17px; color:var(--ink); margin-bottom:4px;
}
.wc-qr-card p {
  font-size:13px; color:var(--gray-500); margin-bottom:20px;
}
.wc-qr-close {
  display:inline-block; padding:9px 36px;
  background:#c9a86c; /* solid fallback so the pill never loses its background */
  background:linear-gradient(135deg,var(--gold),#b08968);
  color:#fff; font-weight:var(--fw-semibold);
  border:none; border-radius:50px;
  cursor:pointer; font-size:14px;
}

/* ========== RESPONSIVE ========== */

/* Narrow desktop / wide tablet — protect nav from wrapping */
@media (max-width:1220px) {
  .nav-links { gap:var(--space-lg); }          /* shrink gap */
}

/* Tablet & Below */
@media (max-width:1024px) {
  .hero-inner { grid-template-columns:1fr; text-align:center; }
  .hero-text > p { margin:0 auto var(--space-xl); }
  .hero-buttons { justify-content:center; }
  .hero-image { max-width:560px; margin:0 auto; }

  .course-grid { grid-template-columns:repeat(2, 1fr); }
  .values-grid { grid-template-columns:repeat(3, 1fr); gap:var(--space-md); }
  .gallery-grid { grid-template-columns:repeat(2, 1fr); }
  .team-duo { grid-template-columns:1fr 1fr; }
  .testimonial-grid { grid-template-columns:repeat(2, 1fr); }
  .news-grid { grid-template-columns:repeat(2, 1fr); }
  .pricing-grid { grid-template-columns:repeat(2, 1fr); }
  /* 认识悠见：平板浮动图微调 */
  .story-body { max-width:760px; }
  .story-float { width:40%; margin:6px var(--space-md) var(--space-md) 0; }
  .about .section[style*="grid-template-columns:1fr"] { grid-template-columns:1fr !important; } /* manifesto stack on tablet */
  .footer-grid { grid-template-columns:1fr 1fr; gap:var(--space-xl); }
  .contact-grid { grid-template-columns:1fr; }

  /* Tablet nav: collapse inline links into hamburger (9 items overflow on narrow tablets) */
  .nav-links { display:none; }
  .nav-cta { display:none !important; }
  .hamburger { display:flex; }

  /* Pricing duo badge: 24px too large when cards are 2-up on tablet */
  .price-card .popular-badge { font-size:20px; padding:7px 30px; }

  /* Courses filter bar: keep 4 tabs on one row on tablet */
  #courseFilter { flex-wrap:nowrap; gap:8px; }
}

/* Mobile */
@media (max-width:767px) {
  :root { --nav-height:64px; }

  html { font-size:15px; }

  /* 认识悠见：手机端取消浮动，整图在上、文字在下 */
  .story-body { max-width:100%; }
  .story-float {
    float:none;
    display:block;
    width:100%;
    max-width:none;
    margin:0 0 var(--space-lg);
    height:auto;
  }

  .container { padding:0 var(--space-md); }
  .section { padding:var(--space-xl) 0; }

  /* Hide desktop nav links, show hamburger. Keep CTA and phone visible */
  .nav-links { display:none; }
  .hamburger { display:flex; }
  /* Keep booking CTA on mobile top bar */
  .nav-cta { display:none !important; }

  /* Hero: smaller, not too tall on mobile */
  .hero { min-height:53vh; padding-top:calc(var(--nav-height) + 24px); padding-bottom:var(--space-xl); }
  .hero-text h1 { font-size:28px; }
  .hero-text > p { font-size:15px; }
  .hero-text .hero-sub { font-size:24px; line-height:1.2; letter-spacing:0; white-space:nowrap; }
  .hero-image img { aspect-ratio:4/3; }

  /* 课程体系：移动端单列依次排列 */
  .course-grid { grid-template-columns:1fr; gap:var(--space-md); }
  .course-cat-card .card-img { height:160px; }
  .course-cat-card .card-body { padding:var(--space-md); }

  /* 安心之选：移动端单列 */
  .values-grid { grid-template-columns:1fr; gap:var(--space-lg); }
  .value-icon { width:72px; height:72px; }
  .value-item { padding:var(--space-md); }

  /* Gallery 2-col */
  .gallery-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .gallery-grid .gallery-item img { min-height:150px; }

  /* Gallery row: 手机端仍一行 7 张等宽、点击放大；缩图变矮 */
  .gallery-row .gallery-item img { height:100px; }

  /* Student photo wall: 4 col tablet, 3 col mobile */
  .student-photo-wall { grid-template-columns:repeat(4, 1fr); gap:6px; }

  /* Instructors: feature stacks, duo 2-col on mobile */
  .team-feature { grid-template-columns:1fr; gap:var(--space-lg); padding:var(--space-lg); }
  .team-feature .tf-img { aspect-ratio:4/5; max-width:260px; margin:0 auto; }
  .team-duo { grid-template-columns:1fr; gap:var(--space-lg); }
  .team-subhead { margin-top:var(--space-2xl); }

  /* 学员案例：移动端单列 */
  .testimonial-grid { grid-template-columns:1fr; gap:var(--space-md); }

  /* 资讯动态：移动端单列 */
  .news-grid { grid-template-columns:1fr; gap:var(--space-md); }
  .news-card .nc-img { height:160px; }
  .news-card .nc-body { padding:var(--space-md); }

  /* Pricing 1-col (cards are wide) */
  .pricing-grid { grid-template-columns:1fr; }
  .pricing-duo { grid-template-columns:1fr; }
  .price-card.popular { transform:none; }
  .price-card .popular-badge { font-size:18px; padding:7px 26px; }
  .trial-split { grid-template-columns:1fr; gap:var(--space-lg); margin-bottom:var(--space-xl); }
  .trial-values { grid-template-columns:1fr; }

  /* About values: stacked but compact on mobile */
  .about-values { grid-template-columns:1fr; gap:var(--space-md); }
  .value-block { padding:var(--space-lg); }
  .value-block h4 { font-size:18px; gap:8px; }
  .vb-icon { width:18px; height:18px; }
  .value-block p { font-size:14px; line-height:1.7; }

  /* 创始人版块：图在上、文字在下，占位整洁 */
  .founder-block { grid-template-columns:1fr; grid-template-areas:"img" "head" "body"; gap:var(--space-md); align-items:start; padding:var(--space-lg); }
  .founder-text { display:contents; }
  .founder-img { grid-area:img; aspect-ratio:4/5; max-width:300px; margin:0 auto; }
  .founder-head { grid-area:head; text-align:center; }
  /* Gallery: 2 cols on tablet */
  .gallery-grid { grid-template-columns:repeat(2, 1fr); }
  .founder-head h3 { font-size:22px; }
  .founder-body { grid-area:body; }
  .founder-quote { font-size:16px; text-align:center; }
  .founder-meta { grid-template-columns:1fr 1fr; gap:var(--space-sm); }

  /* Form full width */
  .booking-form-wrap { padding:var(--space-lg); }
  .form-row { grid-template-columns:1fr; }
  .booking-split { grid-template-columns:1fr; }

  /* Contact */
  .contact-grid { grid-template-columns:1fr; }

  /* Footer mobile: 仅保留 LOGO + 联系方式；隐藏 快速导航 与 关于我们 两列 */
  .footer { padding:var(--space-xl) 0 var(--space-lg); }                  /* 收紧 LOGO 版块上方与整页脚底部空间 */
  .footer-grid { grid-template-columns:1fr; gap:var(--space-lg); }
  .footer-brand { grid-column:1; grid-row:1; margin-bottom:var(--space-sm); }  /* LOGO 版块下方收紧 */
  .footer-brand .f-logo img { height:56px; }                             /* 移动端 LOGO 放大 */
  .footer-grid > div:nth-child(2) { display:none; }                      /* 快速导航: 移动端隐藏 */
  .footer-grid > div:nth-child(3) { display:none; }                      /* 关于我们: 移动端隐藏 */
  .footer-grid > div:nth-child(4) { grid-column:1; grid-row:2; }         /* 联系方式: 保留 */
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; margin-top:var(--space-lg); }  /* 导航/关于我们下方收紧 */

  /* Footer map-nav: 移动端竖向堆叠，三按钮等分一行 */
  .footer-map-nav { flex-direction:column; align-items:flex-start; gap:var(--space-sm); }
  .footer-map-nav .fmn-btns { width:100%; flex-wrap:nowrap; gap:6px; }
  .footer-map-nav .fmn-btns .btn { flex:1 1 0; justify-content:center; white-space:nowrap; padding:9px 4px; font-size:12px; }

  /* Show bottom CTA bar */
  .mobile-cta-bar { display:block; }
  body { padding-bottom:58px; } /* space for single-row fixed bar */

  /* Section titles smaller */
  h2 { font-size:24px; }
  .section-head { margin-bottom:var(--space-xl); }
  .section--guarantee .section-head { margin-bottom:var(--space-md); }

  /* Page-hero: shorter banner + relaxed padding on phones */
  .page-hero { min-height:240px; padding-top:calc(var(--nav-height) + var(--space-xl)); padding-bottom:var(--space-lg); }
  /* Page-hero subtitle: allow wrap on phones to avoid horizontal scroll */
  .page-hero-sub { white-space:normal; font-size:14px; line-height:1.6; }
  .philosophy-banner { padding:var(--space-xl) 0; }
  .philosophy-banner h2 { font-size:22px; letter-spacing:2px; }

  /* Buttons compact */
  .btn { padding:11px 24px; font-size:14px; }
  .hero-buttons { flex-direction:column; }
  .hero-buttons .btn { width:100%; }

  /* Hero image smaller on mobile — 文字在上、图片在下 */
  .hero-image { max-width:320px; margin:0 auto; }
  .hero-image img { max-height:240px; }
  .hero-inner { gap:var(--space-xl); }

  /* Why-choose values: smaller font on mobile */
  .value-item h4 { font-size:16px; }
  .value-item p { font-size:13px; }

  /* Brand manifesto: 移动端改为上下堆叠，图文不再被窄列拉长 */
  .manifesto-grid { grid-template-columns:1fr; gap:var(--space-lg); }
  .manifesto-grid > img { width:100%; height:auto; border-radius:var(--r-lg); box-shadow:var(--sh-card); }

  /* Courses: 2-col left-right, image left top-aligned, compact text */
  .course-detail-card { grid-template-columns:40% 1fr !important; align-items:start !important; gap:var(--space-lg) !important; margin-bottom:var(--space-2xl) !important; }
  .course-detail-card img { order:-1; width:100%; }
  .course-detail-card h2 { font-size:18px; white-space:nowrap; }
  .course-detail-card p { font-size:13px; }
  .course-detail-card ul { font-size:13px; }

  /* Courses filter: 4 tabs (全部课程/小班课/私教课/专项课) share one row, never wrap on phones */
  #courseFilter { flex-wrap:nowrap; gap:6px; }
  .filter-btn { flex:1 1 0; min-width:0; padding:10px 4px; justify-content:center; white-space:nowrap; }

  /* News detail title: shrink further on phones so it stays on one line */
  #articleTitle { font-size:17px; }

  /* 首页移动端版块统一单列重排（覆盖 381–767 平板多列，所有手机宽度生效） */
  .course-grid { grid-template-columns:1fr; }
  .values-grid { grid-template-columns:1fr; }
  .testimonial-grid { grid-template-columns:1fr; }
  .news-grid { grid-template-columns:1fr; }
  /* 创始人版块：图在上、文字在下，占位整洁 */
  .founder-block { grid-template-columns:1fr; grid-template-areas:"img" "head" "body"; padding:var(--space-lg); }
  .founder-img { grid-area:img; aspect-ratio:4/5; max-width:300px; margin:0 auto; }
  /* 常见问题分类链接：缩小并强制单行 */
  .tc-links { flex-wrap:nowrap; gap:6px; }
  .tc-link { flex:1 1 0; min-width:0; justify-content:center; padding:9px 2px; font-size:12px; }
  /* FAQ 栏目页四个小分类：移动端强制一行显示 */
  .faq-cluster-nav .container { flex-wrap:nowrap; gap:6px; }
  .fcn-btn { flex:1 1 0; min-width:0; justify-content:center; padding:8px 4px; font-size:12px; }
  .tc-link .tc-arrow { display:none; }

  /* 资讯筛选条：移动端四个分类（含图标）强制一行显示 */
  .news-filter { flex-wrap:nowrap; gap:6px; }
  .nf-btn { flex:1 1 0; min-width:0; padding:9px 4px; font-size:13px; gap:5px; }
  .nf-ico { width:16px; height:16px; }
  .nf-ico svg { width:10px; height:10px; }
  /* 资讯详情：移动端正文紧贴两侧（与全站一致的紧凑左右间距） */
  .news-detail-body { padding-left:var(--space-md); padding-right:var(--space-md); }

  /* CTA band compact */
  .cta-band { padding:var(--space-2xl) 0; }
}

/* Small phones */
@media (max-width:380px) {
  .gallery-grid { grid-template-columns:1fr; }
  .team-duo { grid-template-columns:1fr; }
  .student-photo-wall { grid-template-columns:repeat(3, 1fr); gap:4px; }
  .manifesto-grid { grid-template-columns:1fr; }
  .course-detail-card { grid-template-columns:1fr !important; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.reveal {
  opacity:0; transform:translateY(24px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity:1; transform:translateY(0);
}

/* ========== 首页移动端：版块单列堆叠（字号正常可读） ==========
   仅作用于首页（body.home）。手机用 device-width 视口，字号正常；
   课程体系/安心之选/学员案例/资讯动态 均单列依次向下堆叠（一行一条）。
   场馆空间为静态等宽横排、点击灯箱。 */
@media (max-width:767px) {
  /* 首页核心网格版块：安心之选 / 学员案例 / 资讯动态 统一单列（一行一条） */
  body.home .values-grid,
  body.home .testimonial-grid,
  body.home .news-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

/* 场馆空间灯箱：点击缩图弹出原图，图层贴合图片尺寸，无文字，右上角绿色关闭 */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 16, 12, .55);
  display: none; align-items: center; justify-content: center;
  padding: var(--space-lg);
  opacity: 0; transition: opacity .22s ease;
}
.gallery-lightbox.open { display: flex; opacity: 1; }
.gallery-lightbox .gl-stage {
  position: relative;
  line-height: 0;
  max-width: 92vw; max-height: 88vh;
}
.gallery-lightbox .gl-img {
  display: block;
  max-width: 92vw; max-height: 88vh;
  width: auto; height: auto;
  object-fit: contain; border-radius: var(--r-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
}
.gallery-lightbox .gl-close {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: #2fa84f; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: background .2s, transform .15s;
}
.gallery-lightbox .gl-close:hover { background: #258a40; transform: scale(1.06); }

/* Reduced motion preference */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:0ms !important;
    transition-duration:0ms !important;
  }
  html { scroll-behavior:auto; }
  .reveal { opacity:1; transform:none; }
}

/* ---------- Print ---------- */
@media print {
  .navbar, .mobile-cta-bar, .mobile-nav, .hamburger { display:none !important; }
  body { padding-top:0; color:#000; background:#fff; }
  .section { padding:20px 0; }
}
