/**
 * GlobalLingua 环球语培 — 语言培训/国际教育主题样式
 * 白 + 深蓝(#1A365D) + 浅蓝(#4A90D9) + 金色(#C8963E)点缀
 * 亮色为主，大留白，图文错落，国际文化杂志风格
 * 纯原生 CSS，无框架依赖，响应式三断点
 */
/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* 品牌色 */
  --primary: #1A365D;
  --primary-light: #4A90D9;
  --primary-lighter: #E8F0FA;
  --accent: #C8963E;
  --accent-light: #F5E6CC;

  /* 中性色 */
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-light: #F7F9FC;
  --bg-warm: #FAF8F5;
  --text: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #8899AA;
  --border: #E2E8F0;
  --border-light: #EDF2F7;

  /* 功能色 */
  --success: #38A169;
  --warning: #D69E2E;
  --error: #E53E3E;

  /* 圆角 */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);

  /* 间距 */
  --section-py: 88px;
  --section-py-sm: 56px;
  --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);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 字体 */
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Segoe UI', -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

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

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

::selection {
  background: rgba(74, 144, 217, 0.2);
  color: var(--primary);
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

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-muted);
  opacity: 1;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 36px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  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--light {
  background: var(--bg-light);
}

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

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

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

.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: 40px;
  height: 40px;
  background: var(--primary);
  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.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.header__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 500;
}

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

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

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--primary);
  background: var(--primary-lighter);
}

/* 导航下拉 */
.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: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  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.88rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.header__dropdown a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
}

/* 头部右侧CTA */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 54, 93, 0.25);
  transform: translateY(-1px);
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.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(--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: 360px;
  background: var(--white);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
  box-shadow: var(--shadow-xl);
}

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

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

.mobile-nav__link:hover {
  background: var(--primary-lighter);
}

.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-secondary);
  border-radius: var(--radius-sm);
}

.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(--duration-normal);
}

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

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--primary);
  margin-top: var(--header-h);
}

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

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,54,93,0.85) 0%, rgba(26,54,93,0.7) 100%);
}

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

.inner-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.inner-banner__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

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

.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);
  transition: color var(--duration-fast);
}

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

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

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

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: #152D4D;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: #B8872F;
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 150, 62, 0.35);
  transform: translateY(-2px);
}

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

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

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

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

/* ============================================================
   卡片系统 — 纯白+蓝色边框
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-light);
}

.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.05);
}

.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-lighter);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  align-self: flex-start;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  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.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

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

.card__price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

/* ============================================================
   首页 — Hero Banner（Swiper + 蓝色渐变遮罩）
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  margin-top: 0;
}

.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(135deg, rgba(26,54,93,0.6) 0%, rgba(26,54,93,0.2) 50%, rgba(26,54,93,0.5) 100%);
}

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

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 560px;
  font-weight: 300;
  line-height: 1.6;
}

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

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

.hero-pagination .swiper-pagination-bullet {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
  transition: all var(--duration-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 60px;
  background: #fff;
}

/* 滚动指示器 */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  animation: scrollBounce 2s ease-in-out infinite;
}

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

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

/* ============================================================
   首页 — 数据统计（深蓝背景+数字滚动）
   ============================================================ */
.stats-section {
  background: var(--primary);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
}

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

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

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

.course-cat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.course-cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.course-cat-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.course-cat-card:hover .course-cat-card__icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.course-cat-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.course-cat-card__level {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — 大留白+图文错落（左右交错布局）
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-section--reverse .split-section__image {
  order: 2;
}
.split-section--reverse .split-section__text {
  order: 1;
}

.split-section__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-light);
}

.split-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 图片装饰框 */
.split-section__image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid var(--primary-lighter);
  border-radius: inherit;
  z-index: -1;
  transition: all var(--duration-slow);
}

.split-section--reverse .split-section__image::before {
  left: 10px;
  right: -10px;
}

.split-section__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-section__text p {
  color: var(--text-secondary);
  line-height: 1.85;
}

/* 留学服务正文：内容是 3 组「<h2>服务名 + <p>说明</p>」。用两列网格让服务名占左列、
   说明占右列（h2、p 依次自动排入第 1、2 列），3 项服务一眼能扫到。
   若让 h2 自己独占一行，手机上要多出 3×23px，反而更矮不了 */
.split-section__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: baseline;
}

.split-section__body h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.85;
}

.split-section__body p {
  margin: 0;
}

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

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

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

.list-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

