:root {
  color-scheme: light;
  --ink: #111416;
  --muted: #687174;
  --line: #e3e6e3;
  --paper: #f6f7f5;
  --white: #ffffff;
  --green: #17634c;
  --green-dark: #0d352b;
  --mint: #e8f1ec;
  --yellow: #d8aa3a;
  --red: #a74d42;
  --blue: #405d86;
  --shadow: 0 24px 70px rgba(17, 20, 22, 0.1);
  --soft-shadow: 0 12px 34px rgba(17, 20, 22, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 1;
}

.quick-panel {
  order: 2;
}

.school-section {
  order: 3;
}

#courses {
  order: 4;
}

#process {
  order: 5;
}

.coach-window-section {
  order: 6;
}

.review-section {
  order: 7;
}

.contact-section {
  order: 8;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(250, 251, 249, 0.88);
  border-bottom: 1px solid rgba(17, 20, 22, 0.08);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: #1d2528;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.78;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.site-header.is-solid .desktop-nav {
  color: rgba(17, 20, 22, 0.72);
}

.header-call {
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 90svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: #101413;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(0.88) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 13, 12, 0.12) 0%, rgba(9, 13, 12, 0.58) 60%, rgba(9, 13, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 28, 23, 0.7), rgba(8, 28, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding: 124px 22px 44px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 16px;
  font-size: clamp(44px, 12vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 35rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 3.8vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.school-copy a,
.course-card a,
.lead-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.primary-btn {
  padding: 0 22px;
  background: var(--yellow);
  color: #1d2528;
}

.secondary-btn {
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.trust-row {
  margin-top: 20px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  width: min(1120px, calc(100% - 32px));
  margin: -22px auto 0;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 22, 0.08);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--soft-shadow);
  position: relative;
  z-index: 2;
}

.quick-panel div {
  padding: 22px;
  background: var(--white);
}

.quick-panel strong,
.quick-panel span {
  display: block;
}

.quick-panel strong {
  margin-bottom: 5px;
  font-size: 22px;
}

.quick-panel span {
  color: var(--muted);
}

.section,
.contact-section {
  padding: 54px 20px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.02;
}

.section-head p:not(.eyebrow),
.school-copy p,
.contact-section p {
  color: var(--muted);
  line-height: 1.8;
}

.school-grid {
  display: grid;
  gap: 18px;
}

.school-card {
  overflow: hidden;
  border: 1px solid rgba(17, 20, 22, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.school-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dce7e3;
}

.school-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel {
  overflow: hidden;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 360ms ease,
    transform 520ms ease;
}

.carousel-track img.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-labels {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.carousel-labels span {
  display: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.carousel-labels span.is-active {
  display: inline-flex;
}

.car-card .carousel-labels span {
  color: var(--green-dark);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 22px;
  background: var(--yellow);
}

.school-copy {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.school-copy h3 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.12;
}

.school-copy p {
  margin-bottom: 0;
}

.school-copy a {
  background: var(--green);
  color: var(--white);
}

.pill {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.moto-card .pill {
  background: #e9edf2;
  color: var(--blue);
}

.moto-card .school-copy a {
  background: var(--blue);
}

.course-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  overflow-x: auto;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-weight: 900;
}

.tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.course-grid,
.steps {
  display: grid;
  gap: 18px;
}

.course-card,
.steps article,
.review-card {
  border: 1px solid rgba(17, 20, 22, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.course-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.course-card.is-hidden {
  display: none;
}

.course-card.accent {
  border-color: rgba(216, 170, 58, 0.48);
  background: linear-gradient(180deg, #ffffff, #fbfaf5);
}

.course-card.moto {
  border-color: rgba(64, 93, 134, 0.22);
}

.course-card.moto strong {
  color: var(--blue);
}

.course-card .course-price {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 18px;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.sale-price {
  color: var(--red);
}

.course-card.moto .course-price {
  background: #e9edf2;
  color: var(--blue);
}

.course-card p {
  margin-bottom: 7px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.course-card h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.course-card strong {
  color: var(--green-dark);
}

.course-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.course-card a {
  background: var(--ink);
  color: var(--white);
}

.coach-window-section {
  background: var(--white);
}

.coach-window {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coach-window-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(17, 20, 22, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.coach-window-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: #dce7e3;
}

.coach-window-card figcaption {
  padding: 11px 10px 12px;
  text-align: center;
  font-weight: 900;
}

.coach-window.is-carousel {
  display: block;
}

.team-viewport {
  overflow: hidden;
}

.team-track {
  display: flex;
  transition: transform 420ms ease;
}

.team-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.band {
  background: #eef2ef;
}

.process-flows {
  display: grid;
  gap: 16px;
}

.flow-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid rgba(17, 20, 22, 0.08);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.flow-card h3 {
  margin: 0;
  font-size: 22px;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flow-card button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 12, 0.72);
}

.image-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.image-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.image-modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.image-modal-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.image-modal-panel img {
  display: block;
  width: 100%;
  max-height: calc(88vh - 67px);
  object-fit: contain;
  background: #f7faf8;
}

.steps {
  counter-reset: step;
}

.steps article {
  padding: 24px;
}

.steps span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--yellow);
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.review-section {
  background: var(--paper);
}

.reviews {
  overflow: hidden;
}

.review-track {
  display: flex;
  transition: transform 420ms ease;
}

.review-card {
  flex: 0 0 100%;
  margin: 0;
  padding: 26px;
}

.reviews blockquote {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.7;
}

.reviews figcaption {
  color: var(--muted);
  font-weight: 800;
}

.review-dots,
.team-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.review-dots button,
.team-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5ccc8;
  cursor: pointer;
}

.review-dots button.is-active,
.team-dots button.is-active {
  width: 26px;
  background: var(--green);
}

.contact-section {
  display: grid;
  gap: 22px;
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 170, 58, 0.22), transparent 34%),
    linear-gradient(160deg, #0c3128 0%, #111416 100%);
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin: 22px 0 14px;
}

.contact-card,
.wechat-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(12px);
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.contact-card span,
.wechat-card strong {
  color: var(--yellow);
  font-weight: 900;
}

.contact-card strong {
  font-size: 24px;
}

.contact-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.wechat-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.wechat-card img {
  display: block;
  width: min(100%, 260px);
  border-radius: 8px;
  background: var(--white);
}

.wechat-card p {
  margin: 8px 0 0;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfc;
}

.lead-form button {
  border: 0;
  background: var(--yellow);
  color: #1d2528;
  cursor: pointer;
}

footer {
  padding: 24px 20px 92px;
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.thanks-page {
  min-height: 100vh;
  background: var(--green-dark);
}

.thanks-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(34px, 9vw, 52px);
}

.thanks-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.thanks-card .secondary-btn {
  border-color: var(--green);
  color: var(--green-dark);
}

.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(17, 20, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.mobile-cta a {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.mobile-cta a:first-child {
  background: var(--green);
  color: var(--white);
}

.mobile-cta a:last-child {
  background: var(--yellow);
  color: #1d2528;
}

@media (max-width: 520px) {
  .header-call {
    display: none;
  }

  .site-header {
    padding-right: 22px;
  }
}

@media (min-width: 700px) {
  .desktop-nav {
    display: flex;
  }

  .hero {
    min-height: 88vh;
  }

  .hero img {
    object-position: center top;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .hero-content,
  .section,
  .contact-section {
    padding-left: clamp(32px, 7vw, 72px);
    padding-right: clamp(32px, 7vw, 72px);
  }

  .quick-panel {
    grid-template-columns: repeat(3, 1fr);
    margin-top: -34px;
  }

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

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

  .course-tabs,
  .course-grid {
    max-width: 1300px;
  }

  .course-tabs {
    gap: 28px;
    margin-bottom: 32px;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
  }

  .coach-window {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .team-slide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-flows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
  }

  .mobile-cta {
    display: none;
  }

  footer {
    padding-bottom: 24px;
  }
}

@media (min-width: 1100px) {
  .hero-content {
    padding-bottom: 96px;
  }

  .section,
  .contact-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .coach-window:not(.is-carousel) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
