/**
 * 学无界 EduBeyond — 在线教育平台主题样式
 * 亮色活力风格：白底 + 深灰文字 + 品牌橙 #FF6B35
 * 大圆角 / 大留白 / 年轻知识社区感
 * 纯原生 CSS，无框架依赖
 */

/* Google Fonts — Noto Sans SC (简体中文) + Inter (英文/数字) */


/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* 品牌色 — 活力橙 */
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FFF0EB;
  --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);

  /* 辅助色 */
  --blue: #3B82F6;
  --blue-light: #EFF6FF;
  --purple: #7C3AED;
  --purple-light: #F5F3FF;
  --green: #10B981;
  --green-light: #ECFDF5;
  --yellow: #F59E0B;
  --yellow-light: #FFFBEB;

  /* 背景 */
  --bg: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-warm: #FFFAF7;

  /* 文字 */
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  /* 边框 */
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-orange: 0 8px 30px rgba(255,107,53,0.2);

  /* 圆角 — 大圆角年轻感 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;

  /* 字体 */
  --font-heading: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection { background: rgba(255,107,53,0.18); color: var(--text); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
/* ★ 防止Grid/Flex子元素溢出容器 */
.stats > *, .cats-grid > *, .list-grid > *, .features > *,
.footer__grid > *, .contact-grid > *, .course-detail-grid > *,
.hero__content > *, .container > *, .header__inner > * { min-width: 0; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

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

.section { padding: var(--section-py) 0; }
.section--gray { background: var(--bg-surface); }
.section--warm { background: var(--bg-warm); }

/* 区块标题组 — 统一标题与内容的间距，便于移动端整体压缩 */
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .section-subtitle { margin: 0 auto; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

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

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

/* ============================================================
   Header 头部 — 白色实底 + 深色文字
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--dur) var(--ease-out);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.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: var(--primary-gradient);
  border-radius: var(--radius);
  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: 800;
  color: var(--text);
}

.header__logo-sub {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
}

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

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.header__nav-link:hover,
.header__nav-link.active {
  color: var(--primary);
  background: var(--primary-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;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease-out);
  z-index: 60;
}
.header__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
}
.header__dropdown a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Header CTA按钮 */
.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-left: 16px;
  transition: all var(--dur) var(--ease-out);
}
.header__cta:hover {
  color: #fff;
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

/* ============================================================
   汉堡菜单（移动端）★ 独立于 nav_actions (13.4)
   ============================================================ */
.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);
  border-radius: 1px;
  transition: all var(--dur) 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: #fff;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease-out);
  overflow-y: auto;
}
.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; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
}
.mobile-nav__link:hover { color: var(--primary); background: var(--primary-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__sub a:hover { color: var(--primary); }
.mobile-nav__overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 115;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur);
}
.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   Hero Banner（首页）
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 850px;
  overflow: hidden;
  background: var(--bg-surface);
}

.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(248,250,252,0.1) 0%, rgba(248,250,252,0.6) 70%, var(--bg) 100%);
}

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

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hero__title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

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

/* Hero Swiper 分页器 */
.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 32px; height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.15);
  opacity: 1;
}
.hero-pagination .swiper-pagination-bullet-active {
  width: 48px;
  background: var(--primary);
}

/* ============================================================
   Hero 白色版本（用于非首页，简洁）
   ============================================================ */
.hero--light {
  height: auto;
  min-height: auto;
  max-height: none;
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: var(--bg-surface);
}
.hero--light .hero__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ============================================================
   数字滚动统计（平台数据）
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.stat-card:hover::before { transform: scaleX(1); }

.stat-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-card:nth-child(1) .stat-card__icon { background: var(--primary-light); color: var(--primary); }
.stat-card:nth-child(2) .stat-card__icon { background: var(--blue-light); color: var(--blue); }
.stat-card:nth-child(3) .stat-card__icon { background: var(--purple-light); color: var(--purple); }
.stat-card:nth-child(4) .stat-card__icon { background: var(--green-light); color: var(--green); }

