/**
 * 艺韵美育 — 艺术教育主题样式
 * 暖色米白基底 + 淡彩点缀（粉/蓝/紫）+ 木色 + 苔绿
 * 大留白 · 大圆角 · 艺术画册排版
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系 — 暖色艺术主题
   ============================================================ */
:root {
  /* 基底色 — 米白暖调 */
  --bg-warm: #FFFBF5;
  --bg-cream: #FFFAF0;
  --bg-white: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #FFFFFF;

  /* 点缀色 — 淡彩艺术 */
  --pastel-pink: #F2D0D9;
  --pastel-pink-light: rgba(242, 208, 217, 0.35);
  --pastel-pink-text: #C4828E;
  --pastel-blue: #D0E0F2;
  --pastel-blue-light: rgba(208, 224, 242, 0.35);
  --pastel-blue-text: #7A9CC6;
  --pastel-purple: #E0D4F2;
  --pastel-purple-light: rgba(224, 212, 242, 0.35);
  --pastel-purple-text: #9B8AC6;
  --pastel-yellow: #F9F0D0;
  --pastel-yellow-light: rgba(249, 240, 208, 0.4);

  /* 木质 & 苔绿 */
  --wood: #C4A882;
  --wood-light: rgba(196, 168, 130, 0.2);
  --wood-dark: #A88B65;
  --moss: #8BA888;
  --moss-light: rgba(139, 168, 136, 0.2);
  --moss-dark: #6B8A68;

  /* 文字色阶 */
  --text-primary: #3D3226;
  --text-secondary: #6B5E4F;
  --text-muted: #9B8E7F;
  --text-light: #C4B8A8;

  /* 边框 */
  --border-subtle: rgba(196, 168, 130, 0.2);
  --border-wood: rgba(196, 168, 130, 0.4);
  --border-pink: rgba(242, 208, 217, 0.6);
  --border-blue: rgba(208, 224, 242, 0.6);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(61, 50, 38, 0.04);
  --shadow-card: 0 4px 20px rgba(61, 50, 38, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(61, 50, 38, 0.1);
  --shadow-btn: 0 4px 14px rgba(196, 168, 130, 0.25);

  /* 圆角 */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* 间距 */
  --section-py: 90px;
  --container-max: 1200px;
  --header-h: 76px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-normal: 320ms;
  --duration-slow: 550ms;

  /* 字体 */
  --font-heading: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', 'PingFang SC', 'Microsoft YaHei', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 暖光背景纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(242, 208, 217, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(208, 224, 242, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 70%, rgba(224, 212, 242, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 30% 85%, rgba(249, 240, 208, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

::selection {
  background: rgba(242, 208, 217, 0.4);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--wood); }

a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}
input::placeholder, textarea::placeholder {
  color: var(--text-light);
  opacity: 1;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 28px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 1.5px;
  background: var(--moss);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background: var(--bg-cream);
}

/* ============================================================
   Header 头部 — 米白半透 + 淡彩
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 251, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 251, 245, 0.97);
  box-shadow: 0 2px 24px rgba(61, 50, 38, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-purple));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.header__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--moss);
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  font-weight: 500;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--text-primary);
  background: var(--pastel-pink-light);
}

/* 导航下拉 */
.header__nav-item {
  position: relative;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.header__dropdown a:hover {
  color: var(--pastel-pink-text);
  background: var(--pastel-pink-light);
}

/* 头部 CTA */
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: transparent;
  color: var(--pastel-pink-text);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--pastel-pink);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  margin-left: 16px;
}

.header__cta:hover {
  color: #fff;
  background: var(--pastel-pink-text);
  border-color: var(--pastel-pink-text);
  box-shadow: 0 4px 16px rgba(196, 130, 142, 0.3);
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(61, 50, 38, 0.08);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__inner {
  padding: 24px;
  padding-top: 80px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav__link:hover {
  color: var(--text-primary);
  background: var(--pastel-pink-light);
}

.mobile-nav__sub {
  padding-left: 16px;
  display: none;
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 50, 38, 0.3);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav__overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 251, 245, 0.4) 0%,
    rgba(255, 251, 245, 0.6) 50%,
    var(--bg-warm) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.inner-banner__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.inner-banner__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* 面包屑 */
.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: var(--moss);
}

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-light);
}

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--pastel-pink-text), var(--pastel-purple-text));
  color: #fff;
}

