:root {
  --ink: #172235;
  --ink-2: #243247;
  --muted: #647185;
  --line: #e3e8ef;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --blue: #213f7a;
  --blue-2: #2f63ad;
  --gold: #c8923d;
  --gold-soft: #f8f0e3;
  --green: #4a7662;
  --shadow: 0 18px 42px rgba(23, 34, 53, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  background: var(--paper);
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(200, 146, 61, 0.45);
  outline-offset: 3px;
}

.container,
.nav,
.top-line__inner,
.hero__frame,
.page-hero__inner,
.footer__main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(227, 232, 239, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.top-line {
  background: #14213d;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.top-line__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 188px;
  max-height: 56px;
  object-fit: contain;
}

.brand__text {
  display: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius);
  color: #33445c;
  font-size: 15px;
  font-weight: 700;
}

.nav__menu a:hover,
.nav__menu a.is-active {
  color: var(--blue);
  background: #f0f4fa;
}

.nav__cta {
  margin-left: 8px;
  color: #fff !important;
  background: var(--blue) !important;
}

.nav__cta:hover {
  background: #172f61 !important;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section {
  padding: 80px 0;
}

.section--compact {
  padding: 58px 0;
}

.section--soft {
  background: var(--soft);
}

.section--warm {
  background: #fbf7ef;
}

.section__head {
  max-width: 760px;
  margin: 0 0 36px;
}

.section__head p {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 11px;
  border: 1px solid rgba(200, 146, 61, 0.28);
  border-radius: var(--radius);
  color: #7b5520;
  font-size: 13px;
  font-weight: 800;
  background: var(--gold-soft);
}

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

h1 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.36;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.lead {
  color: #3f4e62;
  font-size: 18px;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.98) 0%, rgba(255, 255, 255, 0.95) 58%, rgba(248, 240, 227, 0.72) 100%);
}

.hero__frame {
  min-height: 640px;
  padding: 72px 0;
}

.hero__slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: 56px;
}

.hero__slide.is-active {
  display: grid;
}

.hero__copy {
  max-width: 720px;
}

.hero__copy .eyebrow {
  color: var(--blue);
  border-color: rgba(47, 99, 173, 0.18);
  background: #eef4fb;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.button--primary {
  color: #fff;
  background: var(--blue);
}

.button--primary:hover {
  background: #172f61;
}

.button--warm {
  color: #fff;
  background: var(--gold);
}

.button--ghost {
  color: var(--blue);
  border-color: #cfd8e6;
  background: #fff;
}

.button--ghost:hover {
  border-color: var(--blue);
  background: #f5f8fc;
}

.hero__media {
  position: relative;
}

.hero__media img,
.split__media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero__media img {
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(300px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(23, 34, 53, 0.13);
}

.hero__badge strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.hero__badge span {
  color: var(--muted);
  font-size: 14px;
}

.hero__dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hero__dots button {
  width: 34px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cdd7e5;
}

.hero__dots button.is-active {
  width: 54px;
  background: var(--gold);
}

.quick-grid,
.card-grid,
.advantage-grid,
.environment-grid,
.case-grid,
.teacher-grid,
.info-grid,
.service-detail-grid {
  display: grid;
  gap: 20px;
}

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

.quick-grid--simple .quick-card {
  min-height: 138px;
  display: grid;
  align-content: start;
}

.quick-card,
.card,
.advantage,
.case-card,
.teacher-card,
.info-card,
.service-panel,
.form-card,
.page-hero__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.quick-card,
.advantage,
.info-card,
.service-panel,
.form-card,
.page-hero__card {
  padding: 26px;
}

.quick-card strong,
.info-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

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

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

.card,
.case-card,
.teacher-card,
.environment-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.case-card:hover,
.teacher-card:hover,
.environment-item:hover {
  border-color: #cbd6e4;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__body,
.case-card__body,
.teacher-card__body {
  padding: 24px;
}

.card__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius);
  color: #6c4919;
  font-size: 13px;
  font-weight: 800;
  background: var(--gold-soft);
}

.card ul,
.service-panel ul,
.check-list,
.timeline,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li,
.service-panel li,
.check-list li,
.plain-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.card li::before,
.service-panel li::before,
.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

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

.advantage {
  min-height: 172px;
}

.advantage__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: var(--blue);
}

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

.environment-item img,
.case-card img,
.teacher-card img {
  width: 100%;
  object-fit: cover;
  background: var(--soft);
}

.environment-item img {
  aspect-ratio: 1.4 / 1;
}

.case-card img {
  aspect-ratio: 1.55 / 1;
}

.teacher-card img {
  aspect-ratio: 1.28 / 1;
}

.environment-item div {
  padding: 18px;
}

.scene-strip {
  position: relative;
}

