/* ═══════════════════════════════════════════
   中旭文化动态网站 - 全局样式
   色彩系统：大地暖金 + 深棕 + 米白
═══════════════════════════════════════════ */

:root {
  --gold: #b8860b;
  --gold-light: #d4a855;
  --gold-pale: #f0d98a;
  --brown-deep: #2c2416;
  --brown-mid: #5c4a2a;
  --brown-light: #8B6914;
  --cream: #faf8f3;
  --cream-dark: #eee8dc;
  --white: #ffffff;
  --text-dark: #1a1208;
  --text-mid: #4a3c28;
  --text-light: #7a6a52;
  --text-pale: #b8a898;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(44,36,22,0.08);
  --shadow-lg: 0 12px 40px rgba(44,36,22,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 90px 0; }

/* ── 导航栏 ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.93) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(184,134,11,0.12);
  box-shadow:
    0 1px 2px rgba(44,36,22,0.04),
    0 4px 16px rgba(44,36,22,0.06),
    0 8px 32px rgba(44,36,22,0.04);
  transition: var(--transition);
}

.navbar.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(250,248,243,0.98) 100%);
  box-shadow:
    0 1px 3px rgba(44,36,22,0.05),
    0 6px 24px rgba(44,36,22,0.08),
    0 12px 40px rgba(44,36,22,0.05);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
/* 导航栏内底线 — 微妙高光 */
.nav-container::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.2), transparent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

#site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-deep);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── 导航项 & 下拉菜单 ── */
.nav-menu > li {
  position: relative;
}

.nav-menu a {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 四大领域导航项 — 纯文字，立体卡片效果 */
.nav-menu > li.nav-domain > a {
  padding: 10px 18px;
  font-weight: 600;
  color: var(--brown-deep);
  background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(250,248,243,0.5));
  border: 1px solid rgba(184,134,11,0.08);
  box-shadow:
    0 2px 8px rgba(44,36,22,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.nav-menu > li.nav-domain > a:hover,
.nav-menu > li.nav-domain > a.active {
  color: var(--gold);
  background: linear-gradient(145deg, rgba(184,134,11,0.08), rgba(212,168,85,0.04));
  border-color: rgba(184,134,11,0.2);
  box-shadow:
    0 4px 16px rgba(184,134,11,0.12),
    inset 0 1px 0 rgba(184,134,11,0.15);
  transform: translateY(-1px);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.nav-menu a:hover {
  color: var(--gold);
  background: linear-gradient(145deg, rgba(184,134,11,0.05), rgba(212,168,85,0.03));
  box-shadow: 0 2px 8px rgba(44,36,22,0.04);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
  color: var(--gold);
  font-weight: 600;
}

/* 下拉箭头 */
.nav-arrow {
  display: inline-block;
  font-size: 0.7rem;
  margin-left: 2px;
  transition: transform 0.25s ease;
  opacity: 0.6;
}
.nav-menu > li:hover > a .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* 下拉面板 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(184,134,11,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(44,36,22,0.12), 0 4px 16px rgba(44,36,22,0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 10px 0;
  pointer-events: none;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255,255,255,0.98);
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.nav-menu > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 课程下拉 — 双列布局 */
.nav-dropdown.courses-drop {
  min-width: 480px;
  padding: 20px 24px;
}
.drop-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-pale);
  padding: 6px 14px 4px;
  font-weight: 600;
}
.drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.drop-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-radius: var(--radius) !important;
  font-size: 0.88rem !important;
  color: var(--text-dark) !important;
  transition: all 0.2s ease !important;
}
.drop-link .drop-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-pale), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.drop-link .drop-text { display: flex; flex-direction: column; gap: 1px; }
.drop-link .drop-label { font-weight: 600; line-height: 1.2; }
.drop-link .drop-desc { 
  font-size: 0.75rem; 
  color: var(--text-light); 
  font-weight: 400;
  white-space: normal;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.drop-link:hover {
  background: linear-gradient(135deg, rgba(184,134,11,0.08), rgba(212,168,85,0.05)) !important;
  color: var(--gold) !important;
  transform: translateX(2px);
}
.drop-link:hover .drop-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 2px 8px rgba(184,134,11,0.2);
}
.drop-link:hover::after { display: none !important; }

