/* ============================================================
   岳链社区 AI 特训营 · 马卡龙治愈风
   ============================================================ */

:root {
  /* 马卡龙主色 */
  --cream:        #FFF8E7;
  --cream-deep:   #FFEFC9;
  --pink:         #FFD9E4;
  --pink-deep:    #FFB8CE;
  --blue:         #D6ECFF;
  --blue-deep:    #A8D8FF;
  --mint:         #D4F5E4;
  --mint-deep:    #A5E8C8;

  /* 文字 */
  --ink:          #4A3F3A;
  --ink-soft:     #7A6B63;
  --ink-light:    #7A6B63;

  /* 强调 */
  --accent:       #E85D82;
  --accent-deep:  #C93D66;
  --accent-warm:  #FFC46B;

  /* 表面 */
  --surface:      #FFFDF8;
  --surface-2:    #FFFFFF;

  /* 圆角 */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;
  --r-pill: 999px;

  /* 阴影（柔和，无硬边） */
  --sh-sm: 0 4px 14px rgba(180, 150, 130, 0.10);
  --sh-md: 0 10px 30px rgba(180, 150, 130, 0.13);
  --sh-lg: 0 20px 50px rgba(180, 150, 130, 0.16);
  --sh-glow: 0 12px 40px rgba(201, 61, 102, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   背景装饰
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 云朵 */
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 100px;
  opacity: 0.75;
  filter: blur(0.5px);
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-1 {
  width: 150px; height: 52px;
  top: 12%; left: -60px;
  animation: drift 46s linear infinite;
}
.cloud-1::before { width: 70px; height: 70px; top: -32px; left: 22px; }
.cloud-1::after  { width: 52px; height: 52px; top: -22px; left: 78px; }

.cloud-2 {
  width: 110px; height: 40px;
  top: 34%; right: -50px;
  opacity: 0.6;
  animation: drift-rev 58s linear infinite;
}
.cloud-2::before { width: 54px; height: 54px; top: -26px; left: 16px; }
.cloud-2::after  { width: 40px; height: 40px; top: -18px; left: 58px; }

.cloud-3 {
  width: 180px; height: 60px;
  top: 62%; left: -80px;
  opacity: 0.5;
  animation: drift 68s linear infinite;
  animation-delay: -20s;
}
.cloud-3::before { width: 84px; height: 84px; top: -40px; left: 26px; }
.cloud-3::after  { width: 62px; height: 62px; top: -28px; left: 96px; }

.cloud-4 {
  width: 130px; height: 46px;
  top: 84%; right: -60px;
  opacity: 0.55;
  animation: drift-rev 52s linear infinite;
  animation-delay: -12s;
}
.cloud-4::before { width: 62px; height: 62px; top: -30px; left: 20px; }
.cloud-4::after  { width: 46px; height: 46px; top: -20px; left: 70px; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 220px)); }
}
@keyframes drift-rev {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100vw - 220px)); }
}

/* 气泡 */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.15));
  border: 1px solid rgba(255,255,255,0.7);
  animation: float-up 22s ease-in-out infinite;
}
.bubble-1 { width: 26px; height: 26px; left: 8%;  top: 78%; animation-delay: 0s; }
.bubble-2 { width: 16px; height: 16px; left: 22%; top: 88%; animation-delay: -4s; }
.bubble-3 { width: 34px; height: 34px; left: 46%; top: 82%; animation-delay: -8s; }
.bubble-4 { width: 20px; height: 20px; left: 68%; top: 90%; animation-delay: -12s; }
.bubble-5 { width: 28px; height: 28px; left: 84%; top: 76%; animation-delay: -16s; }
.bubble-6 { width: 14px; height: 14px; left: 94%; top: 86%; animation-delay: -6s; }

@keyframes float-up {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  50%      { transform: translateY(-46px) scale(1.12); opacity: 0.9; }
}