/* 子栏目过滤栏 */
.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 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

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

.detail__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.detail__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  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 {
  margin-right: 4px;
  color: var(--primary-light);
}

/* 课程详情参数卡 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.detail__param {
  padding: 20px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--duration-fast);
}

.detail__param:hover {
  border-color: var(--primary-light);
  background: var(--white);
}

.detail__param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.detail__param-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-heading);
}

/* 详情页大图 */
.detail__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/9;
}

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

/* 正文内容 */
.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: 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: 32px;
  margin-bottom: 16px;
}

/* ============================================================
   Tab切换
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-panel {
  display: none;
}
.tab-panel:not(.hidden) {
  display: block;
}
.tab-panel.hidden {
  display: none;
}

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

.teacher-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

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

.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);
  margin-bottom: 2px;
}

.teacher-card__lang {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.teacher-card__exp {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   联系我们/表单
   ============================================================ */
.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: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--duration-fast);
}

.contact-info__item:hover {
  border-color: var(--primary-light);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1rem;
}

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

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

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
  background: var(--white);
}

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

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='%238899AA' 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;
  cursor: pointer;
}

/* ============================================================
   搜索页
   ============================================================ */
.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);
  font-size: 0.95rem;
}

.search-form-row input {
  width: 100%;
  padding: 15px 20px 15px 44px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}

.search-form-row input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

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

.search-result-item:hover {
  border-color: var(--primary-light);
  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-light);
}

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

/* 首页新闻资讯的缩略图尺寸。原来写在各模板的内联 style 里（首页 160×110、
   newslist 200×130），内联样式会顶掉下面 767px 那条手机端规则，所以首页这条
   挪进 CSS，手机端才压得动 */
.list-grid--news .search-result-item__thumb {
  width: 160px;
  height: 110px;
}

.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;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   分页
   ============================================================ */
.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: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  border: 1px solid transparent;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pagination .disabled {
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   空状态
   ============================================================ */
.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;
}

/* ============================================================
   CTA 区块
   ============================================================ */
.cta-section {
  background: var(--primary);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

/* ============================================================
   Footer 底部 — 四列
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
}

.footer__top-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
}

.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.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 14px 0;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.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.6);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

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

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

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

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

.footer__links a:hover {
  color: #fff;
}

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

.footer__contact-item i {
  color: var(--accent);
  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.65rem;
  color: #999;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  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.8rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 8px;
}

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

.footer__bottom a:hover {
  color: rgba(255,255,255,0.8);
}

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

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

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

.friend-links a:hover {
  color: #fff;
}

/* ============================================================
   返回顶部 & 在线客服
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #fff;
  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(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-md);
}

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

.back-top:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* 在线客服按钮 */
.online-service {
  position: fixed;
  right: 20px;
  bottom: 132px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: var(--shadow-md);
  animation: servicePulse 2.5s ease-in-out infinite;
  transition: transform var(--duration-fast);
}

.online-service:hover {
  transform: scale(1.1);
}

@keyframes servicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 150, 62, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(200, 150, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 150, 62, 0); }
}

/* ============================================================
   水平测试页
   ============================================================ */
.test-section {
  max-width: 700px;
  margin: 0 auto;
}

.test-question {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 16px;
}

.test-question__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.test-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.test-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-lighter);
}

.test-option.selected {
  border-color: var(--primary);
  background: var(--primary-lighter);
  color: var(--primary);
  font-weight: 500;
}

.test-option__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.test-option.selected .test-option__radio {
  border-color: var(--primary);
  background: var(--primary);
}

.test-option.selected .test-option__radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* ============================================================
   结果推荐卡片
   ============================================================ */
.result-card {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 0 auto;
}

.result-card__level {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  margin-bottom: 16px;
}

.result-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ============================================================
   动画系统
   ============================================================ */
/* 淡入上移 */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

/* Hero标题入场 */
.hero__title {
  animation: fadeInUp 0.8s var(--ease-out) both;
}
.hero__subtitle {
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}
.hero__actions {
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* 按钮微动 */
@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 150, 62, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(200, 150, 62, 0); }
}

.btn--accent.pulse {
  animation: gentlePulse 2.5s ease-in-out infinite;
}

/* 卡片hover光泽扫过 */
.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(74, 144, 217, 0.04) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  transition: left 0.6s;
}

