/* ============================================
   蓝豆仔AI科创教育 - 官网视觉系统 v2
   设计参考：编程猫 / 猿编程 / 腾讯扣叮
   主色调：蓝色科技感 + 橙色点缀
   ============================================ */

/* === CSS变量 === */
:root {
  /* 主色 - 蓝色系 */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-darker: #1e3a8a;
  --primary-light: #dbeafe;
  --primary-bg: #eff6ff;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;

  /* 强调色 - 橙色系 */
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --accent-dark: #d97706;

  /* 功能色 */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #0ea5e9;
  --info-light: #e0f2fe;

  /* 文字色 */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* 背景色 */
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-warm: #faf9f7;

  /* 边框 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #93c5fd;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --shadow-blue: 0 4px 16px rgba(37,99,235,.2);
  --shadow-blue-lg: 0 8px 32px rgba(37,99,235,.3);

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* 布局 */
  --max-width: 1200px;
  --header-h: 64px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 过渡 */
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-smooth: cubic-bezier(.25,.46,.45,.94);
}

/* === 基础重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === 品牌名突出样式 === */
.brand-name {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
  letter-spacing: 0.02em;
}
/* 在深色背景上的品牌名（如Banner中）—— 渐变更亮 */
.dark-bg .brand-name,
section[class*="hero"] .brand-name,
section[class*="banner"] .brand-name {
  background: linear-gradient(135deg, #60a5fa, #93c5fd, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.25);
}

/* === 按钮系统 === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-full); font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: all .3s var(--ease-smooth);
  white-space: nowrap; font-family: var(--font); line-height: 1.4;
  position: relative; overflow: hidden; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff; box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue-lg); }
.btn-primary:active { transform: translateY(0) scale(.97); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #fff; box-shadow: 0 4px 16px rgba(245,158,11,.3);
  font-size: 1rem; padding: 14px 36px;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,.4); }

.btn-outline {
  background: transparent; border: 2px solid var(--primary);
  color: var(--primary); font-weight: 600;
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--primary); }

.btn-sm { padding: 6px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* === 导航栏 === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,1);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
/* 滚动时：半透明毛玻璃 + 加深阴影 */
.navbar.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  border-bottom-color: rgba(37,99,235,.06);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg);
  height: 100%; display: flex; align-items: center; gap: var(--space-xl);
}
/* Logo 区：仅 logo 图标，垂直居中 */
.nav-logo {
  display: flex; align-items: center; flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 44px; max-width: 150px; border-radius: var(--radius-sm);
}
.nav-menu { display: flex; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.nav-menu li a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: .9rem; font-weight: 600; color: var(--text-secondary);
  border-radius: 10px; position: relative; transition: all .3s ease;
  text-decoration: none;
}
.nav-menu li a svg {
  width: 17px; height: 17px; flex-shrink: 0;
  transition: transform .3s ease, color .3s ease;
}
.nav-menu li a:hover { color: var(--primary); }
.nav-menu li a:hover svg { transform: translateY(-1px); }
/* 当前页高亮：蓝色渐变背景 + 白色文字 + 图标 + 光晕 */
.nav-menu li a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.nav-menu li a.active svg { color: #fff; }
/* 悬停/激活：底部蓝色下划线从左到右展开 */
.nav-menu li a::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; width: 0; height: 2.5px;
  background: var(--primary); transition: all .3s ease;
  transform: translateX(-50%); border-radius: 2px;
  opacity: 0;
}
.nav-menu li a:hover::after { width: 60%; opacity: 1; left: 20%; transform: translateX(0); }
.nav-menu li a.active::after { background: rgba(255,255,255,.7); opacity: 1; left: 50%; width: 40%; transform: translateX(-50%); }
.nav-actions { display: flex; gap: 12px; margin-left: auto; flex-shrink: 0; align-items: center; }
/* 学员学习入口：蓝边框 + 透明背景 */
.nav-actions .btn-ghost {
  background: transparent; border: 1.5px solid var(--primary); color: var(--primary);
  padding: 8px 18px; border-radius: 10px; font-weight: 600; font-size: .86rem;
  transition: all .3s ease; text-decoration: none;
}
.nav-actions .btn-ghost:hover { background: var(--primary-50); transform: translateY(-1px); }
/* 进入管理系统：蓝色渐变 + 光晕，悬停放大 */
.nav-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff; box-shadow: var(--shadow-blue);
  padding: 8px 18px; border-radius: 10px; font-weight: 600; font-size: .86rem;
  transition: all .3s ease; text-decoration: none;
}
.nav-actions .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
/* 底部渐变装饰线 */
.navbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, #2563eb, #f59e0b, #8b5cf6);
  opacity: .55; transition: opacity .3s ease, height .3s ease;
}
.navbar.scrolled::after { opacity: 1; height: 2px; }