.btn--primary:hover {
  color: #fff;
  box-shadow: var(--shadow-btn);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--pastel-pink-text);
  border: 2px solid var(--pastel-pink);
}

.btn--outline:hover {
  background: var(--pastel-pink-text);
  color: #fff;
  border-color: var(--pastel-pink-text);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  background: var(--bg-cream);
  color: var(--text-primary);
  border-color: var(--wood);
}

.btn--moss {
  background: var(--moss);
  color: #fff;
}

.btn--moss:hover {
  background: var(--moss-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 168, 136, 0.35);
}

/* ============================================================
   卡片系统 — 米白 + 淡彩细边框
   ============================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-wood);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-cream);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.06);
}

.card__body {
  padding: 20px;
}

.card__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--moss);
  background: var(--moss-light);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pastel-pink-text);
  margin-top: 6px;
}

/* 课程卡片淡彩版本 */
.card--pink { border-color: var(--border-pink); }
.card--pink:hover { border-color: var(--pastel-pink); box-shadow: 0 8px 32px rgba(242, 208, 217, 0.25); }
.card--blue { border-color: var(--border-blue); }
.card--blue:hover { border-color: var(--pastel-blue); box-shadow: 0 8px 32px rgba(208, 224, 242, 0.25); }
.card--purple { border-color: rgba(224, 212, 242, 0.5); }
.card--purple:hover { border-color: var(--pastel-purple); box-shadow: 0 8px 32px rgba(224, 212, 242, 0.25); }

/* ============================================================
   首页 — Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: var(--bg-cream);
}

/* Swiper 背景 */
.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* 淡彩遮罩 */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(255, 251, 245, 0.2) 0%,
    rgba(255, 251, 245, 0.4) 35%,
    rgba(255, 251, 245, 0.82) 80%,
    var(--bg-warm) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Swiper 分页器 */
.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: rgba(196, 168, 130, 0.35);
  opacity: 1;
  transition: all var(--duration-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 48px;
  background: var(--wood);
}

/* 滚动指示器 */
.hero__scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollFloat 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--wood), transparent);
}

@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   首页 — 淡彩装饰波浪
   ============================================================ */
.wave-decoration {
  position: relative;
  overflow: hidden;
}

.wave-decoration::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--pastel-pink) 20%,
    var(--pastel-purple) 40%,
    var(--pastel-blue) 60%,
    var(--moss) 80%,
    transparent 100%
  );
  border-radius: 2px;
  z-index: 1;
}

/* ============================================================
   首页 — 学校数据（数字滚动）
   ============================================================ */
.stats-section {
  background: var(--bg-cream);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-item__number span {
  background: linear-gradient(135deg, var(--pastel-pink-text), var(--wood));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — 课程分类图标卡片
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.category-card:nth-child(1):hover { border-color: var(--pastel-pink); }
.category-card:nth-child(2):hover { border-color: var(--pastel-blue); }
.category-card:nth-child(3):hover { border-color: var(--pastel-purple); }
.category-card:nth-child(4):hover { border-color: var(--wood); }
.category-card:nth-child(5):hover { border-color: var(--moss); }

.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--duration-normal) var(--ease-spring);
}

.category-card:nth-child(1) .category-card__icon { background: var(--pastel-pink-light); color: var(--pastel-pink-text); }
.category-card:nth-child(2) .category-card__icon { background: var(--pastel-blue-light); color: var(--pastel-blue-text); }
.category-card:nth-child(3) .category-card__icon { background: var(--pastel-purple-light); color: var(--pastel-purple-text); }
.category-card:nth-child(4) .category-card__icon { background: var(--wood-light); color: var(--wood-dark); }
.category-card:nth-child(5) .category-card__icon { background: var(--moss-light); color: var(--moss-dark); }

