/* Base */
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* ========== NAV ========== */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .25s ease, box-shadow .25s ease, color .25s ease; }
.site-nav-home { background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0)); color: #fff; }
.site-nav-home .site-brand { color: #fff; }
.site-nav-home .nav-link { color: rgba(255,255,255,.88); }
.site-nav-home .nav-link:hover { color: #fff; }
.site-nav-home .site-login { color: rgba(255,255,255,.9); padding: 6px 16px; font-size: 14px; }
.site-nav-home .site-cta { color: #2563eb; background: #fff; padding: 6px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.site-nav-home .nav-toggle-btn { color: #fff; }

.site-nav-solid { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.06); color: #111827; }
.site-nav-solid .site-brand { color: #0f172a; }
.site-nav-solid .nav-link { color: #374151; }
.site-nav-solid .nav-link:hover { color: #2563eb; }
.site-nav-solid .site-login { color: #374151; padding: 6px 16px; font-size: 14px; }
.site-nav-solid .site-cta { color: #fff; background: linear-gradient(to right, #2563eb, #4f46e5); padding: 6px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 14px rgba(37,99,235,.25); }
.site-nav-solid .nav-toggle-btn { color: #111827; }

.site-nav-scrolled { background: rgba(255,255,255,.95) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.06); box-shadow: 0 1px 12px rgba(0,0,0,.05); color: #111827 !important; }
.site-nav-scrolled .site-brand { color: #0f172a; }
.site-nav-scrolled .nav-link { color: #374151; }
.site-nav-scrolled .nav-link:hover { color: #2563eb; }
.site-nav-scrolled .site-login { color: #374151; }
.site-nav-scrolled .site-cta { color: #fff; background: linear-gradient(to right, #2563eb, #4f46e5); box-shadow: 0 4px 14px rgba(37,99,235,.25); }
.site-nav-scrolled .nav-toggle-btn { color: #111827; }

.nav-link { position: relative; padding: 4px 0; transition: color .2s; display: inline-flex; align-items: center; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform .25s ease; border-radius: 2px; }
.nav-link:hover::after, .nav-link-active::after { transform: scaleX(1); }

/* AI 就业班 highlight (flame icon) */
.nav-link-highlight { color: #fb923c !important; font-weight: 600; }
.nav-link-highlight:hover { color: #f97316 !important; }
.site-nav-solid .nav-link-highlight, .site-nav-scrolled .nav-link-highlight { color: #ea580c !important; }
.site-nav-solid .nav-link-highlight:hover, .site-nav-scrolled .nav-link-highlight:hover { color: #c2410c !important; }

/* Nav badges (FREE / NEW) */
.nav-badge { margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .5px; background: linear-gradient(to right, #ef4444, #ec4899); color: #fff; line-height: 14px; }
.site-nav-solid .nav-badge, .site-nav-scrolled .nav-badge { box-shadow: 0 2px 6px rgba(236,72,153,.3); }

body.has-fixed-nav { padding-top: 64px; }

/* Hero baseline - fits within viewport on all screens */
[data-hero] { min-height: 640px; }
@media (min-width: 1024px) {
  [data-hero] { min-height: 720px; }
}

/* Animated gradient fallback for hero (always visible) */
.hero-gradient {
  background: linear-gradient(135deg, #0b1e4a, #1e1b4b, #3730a3, #1e40af, #0b1e4a);
  background-size: 300% 300%;
  animation: hero-bg-pan 18s ease infinite;
}
@keyframes hero-bg-pan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* AOS fallback - if AOS fails to load, content stays visible after 2s */
[data-aos] { transition-property: transform, opacity; }
html:not(.aos-ready) [data-aos] { opacity: 1 !important; transform: none !important; }

.social-btn { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.05); align-items: center; justify-content: center; color: #9ca3af; transition: all .2s; cursor: pointer; }
.social-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ========== ANIMATIONS (toned down) ========== */
@keyframes pulse-dot-a { 0% { transform: scale(1); opacity: .7; } 80%,100% { transform: scale(2); opacity: 0; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.animate-marquee { animation: marquee 40s linear infinite; }

/* 合作企业：默认深色、hover 才变红色渐变 */
.marquee-partners span:not(.text-gray-300) {
  color: #334155;
  transition: all .3s ease;
  cursor: pointer;
}
.marquee-partners span:not(.text-gray-300):hover {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(239,68,68,.2);
  transform: scale(1.15);
}

/* Hero 视频轮播切换 */
.hero-video-layer { transition: opacity 1.6s ease-in-out; }
.hero-video-layer.active { opacity: .85; z-index: 1; }
.hero-video-layer:not(.active) { opacity: 0; z-index: 0; }

/* ========== UTILITIES ========== */
.glass { background: rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.16); }
.glass-dark { background: rgba(0,0,0,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); }

.gradient-text { background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Card hover lift (subtle) */
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(0,0,0,.12); }

/* Dotted grid bg */
.bg-dot-grid { background-image: radial-gradient(circle, rgba(99,102,241,.12) 1px, transparent 1px); background-size: 22px 22px; }

/* Marquee */
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, #fff, transparent); }

/* Pulse dot */
.pulse-dot { position: relative; display: inline-flex; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: #ef4444; opacity: .35; animation: pulse-dot-a 2s infinite; }

/* Swiper */
.swiper-pagination-bullet-active { background: #2563eb !important; }

/* Aspect fallback */
.aspect-video { aspect-ratio: 16/9; }
.aspect-poster { aspect-ratio: 3/4; }

/* Image overlay gradient */
.img-overlay { position: relative; }
.img-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 50%, transparent 80%); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 26px; background: linear-gradient(to right, #2563eb, #4f46e5); color: #fff; border-radius: 12px; font-weight: 500; box-shadow: 0 10px 30px -12px rgba(79,70,229,.5); transition: all .2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(79,70,229,.55); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 26px; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; font-weight: 500; transition: all .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Course type chips */
.chip-live { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(to right, #ef4444, #f97316); color: #fff; padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 500; }
.chip-vod { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(to right, #2563eb, #0ea5e9); color: #fff; padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 500; }
.chip-hybrid { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(to right, #7c3aed, #c026d3); color: #fff; padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 500; }

/* Animated covers – make poster images feel alive */
.cover-anim { overflow: hidden; position: relative; }
.cover-anim > img, .cover-anim > video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }

/* Ken Burns slow pan/zoom, auto-playing */
.cover-anim > img { animation: ken-burns 14s ease-in-out infinite alternate; will-change: transform; }
@keyframes ken-burns {
  0%   { transform: scale(1.04) translate(0,0); }
  50%  { transform: scale(1.12) translate(-2%, -1.5%); }
  100% { transform: scale(1.06) translate(2%, 1.5%); }
}
.cover-anim[data-anim="zoom"] > img { animation: cover-zoom 9s ease-in-out infinite alternate; }
@keyframes cover-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }

/* Shimmer 光扫 已移除，保留 Ken Burns + 视频循环即可 */

/* ========== 全站封面自动动画（所有卡片封面 <img> 都动起来）========== */
@keyframes cover-breath {
  0%, 100% { transform: scale(1.04) translate(0,0); }
  25% { transform: scale(1.09) translate(-1.2%, -0.8%); }
  50% { transform: scale(1.11) translate(0.5%, 0.6%); }
  75% { transform: scale(1.09) translate(1.2%, -0.4%); }
}
@keyframes cover-pulse-glow {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.15) brightness(1.05); }
}

/* 自动给所有 aspect-* + overflow-hidden 里的图片加缓动 */
[class*="aspect-"].overflow-hidden > img,
[class*="aspect-"].overflow-hidden > a > img,
.rounded-2xl.overflow-hidden > img,
.rounded-xl.overflow-hidden > img,
img.auto-anim {
  animation: cover-breath 12s ease-in-out infinite, cover-pulse-glow 8s ease-in-out infinite;
  will-change: transform, filter;
  transform-origin: center;
}

/* hover 时暂停缓动，让 group-hover:scale 正常工作 */
.group:hover [class*="aspect-"] > img,
.group:hover .rounded-2xl > img,
.group:hover .rounded-xl > img,
.group:hover img.auto-anim {
  animation-play-state: paused;
}

/* 已移除所有光扫效果 */
[class*="aspect-"].overflow-hidden,
.rounded-2xl.overflow-hidden { position: relative; }

/* ========== 中国元素快闪 banner ========== */
/* 8 张中国元素图片交错快闪 (总时长 14s) + 每张 Ken Burns 缓推 */
.cn-flash { position: absolute; inset: 0; overflow: hidden; }
.cn-flash .cn-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: cn-flash-cycle 14s infinite;
  will-change: opacity, transform;
}
.cn-flash .cn-slide:nth-child(1) { animation-delay: 0s; }
.cn-flash .cn-slide:nth-child(2) { animation-delay: 1.75s; }
.cn-flash .cn-slide:nth-child(3) { animation-delay: 3.5s; }
.cn-flash .cn-slide:nth-child(4) { animation-delay: 5.25s; }
.cn-flash .cn-slide:nth-child(5) { animation-delay: 7s; }
.cn-flash .cn-slide:nth-child(6) { animation-delay: 8.75s; }
.cn-flash .cn-slide:nth-child(7) { animation-delay: 10.5s; }
.cn-flash .cn-slide:nth-child(8) { animation-delay: 12.25s; }

@keyframes cn-flash-cycle {
  0%   { opacity: 0; transform: scale(1.15); }
  4%   { opacity: 1; transform: scale(1.10); }
  10%  { opacity: 1; transform: scale(1.04); }
  14%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* 快闪闪光节拍 · 1 秒一次白光扫过增加 快闪 冲击感 */
.cn-flash::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0;
  animation: cn-flash-strobe 1.75s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cn-flash-strobe {
  0%, 70%, 100% { opacity: 0; }
  3%, 6% { opacity: .9; }
  9% { opacity: 0; }
}

/* Hero 专用超大版 快闪 */
.cn-flash-hero .cn-slide { animation-duration: 16s; }
.cn-flash-hero .cn-slide:nth-child(1) { animation-delay: 0s; }
.cn-flash-hero .cn-slide:nth-child(2) { animation-delay: 2s; }
.cn-flash-hero .cn-slide:nth-child(3) { animation-delay: 4s; }
.cn-flash-hero .cn-slide:nth-child(4) { animation-delay: 6s; }
.cn-flash-hero .cn-slide:nth-child(5) { animation-delay: 8s; }
.cn-flash-hero .cn-slide:nth-child(6) { animation-delay: 10s; }
.cn-flash-hero .cn-slide:nth-child(7) { animation-delay: 12s; }
.cn-flash-hero .cn-slide:nth-child(8) { animation-delay: 14s; }

/* ========== 漫剧视频快闪 banner (炫丽视频交错) ========== */
.mv-flash { position: absolute; inset: 0; overflow: hidden; }
.mv-flash > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
  animation: mv-flash-cycle 24s infinite;
  transform: scale(1.04);
}
/* 4-video cycle (6s 可见 / 段) */
.mv-flash.mv-4 > video:nth-child(1) { animation-delay: 0s; }
.mv-flash.mv-4 > video:nth-child(2) { animation-delay: 6s; }
.mv-flash.mv-4 > video:nth-child(3) { animation-delay: 12s; }
.mv-flash.mv-4 > video:nth-child(4) { animation-delay: 18s; }
/* 3-video cycle */
.mv-flash.mv-3 > video { animation-duration: 18s; }
.mv-flash.mv-3 > video:nth-child(1) { animation-delay: 0s; }
.mv-flash.mv-3 > video:nth-child(2) { animation-delay: 6s; }
.mv-flash.mv-3 > video:nth-child(3) { animation-delay: 12s; }
/* 2-video cycle */
.mv-flash.mv-2 > video { animation-duration: 12s; }
.mv-flash.mv-2 > video:nth-child(1) { animation-delay: 0s; }
.mv-flash.mv-2 > video:nth-child(2) { animation-delay: 6s; }
/* Hero 加长 5-video cycle */
.mv-flash.mv-5 > video { animation-duration: 30s; }
.mv-flash.mv-5 > video:nth-child(1) { animation-delay: 0s; }
.mv-flash.mv-5 > video:nth-child(2) { animation-delay: 6s; }
.mv-flash.mv-5 > video:nth-child(3) { animation-delay: 12s; }
.mv-flash.mv-5 > video:nth-child(4) { animation-delay: 18s; }
.mv-flash.mv-5 > video:nth-child(5) { animation-delay: 24s; }

@keyframes mv-flash-cycle {
  0%   { opacity: 0; transform: scale(1.12); }
  3%   { opacity: 1; transform: scale(1.08); }
  22%  { opacity: 1; transform: scale(1.02); }
  26%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* 轻微光斑节拍 */
.mv-flash::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08) 0%, transparent 65%);
  animation: mv-flash-strobe 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mv-flash-strobe {
  0%, 100% { opacity: .3; }
  50% { opacity: .9; }
}

/* ========== 漫剧字幕样式（真人短剧风） ========== */
.mj-sub {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: #fff; font-weight: 600; font-size: 12px;
  padding: 4px 10px; border-radius: 3px;
  letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  white-space: nowrap; z-index: 6;
  max-width: 90%; overflow: hidden; text-overflow: ellipsis;
}
.mj-sub-yellow { color: #fde047; text-shadow: 0 0 4px rgba(0,0,0,.9), 0 1px 2px #000; }

/* 右上角「漫剧」红色标签 */
.mj-badge {
  position: absolute; top: 8px; left: 8px; z-index: 6;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 1px; box-shadow: 0 2px 8px rgba(220,38,38,.4);
}

/* 分镜式 2x2 / 2x3 格子封面 */
.mj-panel-2x2 {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 2px; position: absolute; inset: 0;
  background: #0f172a;
}
.mj-panel-2x2 > div {
  background-size: cover; background-position: center;
  position: relative;
  animation: cover-breath 14s ease-in-out infinite;
}
.mj-panel-2x2 > div:nth-child(2) { animation-delay: -3s; }
.mj-panel-2x2 > div:nth-child(3) { animation-delay: -6s; }
.mj-panel-2x2 > div:nth-child(4) { animation-delay: -9s; }

.mj-panel-3x2 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 2px; position: absolute; inset: 0;
  background: #0f172a;
}
.mj-panel-3x2 > div {
  background-size: cover; background-position: center;
  animation: cover-breath 14s ease-in-out infinite;
}
.mj-panel-3x2 > div:nth-child(2) { animation-delay: -2s; }
.mj-panel-3x2 > div:nth-child(3) { animation-delay: -4s; }
.mj-panel-3x2 > div:nth-child(4) { animation-delay: -6s; }
.mj-panel-3x2 > div:nth-child(5) { animation-delay: -8s; }
.mj-panel-3x2 > div:nth-child(6) { animation-delay: -10s; }

/* Hot tag pulse */
.hot-pulse { animation: hot-pulse 1.6s ease-in-out infinite; }
@keyframes hot-pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(239,68,68,.5);} 60%{ box-shadow: 0 0 0 8px rgba(239,68,68,0);} }

/* Floating consult button */
.float-consult {
  position: fixed; right: 18px; bottom: 22px; z-index: 70;
  padding: 14px 18px; border-radius: 9999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px;
  box-shadow: 0 12px 28px -8px rgba(239,68,68,.55);
  display: inline-flex; align-items: center; gap: 8px;
  animation: float-bob 2.6s ease-in-out infinite;
}
.float-consult::before { content:""; width:8px; height:8px; border-radius:50%; background:#fff; animation: hot-pulse 1.6s ease-in-out infinite; }
@keyframes float-bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} }

/* Scarcity seats bar */
.seat-bar { height: 6px; border-radius: 9999px; background: #fee2e2; overflow: hidden; }
.seat-bar > span { display:block; height:100%; background: linear-gradient(to right, #ef4444, #f97316); }

/* Countdown chip */
.cd-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:8px; background:#fef3c7; color:#b45309; font-size:12px; font-weight:700; }
.cd-num { min-width: 22px; text-align:center; background:#b45309; color:#fff; padding:2px 4px; border-radius:4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
