/* ============================
   曙光升学 · 招生官网样式
   ============================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:root {
  --brand: #1e40af;
  --brand-deep: #1e3a8a;
  --brand-soft: #dbeafe;
  --accent: #f59e0b;
  --accent-deep: #d97706;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.10);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .25s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  transition: all .15s ease;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-cta {
  margin-left: 8px;
  background: var(--brand);
  color: #fff !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--brand-deep) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.orb-1 {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, #93c5fd 0%, transparent 70%);
}
.orb-2 {
  width: 520px; height: 520px;
  top: 60px; right: -160px;
  background: radial-gradient(circle, #fcd34d 0%, transparent 70%);
  opacity: .35;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-inner {
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(30, 64, 175, 0.08);
  color: var(--brand);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--brand) 0%, #6366f1 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.30);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 64, 175, 0.35); }
.btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 28px 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-item .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
.stat-item .suffix {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  margin-left: -28px;
  margin-top: -2px;
  align-self: flex-start;
}
.stat-item .label {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}
.hero-stats .divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* ===== Section 通用 ===== */
.section {
  padding: 100px 0;
}
.section-alt { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: #f1f5f9;
}
.section-dark .section-sub { color: #94a3b8; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.kicker {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-dark .kicker { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  line-height: 1.25;
}
.section-head .section-sub {
  font-size: 16px;
  color: var(--ink-3);
  margin: 0;
}

/* ===== 三栏 features ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .25s ease;
}
.feature:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin: 0 0 10px; color: var(--ink); font-weight: 700; }
.feature p { color: var(--ink-3); margin: 0; font-size: 14.5px; }

/* ===== 课程体系 ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.program-card {
  position: relative;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-card.highlight {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff 0%, #f0f6ff 100%);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
}
.program-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.program-card h3 { font-size: 18px; margin: 0 0 14px; color: var(--ink); font-weight: 700; }
.program-card ul { padding-left: 18px; color: var(--ink-3); margin: 0 0 18px; font-size: 14.5px; }
.program-card ul li { margin-bottom: 6px; }
.program-link {
  margin-top: auto;
  color: var(--brand);
  font-weight: 600;
  font-size: 14.5px;
}
.program-link:hover { color: var(--brand-deep); }

/* ===== 师资 ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.teacher {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all .25s ease;
}
.teacher:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teacher-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}
.teacher-avatar[data-color="1"] { background: linear-gradient(135deg, #1e40af, #6366f1); }
.teacher-avatar[data-color="2"] { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.teacher-avatar[data-color="3"] { background: linear-gradient(135deg, #059669, #14b8a6); }
.teacher-avatar[data-color="4"] { background: linear-gradient(135deg, #db2777, #f43f5e); }
.teacher h3 { font-size: 17px; margin: 0 0 4px; color: var(--ink); font-weight: 700; }
.teacher-meta { color: var(--brand); font-size: 13px; margin: 0 0 12px; font-weight: 500; }
.teacher p { color: var(--ink-3); margin: 0; font-size: 14px; line-height: 1.65; }

/* ===== 升学成果 ===== */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.result-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}
.result-school {
  font-size: 22px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
}
.result-meta { color: #94a3b8; font-size: 13px; margin: 0 0 14px; }
.result-card p { color: #cbd5e1; margin: 0; font-size: 14.5px; }

/* ===== 招生表单 ===== */
.admission-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.form {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-field label span { color: #ef4444; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.10);
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: all .15s ease;
}
.checkbox input { width: auto; margin: 0; }
.checkbox:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.form-hint { text-align: center; color: var(--ink-4); font-size: 13px; margin: 12px 0 0; }

.admission-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.aside-card h4 { font-size: 16px; margin: 0 0 14px; color: var(--ink); font-weight: 700; }
.aside-card ul { padding-left: 0; list-style: none; margin: 0; }
.aside-card ul li { color: var(--ink-2); margin-bottom: 8px; font-size: 14.5px; }
.aside-line { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; line-height: 1.7; }
.aside-line:last-child { margin-bottom: 0; }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all .25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-label { color: var(--ink-3); font-size: 13px; margin-bottom: 4px; }
.contact-value { color: var(--ink); font-size: 17px; font-weight: 600; }

/* ===== 底部 ===== */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-name { color: #fff; font-weight: 700; font-size: 16px; }
.footer-tag { font-size: 13px; color: #94a3b8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-links a { font-size: 14px; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-meta { text-align: right; font-size: 13px; }
.footer-meta p { margin: 0 0 6px; }
.footer-meta .beian a { color: #94a3b8; }
.footer-meta .beian a:hover { color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { margin-left: 0 !important; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding: 110px 0 70px; }
  .hero-stats { gap: 18px; padding: 22px; }
  .hero-stats .divider { display: none; }

  .section { padding: 70px 0; }

  .admission-wrap { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-brand, .footer-links, .footer-meta { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }
}