.stat-card__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
/* 数字后缀（+ / 万），与数字同色系区分 */
.stat-card__suffix {
  font-size: 1.5rem;
  font-weight: 800;
  margin-left: 2px;
}
.stat-card:nth-child(1) .stat-card__suffix { color: var(--primary); }
.stat-card:nth-child(2) .stat-card__suffix { color: var(--blue); }
.stat-card:nth-child(3) .stat-card__suffix { color: var(--purple); }
.stat-card:nth-child(4) .stat-card__suffix { color: var(--green); }

/* ============================================================
   卡片系统 — 纯白卡片+品牌色点缀
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
}
.card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .card__image img { transform: scale(1.06); }

.card__image .card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem; font-weight: 700;
  color: #fff;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card__tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  align-self: flex-start;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.card__meta i { color: var(--primary); margin-right: 2px; }

.card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

/* 分类卡片（大卡片，用于课程分类） */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease-out);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card:nth-child(1):hover { border-color: var(--primary); }
.category-card:nth-child(2):hover { border-color: var(--blue); }
.category-card:nth-child(3):hover { border-color: var(--purple); }
.category-card:nth-child(4):hover { border-color: var(--green); }
.category-card:nth-child(5):hover { border-color: var(--yellow); }
.category-card:nth-child(6):hover { border-color: var(--primary); }

.category-card__icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.category-card:nth-child(1) .category-card__icon { background: var(--primary-light); color: var(--primary); }
.category-card:nth-child(2) .category-card__icon { background: var(--blue-light); color: var(--blue); }
.category-card:nth-child(3) .category-card__icon { background: var(--purple-light); color: var(--purple); }
.category-card:nth-child(4) .category-card__icon { background: var(--green-light); color: var(--green); }
.category-card:nth-child(5) .category-card__icon { background: var(--yellow-light); color: var(--yellow); }
.category-card:nth-child(6) .category-card__icon { background: var(--primary-light); color: var(--primary); }

.category-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.category-card__count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 特色卡片（用于三大亮点/为什么选择我们） */
.feature-card {
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform var(--dur) var(--ease-spring);
}
.feature-card:hover .feature-card__icon { transform: scale(1.1) rotate(-5deg); }
.feature-card__icon--orange { background: var(--primary-light); color: var(--primary); }
.feature-card__icon--blue { background: var(--blue-light); color: var(--blue); }
.feature-card__icon--purple { background: var(--purple-light); color: var(--purple); }
.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   讲师卡片
   ============================================================ */
.teacher-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease-out);
}
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.teacher-card__avatar {
  width: 100px; height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-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: 700;
  margin-bottom: 4px;
}
.teacher-card__field {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.teacher-card__students {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.teacher-card__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.teacher-card__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--dur-fast);
}
.teacher-card__social a:hover { background: var(--primary); color: #fff; }

/* ============================================================
   评价卡片
   ============================================================ */
.review-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease-out);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.review-card__stars {
  color: var(--yellow);
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.review-card__author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-surface);
}
.review-card__author-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.review-card__author-course {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   新闻列表项
   ============================================================ */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease-out);
  margin-bottom: 12px;
}
.news-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.news-item__image {
  width: 200px; height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
}
.news-item__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.news-item__body { flex: 1; min-width: 0; }
.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.news-item__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.news-item__date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-surface);
  margin-top: var(--header-h);
}
.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,255,255,0.7) 0%, rgba(248,250,252,0.85) 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;
}
.inner-banner__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.inner-banner__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* 面包屑 */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 0.6rem; }

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

.detail__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.detail__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.detail__meta-row i { color: var(--primary); margin-right: 4px; }

