/* ============================================
   晨曦引航 — 2026暑期计算机大高衔接课
   宣传海报展示网站
   ============================================ */

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

:root {
  --blue-deep: #1a3a5c;
  --blue-medium: #2c5f8a;
  --blue-light: #5b9bd5;
  --coral: #e8734a;
  --coral-light: #f5a082;
  --mint: #5ea88d;
  --mint-light: #8cc9b2;
  --gold: #d4a843;
  --cream: #faf7f2;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

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

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
}

.nav-logo img { height: 36px; width: auto; }

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

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue-medium);
  background: rgba(44,95,138,0.08);
}

.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}

.nav-cta:hover { background: #d4653d !important; color: var(--white) !important; }

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

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(170deg, #e8f0f8 0%, #f0e8e3 30%, #e8f3ee 60%, #faf7f2 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -30%;
  width: 80%; height: 150%;
  background: radial-gradient(ellipse at center, rgba(91,155,213,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -20%;
  width: 70%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(232,115,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-medium);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.hero h1 .highlight {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), #e05530);
  color: var(--white);
  padding: 2px 16px;
  border-radius: 8px;
  margin: 0 4px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 8px;
  line-height: 1.6;
}

.hero-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.7);
  border-radius: 100px;
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-team .icon { font-size: 1.2rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,115,74,0.3);
}

.btn-primary:hover {
  background: #d4653d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,115,74,0.4);
}

.btn-outline {
  background: var(--white);
  color: var(--blue-deep);
  border: 2px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--blue-medium);
  color: var(--blue-medium);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.5;
  color: var(--gray-500);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Common --- */
.section { padding: 100px 24px; }

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

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

.section-label {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(44,95,138,0.08);
  color: var(--blue-medium);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- About Section --- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.about-card {
  padding: 36px 28px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.about-card .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.about-card:nth-child(1) .icon-circle { background: rgba(91,155,213,0.12); }
.about-card:nth-child(2) .icon-circle { background: rgba(232,115,74,0.12); }
.about-card:nth-child(3) .icon-circle { background: rgba(94,168,141,0.12); }
.about-card:nth-child(4) .icon-circle { background: rgba(212,168,67,0.12); }

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.about-card strong { color: var(--blue-deep); }

/* --- Courses Section --- */
.courses { background: var(--cream); }

.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.course-card .course-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.course-card:nth-child(1) .course-tag { background: rgba(91,155,213,0.12); color: var(--blue-medium); }
.course-card:nth-child(2) .course-tag { background: rgba(94,168,141,0.12); color: var(--mint); }
.course-card:nth-child(3) .course-tag { background: rgba(232,115,74,0.12); color: var(--coral); }

.course-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.course-card .course-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.55;
}

.course-card .course-detail {
  font-size: 0.88rem;
  color: var(--gray-700);
  background: var(--gray-50);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.course-card .highlight-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 4rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  pointer-events: none;
}

/* --- Gallery Section --- */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  aspect-ratio: 3 / 4;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay span { font-size: 0.85rem; font-weight: 600; }

/* --- Price Cards --- */
.pricing { background: linear-gradient(170deg, #faf7f2 0%, #f0e8e3 100%); }

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
}

.price-card.featured {
  border-color: var(--coral);
  box-shadow: 0 8px 32px rgba(232,115,74,0.15);
  transform: scale(1.03);
}

.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.price-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.price-card h4 {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  font-weight: 600;
}

.price-card .price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 20px;
}

.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--gray-500); }

.price-card ul {
  list-style: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 2;
}

.price-card ul li::before {
  content: '✓';
  display: inline-block;
  margin-right: 8px;
  color: var(--mint);
  font-weight: 700;
}

/* --- Schedule --- */
.schedule { background: var(--white); }

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}

.schedule-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
}

.schedule-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--gray-200);
}

.schedule-item:last-child { border-bottom: none; }

.schedule-date {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
  padding: 10px 8px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--coral);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.schedule-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.schedule-info p { font-size: 0.82rem; color: var(--gray-500); }

.timeline { margin-top: 24px; }

.timeline-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  position: relative;
}

.timeline-bar .bar-label {
  width: 130px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
}

.timeline-bar .bar-fill {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  min-width: 80px;
}

.bar-fill.ai { background: var(--blue-light); width: 65%; }
.bar-fill.cpp { background: var(--coral); width: 55%; }
.bar-fill.office { background: var(--mint); width: 55%; }

.timeline-dates {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 12px;
}

.timeline-dates span { display: flex; align-items: center; gap: 6px; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.ai { background: var(--blue-light); }
.dot.cpp { background: var(--coral); }
.dot.office { background: var(--mint); }

/* --- CTA Section --- */
.cta {
  background: linear-gradient(150deg, var(--blue-deep) 0%, #254e78 50%, #1a3a5c 100%);
  color: var(--white);
  text-align: center;
}

.cta .section-label {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

.cta h2 { color: var(--white); }

.cta p { color: rgba(255,255,255,0.75); }

.cta-box {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.cta-box .wechat-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 16px 0;
  padding: 16px 24px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  word-break: break-all;
}

/* QR Code */
.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 24px;
}

.qr-img {
  width: 180px;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cta-box .steps {
  text-align: left;
  list-style: none;
  margin-top: 24px;
}

.cta-box .steps li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cta-box .steps li .step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 24px 32px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 2;
}

.footer strong { color: var(--white); }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* --- Benefits List --- */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.benefit-item:nth-child(odd) .benefit-icon { background: rgba(94,168,141,0.12); }
.benefit-item:nth-child(even) .benefit-icon { background: rgba(91,155,213,0.12); }

.benefit-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 2px;
}

.benefit-text p { font-size: 0.82rem; color: var(--gray-500); }

/* --- Tabs --- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: none;
  background: var(--gray-100);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover { background: var(--gray-200); }

.tab-btn.active {
  background: var(--coral);
  color: var(--white);
}

.tab-content { display: none; }

.tab-content.active { display: block; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: flex; }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .section { padding: 60px 20px; }

  .course-cards,
  .price-cards,
  .schedule-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .price-card.featured { transform: none; }

  .price-card.featured:hover { transform: translateY(-4px); }

  .lightbox { padding: 16px; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .hero h1 { font-size: 1.7rem; }

  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* Print hidden */
@media print {
  .navbar, .lightbox, .hero-scroll, .cta { display: none; }
}