/* 星星 */
.star {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--accent-warm);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.55;
  animation: twinkle 5s ease-in-out infinite;
}
.star-1 { left: 12%; top: 18%; animation-delay: 0s;   transform: scale(0.9); }
.star-2 { left: 78%; top: 26%; animation-delay: -1.2s; background: var(--pink-deep); }
.star-3 { left: 34%; top: 48%; animation-delay: -2.4s; transform: scale(0.7); background: var(--blue-deep); }
.star-4 { left: 88%; top: 58%; animation-delay: -3.1s; transform: scale(1.1); }
.star-5 { left: 6%;  top: 66%; animation-delay: -4.2s; transform: scale(0.8); background: var(--mint-deep); }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50%      { opacity: 0.85; transform: scale(1.1) rotate(12deg); }
}

/* ============================================================
   顶部导航
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(255, 248, 231, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s var(--ease);
}
.brand:hover { transform: translateY(-2px); }

.brand-logo {
  width: 44px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(201, 61, 102, 0.24));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.brand-text em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--ink-light);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topnav a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.28s var(--ease);
}
.topnav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}
.topnav-cta {
  background: linear-gradient(135deg, #D94A72, #C93D66) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(201, 61, 102, 0.30);
}
.topnav-cta:hover {
  background: var(--accent-deep) !important;
  transform: translateY(-2px);
}

/* ============================================================
   通用区块
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 7px 20px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  box-shadow: var(--sh-sm);
}

.section-title {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.section-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-soft);
  line-height: 1.8;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 34px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: all 0.32s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #D94A72 0%, #C93D66 55%, #B83258 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120, 20, 50, 0.28);
  box-shadow: var(--sh-glow);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(201, 61, 102, 0.34);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: #fff;
  color: var(--ink-soft);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  color: var(--ink);
  box-shadow: var(--sh-md);
}

/* ============================================================
   1. 头部横幅
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 60px 0 0;
  background:
    radial-gradient(ellipse 70% 60% at 78% 18%, rgba(214, 236, 255, 0.85) 0%, transparent 62%),
    radial-gradient(ellipse 60% 55% at 12% 72%, rgba(255, 217, 228, 0.75) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 50% 100%, rgba(212, 245, 228, 0.7) 0%, transparent 65%),
    linear-gradient(180deg, #FFF8E7 0%, #FFFBF0 100%);
  overflow: hidden;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 76px);
}

.hero-copy { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  margin-bottom: 24px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  box-shadow: var(--sh-sm);
}

.hero-title {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 26px;
}

.hero-title-accent {
  position: relative;
  display: inline-block;
  color: var(--accent-deep);
  isolation: isolate;
}
.hero-title-accent::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -0.06em;
  height: 0.16em;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(255, 196, 107, 0.55), rgba(255, 217, 228, 0.7));
  z-index: -1;
  pointer-events: none;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.hero-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-facts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease);
}
.hero-facts li:hover { transform: translateY(-4px); }
.hero-facts strong {
  font-family: "Baloo 2", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1.1;
}
.hero-facts span {
  font-size: 12px;
  color: var(--ink-light);
  font-weight: 500;
  margin-top: 2px;
}

/* 首屏插画 */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 231, 0.5) 45%, transparent 72%);
  filter: blur(18px);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.hero-robot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--r-xl);
  animation: bob 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 44px rgba(200, 170, 150, 0.22));
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* 波浪分隔 */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* ============================================================
   2. 讲师介绍
   ============================================================ */
.teacher { background: var(--surface); }

.teacher-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
  padding: 44px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #FFFFFF 0%, #FFFBF2 100%);
  box-shadow: var(--sh-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(180, 150, 130, 0.20);
}

.teacher-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.teacher-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--cream-deep), var(--mint), var(--blue), var(--pink));
  opacity: 0.55;
  animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.teacher-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: var(--sh-md);
}

.teacher-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  box-shadow: 0 6px 16px rgba(201, 61, 102, 0.32);
}

.teacher-name {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.teacher-role {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  padding: 5px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 217, 228, 0.55);
  margin-bottom: 20px;
}

.teacher-bio {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin-bottom: 26px;
}