/* === Hero Banner === */
.hero {
  margin-top: var(--header-h); min-height: 620px; position: relative;
  overflow: hidden; display: flex; align-items: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.94) 0%, rgba(30,64,175,.9) 50%, rgba(37,99,235,.85) 100%);
  z-index: 0;
}
.hero-with-bg { background-size: cover; background-position: center; background-image: url('/images/hero-banner.jpg'); }
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 3; max-width: var(--max-width); margin: 0 auto;
  padding: 80px 24px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px;
  align-items: center; width: 100%;
}
.hero-text { color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 18px; border-radius: 50px; font-size: .84rem; font-weight: 600;
  margin-bottom: 24px; backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: 3.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px;
  letter-spacing: -1px; background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .slogan { font-size: 1.3rem; font-weight: 600; opacity: .9; margin-bottom: 12px; }
.hero .subtitle { font-size: 1.05rem; opacity: .7; line-height: 1.8; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.robot-card {
  position: relative; width: 320px; height: 320px; margin: 0 auto;
  background: radial-gradient(circle at center, rgba(99,102,241,.15), transparent 70%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.robot-emoji { font-size: 8rem; filter: drop-shadow(0 10px 30px rgba(99,102,241,.4)); }
.float-icon {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
}
.float-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.float-icon:nth-child(3) { bottom: 25%; left: 15%; animation-delay: 2s; }

/* === Section === */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg); }
.section-title {
  text-align: center; font-size: 2.2rem; font-weight: 900; color: var(--text);
  margin-bottom: 12px; letter-spacing: -.5px; line-height: 1.3;
}
.section-subtitle {
  text-align: center; font-size: 1.05rem; color: var(--text-secondary);
  margin-bottom: 56px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.section-title::after {
  content: ''; display: block; width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent));
  border-radius: 2px; margin: 16px auto 0;
}

/* 卡片统一增强 */
.card-hover-lift {
  transition: all .35s var(--ease-smooth);
}
.card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-lg); margin-top: -50px; position: relative; z-index: 10; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 24px;
  text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--border);
  transition: all .35s var(--ease-smooth);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent));
  opacity: 0; transition: opacity .3s;
}
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-icon { font-size: 2.4rem; margin-bottom: 14px; }
.stat-card .stat-number { font-size: 2.6rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-card .stat-label { font-size: .9rem; color: var(--text-secondary); font-weight: 600; }

/* === 4阶成长体系 === */
.growth-timeline {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
  position: relative; padding: 20px 0;
}
.growth-timeline::before {
  content: ''; position: absolute; top: 60px; left: 12.5%; right: 12.5%; height: 3px;
  background: linear-gradient(90deg, #dbeafe, #2563eb, #7c3aed, var(--accent));
  border-radius: 3px;
}
.growth-stage { text-align: center; position: relative; padding-top: 40px; }
.growth-stage .stage-dot {
  width: 56px; height: 56px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--primary); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin: 0 auto 16px;
  position: relative; z-index: 1; box-shadow: var(--shadow-md);
}
.growth-stage:nth-child(2) .stage-dot { border-color: #3b82f6; }
.growth-stage:nth-child(3) .stage-dot { border-color: #8b5cf6; }
.growth-stage:nth-child(4) .stage-dot { border-color: var(--accent); }
.growth-stage h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.growth-stage .stage-grade { font-size: .82rem; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.growth-stage .stage-detail { font-size: .82rem; color: var(--text-secondary); line-height: 1.7; text-align: left; }
.growth-stage .stage-detail strong { color: var(--primary); font-weight: 700; }
.growth-dest {
  display: inline-block; margin-top: 32px; padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; border-radius: 50px; font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 30px rgba(37,99,235,.3);
}
.growth-dest-wrap { text-align: center; }

/* === 课程卡片 === */
.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-lg); }
.course-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all .35s var(--ease-smooth); cursor: pointer;
  position: relative; overflow: hidden;
}
.course-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-50), transparent);
  opacity: 0; transition: opacity .35s;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary-300); }
.course-card:hover::after { opacity: 1; }
.course-card .course-icon {
  width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(37,99,235,.1); position: relative; z-index: 1;
}
.course-card .course-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; position: relative; z-index: 1; }
.course-card .course-age { font-size: .84rem; color: var(--primary); font-weight: 700; position: relative; z-index: 1; }