.scene-strip__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-behavior: smooth;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.scene-strip__track::-webkit-scrollbar {
  display: none;
}

.scene-card {
  flex: 0 0 clamp(260px, 31vw, 360px);
  scroll-snap-align: start;
}

.scene-card img {
  aspect-ratio: 1.42 / 1;
}

.scene-strip__controls {
  position: absolute;
  top: -64px;
  right: 0;
  display: flex;
  gap: 10px;
}

.scene-strip__controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 33, 61, 0.1);
}

.scene-strip__controls button:hover,
.scene-strip__controls button:focus-visible {
  border-color: #cbd6e4;
  background: #f8fafc;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  gap: 52px;
}

.split--simple {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trust-list div {
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.trust-list strong,
.trust-list span {
  display: block;
}

.trust-list strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.trust-list span {
  color: var(--muted);
}

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

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.case-meta span {
  padding: 4px 9px;
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  background: #eef4fb;
}

.page-hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f6f8fb 0%, #fff 70%);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: center;
}

.page-hero__card {
  box-shadow: var(--shadow);
}

.brand-badge-logo {
  width: min(100%, 260px);
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.service-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.service-panel__num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: var(--blue);
}

.meta-table {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.meta-table div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--soft);
}

.meta-table dt,
.meta-table dd {
  margin: 0;
}

.meta-table dt {
  color: var(--ink);
  font-weight: 900;
}

.meta-table dd {
  color: var(--muted);
}

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

.teacher-card__body span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #7b5520;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline li {
  position: relative;
  padding: 20px 20px 20px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline strong {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1fr);
  gap: 28px;
}

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

.qr-code {
  width: min(100%, 220px);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.map-box {
  min-height: 300px;
  display: grid;
  align-content: center;
  gap: 14px;
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.map-box strong {
  color: var(--ink);
  font-size: 22px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-2);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ccd6e4;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.notice {
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  color: #55422a;
  background: var(--gold-soft);
}

.placeholder-note {
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  padding: 52px 0;
  color: #fff;
  background: #14213d;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band h2 {
  margin-bottom: 6px;
}

.site-footer {
  color: #dbe4f0;
  background: #101a2e;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) minmax(110px, 0.28fr) minmax(430px, 1fr) minmax(110px, 0.24fr);
  align-items: start;
  gap: 28px;
  padding: 42px 0 38px;
}

.footer__brand {
  max-width: 310px;
}

.footer__brand img {
  width: min(178px, 100%);
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer__main h3 {
  margin-bottom: 12px;
  color: #fff;
}

.footer__brand p {
  max-width: 280px;
  margin-top: 14px;
}

.footer__main p,
.footer__main li,
.footer__main a {
  color: #dbe4f0;
}

.footer__main ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__address {
  white-space: nowrap;
  word-break: keep-all;
  font-size: clamp(12px, 3.3vw, 16px);
}

.footer__qr img {
  width: var(--footer-qr-size);
  height: var(--footer-qr-size);
  object-fit: contain;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
}

.footer__qr p {
  width: var(--footer-qr-size);
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}

.footer__qr {
  --footer-qr-size: 116px;
  justify-self: end;
  width: var(--footer-qr-size);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: #b9c7d9;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .card-grid,
  .card-grid--three,
  .environment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer__qr {
    justify-self: start;
  }

  .hero__slide,
  .page-hero__inner,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__frame {
    min-height: auto;
  }
}

@media (max-width: 880px) {
  .top-line {
    display: none;
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 158px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__menu a,
  .nav__cta {
    justify-content: flex-start;
    min-height: 48px;
    margin-left: 0;
  }

  .quick-grid,
  .advantage-grid,
  .case-grid,
  .teacher-grid,
    .service-detail-grid,
    .info-grid,
    .trust-list {
    grid-template-columns: 1fr;
  }

  .cta-band .container,
  .footer__bottom .container {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .container,
  .nav,
  .top-line__inner,
  .hero__frame,
  .page-hero__inner,
  .footer__main {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 56px 0;
  }

  .section--compact {
    padding: 42px 0;
  }

  .page-hero {
    padding: 50px 0 42px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 27px;
  }

  .lead {
    font-size: 16px;
  }

  .hero__frame {
    padding: 44px 0;
  }

  .hero__slide {
    gap: 28px;
  }

  .hero__badge {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .scene-strip__controls {
    position: static;
    justify-content: flex-end;
    margin-bottom: 12px;
  }

  .scene-card {
    flex-basis: min(86vw, 330px);
  }

  .form-grid,
  .card-grid,
  .card-grid--three,
  .environment-grid {
    grid-template-columns: 1fr;
  }

  .meta-table div {
    grid-template-columns: 1fr;
  }
}