.teacher-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-sm);
  transition: all 0.3s var(--ease);
}
.skill-chip:hover {
  transform: translateY(-3px);
  color: var(--accent-deep);
  box-shadow: var(--sh-md);
}
.skill-chip svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   3. 课程内容
   ============================================================ */
.course {
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(255, 217, 228, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 75%, rgba(214, 236, 255, 0.5) 0%, transparent 62%),
    var(--cream);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
}

/* 顶部色带 */
.course-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.course-card[data-tone="pink"]::before  { background: linear-gradient(90deg, #FFD9E4, #FFB8CE); }
.course-card[data-tone="blue"]::before  { background: linear-gradient(90deg, #D6ECFF, #A8D8FF); }
.course-card[data-tone="mint"]::before  { background: linear-gradient(90deg, #D4F5E4, #A5E8C8); }
.course-card[data-tone="cream"]::before { background: linear-gradient(90deg, #FFF8E7, #FFE0A8); }

.course-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: var(--r-md);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease);
}
.course-card:hover .course-icon { transform: scale(1.08) rotate(-4deg); }

.course-card[data-tone="pink"]  .course-icon { background: rgba(255, 217, 228, 0.6); color: #E86A8E; }
.course-card[data-tone="blue"]  .course-icon { background: rgba(214, 236, 255, 0.7); color: #4A9BD8; }
.course-card[data-tone="mint"]  .course-icon { background: rgba(212, 245, 228, 0.7); color: #3FA97A; }
.course-card[data-tone="cream"] .course-icon { background: rgba(255, 239, 201, 0.8); color: #D99A2B; }

.course-icon svg { width: 30px; height: 30px; }

.course-card h3 {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.course-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.course-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: "Baloo 2", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: rgba(180, 150, 130, 0.10);
  line-height: 1;
  letter-spacing: -1px;
}

/* 视频卡片 */
.course-card--video {
  grid-column: span 3;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.course-card--video::before { display: none; }
.course-card--video:hover { transform: none; box-shadow: none; }

.video-shell {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: #2A2420;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin: 0 auto;
}

.course-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 63, 58, 0.18);
  backdrop-filter: blur(1px);
  transition: opacity 0.35s var(--ease), background 0.35s var(--ease);
}
.video-play svg {
  width: 74px;
  height: 74px;
  padding: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--ease);
}
.video-play:hover { background: rgba(74, 63, 58, 0.10); }
.video-play:hover svg { transform: scale(1.1); }

.video-shell.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: var(--sh-sm);
  transition: opacity 0.3s var(--ease);
}
.video-shell.is-playing .video-caption { opacity: 0; }

.video-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================================
   4. 学员收益
   ============================================================ */
.gain { background: var(--surface); }

.gain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.gain-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gain-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}

.gain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease);
}
.gain-item:hover .gain-icon { transform: scale(1.08) rotate(5deg); }

.gain-icon[data-tone="cream"] { background: rgba(255, 239, 201, 0.75); color: #D99A2B; }
.gain-icon[data-tone="mint"]  { background: rgba(212, 245, 228, 0.8);  color: #3FA97A; }
.gain-icon[data-tone="pink"]  { background: rgba(255, 217, 228, 0.7);  color: #E86A8E; }
.gain-icon[data-tone="blue"]  { background: rgba(214, 236, 255, 0.8);  color: #4A9BD8; }

.gain-icon svg { width: 27px; height: 27px; }

.gain-text h3 {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 18.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.gain-text p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ============================================================
   5. 报名入口
   ============================================================ */
.join {
  background:
    radial-gradient(ellipse 65% 55% at 50% 40%, rgba(255, 217, 228, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(212, 245, 228, 0.5) 0%, transparent 60%),
    var(--cream);
}

.join-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 48px 56px;
  border-radius: var(--r-xl);
  text-align: center;
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF9EE 55%, #FFF3F6 100%);
  box-shadow: 0 26px 70px rgba(200, 165, 145, 0.20);
  overflow: hidden;
}

.join-decor { position: absolute; inset: 0; pointer-events: none; }

.join-star {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--accent-warm);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.5;
  animation: twinkle 4.5s ease-in-out infinite;
}
.join-star-1 { top: 34px;  left: 48px;  animation-delay: 0s; }
.join-star-2 { top: 60px;  right: 62px; animation-delay: -1.5s; background: var(--pink-deep); transform: scale(0.8); }
.join-star-3 { bottom: 52px; left: 90px; animation-delay: -3s; background: var(--mint-deep); transform: scale(0.7); }

.join-mascot {
  width: 96px;
  height: auto;
  margin: 0 auto 18px;
  animation: bob 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(201, 61, 102, 0.24));
}

.join-tag {
  display: inline-block;
  padding: 7px 20px;
  margin-bottom: 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 217, 228, 0.7);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
}

.join-title {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}

.join-desc {
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 36px;
}

.btn-cta {
  position: relative;
  padding: 20px 52px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(120, 20, 50, 0.28);
  background: linear-gradient(120deg, #C96A2E 0%, #C93D66 45%, #B83258 100%);
  background-size: 200% 200%;
  box-shadow: 0 16px 44px rgba(201, 61, 102, 0.34);
  animation: gradient-shift 6s ease infinite;
}
.btn-cta:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 58px rgba(201, 61, 102, 0.40);
}
.btn-cta:active { transform: translateY(-2px) scale(1); }

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.join-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-light);
}

/* ============================================================
   6. 底部
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 52px 0 44px;
  background: #FFFBF2;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand img {
  width: 38px;
  height: 36px;
  object-fit: contain;
}
.footer-brand div {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}
.footer-brand strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.footer-brand span {
  font-size: 12px;
  color: var(--ink-light);
}

.footer-copy {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.footer-note {
  font-size: 12px;
  color: var(--ink-light);
}

/* ============================================================
   音乐开关
   ============================================================ */
.sound-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-soft);
  box-shadow: var(--sh-md);
  transition: all 0.32s var(--ease);
}
.sound-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  color: var(--accent-deep);
  box-shadow: var(--sh-lg);
}
.sound-toggle .icon-on { display: none; }
.sound-toggle.is-on {
  background: var(--accent);
  color: #fff;
}
.sound-toggle.is-on .icon-on  { display: block; }
.sound-toggle.is-on .icon-off { display: none; }

/* ============================================================
   滚动淡入
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 18px 60px;
    text-align: center;
    min-height: 0;
  }
  .hero-copy { order: 1; }
  .hero-art  { order: 0; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-facts { justify-content: center; }
  .hero-robot { max-width: 400px; }

  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .course-card--video { grid-column: span 2; }

  .teacher-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 36px 30px;
    text-align: center;
  }
  .teacher-photo-wrap {
    width: 220px;
    margin: 0 auto;
  }
  .teacher-skills { justify-content: center; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }

  .topbar { padding: 10px 0; }
  .topbar-inner { padding: 0 16px; }
  .brand-logo { width: 36px; height: 34px; }
  .brand-text strong { font-size: 16px; }
  .brand-text em { font-size: 9px; letter-spacing: 1.2px; }
  .topnav { gap: 2px; }
  .topnav a { padding: 7px 11px; font-size: 13.5px; }
  .topnav a:not(.topnav-cta) { display: none; }

  .hero { padding-top: 34px; }
  .hero-inner { padding: 0 18px 60px; min-height: 0; }
  .hero-title { font-size: clamp(30px, 8.5vw, 42px); }
  .hero-sub { font-size: 16px; }
  .hero-desc { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 10px; }
  .hero-facts li { flex: 1; min-width: 0; padding: 12px 10px; }
  .hero-facts strong { font-size: 22px; }
  .hero-facts span { font-size: 11px; }
  .hero-robot { max-width: 320px; }
  .hero-wave svg { height: 56px; }

  .section-inner { padding: 0 18px; }

  .course-grid { grid-template-columns: 1fr; gap: 18px; }
  .course-card--video { grid-column: span 1; }
  .course-card { padding: 28px 24px 26px; }
  .course-num { font-size: 32px; top: 18px; right: 20px; }

  .gain-list { grid-template-columns: 1fr; gap: 16px; }
  .gain-item { padding: 24px 22px; gap: 16px; }
  .gain-icon { width: 48px; height: 48px; }
  .gain-icon svg { width: 23px; height: 23px; }

  .teacher-card { padding: 30px 22px; }
  .teacher-photo-wrap { width: 180px; }
  .teacher-bio { font-size: 14.5px; }

  .join-card { padding: 44px 24px 40px; }
  .join-mascot { width: 76px; }
  .btn-cta { width: 100%; padding: 18px 24px; font-size: 16.5px; }

  .sound-toggle { right: 16px; bottom: 16px; width: 46px; height: 46px; }

  .footer { padding: 40px 0 34px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .join-title { font-size: 22px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   报名弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 63, 58, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-panel {
  position: relative;
  overscroll-behavior: contain;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  height: auto;
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, #FFFDF8 0%, #FFF8ED 100%);
  box-shadow: 0 30px 80px rgba(74, 63, 58, 0.26);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popIn 0.42s cubic-bezier(0.22, 1.2, 0.36, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  box-shadow: var(--sh-sm);
  transition: all 0.28s var(--ease);
}
.modal-close:hover {
  background: #fff;
  color: var(--accent-deep);
  transform: rotate(90deg);
}

.modal-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  padding: 26px 26px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-deep) transparent;
}
.modal-scroll::-webkit-scrollbar { width: 7px; }
.modal-scroll::-webkit-scrollbar-thumb {
  background: var(--pink-deep);
  border-radius: 4px;
  opacity: 0.5;
}

/* ---- 头部 ---- */
.enroll-head { text-align: center; margin-bottom: 18px; }

.enroll-badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 14px;
  border-radius: var(--r-pill);
  background: rgba(212, 245, 228, 0.9);
  color: #2F8C60;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.enroll-badge.is-closed {
  background: rgba(255, 217, 228, 0.8);
  color: var(--accent-deep);
}

