/* ========================================
   彭世职业技术学院 - 官网样式
   结合彭世集团(紫色渐变科技风) + 彭世学院(蓝色教育风)
   ======================================== */

/* --- Scroll Offset (固定导航栏不遮挡锚点内容) --- */
html {
  scroll-padding-top: 80px;
}

/* --- CSS Variables --- */
:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --primary-light: #E8ECFF;
  --accent: #FF6B35;
  --text-dark: #1A1A2E;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-gray: #F1F5F9;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

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

.section-header p {
  color: var(--text-gray);
  font-size: 1rem;
  margin-top: 16px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.navbar-menu a {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  position: relative;
}

.navbar-menu a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.navbar-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.navbar-menu a.active.navbar-cta {
  color: white !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.navbar-menu a:not(.navbar-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: width 0.3s, left 0.3s;
}

.navbar-menu a:not(.navbar-cta):hover::after {
  width: 100%;
  left: 0;
}

.navbar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
  color: white !important;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, #d1d9e6, transparent);
  margin: 0 8px;
  flex-shrink: 0;
}

/* 子页面链接样式 */
.navbar-menu a[href$=".html"] {
  color: #64748b;
  font-weight: 500;
  font-size: 0.85rem !important;
  padding: 6px 10px !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px !important;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.navbar-menu a[href$=".html"]::after {
  display: none;
}

.navbar-menu a[href$=".html"]:hover {
  color: var(--primary);
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Banner --- */
.hero {
  margin-top: 72px;
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--bg-gray);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0);
}

.hero-highlight-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #ffffff 0%, #fff8b8 20%, #ffe066 40%, #ffb347 60%, #ff6f61 80%, #ff9a3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(255, 180, 60, 0.4);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hero-text-light {
  color: #fff3c4;
  text-shadow: 0 1px 8px rgba(255, 214, 60, 0.35);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #E55A25;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-indicators span {
  width: 30px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-indicators span.active {
  background: white;
  width: 50px;
}

/* Hero Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

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

/* --- Stats Bar --- */
.stats-bar {
  background: #667eea;
  padding: 50px 0;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  position: relative;
  z-index: 1;
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8b8 40%, #ffe066 70%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(255, 180, 60, 0.3);
  filter: drop-shadow(0 2px 6px rgba(255, 180, 60, 0.2));
}

.stat-item p {
  font-size: 1.05rem;
  color: #d4e4f7;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Courses Section --- */
.courses {
  background: linear-gradient(180deg, #fafbfd 0%, #f5f7fa 100%);
}

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

.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.course-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-card-img img {
  transform: scale(1.08);
}

.course-card-badge {
  position: absolute;
  color: white;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 第一个标签在左上角 */
.course-card-badge:first-child {
  top: 12px;
  left: 12px;
}

/* 第二个标签在右上角 */
.course-card-badge:last-child:not(:first-child) {
  top: 12px;
  left: auto;
  right: 12px;
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
}

.badge-hot i {
  animation: pulse 1.5s ease-in-out infinite;
}

.badge-salary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.badge-intangible {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.badge-startup {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-new {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.course-card-body {
  padding: 24px;
}

.course-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.course-card-body p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.course-card-link:hover {
  gap: 10px;
}

/* --- About Section --- */
.about {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.about-content h2 span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.about-content p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.about-feature span {
  font-weight: 600;
  color: var(--text-dark);
}

.about-image {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  height: 500px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: min(95%, 515px);
  border-radius: 16px;
  border: 1px solid #e0e9f8;
}

.about-image-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-image-badge h4 {
  font-size: 1.8rem;
  font-weight: 800;
}

.about-image-badge p {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* --- Advantages Section --- */
.advantages {
  background: linear-gradient(180deg, #fefefe 0%, #f8f5ff 100%);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.advantage-card {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.advantage-icon i {
  color: var(--primary);
  font-style: normal;
}

.advantage-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.advantage-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Tech Section (硬核科技) --- */
.tech-section {
    padding: 6rem 2rem;
    background: #0f172a;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920') center/cover no-repeat;
    opacity: 0.1;
}

.tech-section::after {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background:
        linear-gradient(120deg, transparent 35%, rgba(96, 165, 250, 0.18) 50%, transparent 65%),
        repeating-linear-gradient(
            0deg,
            rgba(96, 165, 250, 0.07) 0,
            rgba(96, 165, 250, 0.07) 1px,
            transparent 1px,
            transparent 18px
        );
    animation: techScan 9s linear infinite;
    pointer-events: none;
}

.tech-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.tech-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.tech-title::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -45%;
    width: 36%;
    height: 340%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: rotate(18deg);
    animation: techTitleShine 5.8s ease-in-out infinite;
}

.tech-subtitle {
    color: #94a3b8;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: techCardFloat 4.5s ease-in-out infinite;
}

.tech-card:nth-child(2) {
    animation-delay: .4s;
}

.tech-card:nth-child(3) {
    animation-delay: .8s;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -140%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.24), transparent);
    transform: skewX(-18deg);
    animation: techCardShine 6.6s linear infinite;
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-icon i {
    color: #60a5fa;
    animation: techIconPulse 2s ease-in-out infinite;
}

.tech-card h3 {
    color: #60a5fa;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.tech-card p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
}

@keyframes techScan {
    0% {
        transform: translateX(-8%) translateY(0);
    }
    100% {
        transform: translateX(8%) translateY(-2%);
    }
}

@keyframes techCardFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes techCardShine {
    0% {
        left: -140%;
    }
    100% {
        left: 180%;
    }
}

@keyframes techIconPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        opacity: .82;
    }
}

@keyframes techTitleShine {
    0%,
    60% {
        left: -45%;
        opacity: 0;
    }
    70% {
        opacity: 1;
    }
    100% {
        left: 130%;
        opacity: 0;
    }
}

/* --- Teachers Section --- */
.teachers {
  background: linear-gradient(180deg, #fdfefe 0%, #f0f7ff 100%);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  justify-content: center;
  gap: 1.4rem;
}

.teacher-card {
  text-align: center;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.teacher-card img {
  width: 100%;
  height: 555px;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  filter: contrast(1.03) saturate(1.02);
  display: block;
  transition: transform 0.5s ease;
}

.preview-trigger {
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
  background: transparent;
}

.preview-trigger:focus-visible {
  outline: 3px solid rgba(102, 126, 234, 0.45);
  outline-offset: -3px;
}

.teacher-card:hover img {
  transform: scale(1.05);
}

/* --- Media Lightbox --- */
.media-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 46, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1500;
  transition: opacity 0.2s ease;
}

.media-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  width: min(92vw, 860px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(151, 184, 238, 0.35);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(102, 126, 234, 0.45);
  background: rgba(255, 255, 255, 0.78);
  color: #1f4d7d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

.teacher-card h3 {
  color: var(--text-dark);
  margin: 0.9rem 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.teacher-card p {
  color: var(--text-gray);
  font-size: 1rem;
  padding: 0 1rem 1rem;
  line-height: 1.5;
}

/* --- Timeline Section --- */
.timeline-section {
  background: #0f172a;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.timeline-section .section-header h2 {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
}

.timeline-section .section-header h2::after {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

.timeline-section .section-header p {
  color: #94a3b8;
}

.timeline {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 0.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.55), rgba(167, 139, 250, 0.1));
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.25);
}

.timeline-item {
  width: calc(50% - 2.2rem);
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18), 0 0 18px rgba(96, 165, 250, 0.5);
}

.timeline-item:nth-child(odd)::before {
  right: -2.65rem;
}

.timeline-item:nth-child(even)::before {
  left: -2.65rem;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(72, 126, 201, 0.15);
  position: relative;
  overflow: hidden;
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.22), transparent);
  transform: skewX(-22deg);
  animation: cardShine 7s linear infinite;
}

.timeline-year {
  display: inline-block;
  font-size: 0.82rem;
  color: #134272;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.4);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #e2e8f0;
}

.timeline-content h3 {
  color: #60a5fa;
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.timeline-content p {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 0.95rem;
}

@keyframes cardShine {
  0% { left: -140%; }
  100% { left: 180%; }
}

/* --- Contact Section --- */
.contact-section {
  background: linear-gradient(180deg, #fefefe 0%, #f5f9ff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-detail p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail .icon {
  font-size: 1.3rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.contact-detail .icon i {
  font-style: normal;
}

.contact-detail strong {
  color: var(--text-dark);
}

.contact-form-wrap {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* --- Footer --- */
.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact-item {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact-item a {
  color: #60a5fa;
}

.footer-contact-item a:hover {
  text-decoration: underline;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-qr {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 8px;
}

.footer-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #64748b;
}

.footer-bottom a:hover {
  color: #60a5fa;
}

/* --- Floating Buttons --- */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.floating-btn i {
  font-style: normal;
}

.floating-btn.phone {
  background: #10B981;
  color: white;
}

.floating-btn.wechat {
  background: #07C160;
  color: white;
}

.floating-btn.top {
  background: var(--primary);
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.floating-btn.top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn:hover {
  transform: scale(1.1);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Title (参考彭世官网) --- */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* --- Student Distribution Map (参考彭世官网布局) --- */
.student-map-section {
    padding: 6rem 2rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(126, 181, 255, 0.22), transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(172, 129, 255, 0.2), transparent 40%),
        linear-gradient(135deg, #f6faff 0%, #edf4ff 100%);
}

.student-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.student-map-chart {
    min-height: 560px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.96));
    border: 1px solid rgba(178, 205, 246, 0.8);
    box-shadow: 0 16px 36px rgba(31, 84, 164, 0.16);
}

.student-map-rank {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.94));
    border: 1px solid rgba(178, 205, 246, 0.85);
    box-shadow: 0 16px 36px rgba(31, 84, 164, 0.14);
    padding: 1.1rem 1rem;
}

.student-map-rank h3 {
    color: #1e477e;
    font-size: 1.08rem;
    margin-bottom: 0.8rem;
}

.student-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.student-rank-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.45rem;
    border-bottom: 1px dashed #dbe8ff;
    color: #224267;
    font-size: 0.95rem;
}

.student-rank-list li:nth-child(-n+3) {
    background: rgba(90, 142, 231, 0.08);
    border-radius: 10px;
}

.student-rank-list li:last-child {
    border-bottom: none;
}

.student-rank-value {
    color: #0f5da8;
    font-weight: 700;
    background: rgba(15, 93, 168, 0.08);
    border: 1px solid rgba(15, 93, 168, 0.18);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .navbar-logo-text {
    display: none;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .student-map-layout {
    grid-template-columns: 1fr;
  }

  .student-map-chart {
    min-height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .navbar-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

  .stat-item h3 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .school-intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 350px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline-item::before {
    left: -46px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card img {
    height: auto;
    aspect-ratio: 3 / 4;
  } 

  .about-features {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 24px;
  }
}
