/* ============================================
   红伙伴咨询 RED PARTNER · 小红书风格官网
   ============================================ */

/* ---------- 基础变量 ---------- */
:root {
  --xhs-red: #FF2442;          /* 小红书红 */
  --xhs-red-deep: #E61E4D;
  --xhs-coral: #FF6B81;
  --xhs-pink: #FFB6C1;
  --xhs-soft: #FFF5F7;
  --xhs-soft-2: #FFE8EC;
  --ink: #1A1A1A;
  --ink-2: #2B2B2B;
  --muted: #6B6B6B;
  --muted-2: #9A9A9A;
  --line: #F0E5E8;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --dark: #1A0B14;
  --dark-2: #2A1424;
  --gold: #FFB800;
  --green: #00C896;
  --shadow-sm: 0 4px 12px rgba(255,36,66,.06);
  --shadow-md: 0 8px 28px rgba(255,36,66,.10);
  --shadow-lg: 0 18px 48px rgba(255,36,66,.16);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --max-w: 1200px;
}

/* ---------- 重置 ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4,h5 { margin: 0; line-height: 1.25; font-weight: 700; }

.container {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--xhs-red) 0%, var(--xhs-coral) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,36,66,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255,36,66,.45);
}
.btn-ghost {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255,255,255,0);
  transition: all .3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: opacity .3s;
}
.footer-brand .logo-img {
  height: 38px;
}

.nav-menu {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .2s;
}
.nav-menu a:hover {
  background: var(--xhs-soft);
  color: var(--xhs-red);
}
.nav.scrolled .nav-menu a { color: var(--ink-2); }
.nav:not(.scrolled) .nav-menu a { color: rgba(255,255,255,.92); }
.nav:not(.scrolled) .nav-menu a:hover { color: #fff; background: rgba(255,255,255,.15); }
/* Logo color variants handled via JS image swap */