/* 资讯下拉 — 单列紧凑 */
.nav-dropdown.news-drop {
  min-width: 200px;
  left: auto;
  right: -20px;
  transform-origin: top right;
}
.news-drop .drop-link {
  justify-content: flex-start;
}
.news-drop .drop-link .drop-label {
  flex: 1;
}
.news-drop .drop-link .drop-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(184,134,11,0.1);
  color: var(--gold);
  font-weight: 600;
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 22px !important;
  font-weight: 600;
  font-size: 0.88rem !important;
  letter-spacing: 0.03em;
  box-shadow:
    0 2px 12px rgba(184,134,11,0.3),
    0 1px 3px rgba(184,134,11,0.15),
    inset 0 1px 0 rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.2);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(184,134,11,0.4),
    0 2px 8px rgba(184,134,11,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--brown-mid);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(212,168,85,0.18) 0%, transparent 70%),
    linear-gradient(170deg, rgba(44,36,22,0.55) 0%, rgba(44,36,22,0.25) 50%, rgba(44,36,22,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(212,168,85,0.5);
  border-radius: 30px;
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  color: var(--gold-pale);
  margin-bottom: 28px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 26px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,134,11,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3);
}

.btn-lg { padding: 16px 42px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.84rem; }

.btn-danger {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--brown-deep);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.section-desc {
  font-size: 1.02rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── 使命区 ── */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.mission-text .section-label { text-align: left; }
.mission-text .section-title { text-align: left; }

.mission-content p {
  color: var(--text-mid);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 2;
}

.mission-tags {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.tag {
  padding: 7px 20px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 24px;
  font-size: 0.88rem;
  color: var(--brown-mid);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.mission-media { position: relative; }

.mission-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mission-img-wrap:hover .mission-img { transform: scale(1.03); }

.mission-float-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  padding: 26px 34px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.float-number { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.float-label { font-size: 0.84rem; margin-top: 4px; opacity: 0.92; letter-spacing: 0.04em; }

/* ── 统计栏 ── */
.stats-bar {
  background: linear-gradient(135deg, var(--brown-deep) 0%, #3a2c1a 100%);
  padding: 52px 0;
}

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

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label { font-size: 0.86rem; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; }

/* ── 课程卡片 ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--cream-dark);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  line-height: 0;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.course-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,36,22,0.65), rgba(92,74,42,0.45));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.course-card:hover .course-overlay { opacity: 1; }

.course-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--brown-deep);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 8px;
  letter-spacing: 0.08em;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.course-info { padding: 24px; }
.course-title { font-size: 1.2rem; font-weight: 700; color: var(--brown-deep); margin-bottom: 6px; }
.course-subtitle { font-size: 0.84rem; color: var(--gold); margin-bottom: 12px; letter-spacing: 0.04em; font-weight: 500; }
.course-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.75; margin-bottom: 16px; }
.course-link { font-size: 0.88rem; color: var(--gold); font-weight: 600; }
.course-link:hover { color: var(--brown-light); }

/* ── 成长旅程 ── */
.journey-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.journey-step {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  transition: var(--transition);
}

.journey-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(184,134,11,0.35);
}

.journey-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 12px;
}

.journey-step p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

.journey-arrow {
  font-size: 2rem;
  color: var(--gold-pale);
  flex-shrink: 0;
}

/* ── 见证卡片 ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--cream-dark);
  transition: var(--transition);
}

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

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-pale);
}

.testimonial-avatar-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brown-mid), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; color: var(--brown-deep); font-size: 1rem; }
.testimonial-title { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }
.testimonial-stars { color: var(--gold); margin-bottom: 12px; font-size: 0.9rem; }
.testimonial-content { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; font-style: italic; }

/* ── 相册 ── */
.gallery-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.gallery-grid::-webkit-scrollbar { height: 4px; }
.gallery-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.1); border-radius: 2px; }
.gallery-grid::-webkit-scrollbar-thumb { background: #d4a855; border-radius: 2px; }

.gallery-grid img {
  flex: 0 0 auto;
  width: 260px; height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--brown-mid) 100%);
  padding: 90px 0;
}

