* {
  box-sizing: border-box;
}

:root {
  --red: #d90000;
  --deep-red: #c90000;
  --cream: #fff3bd;
  --gold: #ffd447;
  --ink: #2c1712;
  --bottom-offset: 128px;
  --page-width: 490px;
  --bottom-width: 525px;
  --cta-main-size: clamp(39px, 9vw, 56px);
}

html {
  background: #fff7df;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7df 0%, #fff 42%, #fff7df 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  padding-bottom: var(--bottom-offset);
}

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

.page {
  width: 100%;
}

.hero {
  max-width: var(--page-width);
  margin: 0 auto;
  background: #fff0c7;
}

.hero picture,
.hero img {
  display: block;
}

.hero picture {
  background: linear-gradient(180deg, #fff0c7 0%, #fff7df 100%);
}

.hero picture:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: 490px 560px;
}

.hero img {
  width: 100%;
  height: auto;
}

.image-disclaimer {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 9px 12px 8px;
  color: #7a4c21;
  background: #fff7df;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cta-bar,
.float-panel {
  max-width: var(--bottom-width);
  width: 100%;
  margin: 0 auto;
}

.cta-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  column-gap: clamp(8px, 2vw, 12px);
  height: 78px;
  overflow: hidden;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: #fff7df;
  box-shadow: 0 8px 22px rgba(170, 107, 0, 0.18);
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  appearance: none;
}

.price-copy {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  gap: 0;
  padding: 0;
  color: #ff0000;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.price-copy span {
  font-size: clamp(27px, 6.2vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
}

.price-copy strong {
  display: none;
}

.apply-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 246px);
  height: 64px;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #ff0000;
  box-shadow: 0 0 18px rgba(244, 58, 25, 0.22);
  cursor: pointer;
  animation: button-pop 0.34s cubic-bezier(0.215, 0.61, 0.355, 1) infinite, button-glow 0.34s linear infinite;
}

.apply-button::after {
  display: none;
}

.apply-button small {
  display: none;
}

.apply-button b {
  position: relative;
  z-index: 1;
  font-size: var(--cta-main-size);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  animation: button-pop 0.34s cubic-bezier(0.215, 0.61, 0.355, 1) infinite, button-glow 0.34s linear infinite;
}

.float-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 8px 0 6px;
  background: #fff7df;
  box-shadow: 0 -9px 24px rgba(96, 39, 0, 0.18);
  backdrop-filter: blur(8px);
}

.legal-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px 0;
  color: #555;
  background: #fff7df;
  font-size: 13px;
  line-height: 1.35;
}

.legal-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--red);
}

.legal-consent span {
  min-width: 0;
}

.legal-consent label,
.legal-consent a,
.legal-consent button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
}

.legal-consent label {
  color: #555;
  cursor: pointer;
}

.legal-consent a,
.legal-consent button {
  color: #075f7a;
  cursor: pointer;
}

.form-pop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.78);
}

.form-pop .success_box {
  box-sizing: border-box;
  width: min(94vw, 500px);
  max-width: 500px;
  margin: 0 auto;
  padding: 0 10px 14px;
  color: #fff;
  text-align: center;
}

.form-pop .success_box h3 {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto 16px;
  padding: 0 4px;
  color: #fff7bf;
  font-family: "Microsoft YaHei", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: clamp(24px, 6.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.form-pop .success_box p.signup-modal__price {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto 28px;
  padding: 0 4px;
  color: #fff;
  font-family: "Microsoft YaHei", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: clamp(25px, 6.9vw, 38px);
  font-weight: 900;
  line-height: 1.22;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.signup-modal__course-wrap {
  display: block;
}

.signup-modal__course {
  display: block;
  width: min(74vw, 350px);
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px rgba(255, 245, 183, 0.72)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

#jump_type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 0;
}

#jump_type .btn_open {
  position: relative;
  align-self: center;
  width: min(90vw, 430px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
}

#jump_type .btn_open a,
#jump_type .btn_open button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  padding: 0 14px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(20px, 5.45vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #ff6f36 0%, #ff1e22 100%);
  border: 5px solid #fff3a8;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 227, 115, 0.8), 0 10px 22px rgba(118, 21, 0, 0.42);
  text-shadow: 0 2px 2px rgba(110, 22, 0, 0.32);
  cursor: pointer;
  animation: signup-line-flash 0.45s infinite alternate;
}

#jump_type .contact-button__icon {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  object-fit: cover;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

#jump_type .contact-button__text {
  display: block;
  min-width: 0;
}

#jump_type .btn_open.wechat a,
#jump_type .btn_open.wechat button {
  min-height: 82px;
  padding: 0 12px;
  font-size: clamp(22px, 6.25vw, 36px);
  background: linear-gradient(180deg, #ff6f7c 0%, #f0213e 100%);
  animation-duration: 0.58s;
}

#jump_type .btn_open.wechat {
  align-self: center;
  width: min(94vw, 458px);
}

#jump_type .btn_open.wechat .contact-button__icon {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
}

#jump_type .btn_open.line a,
#jump_type .btn_open.line button {
  font-size: clamp(21px, 5.75vw, 34px);
  background: linear-gradient(180deg, #ff6f36 0%, #ff1e22 100%);
}

#jump_type .btn_open.generic a,
#jump_type .btn_open.generic button {
  background: linear-gradient(180deg, #2dca66 0%, #08a83d 100%);
}

#jump_type .btn_open a.is-loading,
#jump_type .btn_open button.is-loading {
  pointer-events: none;
  cursor: wait;
  filter: brightness(0.96);
  animation: none;
}

#jump_type .btn_open a.is-loading::before,
#jump_type .btn_open button.is-loading::before {
  content: "";
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: signup-loading-spin 0.8s linear infinite;
}

@keyframes button-pop {
  0% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.94);
  }
}

@keyframes button-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.16) saturate(1.25);
  }
}

@keyframes shine {
  0% {
    left: -42%;
  }
  58%,
  100% {
    left: 118%;
  }
}

@keyframes signup-line-flash {
  from {
    transform: scale(0.985);
    filter: brightness(0.96);
  }

  to {
    transform: scale(1.025);
    filter: brightness(1.16);
  }
}

@keyframes signup-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 420px) {
  :root {
    --bottom-offset: 112px;
    --cta-main-size: clamp(35px, 9.6vw, 42px);
  }

  .cta-bar {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    height: 70px;
    column-gap: 7px;
    padding: 0 5px;
  }

  .price-copy {
    gap: 2px;
    padding: 0;
  }

  .price-copy span {
    font-size: clamp(24px, 7vw, 29px);
  }

  .apply-button {
    width: min(100%, 184px);
    height: 56px;
  }

  .legal-consent {
    gap: 5px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .legal-consent input {
    width: 15px;
    height: 15px;
  }

  .form-pop .success_box {
    width: 96%;
  }

  .signup-modal__course {
    width: min(74vw, 330px);
    margin-bottom: 12px;
  }

  #jump_type {
    gap: 16px;
  }

  #jump_type .btn_open a,
  #jump_type .btn_open button {
    min-height: 70px;
    border-width: 4px;
  }

  #jump_type .btn_open.wechat button {
    min-height: 78px;
  }

  #jump_type .contact-button__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  #jump_type .btn_open.wechat .contact-button__icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  :root {
    --cta-main-size: 32px;
  }

  .cta-bar {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 5px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .price-copy {
    gap: 1px;
    padding-left: 0;
  }

  .price-copy span {
    font-size: 22px;
  }

  .apply-button {
    width: min(100%, 154px);
    height: 52px;
  }
}
