:root {
  --brand-red: #df1720;
  --brand-red-dark: #b8000d;
  --brand-orange: #ff850b;
  --ink: #2d2525;
  --muted: #745f5f;
  --paper: #fff;
  --shadow: 0 18px 55px rgba(116, 20, 20, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f3dfd6 url("../images/back3.jpg") center top / 100% auto repeat-y;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }
img { display: block; max-width: 100%; }

.page-width,
.main-content {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  position: relative;
  height: 820px;
  overflow: hidden;
}

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0;
}

.hero__top > a:first-child { line-height: 0; }
.hero__logo { width: 250px; }

.service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 53px;
  padding: 0 25px;
  border-radius: 999px;
  color: #392518;
  background: #f7e39a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(151, 40, 20, 0.12);
  transition: transform .2s ease, background-color .2s ease;
}

.service-button:hover {
  transform: translateY(-2px);
  background: #ffd96d;
}

.hero__slogan {
  width: min(760px, 75vw);
  margin: 55px auto 0;
  filter: drop-shadow(0 15px 35px rgba(161, 0, 0, .13));
  animation: hero-in .75s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.main-content {
  margin-top: -250px;
  padding-bottom: 60px;
}


.feature-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0 auto 42px;
  padding: 38px 110px 82px;
  border: 10px solid transparent;
  border-radius: 66px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #ff8b0b 0%, #f46d09 24%, #dc2518 62%, #c8000d 100%) border-box;
  box-shadow: var(--shadow);
}

.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 58px;
  bottom: 58px;
  width: 74px;
  border: 10px solid #e33817;
  background: #fff;
}

.feature-card::before {
  left: -46px;
  border-right: 0;
  border-radius: 48px 0 0 48px;
}

.feature-card::after {
  right: -46px;
  border-left: 0;
  border-radius: 0 48px 48px 0;
}

.feature-card--03 { padding-inline: 72px; }

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  margin: 0 auto 34px;
}

.section-number {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 104px;
  height: 106px;
  border-radius: 32px;
  color: #fff;
  background: var(--brand-orange);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 56px;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(176, 54, 0, .16);
}

.section-heading {
  min-width: 0;
  text-align: left;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--brand-red);
  font-size: clamp(30px, 3.5vw, 45px);
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
}

.section-heading p {
  margin: 8px 0 0;
  color: #604b4b;
  font-size: 14px;
  letter-spacing: .13em;
}

.tab-list,
.city-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 34px auto 24px;
}

.tab-button,
.city-tab {
  min-width: 170px;
  min-height: 44px;
  padding: 9px 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-red);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(215, 25, 32, .18);
  transition: transform .2s ease, background-color .2s ease;
}

.tab-button:hover,
.city-tab:hover { transform: translateY(-2px); }

.tab-button.is-active,
.city-tab.is-active {
  color: #2d2525;
  background: var(--brand-orange);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 2px;
}

.exam-panel[hidden] { display: none; }

.exam-table,
.course-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(75, 31, 31, .09);
}

.exam-table th,
.course-table thead th {
  padding: 14px 12px;
  color: #fff;
  background: var(--brand-red);
  font-size: 16px;
}

.exam-table td {
  padding: 15px 12px;
  border: 1px solid #eadada;
}

.exam-table tbody tr:nth-child(even) { background: #fff7f4; }

.exam-table tbody td:first-child {
  color: #fff;
  background: var(--brand-red);
  font-weight: 700;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 22px;
  margin-top: 48px;
}

.advantage-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 108px;
  padding: 18px 18px 18px 14px;
  border: 2px solid #f0242b;
  border-radius: 4px 30px 4px 30px;
  background: #fff;
  box-shadow: 7px 7px 0 #e61c24;
}

.advantage-icon {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #ef252b;
  box-shadow: 0 0 0 2px #ef252b;
  font-weight: 900;
  font-size: 23px;
}

.advantage-item h3 {
  margin: 0 0 5px;
  color: #ec2429;
  font-size: 19px;
  line-height: 1.2;
}

.advantage-item p {
  margin: 0;
  color: #2e2929;
  font-size: 15px;
  line-height: 1.55;
}

.course-table-wrap { margin-top: 42px; }
.course-table { min-width: 860px; table-layout: fixed; }