/* 课程详情参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.detail__param {
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-align: center;
}
.detail__param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.detail__param-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.detail__body {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.98rem;
}
.detail__body img { border-radius: var(--radius-md); margin: 24px 0; max-width: 100%; }
.detail__body p { margin-bottom: 16px; }
.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 16px;
}

/* 课程详情布局（左图右信息） */
.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Tab切换 */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 28px;
}
.tab-nav button {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.tab-nav button:hover { color: var(--primary); }
.tab-nav button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 10px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.pagination .active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

/* ============================================================
   子栏目过滤栏
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 36px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
  display: inline-flex;
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--dur-fast);
}
.filter-bar a:hover,
.filter-bar a.active {
  color: #fff;
  background: var(--primary-gradient);
  border-color: transparent;
}

/* ============================================================
   CTA 区块
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}
.cta-section .btn--white {
  position: relative;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: var(--radius-full);
}

/* ============================================================
   表单系统
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--primary); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  transition: all var(--dur-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea.form-control { resize: vertical; min-height: 100px; }

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='%2394A3B8' 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: 40px;
}

/* 联系表单卡片 */
.contact-form-card {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   联系我们区块
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--dur-fast);
}
.contact-info__item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.contact-info__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-info__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   搜索
   ============================================================ */
.search-box { max-width: 700px; margin: 0 auto; }
.search-form-row {
  display: flex;
  gap: 10px;
}
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap i {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-input-wrap input {
  width: 100%;
  padding: 15px 20px 15px 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur-fast);
  margin-bottom: 10px;
}
.search-result-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.search-result-item__thumb {
  width: 120px; height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
}
.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: 1rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.search-result-item__date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.search-result-item__desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}
.empty-state p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   Footer 底部
   ============================================================ */
.footer {
  background: #1E293B;
  color: rgba(255,255,255,0.7);
}
.footer__top-line {
  height: 4px;
  background: var(--primary-gradient);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 16px 0;
  opacity: 0.8;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: all var(--dur-fast);
}
.footer__social a:hover { background: var(--primary); color: #fff; }

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: all var(--dur-fast);
}
.footer__links a:hover { color: var(--primary); opacity: 1; padding-left: 4px; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  opacity: 0.8;
}
.footer__contact-item i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 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.82rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom a { opacity: 0.8; }
.footer__bottom a:hover { color: var(--primary); opacity: 1; }

/* 友情链接 */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
}
.friend-links__label {
  font-size: 0.82rem;
  opacity: 0.5;
  flex-shrink: 0;
}
.friend-links a { font-size: 0.82rem; opacity: 0.6; transition: all var(--dur-fast); }
.friend-links a:hover { color: var(--primary); opacity: 1; }

/* ============================================================
   列表页网格
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.list-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* 讲师列表页 — 桌面四列（首页讲师模块是 3 人三列，不设此规则） */
.section--teachers .list-grid--teacher { grid-template-columns: repeat(4, 1fr); }
/* 首页热门课程 — 桌面一行四个，移动端一行两个 */
.list-grid--hot { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.list-header {
  text-align: center;
  margin-bottom: 40px;
}
.list-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px; bottom: 80px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0; pointer-events: none;
  transition: all var(--dur);
  box-shadow: var(--shadow-sm);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   在线客服按钮
   ============================================================ */
.customer-service {
  position: fixed;
  right: 20px; bottom: 140px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: var(--shadow-orange);
  transition: all var(--dur) var(--ease-spring);
  animation: csPulse 2s ease-in-out infinite;
}
.customer-service:hover { transform: scale(1.1); }
@keyframes csPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255,107,53,0.3); }
  50% { box-shadow: 0 4px 28px rgba(255,107,53,0.5); }
}

/* ============================================================
   动画系统
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes countUp { /* handled by JS */ }
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-element { animation: floatUpDown 4s ease-in-out infinite; }

/* ============================================================
   AOS 覆盖
   ============================================================ */
[data-aos] { transition-timing-function: var(--ease-out); }

