:root {
  color-scheme: light;
  --page-bg: #f1eee9;
  --brand: #004252;
  --brand-deep: #00333f;
  --brand-soft: #e8f0ef;
  --ink: #1f2525;
  --muted: #646a6b;
  --line: rgba(0, 66, 82, 0.18);
  --red: #a71624;
  --paper: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: #000000;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #000000;
}

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

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

.mobile-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button {
  font: inherit;
}

.mobile-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 52px;
  overflow-x: hidden;
  background: var(--page-bg);
}

.mobile-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
  background: var(--brand);
}

.mobile-site-logo-link {
  display: inline-flex;
  align-items: center;
  width: 126px;
  height: 40px;
  overflow: hidden;
}

.mobile-site-logo {
  width: 122px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.mobile-site-menu-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.mobile-site-menu-toggle__bar {
  position: absolute;
  left: 50%;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.mobile-site-menu-toggle__bar:nth-child(1) {
  top: 14px;
}

.mobile-site-menu-toggle__bar:nth-child(2) {
  top: 20px;
}

.mobile-site-menu-toggle__bar:nth-child(3) {
  top: 26px;
}

.mobile-site-menu-toggle__text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-site-menu-toggle[aria-expanded="true"] {
  background: #ffffff;
  color: var(--brand);
}

.mobile-site-menu-toggle[aria-expanded="true"] .mobile-site-menu-toggle__bar:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.mobile-site-menu-toggle[aria-expanded="true"] .mobile-site-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.mobile-site-menu-toggle[aria-expanded="true"] .mobile-site-menu-toggle__bar:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-site-menu-toggle__bar {
  transition: top 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.mobile-site-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.36);
}

.mobile-site-nav-backdrop[hidden],
.mobile-site-nav[hidden] {
  display: none;
}

.mobile-site-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}

.mobile-site-nav__panel {
  width: min(78vw, 292px);
  min-width: 248px;
  height: 100%;
  padding: 18px 16px 28px;
  background: var(--brand);
  color: #ffffff;
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.22);
}

.mobile-site-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 16px;
  font-weight: 700;
}

.mobile-site-nav__close {
  min-width: 56px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
}

.mobile-site-nav__links {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.mobile-site-nav__link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  line-height: 22px;
}

.mobile-site-nav__link.is-active,
.mobile-site-nav__link:active {
  background: #ffffff;
  color: var(--brand);
  font-weight: 700;
}

.mobile-menu-open body {
  overflow: hidden;
}

.mobile-hero-carousel {
  position: relative;
  background: var(--brand-deep);
}

.mobile-hero-carousel__viewport {
  position: relative;
  aspect-ratio: 1124 / 620;
  overflow: hidden;
}

.mobile-hero-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 320ms ease;
}

.mobile-hero-carousel__slide.is-active {
  opacity: 1;
}

.mobile-hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-hero-carousel__dots {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.mobile-hero-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.mobile-hero-carousel__dot.is-active {
  width: 18px;
  background: #ffffff;
}

.mobile-content-images,
.legacy-image-section {
  margin: 0;
  padding: 0;
}

.legacy-image-block {
  margin: 0;
  background: var(--page-bg);
}

.legacy-image-block img {
  width: 100%;
  height: auto;
}

.legacy-image-section--footer .legacy-image-block {
  background: var(--brand);
}

.legacy-image-section--padded {
  padding: 0 18px 8px;
  background: var(--page-bg);
}

.legacy-image-section--centered {
  padding: 10px 36px 16px;
  background: #ffffff;
}

.mobile-news-section {
  position: relative;
  padding: 0 15px 18px;
  background: var(--page-bg);
}

.mobile-news-section h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-news-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-news-tabs__item {
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid var(--brand);
  border-radius: 3px;
  background: #ffffff;
  color: var(--brand);
  font-size: 13px;
  line-height: 18px;
}

.mobile-news-tabs__item.is-active {
  background: var(--brand);
  color: #ffffff;
}

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

.mobile-news-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 66, 82, 0.16);
  background: #ffffff;
}

.mobile-news-card__image {
  width: 100%;
  aspect-ratio: 149 / 86;
  object-fit: cover;
}

.mobile-news-card__title {
  min-height: 42px;
  padding: 8px 8px 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 17px;
}

