:root {
  --primary-900: #0F172A;
  --primary-700: #1E3A8A;
  --primary-500: #3B82F6;
  --primary-300: #93C5FD;
  --accent-500: #D97706;
  --accent-400: #F59E0B;
  --accent-300: #FCD34D;
  --bg-primary: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  --gradient-accent: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 科技感动画背景 */
.tech-bg { position: relative; overflow: hidden; }
.tech-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* 粒子动画效果 */
.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--primary-500);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* 导航 */
.navbar { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 1000; transition: all 0.3s; }
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--primary-900); text-decoration: none; }
.logo img { height: 40px; transition: transform 0.3s; }
.logo:hover img { transform: scale(1.05); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s; font-size: 15px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent-500); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-900); }
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 0; min-width: 200px; box-shadow: var(--shadow-lg); margin-top: 16px; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 10px 16px; color: var(--text-secondary); font-size: 14px; }
.dropdown-content a:hover { background: var(--bg-primary); color: var(--primary-500); }
.dropdown-content .highlight { font-weight: 700; color: var(--accent-500); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; font-size: 14px; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.btn:hover::before { width: 300px; height: 300px; }
.btn-primary { background: var(--gradient-accent); color: white; box-shadow: 0 4px 15px rgba(217,119,6,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,119,6,0.4); }
.btn-secondary { background: white; color: var(--primary-900); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary-500); color: var(--primary-500); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary-900); }

/* 语言切换 */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.lang-switch button { background: none; border: none; cursor: pointer; font-weight: 600; color: var(--text-secondary); font-size: 14px; padding: 4px 8px; border-radius: 4px; transition: all 0.2s; }
.lang-switch button:hover { color: var(--primary-500); }
.lang-switch button.active { color: var(--accent-500); background: #FEF3C7; }

/* Hero */
.hero { padding: 160px 0 100px; background: var(--gradient-dark); color: white; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; }
.hero h1 { font-size: 52px; margin-bottom: 20px; font-weight: 800; position: relative; line-height: 1.2; animation: fadeInUp 0.8s; }
.hero .subtitle { font-size: 24px; opacity: 0.95; margin-bottom: 16px; font-weight: 500; position: relative; animation: fadeInUp 0.8s 0.1s backwards; }
.hero .desc { font-size: 16px; opacity: 0.8; margin-bottom: 40px; position: relative; animation: fadeInUp 0.8s 0.2s backwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-stats { display: flex; justify-content: center; gap: 60px; margin: 50px 0; position: relative; animation: fadeInUp 0.8s 0.3s backwards; }
.stat-item { text-align: center; padding: 20px; background: rgba(255,255,255,0.05); border-radius: var(--radius-lg); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.stat-item:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }
.stat-item .number { display: block; font-size: 42px; font-weight: 800; color: var(--accent-400); }
.stat-item .label { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 40px; position: relative; animation: fadeInUp 0.8s 0.4s backwards; }

/* 合作企业滚动 */
.partners-section { padding: 80px 0; background: var(--bg-primary); position: relative; }
.partners-title { text-align: center; margin-bottom: 40px; }
.partners-title h2 { font-size: 32px; font-weight: 700; color: var(--primary-900); }
.partners-title p { color: var(--text-secondary); margin-top: 8px; }
.partners-marquee { overflow: hidden; padding: 20px 0; }
.partners-track { display: flex; animation: marquee 60s linear infinite; gap: 30px; }
.partners-track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-logo {
  flex-shrink: 0;
  width: 140px; height: 70px;
  background: white;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-900);
  font-size: 13px;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border);
}
.partner-logo:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); border-color: var(--primary-500); }
.partner-logo .type { display: block; font-size: 10px; color: var(--text-secondary); font-weight: 400; margin-top: 2px; }

/* 中国地图 */
.map-section { padding: 80px 0; background: white; }
.map-container { display: grid; grid-template-columns: 280px 1fr 280px; gap: 40px; margin-top: 40px; }
.map-sidebar { background: var(--bg-primary); border-radius: var(--radius-lg); padding: 24px; height: fit-content; }
.map-sidebar h3 { font-size: 18px; margin-bottom: 20px; color: var(--primary-900); display: flex; align-items: center; gap: 8px; }
.city-list { display: flex; flex-direction: column; gap: 12px; }
.city-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: white; border-radius: var(--radius); transition: all 0.3s; cursor: pointer; }
.city-item:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.city-item.negotiating { border-left: 3px solid var(--accent-500); }
.city-item.top { border-left: 3px solid var(--primary-500); }
.city-rank { width: 28px; height: 28px; background: var(--primary-500); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.city-item.negotiating .city-rank { background: var(--accent-500); }
.city-name { font-weight: 500; }
.city-score { font-size: 12px; color: var(--text-secondary); margin-left: auto; }
.progress-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-accent); border-radius: 2px; transition: width 1s; }

