/* ============================================================
   宇人 · AIGC 站点样式
   定位：宇人个人 IP · AI 学习与内容分享
   设计：深色科技感 + 专业可信，CTA 用琥珀金聚焦转化
   ============================================================ */

:root {
  /* 颜色 */
  --bg: #08080e;
  --bg-elev: #0e0e18;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f7;
  --text-mute: #a3a3b0;
  --text-dim: #6b6b78;

  --brand: #6366f1;          /* 主品牌 靛蓝 */
  --brand-deep: #4f46e5;
  --brand-2: #06b6d4;        /* 青 */
  --brand-3: #7c3aed;        /* 紫 */
  --cta: #f59e0b;            /* CTA 琥珀金 */
  --cta-deep: #d97706;
  --danger: #ef4444;

  --gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 55%, #06b6d4 130%);
  --gradient-cta: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.12));

  --accent-bg: rgba(99, 102, 241, 0.12);
  --accent-bg-2: rgba(6, 182, 212, 0.10);
  --cta-bg: rgba(245, 158, 11, 0.12);

  /* 间距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* 字号 */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: 3.5rem;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --shadow-cta: 0 8px 28px rgba(245, 158, 11, 0.35);

  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;

  --container: 1160px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: var(--brand);
  color: white;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ===== 顶部信息条 ===== */
.topbar {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: var(--fs-xs);
  padding: 7px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.topbar-right a {
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-right a:hover {
  opacity: 0.9;
}

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8, 8, 14, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
}

/* 头像版 brand-mark：img 元素复用同一尺寸圆角 */
img.brand-mark {
  object-fit: cover;
  display: block;
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", "Inter", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  color: var(--text-mute);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-card-hover);
}

.nav-cta {
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--gradient-cta);
  color: #1a1206;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-card);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--bg-card);
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, var(--fs-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: var(--space-5);
  background: linear-gradient(180deg, #ffffff 0%, #b9b9c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-mute);
  max-width: 680px;
  margin: 0 auto var(--space-7);
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #1a1206;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.5);
}

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-mute);
}

.btn-brand {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
}

/* ===== 数字统计 ===== */
.stats {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--border);
}

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

.stat {
  text-align: center;
  padding: var(--space-4);
}

.stat-num {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-mute);
}

/* ===== 通用 Section ===== */
.section {
  padding: var(--space-9) 0;
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-2);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, var(--fs-3xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--fs-lg);
  color: var(--text-mute);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 政策背景 ===== */
.policy-banner {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.policy-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
}

.policy-quote {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.policy-text {
  color: var(--text-mute);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.policy-highlight {
  color: var(--brand-2);
  font-weight: 600;
}

/* ===== 课程卡 ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.course-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.course-card.featured {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.course-top {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.course-dir {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--brand-2);
  margin-bottom: var(--space-3);
}

.course-dir.hot {
  background: var(--cta-bg);
  color: var(--cta);
}

.course-card h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.course-slogan {
  font-size: var(--fs-xs);
  color: var(--text-mute);
}

.course-body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.course-spec {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.course-spec span {
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-card-hover);
  color: var(--text-mute);
  font-family: var(--font-mono);
}

.course-desc {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.6;
  flex: 1;
}

.course-foot:not(:has(.course-price)) { justify-content: flex-end; }

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}

.course-price {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--cta);
}

.course-price small {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-dim);
}

/* 课程价格下架：价格位已移除，样式保留备用 */
.course-price.is-consult {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.course-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-link:hover {
  color: var(--text);
}

/* ===== 核心优势 ===== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.advantage-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.2s;
}

.advantage-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.advantage-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-bg);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  color: var(--brand);
}

.advantage-card h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.advantage-card p {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  line-height: 1.6;
}

/* ===== 就业明星 ===== */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.star-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: all 0.2s;
}

.star-card:hover {
  background: var(--bg-card-hover);
}

.star-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto var(--space-3);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: var(--fs-lg);
}

.star-name {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.star-salary {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--cta);
}

.star-salary small {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-weight: 400;
}

.star-course {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--space-2);
}

/* ===== 师资 ===== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.teacher-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.2s;
}

.teacher-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.teacher-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--brand-2);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.teacher-card h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.teacher-card p {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.6;
}

/* ===== 人才基地 ===== */
.bases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.base-card {
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all 0.2s;
}

.base-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.base-pin {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-bg);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}

