:root {
  --navy: #21113c;
  --navy-2: #6721a7;
  --purple: #782db5;
  --purple-dark: #4d1687;
  --purple-soft: #f5edff;
  --cyan: #4d7bdd;
  --mint: #24a882;
  --gold: #ffb74b;
  --coral: #ee6b4d;
  --cream: #fff8ed;
  --paper: #fffefd;
  --page: #fbf8f4;
  --ink: #1d2738;
  --soft: #596579;
  --muted: #8a95a7;
  --line: #efe7f1;
  --shadow: 0 14px 34px rgba(85, 35, 122, .12);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html {
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eadff3;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 28px;
  background:
    linear-gradient(180deg, rgba(251, 248, 244, .1), var(--page) 370px),
    var(--page);
}

.section-eyebrow {
  margin: 0 0 10px;
  color: #fbd28b;
  font-size: 12px;
  font-weight: 800;
}

.banner-carousel {
  position: relative;
  margin: 0 -16px;
  padding: 12px 16px 24px;
  overflow: hidden;
  background: var(--page);
}

.banner-carousel .carousel-track {
  position: relative;
  width: 100%;
  min-height: 236px;
}

.banner-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 236px;
  padding: 24px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 18px 38px rgba(74, 28, 117, .2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity .3s ease, transform .3s ease;
}

.banner-carousel .carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 88% 26%, rgba(255, 255, 255, .2) 0 54px, transparent 56px),
    radial-gradient(circle at 96% 86%, rgba(255, 183, 75, .2) 0 96px, transparent 98px),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.banner-carousel .carousel-slide::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  z-index: 1;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}

.banner-photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: .94;
  filter: saturate(.9) contrast(.96);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 8%, rgba(0, 0, 0, .82) 31%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 8%, rgba(0, 0, 0, .82) 31%, #000 58%);
}

.banner-teacher::before {
  background:
    linear-gradient(90deg, rgba(75, 17, 126, .88) 0%, rgba(106, 32, 177, .42) 36%, rgba(122, 40, 192, .08) 82%),
    radial-gradient(circle at 88% 26%, rgba(255, 255, 255, .08) 0 54px, transparent 56px),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 24px);
}

.banner-carousel .carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.banner-teacher {
  background: linear-gradient(135deg, #4b117e 0%, #7b28c0 56%, #a73fd5 100%);
}

.banner-zhibo {
  background: linear-gradient(135deg, #17265d 0%, #3e55c8 52%, #27a889 118%);
}

.banner-carousel .slide-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #5d2a08;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.banner-carousel .carousel-slide strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.banner-carousel .carousel-slide em {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 260px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.65;
}

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

.banner-carousel .carousel-dots button {
  width: 16px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(84, 44, 116, .24);
  cursor: pointer;
  transition: width .22s ease, background .22s ease;
}

.banner-carousel .carousel-dots button.is-active {
  width: 28px;
  background: var(--purple);
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.promo-inner,
.nav-section {
  position: relative;
  z-index: 3;
  margin-top: 14px;
}

.tile-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #8a3bd0, #63209e);
}

.promo-copy h2,
.section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.promo-copy h2 {
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.promo-copy p,
.tile-body em,
.page-footer p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 90%, rgba(123, 60, 20, .13) 0 90px, transparent 92px),
    linear-gradient(135deg, #df8a58 0%, #d67942 100%),
    #ee6b4d;
  box-shadow: 0 18px 34px rgba(118, 54, 31, .18);
  margin-top: 8px;
}

.promo-copy .section-eyebrow {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 4px;
}

.promo-copy p {
  color: rgba(255, 255, 255, .84);
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.promo-btn {
  min-width: 88px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--coral);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
}

.promo-btn svg {
  width: 16px;
  height: 16px;
}

.nav-section {
  padding: 18px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head .section-eyebrow {
  margin-bottom: 6px;
  color: #a184b9;
  letter-spacing: .22em;
}

.link-grid {
  display: grid;
  gap: 10px;
}

.link-tile {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(31, 54, 92, .06);
}

.tile-body {
  min-width: 0;
}

.tile-body strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.tile-body em {
  display: block;
  margin-top: 4px;
}

.tile-arrow {
  color: #b5bdca;
  font-size: 28px;
  line-height: 1;
}

.tile-blue .tile-icon {
  background: linear-gradient(135deg, #658fe9, #3f68d0);
}

.tile-green .tile-icon {
  background: linear-gradient(135deg, #34c69b, #1f9772);
}

.tile-gold .tile-icon {
  color: #392908;
  background: var(--gold);
}

.tile-purple .tile-icon {
  background: linear-gradient(135deg, #9143d3, #6420a0);
}

.tile-disabled {
  opacity: .68;
}

.tile-disabled .tile-icon {
  background: #9aa5b5;
}

.policy-panel {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.policy-toggle {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 0;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.policy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #9143d3, #6420a0);
}

.policy-icon svg {
  width: 20px;
  height: 20px;
}

.policy-toggle small {
  display: block;
  margin-bottom: 5px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}

.policy-toggle strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.policy-toggle svg {
  color: var(--muted);
  transition: transform .24s ease;
}

.policy-panel.is-open .policy-toggle svg {
  transform: rotate(180deg);
}

.policy-list {
  display: grid;
  gap: 1px;
  max-height: 0;
  overflow: hidden;
  background: var(--line);
  transition: max-height .3s ease;
}

.policy-panel.is-open .policy-list {
  max-height: 360px;
}

.policy-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--navy-2);
  background: #fbfcff;
  font-size: 14px;
  font-weight: 700;
}

.page-footer {
  padding: 26px 0 12px;
  text-align: center;
}

.page-footer p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.page-footer a {
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 19, 32, .48);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: min(100%, 340px);
  padding: 32px 24px 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(12, 19, 32, .24);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f4f8;
  cursor: pointer;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-qr-title {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.modal-qr-img {
  display: block;
  width: 210px;
  height: 210px;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(28, 42, 68, .08);
}

.modal-qr-tip {
  color: var(--soft);
  font-size: 13px;
}

@media (max-width: 360px) {
  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .promo-inner {
    grid-template-columns: 1fr;
  }

  .promo-btn {
    width: 100%;
  }

}