/* ============================================================
   响应式断点 — 平板 (≤1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 56px; --container-max: 100%; }
  html, body { max-width: 100vw; overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
  .header__nav { display: none; }
  .header__cta { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 16px; box-sizing: border-box; width: 100%; }
  .header__inner { padding: 0 16px; }
  .hero { height: 60vh; min-height: 380px; }
  .hero__title { font-size: clamp(1.5rem, 4.5vw, 2rem); }
  .hero__subtitle { font-size: 0.9rem; }
  .hero__content { padding: 0 16px 50px 16px; }
  .hero__actions .btn { font-size: 0.85rem; padding: 10px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 20px 10px; }
  .stat-card__icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .stat-card__number { font-size: 1.5rem; }
  .stat-card__label { font-size: 0.75rem; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-card { padding: 20px 10px; }
  .category-card__icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .category-card__name { font-size: 0.85rem; }
  .features, .list-grid, .list-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* 讲师列表页四列权重高于上面的 .list-grid，需显式降为两列 */
  .section--teachers .list-grid--teacher { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .course-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .news-item { flex-direction: column; }
  .news-item__image { width: 100%; height: 160px; }
  .section-title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
  .section { padding: var(--section-py) 0; }
  .card__body { padding: 14px; }
  .card__title { font-size: 0.95rem; }
  .card__desc { font-size: 0.82rem; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .feature-card { padding: 24px 16px; }
  .feature-card__icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .teacher-card { padding: 24px 16px; }
  .review-card { padding: 20px 16px; }
  .inner-banner { height: 180px; }
  .detail__title { font-size: 1.3rem; }
  .tab-nav button { padding: 8px 12px; font-size: 0.8rem; }
  .contact-form-card { padding: 20px; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; font-size: 0.8rem; }
  /* Swiper parallax handled by Swiper itself */
}

/* ============================================================
   响应式断点 — 移动端 (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 28px; --container-max: 100%; }
  html, body { max-width: 100vw; overflow-x: hidden; }
  .container { padding: 0 12px; box-sizing: border-box; width: 100%; }
  .header__inner { padding: 0 12px; }

  .hero { height: 55vh; min-height: 340px; }
  .hero__content { padding: 0 12px 40px 12px; text-align: center; align-items: center; justify-content: flex-end; }
  .hero__title { font-size: 1.35rem; max-width: 100%; margin: 0 auto 8px; }
  .hero__subtitle { font-size: 0.85rem; max-width: 100%; margin-bottom: 16px; }
  .hero__actions { flex-direction: column; width: 100%; align-items: center; gap: 8px; }
  .hero__actions .btn { width: 100%; max-width: 280px; justify-content: center; font-size: 0.85rem; padding: 10px 18px; }
  /* Swiper parallax handled by Swiper itself */

  .section-title { font-size: 1.25rem; text-align: center; }
  .section-subtitle { font-size: 0.85rem; text-align: center; margin: 0 auto; }
  .section-tag { font-size: 0.7rem; padding: 4px 10px; }
  /* 标题组与内容之间收紧 */
  .section-head { margin-bottom: 20px; }
  .section-head--row { margin-bottom: 20px; align-items: center; }

  /* 平台数据四宫格 — 压缩高度，收紧区块上下留白 */
  .section--stats { padding: 24px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .stat-card { padding: 12px 8px; border-radius: var(--radius); }
  .stat-card__icon { width: 30px; height: 30px; font-size: 0.9rem; margin-bottom: 6px; border-radius: var(--radius-sm); }
  .stat-card__number { font-size: 1.15rem; margin-bottom: 2px; }
  .stat-card__suffix { font-size: 0.8rem; }
  .stat-card__label { font-size: 0.68rem; }

  /* 核心课程分类 — 一行三个，卡片同步缩小 */
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .category-card { padding: 12px 6px; border-radius: var(--radius); }
  .category-card__icon { width: 32px; height: 32px; font-size: 0.95rem; margin-bottom: 6px; border-radius: var(--radius-sm); }
  .category-card__name { font-size: 0.78rem; }
  .category-card__count { font-size: 0.66rem; }

  /* 移动端紧凑课程卡（一行两个）— 首页热门课程 / 课程中心共用，与桌面列数解耦 */
  .list-grid--compact .card { border-radius: var(--radius); }
  .list-grid--compact .card__body { padding: 10px; }
  .list-grid--compact .card__image .card__badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.66rem; }
  .list-grid--compact .card__tag { margin-bottom: 6px; padding: 2px 8px; font-size: 0.66rem; }
  .list-grid--compact .card__title { font-size: 0.85rem; margin-bottom: 6px; }
  .list-grid--compact .card__desc { font-size: 0.75rem; margin-bottom: 8px; }
  .list-grid--compact .card__meta { flex-wrap: wrap; gap: 4px 8px; padding-top: 8px; font-size: 0.68rem; }
  .list-grid--compact .card__price { font-size: 0.95rem; margin-top: 6px; }

  .features, .list-grid, .list-grid--4 { grid-template-columns: 1fr; gap: 12px; }
  /* 紧凑卡片网格覆盖上面的单列，改为一行两个 */
  .list-grid.list-grid--compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* 首页讲师团队 — 一行两个，卡片同步压缩 */
  .list-grid.list-grid--teacher { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .list-grid--teacher .teacher-card { padding: 14px 8px; border-radius: var(--radius); }
  .list-grid--teacher .teacher-card__avatar { width: 64px; height: 64px; margin-bottom: 8px; border-width: 2px; }
  .list-grid--teacher .teacher-card__name { font-size: 0.85rem; }
  .list-grid--teacher .teacher-card__field { font-size: 0.72rem; margin-bottom: 6px; }
  .list-grid--teacher .teacher-card__students { font-size: 0.7rem; }
  .list-grid--teacher .teacher-card__social { gap: 8px; margin-top: 8px; }
  .list-grid--teacher .teacher-card__social a { width: 28px; height: 28px; font-size: 0.7rem; }

  /* 首页学习社区 — 保持一行一个，压缩卡片高度 */
  .list-grid.list-grid--community { gap: 10px; }
  .list-grid--community .card { border-radius: var(--radius); }
  .list-grid--community .card__image { aspect-ratio: 16 / 9; }
  .list-grid--community .card__body { padding: 10px; }
  .list-grid--community .card__image .card__badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.66rem; }
  .list-grid--community .card__tag { margin-bottom: 6px; padding: 2px 8px; font-size: 0.66rem; }
  .list-grid--community .card__title { font-size: 0.85rem; margin-bottom: 6px; }
  .list-grid--community .card__desc { font-size: 0.75rem; margin-bottom: 8px; }
  .list-grid--community .card__meta { gap: 4px 8px; padding-top: 8px; font-size: 0.68rem; }

  /* 首页学员评价 — 保持一行一个，压缩卡片高度 */
  .list-grid.list-grid--review { gap: 10px; }
  .list-grid--review .review-card { padding: 14px 10px; border-radius: var(--radius); }
  .list-grid--review .review-card__stars { font-size: 0.8rem; margin-bottom: 8px; letter-spacing: 1px; }
  .list-grid--review .review-card__text { font-size: 0.8rem; line-height: 1.55; margin-bottom: 10px; }
  .list-grid--review .review-card__author { gap: 8px; padding-top: 10px; }
  .list-grid--review .review-card__author-avatar { width: 32px; height: 32px; }
  .list-grid--review .review-card__author-name { font-size: 0.82rem; }
  .list-grid--review .review-card__author-course { font-size: 0.72rem; }
  .feature-card { padding: 22px 14px; }
  .feature-card__icon { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 12px; }
  .feature-card__title { font-size: 1rem; }
  .feature-card__desc { font-size: 0.82rem; }

  .card__body { padding: 12px; }
  .card__title { font-size: 0.92rem; }
  .card__desc { font-size: 0.8rem; -webkit-line-clamp: 2; }
  .card__tag { font-size: 0.68rem; padding: 2px 8px; }
  .card__meta { font-size: 0.75rem; gap: 10px; }
  .card__price { font-size: 1rem; }

  .teacher-card { padding: 20px 12px; }
  .teacher-card__avatar { width: 72px; height: 72px; }
  .teacher-card__name { font-size: 0.95rem; }
  .teacher-card__field { font-size: 0.78rem; }
  .teacher-card__students { font-size: 0.75rem; }

  /* 讲师列表页 — 页头收紧 */
  .list-header { margin-bottom: 20px; }
  .list-header h1 { font-size: 1.4rem; }

  .review-card { padding: 18px 14px; }
  .review-card__text { font-size: 0.85rem; }

  .inner-banner { height: 140px; margin-top: var(--header-h); }
  .inner-banner__title { font-size: 1.25rem; }
  .inner-banner__subtitle { font-size: 0.85rem; }
  .inner-banner__content { padding: 0 12px; }

  .breadcrumb { padding: 10px 12px; font-size: 0.78rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; font-size: 0.75rem; }

  .tab-nav { overflow-x: auto; }
  .tab-nav button { padding: 8px 12px; font-size: 0.78rem; white-space: nowrap; flex-shrink: 0; }

  .contact-form-card { padding: 16px; }
  .contact-info__item { padding: 14px 12px; }
  .form-group { margin-bottom: 12px; }
  .form-control { padding: 10px 12px; font-size: 0.85rem; }

  .detail__params { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .detail__param { padding: 12px 8px; }
  .detail__param-label { font-size: 0.7rem; }
  .detail__param-value { font-size: 0.9rem; }
  .detail__body { font-size: 0.9rem; }

  .search-result-item { flex-direction: column; padding: 12px; }
  .search-result-item__thumb { width: 100%; height: 120px; }
  .search-result-item__title { font-size: 0.9rem; }
  .search-form-row { flex-direction: column; }

  .pagination { gap: 2px; margin-top: 32px; }
  .pagination a, .pagination span { min-width: 30px; height: 30px; font-size: 0.75rem; padding: 0 6px; }

  .btn { padding: 10px 18px; font-size: 0.85rem; }

  .news-item { flex-direction: column; padding: 12px; }
  .news-item__image { width: 100%; height: 140px; }
  .news-item__title { font-size: 0.9rem; }
  .news-item__desc { font-size: 0.8rem; }
  .news-item__date { font-size: 0.75rem; }

  /* 首页新闻资讯 — 压缩卡片高度（列表页不受影响） */
  .section--news .news-item { padding: 10px; gap: 10px; margin-bottom: 10px; border-radius: var(--radius); }
  .section--news .news-item__image { height: 120px; }
  .section--news .news-item__title { font-size: 0.85rem; margin-bottom: 4px; }
  .section--news .news-item__desc { font-size: 0.75rem; margin-bottom: 6px; }
  .section--news .news-item__date { font-size: 0.68rem; }

  .cta-section { padding: 32px 12px; }
  .cta-section__title { font-size: 1.25rem; }
  .cta-section p { font-size: 0.9rem; }

  .course-detail-grid { gap: 16px; }

  .filter-bar a { padding: 6px 14px; font-size: 0.78rem; }

  .back-top { right: 8px; bottom: 60px; width: 34px; height: 34px; font-size: 0.8rem; }
  .customer-service { right: 8px; bottom: 105px; width: 38px; height: 38px; font-size: 1rem; }

  .footer__col-title { font-size: 0.95rem; margin-bottom: 14px; }
  .footer__links a { font-size: 0.82rem; }

  /* 底部快速链接 — 手机端由竖排改为一行 */
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .footer__links a { font-size: 0.72rem; }
  .footer__links a:hover { padding-left: 0; }
  .footer__contact-item { font-size: 0.8rem; }

  .show-mobile { display: block !important; }
  .hide-mobile { display: none !important; }
}

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