.category-card:hover .category-card__icon {
  transform: scale(1.12);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.category-card__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — 错落作品画廊
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 错落：大卡片占2行 */
.works-grid .work-card--large {
  grid-row: span 2;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-cream);
}

.work-card--large {
  aspect-ratio: auto;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(61, 50, 38, 0.6));
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__info {
  color: #fff;
}

.work-card__info .work-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.work-card__info .work-card__author {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   首页 — 师资卡片
   ============================================================ */
.teacher-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--wood);
}

.teacher-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--bg-cream);
  border: 3px solid var(--pastel-pink-light);
}

.teacher-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.teacher-card__role {
  font-size: 0.82rem;
  color: var(--pastel-pink-text);
  margin-bottom: 8px;
}

.teacher-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   首页 — CTA
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 52px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pastel-pink-light), var(--pastel-blue-light), var(--pastel-purple-light));
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 168, 130, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.cta-section__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================
   列表页 — 网格
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 首页“热门课程”：仅展示 4 门，桌面一行 4 个 */
.list-grid--courses {
  grid-template-columns: repeat(4, 1fr);
}

.list-header {
  text-align: center;
  margin-bottom: 48px;
}

.list-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

/* 子栏目过滤栏 */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 36px;
}

.filter-bar a {
  display: inline-flex;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--pastel-pink-text);
  border-color: var(--pastel-pink);
  background: var(--pastel-pink-light);
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 880px;
  margin: 0 auto;
}

.detail__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 10px;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail__meta-row i {
  margin-right: 3px;
  color: var(--moss);
}

.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.detail__param {
  padding: 16px;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  text-align: center;
}

.detail__param-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail__param-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
}

.detail__body img {
  border-radius: var(--radius-md);
  margin: 20px 0;
  max-width: 100%;
}

.detail__body p { margin-bottom: 14px; }
.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 14px;
}

.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail__pager a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.detail__pager a:hover {
  color: var(--moss);
}

/* 相关推荐 */
.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 52px 0 20px;
  color: var(--text-primary);
}

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

/* ============================================================
   师资页 — 列表
   ============================================================ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 首页“师资团队”：仅 3 位 → 一行 3 个 */
.teachers-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

/* “师资团队”列表页：桌面一行 3 个（6 位 → 两行） */
.teachers-grid--list {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.teachers-grid--list .teacher-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all var(--duration-fast) var(--ease-out);
}

.contact-info__item:hover {
  border-color: var(--wood);
  box-shadow: var(--shadow-sm);
}

.contact-info__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--moss-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moss);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 联系表单 */
.contact-form-card {
  padding: 36px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-group label .required {
  color: var(--pastel-pink-text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-cream);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-control:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px var(--wood-light);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239B8E7F' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box {
  max-width: 680px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 10px;
}

.search-form-row input {
  flex: 1;
  padding: 14px 18px;
  padding-left: 42px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.search-form-row input:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px var(--wood-light);
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

.search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  margin-bottom: 10px;
}

.search-result-item:hover {
  border-color: var(--wood);
  box-shadow: var(--shadow-sm);
}

.search-result-item__thumb {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-cream);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__date {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.search-result-item__desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   体验预约页
   ============================================================ */
.trial-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 44px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
  background: var(--pastel-pink-light);
  color: var(--pastel-pink-text);
}

.pagination .active {
  background: linear-gradient(135deg, var(--pastel-pink-text), var(--pastel-purple-text));
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 14px;
  display: block;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================
   Footer 底部
   ============================================================ */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  border-top: 4px solid var(--pastel-pink);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 36px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 16px 0;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--pastel-pink-text);
  color: #fff;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--pastel-pink);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 9px;
}

.footer__contact-item i {
  color: var(--moss);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__qrcode {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
  margin-top: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--duration-fast);
}

.footer__bottom a:hover {
  color: var(--pastel-pink);
}

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}

.friend-links__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.friend-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--duration-fast);
}

.friend-links a:hover {
  color: var(--pastel-pink);
}