.course-table th,
.course-table td { border: 1px solid #d9b8b8; }

.course-table tbody th {
  width: 14%;
  padding: 30px 12px;
  color: #fff;
  background: var(--brand-red);
  font-size: 17px;
  line-height: 1.8;
}

.course-table tbody td {
  padding: 28px 14px;
  line-height: 1.85;
  vertical-align: middle;
}

.course-table tbody tr:nth-child(even) td { background: #fff7f4; }
.course-table thead th:nth-child(1) { width: 14%; }
.course-table thead th:nth-child(2) { width: 12%; }
.course-table thead th:nth-child(3) { width: 32%; }
.course-table thead th:nth-child(4) { width: 20%; }
.course-table thead th:nth-child(5) { width: 22%; }

.scene-image {
  width: 100%;
  margin: 44px auto 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(116, 20, 20, .16);
}

.city-tabs {
  margin-top: 24px;
  margin-bottom: 18px;
}

.city-tab { min-width: 150px; }
.environment-carousel { outline: none; }

.environment-carousel:focus-visible {
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(255, 133, 11, .35);
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 8.15;
  border: 6px solid #fff;
  border-radius: 16px;
  background: #3e1717;
  box-shadow: 0 12px 28px rgba(92, 25, 25, .2);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide::after {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .48);
  font-size: 12px;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .48);
  cursor: pointer;
  font-size: 24px;
  transform: translateY(-50%);
  transition: background-color .2s ease, transform .2s ease;
}

.carousel-arrow:hover {
  background: rgba(215, 25, 32, .9);
  transform: translateY(-50%) scale(1.06);
}

.carousel-arrow--prev { left: 16px; }
.carousel-arrow--next { right: 16px; }

.carousel-status {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 15px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .26));
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ddbeb5;
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: var(--brand-red);
}

.replacement-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.official-footer-frame {
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.official-footer-frame iframe {
  display: block;
  width: 100%;
  height: 780px;
  min-height: 780px;
  border: 0;
  background: #fff;
  transition: height .2s ease;
}

.back-to-top {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-red);
  box-shadow: 0 9px 25px rgba(88, 0, 0, .28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 1100px) {
  .feature-card { width: calc(100% - 50px); }
  .feature-card--03 { padding-inline: 54px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { height: 600px; }
  .hero__logo { width: 190px; }
  .service-button { margin-top: 30px; }
  .hero__slogan { width: min(640px, 88vw); margin-top: 40px; }
  .main-content { margin-top: -170px; }
  .feature-card { padding: 34px 60px 70px; }
  .feature-card--03 { padding-inline: 48px; }
  .section-number { width: 86px; height: 88px; font-size: 46px; }
  .section-title-row { gap: 18px; margin-bottom: 28px; }
}

@media (max-width: 640px) {
  .page-width,
  .main-content { width: min(100% - 12px, 520px); }
  .hero { height: 470px; }
  .hero__logo { width: 145px; }
  .service-button { min-height: 36px; margin-top: 17px; padding: 0 14px; font-size: 13px; }
  .hero__slogan { width: 94vw; margin-top: 32px; }
  .main-content { margin-top: -115px; padding-bottom: 24px; }

  .feature-card {
    width: calc(100% - 30px);
    margin-bottom: 26px;
    padding: 26px 12px 46px;
    border-width: 6px;
    border-radius: 38px;
    box-shadow: 0 9px 24px rgba(116, 20, 20, .13);
  }

  .feature-card::before,
  .feature-card::after {
    top: 42px;
    bottom: 42px;
    width: 38px;
    border-width: 6px;
  }

  .feature-card::before { left: -25px; border-radius: 28px 0 0 28px; }
  .feature-card::after { right: -25px; border-radius: 0 28px 28px 0; }

  .section-number {
    width: 54px;
    height: 56px;
    border-radius: 18px;
    font-size: 30px;
  }

  .section-title-row { gap: 10px; margin-bottom: 22px; }

  .section-heading h1,
  .section-heading h2 { font-size: clamp(16px, 5vw, 24px); }
  .section-heading p { margin-top: 4px; font-size: clamp(6px, 1.8vw, 9px); letter-spacing: .02em; }

  .tab-list,
  .city-tabs { gap: 8px; margin: 20px 0 16px; }

  .tab-button,
  .city-tab {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 13px;
  }

  .exam-table { min-width: 590px; font-size: 12px; }
  .exam-table th { padding: 10px 8px; font-size: 12px; }
  .exam-table td { padding: 12px 8px; }

  .advantages-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .advantage-item { min-height: 92px; padding: 14px; box-shadow: 5px 5px 0 #e61c24; }
  .advantage-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 19px; }
  .advantage-item h3 { font-size: 17px; }
  .advantage-item p { font-size: 13px; }

  .course-table-wrap { margin-top: 25px; }
  .course-table { min-width: 790px; font-size: 12px; }
  .course-table thead th { padding: 10px 8px; font-size: 12px; }
  .course-table tbody th,
  .course-table tbody td { padding: 18px 10px; }
  .scene-image { margin-top: 28px; border-radius: 10px; }

  .carousel-viewport { border-width: 3px; border-radius: 10px; aspect-ratio: 16 / 10; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 18px; }
  .carousel-arrow--prev { left: 8px; }
  .carousel-arrow--next { right: 8px; }
  .carousel-status { right: 8px; bottom: 8px; left: 8px; padding: 7px 10px; font-size: 12px; }
  .carousel-slide::after { top: 8px; right: 8px; padding: 5px 8px; font-size: 9px; }
  .carousel-dots { gap: 6px; margin-top: 10px; }
  .carousel-dot { width: 7px; height: 7px; }
  .carousel-dot.is-active { width: 20px; }
  .replacement-note { font-size: 10px; line-height: 1.5; }
  .official-footer-frame iframe {
    height: 820px;
    min-height: 820px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