/* 课程图标背景色 */
.bg-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.bg-purple { background: linear-gradient(135deg, #e9d5ff, #d8b4fe); }
.bg-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.bg-orange { background: linear-gradient(135deg, #fed7aa, #fdba74); }
.bg-pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.bg-cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.bg-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.bg-indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }

/* === 学习工具卡片 === */
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tool-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: transform .35s;
}
.tool-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card .tool-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; margin-bottom: 16px;
}
.tool-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.tool-card .tool-desc { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.tool-card .btn { width: 100%; }

/* === 赛事升学亮点 === */
.highlight-banner {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
  border-radius: var(--radius-xl); padding: 56px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.highlight-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,.2), transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(245,158,11,.15), transparent 50%);
}
.highlight-banner h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: 16px; position: relative; }
.highlight-banner p { font-size: .95rem; line-height: 1.8; opacity: .85; position: relative; margin-bottom: 12px; }
.highlight-tags { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.highlight-tags span {
  padding: 8px 18px; border-radius: 50px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}

/* === 家长评价 === */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
  position: relative;
}
.testimonial-card::before { content: '"'; position: absolute; top: 20px; right: 24px; font-size: 4rem; color: var(--primary-light); font-family: Georgia, serif; line-height: 1; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-card .stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card .testimonial-text { font-size: .92rem; color: var(--text); line-height: 1.8; margin-bottom: 20px; }
.testimonial-card .testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary-bg));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.testimonial-card .author-name { font-size: .9rem; font-weight: 700; }
.testimonial-card .author-role { font-size: .78rem; color: var(--text-secondary); }