.card:hover::after {
  left: 150%;
}

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

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

  .header__nav,
  .header__actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  .split-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-section--reverse .split-section__image {
    order: -1;
  }

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

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

  /* 单列布局后，AOS 的 fade-left/fade-right 初始 100px 横移会撑破视口右侧
     （100px 位移 - 24px 容器内边距 = 76px 溢出），改为纯淡入 */
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: none !important;
  }

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

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  /* 手机端模块间距：相邻两个 .section 的上下内边距相加就是模块间的空白
     （48+48=96px），收到 36 后为 72px */
  :root { --section-py: 36px; }

  .hero {
    height: 60vh;
    min-height: 380px;
  }

  /* 手机端隐藏底部 Scroll 提示：它固定在底部 32px，会顶住按钮，
     不隐藏的话矮屏手机（如 568px 高）压不动轮播图高度 */
  .hero__scroll {
    display: none;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .inner-banner {
    height: 200px;
  }

  .course-cats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 10px;
  }

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

  /* 手机端压缩数据栏：原上下内边距 56px、数字 2rem 偏高 */
  .stats-section {
    padding: 34px 0;
  }

  .stat-item__number {
    font-size: 1.75rem;
    margin-bottom: 4px;
  }

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

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

  /* 手机端卡片压缩（热门课程 + 学生案例共用 .card）：一行一个时图片占了
     卡片一半以上高度（342px 宽下 213px），收窄图片比例并把正文间距压紧 */
  .list-grid--compact .card__image {
    aspect-ratio: 2 / 1;
  }

  .list-grid--compact .card__body {
    padding: 14px;
  }

  .list-grid--compact .card__desc {
    line-height: 1.55;
  }

  .list-grid--compact .card__meta {
    margin-top: 10px;
    padding-top: 10px;
  }

  .list-grid--compact .card__price {
    font-size: 1.15rem;
    margin-top: 6px;
  }

  /* 学生案例再压一档：一行一个时 2/1 的配图独占 170px（整张卡 319px 的 53%），
     三张连起来就是 510px。图改 5/2 收回 34px，卡片间距、正文留白和日期行
     再各收一点。只作用于案例（--cases），热门课程/课程列表共用 --compact 不受影响 */
  .list-grid--cases { gap: 14px; }
  .list-grid--cases .card__image { aspect-ratio: 5 / 2; }
  .list-grid--cases .card__body { padding: 12px; }
  .list-grid--cases .card__desc { line-height: 1.5; }
  /* 日期行：10px 外边距 + 1px 分隔线 + 10px 内边距，为一个 14px 的行高撑出 35px */
  .list-grid--cases .card__meta { margin-top: 7px; padding-top: 7px; }

  /* 师资团队三列一行：卡片从整行宽压到 ~85-235px，头像(固定100px)、
     内边距、字号都得跟着收，否则头像直接把卡片撑破 */
  .list-grid--teachers {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
  }

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

  /* 头像随视口缩放：320px 时 56px，390px 时约 66px，588px 以上回到 96px */
  .list-grid--teachers .teacher-card__avatar {
    width: clamp(56px, 17vw, 96px);
    height: clamp(56px, 17vw, 96px);
    margin-bottom: 10px;
    border-width: 2px;
  }

  .list-grid--teachers .teacher-card__name {
    font-size: 0.95rem;
  }

  .list-grid--teachers .teacher-card__lang {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  /* 30字简介在窄列里会拉成很高一条，截三行（两行会截在「15年英语」这种
     数字中间，读起来像错字） */
  .list-grid--teachers .teacher-card__exp {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 留学服务：手机端图文上下堆叠后，4/3 的配图独占 257px（整段 35%），
     改 16/9 横幅；图文间距、段间距、正文行距一起收 */
  .split-section {
    gap: 24px;
  }

  .split-section__image {
    aspect-ratio: 16 / 9;
  }

  .split-section__text {
    gap: 12px;
  }

  .split-section__text p {
    line-height: 1.65;
  }

  /* 左列的服务名要跟右列说明同一行高，否则两列的基线对不齐 */
  .split-section__body h2 {
    line-height: 1.65;
  }

  /* CTA 不走 --section-py，是写死的 80px。旁边的区块已经收到 36px，
     结果新闻资讯→CTA 的间距是 36+80=116px、其他模块只有 72px。收到 48px
     后为 84px —— 比普通区块略大（它是整幅色带，留白多一点），但不再突兀 */
  .cta-section {
    padding: 48px 0;
  }

  /* 页脚快速链接：原来竖排 5 行，改横排一行。5 个链接各 4 个汉字，
     0.85rem 时一行需要 272px + 间距，320px 屏放不下，所以用 wrap 兜底
     （整条换行，而不是把字压断），小屏再降一档字号保证仍是单行 */
  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer__links a {
    font-size: 0.85rem;
  }

  /* 师资列表页：手机端两列一行。卡片从通栏 342px 缩到约 166px，头像
     （原固定 100px）、内边距、字号都得跟着收，否则头像把卡片撑破 */
  .list-grid--teacherlist {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }

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

  /* 头像随视口缩放：320px 时约 70px，390px 时约 86px，455px 以上回到 100px */
  .list-grid--teacherlist .teacher-card__avatar {
    width: clamp(64px, 22vw, 100px);
    height: clamp(64px, 22vw, 100px);
    margin-bottom: 10px;
    border-width: 2px;
  }

  .list-grid--teacherlist .teacher-card__name {
    font-size: 0.95rem;
  }

  .list-grid--teacherlist .teacher-card__lang {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  /* 30 字简介在窄列里会拉成很高一条，截两行 */
  .list-grid--teacherlist .teacher-card__exp {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

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

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

  .card__body {
    padding: 16px;
  }

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

  /* 手机上显示二维码无意义（无法扫自己的屏幕），仅联系页该模块隐藏 */
  .contact-qrcode {
    display: none;
  }

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

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

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

  /* 首页新闻资讯：上面那条 column 会把条目拉成竖排，但缩略图被内联样式钉在
     160px 宽 —— 结果图片只占半张卡、右边空一大片，标题和日期还挤在同一行。
     改回「左图右文」横排，比竖排矮 40% */
  .list-grid--news .search-result-item {
    flex-direction: row;
    gap: 12px;
    padding: 12px;
    /* .list-grid 已经给了 gap，这个 margin 是重复间距 */
    margin-bottom: 0;
  }

  /* 缩略图原来钉死在 110×82（比例 1.34），而 4 张原图的比例是 1.33 / 1.42 / 1.50 /
     1.50，object-fit:cover 把后三张各切掉 5%~11% 的宽度 —— 看着就是「图片不全」。
     改成宽度固定、高度跟着原图比例走，图就完整了。一行一个时缩略图本来就不决定
     卡片高度（右边文字比它高），所以高度放开不会把区块撑回去 */
  .list-grid--news .search-result-item__thumb {
    width: 106px;
    height: auto;
    /* 高度改成 auto 后，flex 的 align-items:stretch 会把这个格子拉到整行高，
       图片下面露出一条灰底；钉在顶部，盒子的高就是图片的高 */
    align-self: flex-start;
  }

  .list-grid--news .search-result-item__thumb img {
    height: auto;
  }

  /* 横排后 info 只剩约 186px，标题和日期共处一行会互相顶，标题独占一行。
     white-space 必须显式放开：基础规则是 nowrap，横排后标题的最小内容宽度就直接
     把 1fr 的网格轨道顶穿（实测条目被撑到 401px，整页横向溢出 35px）。
     首页那条是写在内联 style 里的，模板里没有，所以这里补上 */
  .list-grid--news .search-result-item__title {
    display: block;
    font-size: 0.95rem;
    white-space: normal;
  }

  .list-grid--news .search-result-item__desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* 卡片之间的 24px 收到 14px（.list-grid 的 gap 在这里被覆盖） */
  .list-grid--news {
    gap: 14px;
  }

  .back-top,
  .online-service {
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .online-service {
    bottom: 120px;
  }

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

/* ============================================================
   响应式 — 小屏 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  body { font-size: 14px; }
  .course-cats { grid-template-columns: repeat(3, 1fr); }
  /* 三列后卡片变窄，收一点内边距让「入门至精通」保持单行 */
  .course-cat-card { padding: 24px 8px; }

  /* 师资三列后每张卡只剩 ~85px（内容 71px），0.72rem 的「英语教学总监」
     要 69px 但是正好被内边距挤到换行成「英语教学总/监」，再收一档 */
  .list-grid--teachers .teacher-card { padding: 16px 6px; }
  .list-grid--teachers .teacher-card__lang { font-size: 0.68rem; }
  .list-grid--teachers .teacher-card__exp { font-size: 0.68rem; }

  /* 快速链接一行需要 20 个汉字宽，320px 屏（内容区 272px）放不下 0.85rem，
     降到 0.75rem 刚好单行 */
  .footer__links { gap: 6px; }
  .footer__links a { font-size: 0.75rem; }
}

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