.enroll-title {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.enroll-sub {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---- 场次卡片 ---- */
.session-card {
  padding: 18px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  margin-bottom: 16px;
}

.session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(200, 175, 160, 0.42);
}

.session-round {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.4px;
}

.session-seats {
  padding: 6px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 239, 201, 0.85);
  color: #B57A12;
  font-size: 12.5px;
  font-weight: 700;
}
.session-seats.is-few {
  background: rgba(255, 217, 228, 0.9);
  color: var(--accent-deep);
}
.session-seats.is-full {
  background: rgba(160, 150, 145, 0.2);
  color: var(--ink-soft);
}

.session-rows { display: flex; flex-direction: column; gap: 12px; }

.session-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.session-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.session-ico svg { width: 19px; height: 19px; }
.session-ico[data-tone="pink"] { background: rgba(255, 217, 228, 0.65); color: #E86A8E; }
.session-ico[data-tone="blue"] { background: rgba(214, 236, 255, 0.75); color: #4A9BD8; }
.session-ico[data-tone="mint"] { background: rgba(212, 245, 228, 0.8);  color: #3FA97A; }

.session-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.session-text em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.5px;
}
.session-text strong {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.session-text span {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.session-notes {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(200, 175, 160, 0.42);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.55;
}
.session-notes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-deep);
  opacity: 0.65;
}

/* ---- 密码关卡 ---- */
.gate {
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  text-align: center;
}

.gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(255, 217, 228, 0.8), rgba(255, 239, 201, 0.7));
  color: var(--accent-deep);
}
.gate-icon svg { width: 28px; height: 28px; }