.base-card h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.base-card p {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ===== AIGC 作品展示 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.gallery-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.gallery-cover {
  height: 180px;
  position: relative;
  display: grid;
  place-items: center;
  color: white;
  font-size: 40px;
  overflow: hidden;
}

.gallery-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5));
}

.gallery-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.gallery-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.4);
}

.g-c1 { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.g-c2 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.g-c3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.g-c4 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.g-c5 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.g-c6 { background: linear-gradient(135deg, #06b6d4, #6366f1); }

/* ===== 真实作品：图片封面 + 点击播放 ===== */
.gallery-cover.g-cover-img {
  background: #0b1020;
  font-size: 0;
  padding: 0;
}

.gallery-cover.g-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card-video {
  cursor: pointer;
}

.gallery-card-video:hover .gallery-cover.g-cover-img img {
  transform: scale(1.06);
}

.gallery-card-video:hover .gallery-play span {
  background: rgba(245, 158, 11, 0.85);
  border-color: rgba(245, 158, 11, 1);
}

/* ===== 视频弹层 ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.video-modal.open {
  display: block;
}

.video-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.88);
  backdrop-filter: blur(6px);
}

.video-modal-box {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 6vh auto 0;
  padding: 0 var(--space-4);
  width: 100%;
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.video-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1020;
}

.video-modal-title {
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

.video-modal-player {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-player video {
  width: 100%;
  display: block;
  max-height: 76vh;
  background: #000;
}

.gallery-body {
  padding: var(--space-4) var(--space-5);
}

.gallery-body h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.gallery-body p {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ===== 资讯文章 ===== */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-7);
}

.filter-tag {
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-tag.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.article-cover {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.article-cover .cover-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  font-weight: 700;
}

.article-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
}

.article-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-card p {
  color: var(--text-mute);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.article-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tag {
  font-size: var(--fs-xs);
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--bg-card-hover);
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ===== CTA ===== */
.cta-section {
  padding: var(--space-9) 0;
}

.cta-box {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.7rem, 4vw, var(--fs-3xl));
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  position: relative;
}

.cta-box p {
  color: var(--text-mute);
  margin-bottom: var(--space-6);
  position: relative;
}

.cta-hotline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--cta);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
  position: relative;
}

.cta-hotline:hover {
  color: var(--cta-deep);
}

.cta-form {
  display: flex;
  gap: var(--space-3);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.cta-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: var(--fs-sm);
  font-family: inherit;
  transition: border-color 0.2s;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--brand);
}

.cta-form button {
  padding: 13px 26px;
  border-radius: var(--r-full);
  background: var(--gradient-cta);
  color: #1a1206;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.cta-note {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  position: relative;
}

/* ===== 公众号 + 微信二维码展示 ===== */
.wechat-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 480px;
  margin: 0 auto var(--space-6);
  position: relative;
}

.wechat-qr-item {
  background: white;
  padding: var(--space-4);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.wechat-qr-item img {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--r-sm);
  display: block;
}

.wechat-qr-item h4 {
  color: #111;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-top: var(--space-3);
  line-height: 1.3;
}

.wechat-qr-item p {
  color: var(--text-dim);
  font-size: var(--fs-xs);
  margin-top: var(--space-1);
}

@media (max-width: 480px) {
  .wechat-qr-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
  }
}

/* ===== 悬浮 CTA（移动端） ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--space-3) var(--space-4);
  background: rgba(8, 8, 14, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-strong);
}

.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.sticky-cta .call {
  background: var(--gradient-cta);
  color: #1a1206;
}

/* ===== Footer ===== */
.footer {
  padding: var(--space-8) 0 var(--space-7);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand p {
  color: var(--text-mute);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer-col h5 {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
}

/* ===== 通用 ===== */
.beian {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

.beian a,
a.beian {
  color: inherit;
  text-decoration: none;
}

.beian a:hover,
a.beian:hover {
  color: var(--accent);
  text-decoration: none;
}

.fade-in {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.mt-6 {
  margin-top: var(--space-6);
}

.mt-7 {
  margin-top: var(--space-7);
}

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .stars-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --space-9: 4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bases-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-left { gap: var(--space-3); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: var(--space-5);
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    padding: var(--space-3);
    min-width: 180px;
  }
  .courses-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .stars-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .bases-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .cta-form { flex-direction: column; }
  .sticky-cta { display: flex; gap: var(--space-3); }
  body { padding-bottom: 76px; }
}