.nav-cta { padding: 10px 20px; font-size: 14px; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}
.nav.scrolled .hamburger span { background: var(--ink); }
.nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .hamburger span:nth-child(2) { opacity: 0; }
.nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 120px 0 80px;
  /* 图片加载前的底色，与背景图色调一致，避免闪粉色 */
  background: linear-gradient(160deg, #3D1220 0%, #1A0B14 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55) saturate(1.1);
  z-index: -3;
}
.hero-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,36,66,.25), transparent 60%),
    linear-gradient(180deg, rgba(26,11,20,.55) 0%, rgba(26,11,20,.75) 100%);
  z-index: -2;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  font-size: 13px;
  margin-bottom: 28px;
  animation: fadeIn .8s ease both;
}
.hero-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--xhs-red);
  box-shadow: 0 0 0 4px rgba(255,36,66,.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.15); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 24px;
  animation: rise .9s ease .1s both;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #FFB6C1 0%, #FF6B81 50%, #FF2442 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%; height: 12px;
  background: rgba(255,36,66,.25);
  z-index: -1;
  border-radius: 4px;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255,255,255,.82);
  max-width: 620px;
  margin-bottom: 38px;
  animation: rise .9s ease .25s both;
}
.hero-sub strong {
  color: #FFD3DC;
  font-size: 1.2em;
  margin: 0 4px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 70px;
  animation: rise .9s ease .4s both;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 720px;
  animation: rise .9s ease .55s both;
}
.stat {
  padding: 18px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
  text-align: center;
  transition: all .3s;
}
.stat:hover {
  background: rgba(255,36,66,.18);
  transform: translateY(-4px);
}
.stat b {
  display: block;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #fff, #FFD3DC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}
.stat b span { display: inline; font-size: .55em; margin-left: 2px; opacity: .9; }
.stat span { display: block; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.7); }

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  letter-spacing: 3px;
  animation: bob 2.4s ease-in-out infinite;
}
.mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 12px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  animation: wheel 2s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}
@keyframes bob {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--xhs-soft);
  color: var(--xhs-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.section-title .hl {
  background: linear-gradient(120deg, var(--xhs-red) 0%, var(--xhs-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.section-title .hl::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 8px;
  background: var(--xhs-soft-2);
  z-index: -1;
  border-radius: 4px;
}
.section-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 品牌介绍 ---------- */
.section-brand {
  background: linear-gradient(180deg, #fff 0%, var(--xhs-soft) 100%);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.brand-card {
  position: relative;
  padding: 36px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all .35s ease;
  overflow: hidden;
  border: 1px solid transparent;
}
.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent 30%, var(--xhs-coral) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.brand-card:hover::before { opacity: 1; }
.brand-card.featured {
  background: linear-gradient(160deg, #1A0B14 0%, #2A1424 100%);
  color: #fff;
}
.brand-card.featured h3 { color: #fff; }
.brand-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.brand-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.brand-card.featured p { color: rgba(255,255,255,.78); }
.brand-card.featured em { color: var(--xhs-coral); font-style: normal; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.brand-tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--xhs-soft);
  color: var(--xhs-red);
  font-size: 12.5px;
  font-weight: 600;
}
.brand-card.featured .brand-tags li {
  background: rgba(255,255,255,.10);
  color: #FFD3DC;
}
/* ---------- 已服务品牌 ---------- */
.brands-showcase {
  margin: 60px 0 50px;
  text-align: center;
}
.brands-head h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.brands-head p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.brands-head p b {
  color: var(--xhs-red);
  font-weight: 700;
}
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.brand-pill {
  display: inline-block;
  padding: 9px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all .2s ease;
}
.brand-pill:hover {
  border-color: var(--xhs-red);
  color: var(--xhs-red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* 服务流程时间线 */
.flow {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.flow::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--xhs-soft-2), transparent 70%);
}
.flow-head { text-align: center; margin-bottom: 40px; position: relative; }
.flow-head h3 { font-size: 26px; }
.flow-head small { font-size: 14px; color: var(--muted); font-weight: 500; }
.flow-head p { color: var(--xhs-red); font-weight: 600; margin-top: 8px; }

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.flow-track::before {
  content: "";
  position: absolute;
  top: 38px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--xhs-coral) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.flow-track li {
  text-align: center;
  position: relative;
  z-index: 1;
}
.flow-num {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--xhs-coral);
  color: var(--xhs-red);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  transition: all .3s;
  box-shadow: 0 6px 16px rgba(255,36,66,.18);
}
.flow-track li:hover .flow-num {
  background: linear-gradient(135deg, var(--xhs-red), var(--xhs-coral));
  color: #fff;
  transform: scale(1.08);
}
.flow-track strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--ink);
}
.flow-track p {
  font-size: 13px;
  color: var(--muted);
  padding: 0 8px;
}

/* ---------- 讲师总览 ---------- */
.section-instructors {
  background: var(--bg);
}
.founder {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  align-items: center;
  padding: 50px;
  background: linear-gradient(135deg, var(--xhs-soft) 0%, #fff 60%);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.founder::before {
  content: "“";
  position: absolute;
  top: 0; right: 30px;
  font-size: 240px;
  color: var(--xhs-soft-2);
  font-family: Georgia, serif;
  line-height: 1;
}
.founder-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--xhs-soft) 100%);
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.founder-badge {
  position: absolute;
  top: 20px; left: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--xhs-red), var(--xhs-coral));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 12px rgba(255,36,66,.4);
}
.founder-info { position: relative; z-index: 1; }
.founder-info .role {
  display: inline-block;
  padding: 6px 14px;
  background: var(--xhs-soft);
  color: var(--xhs-red);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.founder-info h3 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--xhs-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.founder-info .bio {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.founder-info .bio b {
  color: var(--xhs-red);
  font-weight: 800;
  font-size: 1.2em;
}
.founder-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.founder-titles li {
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--xhs-soft-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.founder-quote {
  position: relative;
  padding: 20px 24px;
  background: rgba(255,255,255,.6);
  border-radius: 16px;
  border-left: 4px solid var(--xhs-red);
  font-style: italic;
  color: var(--ink-2);
  font-size: 15px;
}
.founder-quote .qmark {
  color: var(--xhs-red);
  font-size: 22px;
  font-weight: 700;
  margin-right: 6px;
}

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.instructor-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  text-align: left;
  border: 1px solid var(--line);
  transition: all .3s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
}
.instructor-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--xhs-red), var(--xhs-coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.instructor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--xhs-soft-2);
}
.instructor-card:hover::after { transform: scaleX(1); }
.instructor-avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  margin: 0;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(255,36,66,.18);
  position: relative;
}
.instructor-info {
  flex: 1;
  min-width: 0;
}
.instructor-card h4 {
  display: inline-block;
  font-size: 22px;
  margin: 0 10px 0 0;
  vertical-align: middle;
}
.instructor-card .role {
  display: inline-block;
  font-size: 12.5px;
  color: var(--xhs-red);
  font-weight: 700;
  margin-bottom: 0;
  vertical-align: middle;
}
.instructor-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 14px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.skill-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--xhs-soft);
  color: var(--xhs-red);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- 实战案例 ---------- */