.cta-content {
  text-align: center;
  color: var(--white);
}

.cta-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: 0.02em; }
.cta-content p { font-size: 1.08rem; opacity: 0.9; margin-bottom: 36px; line-height: 1.7; }
.cta-content .btn-primary {
  background: var(--white);
  color: var(--gold);
  border-color: var(--white);
}
.cta-content .btn-primary:hover {
  background: var(--cream);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* ── 页脚 ── */
.footer {
  background: var(--brown-deep);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 48px; width: auto; margin-bottom: 16px; filter: brightness(1.2); }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
}
.social-icon:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 0.88rem; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--gold-pale); }

.footer-contact ul li {
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

.footer-contact ul li span:first-child { color: var(--gold-pale); flex-shrink: 0; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── 加载状态 ── */
.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-light);
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.empty-tip { color: var(--text-pale); font-size: 0.95rem; padding: 40px; text-align: center; }

/* ── 辅助类 ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.hidden { display: none !important; }

/* ── 预约页 / 联系页 ── */
.page-hero {
  background: linear-gradient(135deg, var(--brown-deep), var(--brown-mid));
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; opacity: 0.8; }

.form-section { padding: 80px 0; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-label span.req { color: #e74c3c; margin-left: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── 课程详情页 ── */
.course-poster-wrapper {
  width: 100%;
  overflow: hidden;
  background: #f5f0e8;
  line-height: 0;
}

.course-poster-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.course-info-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 24px 0;
}

.course-info-bar h1 {
  color: var(--brown-deep);
  font-size: 1.8rem;
  font-weight: 700;
}

.course-info-bar p {
  color: var(--text-mid);
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--text-pale); }

/* ── Toast消息 ── */
.toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }
.toast.info { background: var(--gold); }

/* ── 响应式设计 ── */

/* 平板设备 (1024px 及以下) */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
  .mission-float-card { display: none; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2rem; }

  /* 导航：缩小间距适配平板 */
  .nav-menu { gap: 0; }
  .nav-menu a { padding: 8px 10px; font-size: 0.85rem; }
  .nav-menu > li.nav-domain > a { padding: 8px 10px; }
  .nav-domain-icon { width: 18px; height: 18px; font-size: 0.68rem; }
  .nav-cta { padding: 7px 16px !important; font-size: 0.82rem !important; }
}

