@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  /* Color Palette */
  --primary: #FF6B00;
  --primary-hover: #E05E00;
  --primary-light: #FF9E59;
  --secondary: #00F0FF; /* Electric Blue for secondary highlights */
  --bg-dark: #0B0F19;
  --bg-slate: #161F30;
  --bg-slate-light: #202D45;
  --text-white: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF3D00 100%);
  --gradient-dark: linear-gradient(180deg, #0B0F19 0%, #161F30 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-orange-glow: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 61, 0, 0.02) 100%);
  
  /* Shadows & Glows */
  --glow-orange: 0 0 20px rgba(255, 107, 0, 0.4);
  --glow-orange-strong: 0 0 35px rgba(255, 107, 0, 0.6);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  
  /* Fonts */
  --font-display: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transition values */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Core Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-slate-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Grids & Aesthetics */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 107, 0, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 240, 255, 0.05) 0px, transparent 50%);
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* Layout Utilities */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  letter-spacing: 0.05em;
  gap: 8px;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-orange-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
  transform: translateY(-3px);
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--gradient-glass);
  border: var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-premium);
}

.glass-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateY(-5px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-normal);
  padding: 20px 0;
}

header.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-glass);
  padding: 12px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger Menu Toggle */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 110;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.7) 40%, rgba(11, 15, 25, 0.3) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-badge span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-white);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Philosophy Section ("学-练-赛") */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.phil-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.phil-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 15px;
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.25) 0%, rgba(255, 107, 0, 0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-normal);
}

.phil-card:hover .phil-number {
  transform: scale(1.1) translateY(-5px);
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.5) 0%, rgba(255, 107, 0, 0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.phil-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.phil-card p {
  font-size: 0.95rem;
}

/* Course / Program Section */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-tag {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.course-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.course-age {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.course-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-features {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-bottom: 24px;
}

.course-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* Venue & Gallery Section */
.gallery-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: stretch;
}

.gallery-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: var(--border-glass);
  box-shadow: var(--shadow-premium);
  min-height: 450px;
}

.gallery-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-showcase:hover img {
  transform: scale(1.05);
}

.gallery-showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(0deg, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.5) 60%, transparent 100%);
  z-index: 2;
}

.gallery-showcase-overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.gallery-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gallery-side-card {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.gallery-side-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.gallery-features {
  list-style: none;
  margin-top: 15px;
}

.gallery-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.gallery-features li span {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Enrollment & Form Section */
.enroll-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.enroll-info h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

.enroll-steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.enroll-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-orange);
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
}

.enroll-form-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(22, 31, 48, 0.9) 0%, rgba(11, 15, 25, 0.9) 100%);
  border: var(--border-glass);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-white);
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

select.form-control option {
  background: var(--bg-slate);
  color: var(--text-white);
}

.enroll-form-card .btn {
  width: 100%;
  margin-top: 10px;
}

/* Success Popup / Alert */
.alert-popup {
  position: fixed;
  top: 30px;
  right: -400px;
  width: 350px;
  padding: 20px;
  border-radius: 12px;
  background: #10B981; /* Success Green */
  color: white;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-normal);
}

.alert-popup.show {
  right: 30px;
}

.alert-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.alert-msg h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.alert-msg p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

/* Social Proof & Douyin Section */
.social-proof {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(22, 31, 48, 0.6) 100%);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
}

.social-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.social-intro {
  max-width: 500px;
}

.social-intro h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.douyin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1C1F21 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.douyin-badge span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
}

.douyin-badge span.red-glow {
  color: #FE2C55;
  text-shadow: 0 0 5px rgba(254, 44, 85, 0.5);
}

.douyin-badge span.cyan-glow {
  color: #25F4EE;
  text-shadow: 0 0 5px rgba(37, 244, 238, 0.5);
}

.social-stats {
  display: flex;
  gap: 40px;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll Animation Hooks */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Section */
footer {
  background: #060911;
  padding: 80px 0 30px;
  border-top: var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-list li strong {
  color: var(--text-white);
  font-family: var(--font-display);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom p {
  font-size: 0.8rem;
}

/* Responsiveness - Media Queries */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
  .philosophy-grid, .courses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .gallery-layout, .enroll-layout {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  /* Navbar adjustments */
  .burger-menu {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0B0F19;
    flex-direction: column;
    padding: 100px 40px;
    align-items: flex-start;
    gap: 24px;
    transition: var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: var(--border-glass);
    z-index: 105;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Burger Animation */
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .nav-cta {
    display: none; /* Hide top CTA for mobile, embed in menu if needed */
  }
  
  /* Grids Stacked */
  .philosophy-grid, .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-layout, .enroll-layout {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .social-layout {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .social-stats {
    width: 100%;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  .gallery-showcase {
    min-height: 300px;
  }
  .social-stats {
    flex-direction: column;
    gap: 20px;
  }
}