/* ============================================================
   返回顶部 + 在线客服
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 130px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--wood);
  color: #fff;
  border-color: var(--wood);
}

/* 在线客服 */
.online-service {
  position: fixed;
  right: 20px;
  bottom: 70px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moss), var(--moss-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 80;
  border: none;
  box-shadow: 0 4px 16px rgba(139, 168, 136, 0.35);
  transition: all var(--duration-normal) var(--ease-spring);
  animation: servicePulse 3s ease-in-out infinite;
}

.online-service:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(139, 168, 136, 0.45);
}

@keyframes servicePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(139, 168, 136, 0.3); }
  50% { box-shadow: 0 4px 28px rgba(139, 168, 136, 0.5); }
}

/* ============================================================
   动画系统 — 艺术美育专属
   ============================================================ */

/* 淡彩浮入 */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-element {
  animation: gentleFloat 4s ease-in-out infinite;
}

.float-element--slow {
  animation: gentleFloat 6s ease-in-out infinite;
}

/* 呼吸光晕 */
@keyframes breatheWarm {
  0%, 100% { box-shadow: 0 0 8px rgba(242, 208, 217, 0.15); }
  50% { box-shadow: 0 0 24px rgba(242, 208, 217, 0.35); }
}

/* 淡彩文字流光 */
@keyframes textShimmerWarm {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer-warm {
  background: linear-gradient(90deg,
    var(--pastel-pink-text) 0%,
    var(--wood) 25%,
    var(--pastel-purple-text) 50%,
    var(--moss) 75%,
    var(--pastel-pink-text) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmerWarm 5s linear infinite;
}

/* 按钮脉冲 */
@keyframes btnPulseWarm {
  0% { box-shadow: 0 0 0 0 rgba(196, 130, 142, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(196, 130, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 130, 142, 0); }
}

.btn--primary.pulse {
  animation: btnPulseWarm 2.2s infinite;
}

/* 卡片入场错位 */
[data-aos] {
  transition-timing-function: var(--ease-out);
}

/* ============================================================
   AOS 调整
   ============================================================ */
[data-aos=fade-up] {
  transform: translateY(30px);
}

[data-aos=fade-right] {
  transform: translateX(-30px);
}

[data-aos=fade-left] {
  transform: translateX(30px);
}

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 64px; }

  .header__nav,
  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

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

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

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

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail__pager {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 50px; }

  .hero {
    height: 58vh;
    min-height: 400px;
    max-height: 520px;
  }

  .hero__content {
    padding-bottom: 64px;
  }

  .inner-banner {
    height: 200px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr); /* 5 张 → 第一行 3 个，第二行 2 个 */
    gap: 10px 8px;
  }

  .category-card {
    padding: 18px 8px;
  }

  .category-card__icon {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .category-card__name {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* 学校数据 4 方框移动端压缩 */
  .stats-section {
    padding: 26px 0 !important;
  }

  .stat-item {
    padding: 10px 4px;
  }

  .stat-item__number {
    font-size: 1.5rem;
    margin-bottom: 3px;
  }

  .stat-item__label {
    font-size: 0.78rem;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  /* 首页热门课程：手机端一行两个 */
  .list-grid--courses {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .works-grid {
    grid-template-columns: repeat(3, 1fr); /* 6 幅 = 两行三列 */
    gap: 8px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .card__body {
    padding: 14px;
  }

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

  .related-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 24px;
  }

  .trial-form-wrapper {
    padding: 24px;
  }

  .search-result-item {
    flex-direction: column;
  }

  .search-result-item__thumb {
    width: 100%;
    height: 140px;
  }

  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }

  .back-top, .online-service {
    right: 10px;
  }

  .online-service {
    bottom: 56px;
  }

  .back-top {
    bottom: 110px;
  }
}

/* ============================================================
   响应式 — 小屏 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  body { font-size: 14px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@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;
  }
}

/* ============================================================
   首页“师资团队”模块（专属压缩，不影响其他师资列表）
   ============================================================ */
/* 平板保持一行 3 个（不落单） */
@media (min-width: 768px) and (max-width: 1023px) {
  .teachers-grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机端：一行 3 个小卡，头像~70px，隐藏长简介 */
@media (max-width: 767px) {
  .teachers-grid--home {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .teachers-grid--home .teacher-card {
    padding: 16px 6px 14px;
  }

  .teachers-grid--home .teacher-card__avatar {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    border-width: 2px;
  }

  .teachers-grid--home .teacher-card__name {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }

  .teachers-grid--home .teacher-card__role {
    font-size: 0.74rem;
    margin-bottom: 0;
  }

  .teachers-grid--home .teacher-card__desc {
    display: none;
  }
}

/* ============================================================
   首页“活动演出”模块：手机端一行两个，压缩图卡
   ============================================================ */
@media (max-width: 767px) {
  .list-grid--events {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .list-grid--events .card__image {
    aspect-ratio: 4 / 3;
  }

  .list-grid--events .card__body {
    padding: 12px;
  }

  .list-grid--events .card__desc {
    -webkit-line-clamp: 1;
  }

  .list-grid--events .card__meta {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 0.78rem;
  }
}

/* ============================================================
   首页“新闻资讯”模块：手机端一行一条、横向紧凑小卡
   ============================================================ */
@media (max-width: 767px) {
  .home-news .search-result-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  .home-news .search-result-item__thumb {
    width: 88px;
    height: 64px;
  }

  .home-news .search-result-item__title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .home-news .search-result-item__date {
    margin-bottom: 0;
  }

  /* 手机上隐藏长简介，仅标题+日期，压到最短 */
  .home-news .search-result-item__desc {
    display: none;
  }
}

/* ============================================================
   首页 CTA 色块：压缩上下留白
   ============================================================ */
@media (max-width: 767px) {
  .cta-section {
    padding: 34px 0 40px;
  }

  .cta-section__title {
    margin-bottom: 10px;
  }

  .cta-section__buttons {
    margin-top: 18px;
    gap: 10px;
  }
}

/* ============================================================
   页脚“快速导航”：手机端链接横向排成一行
   ============================================================ */
@media (max-width: 767px) {
  .footer__links {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }

  .footer__links a {
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .footer__links a {
    font-size: 0.7rem;
  }
}

/* ============================================================
   列表页“课程中心 / 课程子栏目”：手机端一行两个
   （list.html 中通过 {sort:tcode}==2 判断为课程类才加该 class）
   ============================================================ */
@media (max-width: 767px) {
  .list-grid--phone2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ============================================================
   “师资团队”列表页：平板一行 3 个；手机端老师卡一行 2 个
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .teachers-grid--list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .teachers-grid--list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .teachers-grid--list .teacher-card {
    padding: 18px 10px 16px;
  }

  .teachers-grid--list .teacher-card__avatar {
    width: 84px;
    height: 84px;
    margin-bottom: 10px;
    border-width: 2px;
  }

  .teachers-grid--list .teacher-card__name {
    font-size: 0.98rem;
    margin-bottom: 2px;
  }

  .teachers-grid--list .teacher-card__role {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  /* 手机端隐藏长简介，只留头像+姓名+方向 */
  .teachers-grid--list .teacher-card__desc {
    display: none;
  }
}

/* ============================================================
   “学员作品”列表页：方块图墙，桌面一行 4 个 / 手机一行 3 个
   ============================================================ */
.works-grid--list {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .works-grid--list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .works-grid--list {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ============================================================
   “新闻资讯”列表页：一行一条
   桌面：左大图 + 右侧标题/日期/简介；
   手机：横向单条（小图+标题+日期，隐藏简介）压缩高度
   ============================================================ */
.news-page .search-result-item {
  gap: 20px;
  padding: 18px;
}

.news-page .search-result-item__thumb {
  width: 220px;
  height: 148px;
  border-radius: var(--radius-md);
}

.news-page .search-result-item__title {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.news-page .search-result-item__date {
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .news-page .search-result-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  .news-page .search-result-item__thumb {
    width: 88px;
    height: 64px;
    border-radius: var(--radius-sm);
  }

  .news-page .search-result-item__title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .news-page .search-result-item__date {
    font-size: 0.72rem;
    margin-bottom: 0;
  }

  .news-page .search-result-item__desc {
    display: none;
  }
}