/* === CTA === */
.cta-section {
  text-align: center; padding: 80px 64px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-600), var(--primary-500));
  color: #fff; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08), transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(245,158,11,.15), transparent 50%);
}
.cta-section h2 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; position: relative; }
.cta-section p { font-size: 1.05rem; opacity: .85; margin-bottom: 32px; position: relative; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section .btn { position: relative; }

/* === 校区卡片 === */
.campus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-lg); }
.campus-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all .35s var(--ease-smooth);
}
.campus-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.campus-img { height: 200px; background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); display: flex; align-items: center; justify-content: center; font-size: 4rem; overflow: hidden; }
.campus-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.campus-card:hover .campus-img img { transform: scale(1.05); }
.campus-info { padding: 24px; }
.campus-info h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--primary-darker); }
.campus-info p { font-size: .88rem; color: var(--text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

/* === Footer（全面优化版） === */
.footer {
  background: linear-gradient(180deg, #0a0e27 0%, #0f172a 40%, #1e293b 100%);
  color: rgba(255,255,255,.7); padding: 0;
  position: relative; overflow: hidden;
  width: 100%;
  margin: 0;
  align-self: stretch;
}
/* 顶部渐变分割线 */
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #f59e0b);
  z-index: 2;
}
/* 星空 */
.footer .stars-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.footer .star-dot {
  position: absolute; border-radius: 50%; background: #fff;
  animation: footerStar 4s ease-in-out infinite;
}
@keyframes footerStar {
  0%, 100% { opacity: .1; }
  50% { opacity: .35; }
}
/* 几何装饰 */
.footer .geo-deco {
  position: absolute; border: 1px solid rgba(255,255,255,.03); pointer-events: none; z-index: 0;
}
.footer > .container { position: relative; z-index: 1; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand { position: relative; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 16px; opacity: .7; }
.footer-logo-img { height: 80px; max-width: 240px; }
/* 品牌数据标签 */
.footer-brand-stats {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.footer-brand-stats .fbs-tag {
  padding: 4px 12px; border-radius: 50px;
  font-size: .72rem; font-weight: 700;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}
/* 列标题 */
.footer-col h4 {
  color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.08);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: .85rem; opacity: .65; transition: all .3s ease;
  display: inline-block;
}
.footer-col ul li a:hover {
  opacity: 1; color: #60a5fa; transform: translateX(3px);
}
.footer-col p { font-size: .85rem; opacity: .7; margin-bottom: 8px; }
.footer-qr { display: flex; gap: 16px; margin-top: 16px; }
.footer-qr-item { text-align: center; }
.footer-qr-item .qr-box {
  width: 96px; height: 96px; border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; overflow: hidden;
  padding: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.1);
}
.footer-qr-item .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.footer-qr-item span {
  font-size: .73rem; font-weight: 700; color: rgba(255,255,255,.85);
}

/* === 扫码关注我们 === */
.qr-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.qr-card {
  max-width: 720px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  padding: 40px 48px;
}
.qr-card-header {
  text-align: center; margin-bottom: 36px;
}
.qr-card-title {
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  display: inline-flex; align-items: center;
}
.qr-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.qr-item-card {
  text-align: center; padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg); border: 2px solid var(--border);
  transition: all .3s var(--ease-smooth);
  text-decoration: none; display: block; cursor: default;
}
.qr-item-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.qr-img-box {
  position: relative; display: inline-block;
  width: 140px; height: 140px;
  background: #fff; border-radius: var(--radius);
  padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.08);
  margin-bottom: 16px;
}
.qr-img-box img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 4px;
}
.qr-img-tag {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary-600); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 12px;
  border-radius: var(--radius-full); white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.qr-item-title {
  font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.qr-item-desc {
  font-size: .82rem; color: var(--text-secondary);
}

/* Footer 联系方式高亮 */
.footer-contact-highlight {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 10px;
  transition: background .3s;
}
.footer-contact-highlight:hover { background: rgba(255,255,255,.1); }
.footer-contact-highlight svg { flex-shrink: 0; opacity: .8; }
.footer-contact-highlight strong { font-size: .92rem; letter-spacing: .5px; }
.footer-wechat-highlight { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.06); }
.footer-wechat-highlight:hover { background: rgba(16,185,129,.12); }
.footer-wechat-highlight svg { color: #10b981; }

/* Footer 校区列表 */
.footer-campuses { margin-top: 14px; }
.footer-campuses p {
  font-size: .83rem; opacity: .75; margin-bottom: 6px; display: flex; align-items: baseline; gap: 6px;
}
.footer-campuses p strong { color: rgba(255,255,255,.9); font-weight: 600; white-space: nowrap; }

/* Footer 信任标签栏 */
.footer-trust {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 40px; padding: 24px 0;
}
.footer-trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.footer-trust-inner .trust-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 50px;
  font-size: .82rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  transition: all .3s ease;
}
.footer-trust-inner .trust-item:nth-child(1) { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.2); }
.footer-trust-inner .trust-item:nth-child(2) { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.2); }
.footer-trust-inner .trust-item:nth-child(3) { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.2); }
.footer-trust-inner .trust-item:nth-child(4) { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.2); }
.footer-trust-inner .trust-item:hover {
  transform: translateY(-2px) scale(1.03);
  color: rgba(255,255,255,.9);
}
.footer-trust-inner .trust-sep { display: none; }
.footer-trust-inner .trust-icon-svg {
  display: inline-flex; align-items: center;
  opacity: .7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 0;
  padding: 24px 0; display: flex; justify-content: center;
  align-items: center; font-size: .82rem; opacity: .5; flex-wrap: wrap; gap: 16px;
  text-align: center;
}

/* ============================================
   Footer 增强（层次感 & 品牌感）
   ============================================ */