.section-cases {
  background: linear-gradient(180deg, var(--xhs-soft) 0%, #fff 100%);
}
.cases-masonry {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.case-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .35s;
}
/* 9张图各占2列（3行 × 3张） */
.case-card:nth-child(-n+9) {
  grid-column: span 2;
}
.case-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.case-card:hover img { transform: scale(1.08); }
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,11,20,.78) 100%);
  opacity: .85;
  transition: opacity .3s;
}
.case-cap {
  position: absolute;
  bottom: 16px; left: 18px; right: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
  transition: all .3s;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.case-card:hover .case-cap { opacity: 1; }

.cases-cta {
  text-align: center;
  margin-top: 50px;
  padding: 36px;
  background: linear-gradient(135deg, var(--xhs-red), var(--xhs-coral));
  border-radius: var(--radius-lg);
  color: #fff;
}
.cases-cta p { font-size: 18px; margin-bottom: 18px; font-weight: 500; }
.cases-cta .btn {
  background: #fff;
  color: var(--xhs-red);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* ---------- 课程报价 ---------- */
.section-pricing {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-pricing::before {
  content: "";
  position: absolute;
  top: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,36,66,.25), transparent 70%);
}
.section-pricing::after {
  content: "";
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,129,.18), transparent 70%);
}
.section-pricing .section-title { color: #fff; }
.section-pricing .section-title .hl::after { background: rgba(255,36,66,.3); }
.section-pricing .section-lead { color: rgba(255,255,255,.7); }
.section-pricing .eyebrow {
  background: rgba(255,36,66,.18);
  color: var(--xhs-coral);
}

/* 二级菜单（分类） */
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}
.ptab {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.1);
  font-size: 14px;
  font-weight: 600;
  transition: all .25s;
}
.ptab:hover {
  background: rgba(255,36,66,.18);
  color: #fff;
  border-color: rgba(255,107,129,.4);
}
.ptab.active {
  background: linear-gradient(135deg, var(--xhs-red), var(--xhs-coral));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255,36,66,.4);
}

/* 课程卡片 */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
  position: relative;
  z-index: 1;
}
.course-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--xhs-soft-2);
}

/* 封面页 */
.course-cover {
  position: relative;
  padding: 28px;
  background: linear-gradient(135deg, var(--xhs-soft) 0%, #fff 100%);
  border-bottom: 1px dashed var(--xhs-soft-2);
  cursor: pointer;
}
.course-cover::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: var(--xhs-soft-2);
  border-radius: 50%;
  opacity: .5;
}
.course-cat {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,36,66,.1);
  color: var(--xhs-red);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.course-cover h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.course-cover .meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.meta-row b { color: var(--ink-2); font-weight: 700; }

.course-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--xhs-red), var(--xhs-coral));
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all .3s;
  margin-top: auto;
}
.course-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,36,66,.4); }
.course-toggle .arrow {
  display: inline-block;
  transition: transform .3s;
  font-size: 16px;
}
.course-card.expanded .course-toggle .arrow { transform: rotate(180deg); }

/* 详情页（默认隐藏） */
.course-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease, padding .5s ease;
  background: #fff;
}
.course-card.expanded .course-detail {
  max-height: 1200px;
}
.course-detail-inner {
  padding: 24px 28px 28px;
  border-top: 2px dashed var(--xhs-soft-2);
}
.detail-section { margin-bottom: 18px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section .dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--xhs-red);
  margin-bottom: 8px;
}
.detail-section .dt::before {
  content: "";
  width: 4px; height: 14px;
  background: var(--xhs-red);
  border-radius: 2px;
}
.content-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.content-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.content-list li::before {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--xhs-coral);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 6px;
}
.price-table th, .price-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--xhs-soft-2);
}
.price-table th {
  background: var(--xhs-soft);
  color: var(--xhs-red);
  font-weight: 700;
  font-size: 12.5px;
}
.price-table td.price {
  color: var(--xhs-red);
  font-weight: 800;
  font-size: 15px;
}
.price-table tr:last-child td { border-bottom: none; }
.follow-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.follow-opt {
  padding: 12px 14px;
  background: var(--xhs-soft);
  border-radius: 12px;
  text-align: center;
  border: 1.5px solid transparent;
  transition: all .2s;
}
.follow-opt:hover {
  border-color: var(--xhs-coral);
  background: #fff;
}
.follow-opt strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.follow-opt b {
  display: block;
  color: var(--xhs-red);
  font-size: 18px;
  font-weight: 800;
}