/* 手机横屏 (768px 及以下) */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  /* 导航栏优化 */
  .nav-container {
    height: 60px;
    padding: 0 16px;
  }
  .hero {
    min-height: 580px;
    padding-top: 60px;
  }

  /* 手机端导航菜单 */
  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 2px;
    padding: 16px;
    overflow-y: auto;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open {
    display: flex;
    animation: slideIn 0.3s ease-out;
  }

  /* 手机端：四大领域作为普通菜单项展示 */
  .nav-menu > li.nav-domain > a {
    justify-content: flex-start;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
  }
  .nav-menu > li.nav-domain > a:hover,
  .nav-menu > li.nav-domain > a.active {
    background: rgba(184,134,11,0.08);
  }

  /* 手机端：下拉改为内联展开（仅资讯中心保留） */
  .nav-dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    pointer-events: auto;
    display: none;
    margin-left: 16px;
    border-left: 2.5px solid var(--gold-pale);
  }
  .nav-dropdown::before,
  .nav-dropdown::after {
    display: none !important;
  }
  .nav-dropdown.mobile-open {
    display: block;
  }
  /* 课程下拉在手机上单列显示 */
  .nav-dropdown.courses-drop {
    min-width: unset;
    padding: 8px 0 12px;
  }
  .drop-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .drop-link {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }
  .news-drop {
    left: auto !important;
    right: auto !important;
    min-width: unset;
  }

  /* 手机端：有子菜单的父项加箭头指示 */
  .has-sub > a {
    justify-content: space-between;
  }
  .has-sub > a .nav-arrow {
    transition: transform 0.25s ease;
  }
  .has-sub.sub-open > a .nav-arrow {
    transform: rotate(180deg);
  }

  .nav-menu a {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
  }
  .nav-menu a:hover,
  .nav-menu a.active {
    background: var(--cream);
    color: var(--gold);
  }
  .nav-menu a::after { display: none; }
  .nav-toggle { 
    display: flex; 
    width: 44px; 
    height: 44px; 
  }
  
  /* Hero 区域优化 */
  .hero-title { 
    font-size: 2.2rem; 
    line-height: 1.3;
  }
  .hero-subtitle { 
    font-size: 1rem; 
    padding: 0 10px;
  }
  .hero-actions { 
    flex-direction: column; 
    align-items: center; 
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  /* 课程网格优化 */
  .courses-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  .course-info {
    padding: 20px;
  }
  
  /* 统计区域优化 */
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px;
  }
  .stat-item {
    padding: 20px 16px;
  }
  .stat-number {
    font-size: 2rem;
  }
  
  /* 见证区域优化 */
  .testimonials-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  .testimonial-card {
    padding: 24px 20px;
  }
  
  /* 画廊优化 */
  .gallery-grid { 
    gap: 6px; 
  }
  .gallery-grid img {
    width: 240px; height: 160px;
  }
  
  /* 旅程步骤优化 */
  .journey-arrow { display: none; }
  .journey-steps { 
    flex-direction: column; 
    align-items: center; 
    gap: 0;
  }
  .journey-step { 
    max-width: 100%; 
    width: 100%; 
    margin-bottom: 12px;
    padding: 24px 20px;
  }
  .step-icon {
    width: 52px; height: 52px;
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .journey-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
  .journey-step p { font-size: 0.82rem; line-height: 1.55; }
  
  /* 页脚优化 */
  .footer {
    padding-top: 40px;
  }
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 24px;
    padding-bottom: 32px;
  }
  .footer-links h4, .footer-contact h4 {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  .footer-links ul li, .footer-contact ul li { margin-bottom: 6px; }
  
  /* 表单优化 */
  .form-row { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  .form-card { 
    padding: 28px 20px; 
  }
  .form-card h2 {
    font-size: 1.5rem;
  }
  
  /* 按钮触摸优化 */
  .btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  /* 标题优化 */
  .section-title { 
    font-size: 1.8rem; 
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  /* CTA 区域优化 */
  .cta-title {
    font-size: 1.8rem;
  }
  .cta-subtitle {
    font-size: 1rem;
  }
}

/* 手机竖屏 (480px 及以下) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  
  .hero-title { 
    font-size: 1.8rem; 
  }
  .hero-subtitle { 
    font-size: 0.9rem; 
  }
  
  .section-title { 
    font-size: 1.5rem; 
  }
  
  .stats-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
  }
  .stat-item {
    padding: 16px 12px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  
  .gallery-grid { 
    gap: 6px; 
  }
  .gallery-grid img {
    width: 200px; height: 140px;
  }
  
  .nav-logo img {
    height: 32px;
  }
  #site-name {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .course-info {
    padding: 16px;
  }
  .course-title {
    font-size: 1rem;
  }
  .course-desc {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }
}

/* 导航菜单动画 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  /* 增大触摸目标 */
  .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  input, 
  select, 
  textarea {
    min-height: 44px;
    font-size: 16px; /* 防止 iOS 缩放 */
  }
  
  /* 移除悬停效果，改为激活效果 */
  .course-card:hover {
    transform: none;
  }
  .course-card:active {
    transform: scale(0.98);
  }

  .journey-step {
    padding: 20px 16px;
    margin-bottom: 8px;
  }
  .step-icon {
    width: 44px; height: 44px;
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  .journey-step h3 { font-size: 0.98rem; }
  .journey-step p { font-size: 0.78rem; }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-menu {
    padding: 10px 16px;
  }
  .nav-menu a {
    padding: 10px 18px;
  }
  .hero {
    min-height: 400px;
    padding-top: 60px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
}