.gate-title {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.gate-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.gate-input-row {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.gate-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 2px solid rgba(200, 175, 160, 0.32);
  border-radius: var(--r-pill);
  background: #FFFDF8;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 1px;
  transition: all 0.28s var(--ease);
}
.gate-input::placeholder {
  color: var(--ink-light);
  letter-spacing: 0;
}
.gate-input:focus {
  outline: none;
  border-color: var(--pink-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 217, 228, 0.42);
}

.gate-btn {
  flex-shrink: 0;
  padding: 14px 28px;
  font-size: 15px;
}

.gate-error {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-deep);
}

/* ---- 表单 ---- */
.enroll-form { display: flex; flex-direction: column; gap: 18px; }
.enroll-form[hidden] { display: none; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  margin-top: 4px;
}
.form-section-title span {
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--pink-deep), var(--accent-warm));
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
}
.form-label i {
  font-style: normal;
  color: var(--accent-deep);
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(200, 175, 160, 0.28);
  border-radius: 16px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: all 0.26s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea { resize: vertical; min-height: 60px; line-height: 1.65; }

.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6B63' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 17px;
  padding-right: 42px;
  cursor: pointer;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-light); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(255, 217, 228, 0.4);
}

.form-field input.is-invalid {
  border-color: var(--accent-deep);
  background: rgba(255, 217, 228, 0.18);
}