.course-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--xhs-soft-2);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.course-cta .btn {
  flex: 1;
  min-width: 130px;
  padding: 10px 16px;
  font-size: 13px;
}

/* ---------- 联系方式 ---------- */
.section-contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
  gap: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-content: start;
}
.ci-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--xhs-soft);
  transition: all .3s;
}
.ci-item:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ci-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--xhs-red), var(--xhs-coral));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(255,36,66,.25);
}
.ci-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 700;
}
.ci-item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}
.contact-qr img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  object-fit: contain;
  background: #fff;
  padding: 12px;
}
.contact-qr p {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.5);
}
/* Footer logo uses white variant image */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-links strong {
  display: block;
  color: #fff;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-links a {
  display: block;
  font-size: 13px;
  padding: 5px 0;
  color: rgba(255,255,255,.55);
}
.footer-links a:hover { color: var(--xhs-coral); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 10px;
}

/* 备案号（法规强制公示） */
.footer-beian {
  text-align: center;
  padding: 14px 0 28px;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-beian a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-beian a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 二维码弹窗 ---------- */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.qr-modal.active {
  opacity: 1;
  visibility: visible;
}
.qr-modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(.96);
  transition: all .3s ease;
}
.qr-modal.active .qr-modal-box {
  transform: translateY(0) scale(1);
}
.qr-modal-box img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.qr-modal-box p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.qr-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: all .2s;
}
.qr-close:hover {
  background: var(--xhs-soft);
  color: var(--xhs-red);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .brand-card.featured { grid-column: 1 / -1; }
  .founder { grid-template-columns: 1fr; padding: 36px; gap: 30px; }
  .founder-photo { max-width: 320px; margin: 0 auto; }
  .founder-info h3 { font-size: 42px; }
  .instructor-grid { grid-template-columns: 1fr 1fr; }
  .cases-masonry { grid-template-columns: repeat(3, 1fr); }
  .case-card:nth-child(-n+9) { grid-column: span 1 !important; }
  .contact-grid { grid-template-columns: 1fr; padding: 36px; }
  .contact-qr img { width: 180px; height: 180px; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-150%);
    transition: transform .35s;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .nav-menu a { color: var(--ink-2) !important; padding: 12px; }
  .nav.open .nav-menu { transform: translateY(0); }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }

  .brand-grid { grid-template-columns: 1fr; }
  .brand-card.featured { grid-column: auto; }
  .flow { padding: 30px 20px; }
  .flow-track { grid-template-columns: 1fr 1fr; }
  .flow-track::before { display: none; }

  .instructor-grid { grid-template-columns: 1fr; }
  .instructor-card { padding: 20px; gap: 18px; }
  .instructor-avatar { width: 84px; height: 84px; }
  .cases-masonry { grid-template-columns: repeat(2, 1fr); }
  .case-card:nth-child(-n+9) { grid-column: span 1 !important; }

  .course-grid { grid-template-columns: 1fr; }
  .pricing-tabs { gap: 6px; }
  .ptab { padding: 8px 14px; font-size: 12.5px; }

  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { padding: 28px 22px; }
  .contact-qr img { width: 160px; height: 160px; }

  .brand-pill { padding: 7px 16px; font-size: 12.5px; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 28px; }
  .founder-info h3 { font-size: 36px; }
  .instructor-grid { grid-template-columns: 1fr; }
  .cases-masonry { grid-template-columns: 1fr; }
  .case-card:nth-child(-n+9) { grid-column: span 1 !important; }
  .flow-track { grid-template-columns: 1fr; }
  .pricing-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; flex-wrap: nowrap; }
  .ptab { flex-shrink: 0; }
  .brand-pill { padding: 6px 14px; font-size: 12px; }
}