:root {
  --blue: #2f66ad;
  --blue-dark: #153d73;
  --red: #b20f18;
  --red-dark: #7f080f;
  --gold: #f5c86a;
  --ink: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #f7f9fc;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(21, 61, 115, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(135deg, #071f3f, #123861);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 24px rgba(21, 61, 115, .18);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.brand img {
  width: 128px;
  height: 52px;
  object-fit: contain;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 9px 12px;
  color: rgba(255, 255, 255, .94);
  border-radius: 999px;
  font-weight: 800;
}
.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.carousel-track {
  position: relative;
  height: clamp(340px, 28vw, 500px);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02);
}
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 24, 52, .52), rgba(5, 24, 52, .06) 58%, rgba(5, 24, 52, .04)),
    linear-gradient(0deg, rgba(5, 24, 52, .5), rgba(5, 24, 52, 0) 46%);
}
.carousel-slide figcaption {
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: clamp(40px, 4.2vw, 68px);
  z-index: 1;
  max-width: 660px;
  color: var(--white);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .36);
}
.carousel-slide figcaption span,
.eyebrow,
.section-kicker {
  color: var(--gold);
  font-weight: 900;
}
.carousel-slide figcaption span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  background: rgba(178, 15, 24, .9);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.carousel-slide figcaption strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.15;
}
.carousel-slide figcaption small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: var(--white);
  background: rgba(21, 61, 115, .45);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 30px;
}
.carousel-arrow.prev { left: max(14px, calc((100vw - 1180px) / 2 - 56px)); }
.carousel-arrow.next { right: max(14px, calc((100vw - 1180px) / 2 - 56px)); }
.carousel-dots {
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 30px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.carousel-dots button.active { width: 48px; background: var(--gold); }

.hero-intro {
  padding: 74px 0;
  background: linear-gradient(135deg, #fff, #eef4ff);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 44px;
  align-items: center;
}
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--red); }
.intro-copy h1,
.section h2,
.final-cta h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.15;
}
.intro-copy p,
.section p,
.final-cta p {
  color: var(--muted);
}
.intro-copy > p:not(.eyebrow) {
  max-width: 780px;
  font-size: 18px;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.primary-btn,
.outline-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 900;
}
.primary-btn { color: var(--white); background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.outline-btn { color: var(--blue-dark); background: var(--white); border: 1px solid #c9d7ef; }
.hotline-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid #dce6f7;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hotline-card span { color: var(--red); font-weight: 900; }
.hotline-card strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: 26px;
}
.hotline-card em {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 10px;
  color: var(--red);
  background: #fff1f2;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
}
.contact-pills {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.contact-pills b {
  padding: 10px 12px;
  color: var(--blue-dark);
  background: #eef4ff;
  border-radius: 12px;
  font-size: 14px;
}

.section { padding: 78px 0; }
.muted { background: #eef4ff; }
.explain-grid,
.strength-grid,
.campus-grid,
.enroll-grid,
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 44px;
  align-items: center;
}
.exam-card,
.subject-box {
  padding: 28px;
  background: var(--white);
  border: 1px solid #dce6f7;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.exam-card strong,
.subject-box h3 {
  display: block;
  color: var(--blue-dark);
  font-size: 24px;
}
.exam-card ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.exam-card li {
  padding: 10px 12px;
  color: var(--blue-dark);
  background: #eef4ff;
  border-radius: 12px;
  font-weight: 800;
}

.red-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #8d0b13);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.section-head.light h2,
.section-head.light .section-kicker { color: var(--white); }
.advantage-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.advantage-switch button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  font-weight: 900;
}
.advantage-switch button.active { color: var(--red); background: var(--gold); }
.advantage-panel {
  display: none;
  max-width: 880px;
  padding: 28px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
}
.advantage-panel.active { display: block; }
.advantage-panel b { color: var(--gold); font-size: 32px; }
.advantage-panel h3 { margin: 8px 0; font-size: 30px; }
.advantage-panel p { margin: 0; color: rgba(255, 255, 255, .86); }

.result-copy h2 { color: var(--blue-dark); }
.big-number {
  display: inline-grid;
  margin-top: 20px;
  padding: 18px 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 22px;
}
.big-number span { font-weight: 900; }
.big-number strong { font-size: 56px; line-height: 1; }
.result-img,
.campus-grid img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-grid article {
  min-height: 218px;
  padding: 24px;
  background: var(--white);
  border: 1px solid #dce6f7;
  border-radius: 22px;
}
.service-grid span {
  color: var(--red);
  font-weight: 900;
}
.service-grid h3 {
  margin: 8px 0 10px;
  color: var(--blue-dark);
}
.service-grid p { margin: 0; }

.campus-section { background: #fff; }
.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #dce6f7;
  border-radius: 16px;
  color: var(--blue-dark);
  font-weight: 800;
}
.subject-box .primary-btn { margin-top: 16px; }

.final-cta {
  padding: 74px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), #0c1f3d);
}
.final-cta h2,
.final-cta p,
.final-cta .section-kicker { color: var(--white); }
.final-actions { display: grid; gap: 12px; }
.final-actions a,
.final-actions button {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--red-dark);
  background: var(--gold);
  cursor: pointer;
  font-weight: 900;
}
.final-actions button { color: var(--white); background: rgba(255, 255, 255, .12); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}
.drawer.open { display: block; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 31, 61, .6);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  overflow: auto;
  padding: 28px 18px;
  background: var(--paper);
}
.drawer-close {
  width: 42px;
  height: 42px;
  margin: 0 0 12px auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--white);
  cursor: pointer;
  font-size: 26px;
}
.apply-form {
  padding: 26px;
  background: var(--white);
  border: 1px solid #dce6f7;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.apply-form h3 { margin: 0 0 18px; color: var(--blue-dark); }
.apply-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}
.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  border: 1px solid #cbd8ee;
  border-radius: 14px;
  padding: 12px 13px;
  background: #fbfdff;
  outline: none;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 102, 173, .12);
}
.full { width: 100%; }
.form-message { min-height: 24px; color: var(--red); font-weight: 900; }

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(104px, .65fr);
  box-shadow: 0 -8px 24px rgba(21, 61, 115, .14);
}
.mobile-cta a,
.mobile-cta button {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: var(--blue-dark);
  font-weight: 900;
}
.mobile-cta button { background: var(--red); }

@media (max-width: 980px) {
  .intro-grid,
  .explain-grid,
  .strength-grid,
  .campus-grid,
  .enroll-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .topbar-inner { min-height: 66px; }
  .brand { font-size: 15px; }
  .brand img { width: 96px; height: 42px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 10px 12px 14px;
    background: #071f3f;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 30px rgba(5, 24, 52, .22);
  }
  .nav.open { display: grid; }
  .nav a {
    color: var(--white);
    background: rgba(255, 255, 255, .1);
  }
  .carousel-track { height: 330px; }
  .carousel-slide figcaption {
    left: 18px;
    right: 18px;
    bottom: 38px;
    max-width: none;
  }
  .carousel-slide figcaption span { min-height: 26px; font-size: 13px; }
  .carousel-slide figcaption strong { font-size: 24px; }
  .carousel-slide figcaption small { font-size: 13px; }
  .carousel-arrow { display: none; }
  .carousel-dots { left: 18px; bottom: 16px; }
  .hero-intro { padding: 52px 0; }
  .section { padding: 54px 0; }
  .service-grid,
  .exam-card ul { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; }
}