/* 兴趣标签 */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.interest-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border-radius: 14px;
  border: 2px solid rgba(200, 175, 160, 0.26);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.26s var(--ease);
  user-select: none;
}
.interest-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.interest-chip:hover {
  border-color: rgba(201, 61, 102, 0.4);
  transform: translateY(-2px);
}
.interest-chip:has(input:checked) {
  background: linear-gradient(135deg, rgba(255, 217, 228, 0.85), rgba(255, 239, 201, 0.7));
  border-color: var(--pink-deep);
  color: var(--accent-deep);
}

.form-error {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 217, 228, 0.55);
  color: var(--accent-deep);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

.form-privacy {
  text-align: center;
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ---- 成功页 ---- */
.enroll-success {
  text-align: center;
  padding: 26px 12px 12px;
  animation: popIn 0.5s var(--ease);
}
.enroll-success[hidden] { display: none; }

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(212, 245, 228, 0.95), rgba(168, 224, 200, 0.8));
  color: #2F8C60;
  box-shadow: 0 12px 32px rgba(63, 169, 122, 0.24);
}

.success-title {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.success-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.success-id {
  display: inline-block;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 239, 201, 0.8);
  color: #B57A12;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.success-note {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 26px;
}

/* 报名关闭态 */
.closed-box {
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  text-align: center;
}
.closed-box .closed-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(160, 150, 145, 0.14);
  color: var(--ink-light);
}
.closed-box h3 {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.closed-box p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .modal { padding: 12px; align-items: flex-end; }

  .modal-panel {
    max-height: calc(100vh - 24px);
    border-radius: var(--r-lg) var(--r-lg) 22px 22px;
  }

  .modal-scroll { padding: 26px 18px 22px; }

  .enroll-title { font-size: 22px; }

  .session-card { padding: 18px 16px; }
  .session-top { flex-wrap: wrap; gap: 8px; }
  .session-round { font-size: 17px; }

  .gate { padding: 24px 16px; }
  .gate-input-row { flex-direction: column; }
  .gate-btn { width: 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }

  .modal-close { top: 10px; right: 10px; width: 34px; height: 34px; }
}

/* ============================================================
   管理后台
   ============================================================ */
.admin-fab {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-soft);
  box-shadow: var(--sh-md);
  transition: all 0.32s var(--ease);
}
.admin-fab:hover {
  transform: translateY(-3px) rotate(45deg);
  color: var(--accent-deep);
  box-shadow: var(--sh-lg);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.admin-modal[hidden] { display: none; }

.admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 63, 58, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease);
}

.admin-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  border-radius: var(--r-xl);
  background: #FFFDF8;
  box-shadow: 0 30px 80px rgba(74, 63, 58, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popIn 0.4s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, #C93D66, #B83258);
  color: #fff;
  flex-shrink: 0;
}
.admin-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.admin-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: all 0.26s var(--ease);
}
.admin-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

/* 登录 */
.admin-login {
  padding: 40px 28px 36px;
  text-align: center;
}
.admin-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(255, 217, 228, 0.85), rgba(255, 239, 201, 0.7));
  color: var(--accent-deep);
}
.admin-login h3 {
  font-family: "Baloo 2", "Noto Sans SC", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
}
.admin-login-row {
  display: flex;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.admin-login-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 2px solid rgba(200, 175, 160, 0.32);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.26s var(--ease);
}
.admin-login-row input:focus {
  outline: none;
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(255, 217, 228, 0.4);
}
.admin-login-err {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-deep);
}