.footer {
  background: linear-gradient(180deg, #0d1030 0%, #17206b 35%, #241a7a 70%, #2d1b8f 100%);
}
/* 渐变分隔线 */
.footer-divider-line {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #3b82f6, #f59e0b, #8b5cf6);
  z-index: 3; pointer-events: none;
}
/* 几何圆点 */
.footer-geo-dot {
  position: absolute; border: 1px solid rgba(255,255,255,.04);
  background: rgba(255,255,255,.03);
  pointer-events: none; z-index: 0;
}
/* 亮化整体 */
.footer { color: rgba(255,255,255,.75); }
/* 品牌区 */
.footer-logo-img { height: 96px; max-width: 280px; filter: drop-shadow(0 6px 18px rgba(96,165,250,.3)); }
.footer-brand p { opacity: .85; color: rgba(255,255,255,.85); }
.footer-brand-stats .fbs-tag.fbs-tag-pill {
  background: linear-gradient(135deg, rgba(96,165,250,.18), rgba(139,92,246,.12));
  border: 1px solid rgba(96,165,250,.3);
  color: rgba(255,255,255,.9);
  padding: 6px 16px;
  transition: all .3s ease;
}
.footer-brand-stats .fbs-tag.fbs-tag-pill:hover {
  background: linear-gradient(135deg, rgba(96,165,250,.3), rgba(139,92,246,.2));
  transform: translateY(-2px);
}
/* 列标题 */
.footer-col h4 { color: #fff; }
/* 链接图标 + 悬停 */
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { opacity: .75; }
.footer-col ul li a:hover {
  opacity: 1; color: #f59e0b; transform: translateX(-3px);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(245,158,11,.4);
}
/* 联系方式卡片 */
.footer-contact-highlight {
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.footer-contact-highlight strong { color: #fff; font-weight: 700; }
.footer-campuses p { opacity: .85; }
.footer-campuses p.footer-campus-item:hover { opacity: 1; }
.footer-campus-item {
  padding: 6px 10px; border-radius: 8px;
  transition: background .3s ease, opacity .3s ease;
}
.footer-campus-item:hover { background: rgba(255,255,255,.06); }
/* 二维码 */
.footer-qr { gap: 24px; }
.footer-qr-item .qr-box {
  box-shadow: 0 6px 18px rgba(0,0,0,.2), 0 0 20px rgba(96,165,250,.12);
  border-radius: 16px;
}
.footer-qr-item span { color: rgba(255,255,255,.9); }
/* 信任标签胶囊 */
.footer-trust-inner .trust-item.trust-item-pill {
  background: linear-gradient(135deg, rgba(96,165,250,.16), rgba(139,92,246,.12));
  border-color: rgba(96,165,250,.28);
  color: rgba(255,255,255,.85);
  padding: 10px 20px;
}
.footer-trust-inner .trust-item.trust-item-pill .trust-icon-svg { font-size: .95rem; opacity: .9; }
.footer-trust-inner .trust-item.trust-item-pill:hover {
  background: linear-gradient(135deg, rgba(96,165,250,.3), rgba(139,92,246,.22));
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37,99,235,.3);
}
/* 版权 + 备案号 */
.footer-bottom { opacity: 1; color: #999; flex-direction: column; gap: 8px; }
.footer-bottom .footer-copyright {
  font-size: 12px; color: #999; letter-spacing: 1px; margin: 0; line-height: 1.5;
}
.footer-bottom .footer-icp {
  font-size: 12px; color: #999; letter-spacing: 1px; margin: 0; line-height: 1.5;
}
.footer-bottom .footer-icp a { color: #999; text-decoration: none; }
.footer-bottom .footer-icp a:hover { color: #60a5fa; opacity: 1; }
.footer-bottom .footer-icp .footer-icp-sep { margin: 0 10px; color: #999; }

/* Footer 响应式 */
@media (max-width: 768px) {
  .footer-divider-line { display: none; }
  .footer-geo-dot { display: none; }
  .footer-brand-stats .fbs-tag.fbs-tag-pill { padding: 4px 12px; font-size: .68rem; }
}

/* === 标签 === */
.tag { display: inline-flex; padding: 4px 12px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; letter-spacing: .2px; }
.tag-blue { background: var(--primary-100); color: var(--primary-600); }
.tag-green { background: var(--success-light); color: #059669; }
.tag-orange { background: var(--warning-light); color: var(--accent-dark); }
.tag-red { background: var(--danger-light); color: #dc2626; }
.tag-gray { background: var(--bg-alt); color: var(--text-secondary); }
.tag-purple { background: #ede9fe; color: #7c3aed; }
.campus-chip { display: inline-flex; padding: 4px 12px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; background: var(--primary-100); color: var(--primary-600); }

/* === 滚动进度条 === */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999; width: 0%;
  transition: width .1s linear;
}

/* === 回到顶部按钮 === */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}
.back-to-top.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,.5);
}

/* === 表单统一规范 === */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block; font-size: .88rem; font-weight: 600; color: var(--text);
  margin-bottom: 8px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-family: var(--font); color: var(--text);
  background: var(--white); transition: all .2s var(--ease-smooth);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
.form-select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 6px; }
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--danger); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

/* === 响应式 === */
@media (max-width: 1150px) {
  .nav-menu li a { padding: 6px 10px; font-size: .82rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .hero-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .courses-grid { grid-template-columns: repeat(2,1fr); }
  .tools-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); margin-top: 20px; }
  .growth-timeline { grid-template-columns: repeat(2,1fr); }
  .growth-timeline::before { display: none; }
  .highlight-banner { grid-template-columns: 1fr; padding: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; gap: 20px; }
  .qr-card { padding: 32px 24px; }
}
@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-menu.mobile-open, .nav-actions.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h);
    left: 0; right: 0; background: var(--white); padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle { display: block; }
  .nav-logo-img { height: 40px; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .cta-section { padding: 40px 24px; }
  .cta-section h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