#china-map { height: 500px; border-radius: var(--radius-lg); background: var(--bg-primary); }
.map-legend { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.legend-dot.hq { background: var(--accent-500); }
.legend-dot.branch { background: var(--primary-500); }
.legend-dot.negotiating { background: var(--accent-400); }

/* 课程卡片 */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.course-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; position: relative; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card.featured { border: 2px solid var(--accent-500); }
.course-badge { position: absolute; top: 16px; right: 16px; background: var(--accent-500); color: white; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.course-header { background: var(--gradient-primary); color: white; padding: 30px; }
.course-header h3 { font-size: 24px; margin-bottom: 8px; }
.course-header .price { font-size: 36px; font-weight: 800; color: var(--accent-400); }
.course-header .price-original { font-size: 18px; color: rgba(255,255,255,0.6); text-decoration: line-through; margin-left: 12px; }
.course-header .promo { display: inline-block; background: var(--accent-500); color: white; padding: 4px 12px; border-radius: 4px; font-size: 12px; margin-left: 12px; }
.course-body { padding: 30px; }
.course-info { display: flex; gap: 20px; margin-bottom: 20px; }
.course-info-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.course-features { list-style: none; margin-bottom: 20px; }
.course-features li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.course-features li::before { content: '✓'; color: var(--primary-500); font-weight: 600; }

/* 学员风采 */
.students-section { padding: 80px 0; background: var(--bg-primary); }
.students-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.student-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.student-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.student-card:hover img { transform: scale(1.1); }
.student-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; transform: translateY(100%); transition: transform 0.3s; }
.student-card:hover .student-overlay { transform: translateY(0); }

/* 学员作品 */
.works-section { padding: 80px 0; background: white; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.work-card { background: var(--bg-primary); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.work-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.work-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(0,0,0,0.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; opacity: 0; transition: opacity 0.3s; }
.work-card:hover .work-play { opacity: 1; }
.work-info { padding: 20px; }
.work-title { font-weight: 600; margin-bottom: 8px; }
.work-author { font-size: 14px; color: var(--text-secondary); }
.work-stats { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--text-secondary); }

/* 师资 */
.teachers-section { padding: 80px 0; background: var(--bg-primary); }
.teachers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 40px; }
.teacher-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; text-align: center; }
.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.teacher-avatar { width: 100%; height: 200px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; }
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-avatar-placeholder { font-size: 48px; color: white; }
.teacher-info { padding: 20px; }
.teacher-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.teacher-title { font-size: 14px; color: var(--accent-500); margin-bottom: 8px; }
.teacher-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* 分公司画廊 */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; font-size: 14px; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* AI体验区 */
.ai-experience { padding: 80px 0; background: var(--gradient-dark); color: white; text-align: center; }
.ai-demo { max-width: 600px; margin: 40px auto 0; background: rgba(255,255,255,0.05); border-radius: var(--radius-lg); padding: 40px; border: 1px solid rgba(255,255,255,0.1); }
.ai-demo h3 { font-size: 24px; margin-bottom: 16px; }
.ai-input { width: 100%; padding: 16px; border: none; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; background: white; color: var(--text-primary); }
.ai-output { min-height: 200px; background: rgba(0,0,0,0.3); border-radius: var(--radius); padding: 20px; text-align: left; font-family: monospace; font-size: 14px; line-height: 1.8; }
.typing-cursor { animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* 页脚 */
footer { background: var(--primary-900); color: white; padding: 60px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { opacity: 0.7; font-size: 14px; margin-top: 16px; line-height: 1.8; }
.footer-links h4 { margin-bottom: 20px; font-size: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 10px; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; opacity: 0.6; font-size: 14px; }

/* 响应式 */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .map-container { grid-template-columns: 1fr; }
  .map-sidebar { display: none; }
  .teachers-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 18px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-cta { flex-direction: column; padding: 0 24px; }
  .courses-grid { grid-template-columns: 1fr; }
  .students-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 480px) {
  .students-grid, .works-grid, .gallery-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
}