.mobile-news-card__date {
  padding: 5px 8px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.mobile-image-grid {
  display: grid;
  gap: 8px;
  padding: 25px 15px 16px;
  background: var(--page-bg);
}

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

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

.mobile-image-grid__item {
  min-width: 0;
  margin: 0;
}

.mobile-image-grid__item img {
  width: 100%;
  height: auto;
}

.mobile-decorated-text {
  position: relative;
  padding: 24px 22px 10px;
  background: #ffffff;
  color: #1f2525;
  text-align: center;
}

.mobile-decorated-text::before,
.mobile-decorated-text::after {
  content: "";
  position: absolute;
  top: 27px;
  width: 44px;
  height: 24px;
  background-image: url("../images/legacy/8321360.png");
  background-repeat: no-repeat;
  background-size: auto 24px;
  opacity: 0.9;
}

.mobile-decorated-text::before {
  left: 58px;
  background-position: left center;
}

.mobile-decorated-text::after {
  right: 58px;
  transform: scaleX(-1);
}

.mobile-decorated-text h2 {
  margin: 0 0 14px;
  color: #3d372e;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.mobile-decorated-text p {
  margin: 0 auto;
  max-width: 300px;
  font-size: 14px;
  font-weight: 700;
  line-height: 25px;
  text-align: left;
}

.mobile-course-stage {
  position: relative;
  min-height: 151px;
  overflow: hidden;
  background: #cfb89f;
}

.mobile-course-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-course-stage__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 28px 28px 20px;
}

.mobile-course-stage__card {
  margin: 0;
}

.mobile-course-stage__card img {
  width: 100%;
  height: auto;
}

.mobile-text-list {
  padding: 6px 22px 14px;
  background: #ffffff;
}

.mobile-text-list ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.mobile-text-list li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 10px;
  color: #1f2525;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
}

.mobile-text-list li::before {
  content: "·";
  position: absolute;
  left: 0;
}

.mobile-about-card {
  position: relative;
  margin: 0;
  padding: 0 22px 24px;
  background: #ffffff;
}

.mobile-about-card__bg {
  position: absolute;
  inset: 0 22px 24px;
  width: calc(100% - 44px);
  height: calc(100% - 24px);
  object-fit: fill;
}

.mobile-about-card__content {
  position: relative;
  z-index: 1;
  padding: 28px 24px 34px;
  color: #251d18;
  font-size: 15px;
  font-weight: 500;
  line-height: 29px;
  text-align: center;
}

.mobile-about-card__content p {
  margin: 0 0 18px;
}

.mobile-about-card__image {
  width: 100%;
  margin: 10px auto 22px;
  border-radius: 6px;
}

.mobile-cta-section {
  display: flex;
  justify-content: center;
  padding: 0 0 22px;
  background: var(--page-bg);
}

.mobile-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 38px;
  padding: 0 28px;
  border: 1px solid #f45a5c;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8584 0%, #ff3438 46%, #f21620 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 6px rgba(171, 0, 0, 0.18);
}

.mobile-scroll-text {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 94px;
  padding: 0 26px;
  background: var(--page-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% - 20px) 100%;
}

.mobile-scroll-text p {
  position: relative;
  z-index: 1;
  max-width: 230px;
  margin: 0 auto;
  color: #1f2525;
  font-size: 15px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.mobile-legacy-contact {
  position: relative;
  overflow: hidden;
  min-height: 378px;
  background: #2b3430;
  color: #ffffff;
}

.mobile-legacy-contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-legacy-contact__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 36px 24px 26px;
}

.mobile-legacy-contact h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 28px;
}

.mobile-legacy-contact address,
.mobile-legacy-contact p {
  margin: 0;
  font-size: 15px;
  font-style: normal;
  line-height: 22px;
}

.mobile-legacy-contact a {
  color: #ffffff;
}

.mobile-legacy-contact address::before,
.mobile-legacy-contact p:nth-of-type(1)::before,
.mobile-legacy-contact p:nth-of-type(2)::before {
  display: inline-block;
  width: 22px;
  color: #ffffff;
}

.mobile-legacy-contact address::before {
  content: "◇";
}

.mobile-legacy-contact p:nth-of-type(1)::before {
  content: "☎";
}

.mobile-legacy-contact p:nth-of-type(2)::before {
  content: "✉";
}

.mobile-legacy-contact__qr {
  width: 150px;
  height: 150px;
  margin: 2px auto 0;
  border: 8px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
}

.mobile-contact-card {
  margin: 18px 15px 24px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.mobile-contact-card h2 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 18px;
  line-height: 26px;
}

.mobile-contact-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.mobile-contact-card a {
  color: var(--brand);
  font-weight: 700;
}

.mobile-contact-card__qr {
  width: 118px;
  height: 118px;
  margin: 14px auto 0;
  border: 1px solid var(--line);
}

.mobile-fixed-cta {
  position: fixed;
  right: max(0px, calc((100vw - 430px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 430px) / 2));
  z-index: 28;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 430px;
  margin: 0 auto;
  background: #e71914;
  color: #ffffff;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.18);
}

.mobile-fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.mobile-fixed-cta a:first-child {
  border-left: 0;
}

@media (max-width: 359px) {
  .mobile-site-logo-link {
    width: 116px;
  }

  .mobile-site-logo {
    width: 112px;
  }

  .mobile-news-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-decorated-text {
    padding-right: 18px;
    padding-left: 18px;
  }

  .mobile-decorated-text::before {
    left: 46px;
  }

  .mobile-decorated-text::after {
    right: 46px;
  }
}