/* 主体 */
.admin-body {
  overflow-y: auto;
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
}
.admin-body::-webkit-scrollbar { width: 6px; }
.admin-body::-webkit-scrollbar-thumb { background: var(--pink-deep); border-radius: 3px; }

.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-stat {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-stat em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.5px;
}
.admin-stat strong {
  font-family: "Baloo 2", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.admin-stat strong.is-open { color: #2F8C60; font-size: 20px; }
.admin-stat strong.is-closed { color: var(--accent-deep); font-size: 20px; }
.admin-stat span {
  font-size: 12px;
  color: var(--ink-light);
}

.admin-section {
  padding: 18px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.4px;
}
.admin-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-deep);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  transition: background 0.24s var(--ease);
}
.admin-link:hover { background: rgba(255, 217, 228, 0.5); }

/* 开关 */
.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-switch-text { display: flex; flex-direction: column; gap: 3px; }
.admin-switch-text strong { font-size: 14.5px; color: var(--ink); }
.admin-switch-text span { font-size: 12px; color: var(--ink-light); }

.admin-switch {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 32px;
  border-radius: var(--r-pill);
  background: rgba(180, 170, 165, 0.35);
  transition: background 0.3s var(--ease);
}
.admin-switch[aria-checked="true"] { background: #3FA97A; }
.admin-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.admin-switch[aria-checked="true"] .admin-switch-knob { transform: translateX(24px); }

/* 表单 */
.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.admin-field input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(200, 175, 160, 0.26);
  border-radius: 12px;
  background: #FFFDF8;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.24s var(--ease);
}
.admin-field input:focus {
  outline: none;
  border-color: var(--pink-deep);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 217, 228, 0.4);
}
.admin-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-btn-primary {
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #D94A72, #C93D66);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 8px 22px rgba(201, 61, 102, 0.28);
  transition: all 0.28s var(--ease);
}
.admin-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 61, 102, 0.36); }
.admin-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.admin-save { width: 100%; margin-top: 14px; }

.admin-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-btn-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #3FA97A, #2F8C60);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(63, 169, 122, 0.26);
  transition: all 0.28s var(--ease);
}
.admin-btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(63, 169, 122, 0.34); }

.admin-btn-ghost {
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: #FFF8E7;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.26s var(--ease);
}
.admin-btn-ghost:hover { background: #FFEFC9; color: var(--ink); }

/* 表格 */
.admin-table-wrap {
  max-height: 240px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(200, 175, 160, 0.22);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.admin-table thead th {
  position: sticky;
  top: 0;
  padding: 9px 10px;
  background: #FFF8E7;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(200, 175, 160, 0.28);
}
.admin-table tbody td {
  padding: 9px 10px;
  color: var(--ink);
  border-bottom: 1px solid rgba(200, 175, 160, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255, 248, 231, 0.6); }

.admin-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 217, 228, 0.6);
  color: var(--accent-deep);
  transition: all 0.24s var(--ease);
}
.admin-del:hover { background: var(--accent-deep); color: #fff; }

.admin-empty {
  text-align: center;
  color: var(--ink-light);
  padding: 24px 0 !important;
}

/* 提示 */
.admin-toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(10px);
  padding: 11px 24px;
  border-radius: var(--r-pill);
  background: rgba(74, 63, 58, 0.94);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  max-width: calc(100% - 40px);
}
.admin-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.admin-toast.is-error { background: rgba(201, 61, 102, 0.96); }

@media (max-width: 640px) {
  .admin-fab { right: 16px; bottom: 74px; width: 46px; height: 46px; }
  .admin-panel { max-height: calc(100vh - 24px); border-radius: var(--r-lg); }
  .admin-body { padding: 16px 16px 22px; }
  .admin-field-row { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; }
  .admin-table tbody td { max-width: 80px; }
}
