:root {
  --red: #c82021;
  --deep-red: #921b1f;
  --gold: #f0b44c;
  --green: #3f8b52;
  --sky: #bfe5f5;
  --cream: #fff8e8;
  --ink: #322725;
  --muted: #6e5a4f;
  --gray: #323232;
  --shadow: 0 18px 44px rgba(80, 32, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: linear-gradient(145deg, #f7dfb0 0%, #d94136 52%, #7fb58b 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button {
  font: inherit;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  height: 100dvh;
  min-height: 640px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42), 0 20px 70px rgba(48, 18, 12, 0.35);
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px 22px 94px;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 520ms cubic-bezier(.2, .78, .22, 1), opacity 420ms ease;
}

.page.before {
  transform: translateX(-100%);
}

.page.after {
  transform: translateX(100%);
}

.page.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 58%;
}

h1,
h2 {
  margin: 10px 0 12px;
  line-height: 1.12;
  letter-spacing: 0;
  color: #201817;
  animation: titleIn 720ms ease both;
}

h1 {
  max-width: 9em;
  font-size: clamp(42px, 12vw, 54px);
  font-weight: 900;
}

h2 {
  font-size: 30px;
  font-weight: 900;
}

h3,
p {
  margin: 0;
}

.lead {
  max-width: 18em;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.72;
  color: #54352d;
}

.body-text,
.red-note p,
.product-card p {
  font-size: 15px;
  line-height: 1.72;
  color: #51423b;
}

.subhead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--deep-red);
  font-weight: 700;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.tag {
  padding: 8px 14px;
  background: rgba(200, 32, 33, 0.92);
  color: #fff8e8;
  box-shadow: 0 10px 22px rgba(146, 27, 31, 0.22);
}

.eyebrow {
  padding: 6px 12px;
  background: rgba(255, 242, 210, 0.86);
  color: var(--deep-red);
  border: 1px solid rgba(240, 180, 76, 0.52);
}

.primary-btn,
.secondary-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--red), #e95b35);
  color: #fffaf0;
  box-shadow: 0 12px 24px rgba(200, 32, 33, 0.26);
}

.secondary-btn {
  background: #fff5dd;
  color: var(--deep-red);
  border: 1px solid rgba(200, 32, 33, 0.24);
}

.primary-btn:active,
.secondary-btn:active,
.product-card:active,
.mini-card:active,
.keyword-card:active {
  transform: translateY(2px) scale(0.98);
  filter: brightness(0.98);
}

.bottom-action {
  width: 100%;
  margin-top: 22px;
}

.page-cover {
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 245, 202, 0.9), transparent 22%),
    linear-gradient(180deg, #c7ecfb 0%, #ffe8b8 50%, #fff7e7 100%);
}

.cover-visual {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 70px;
  z-index: 1;
  pointer-events: none;
}

.cover-visual img:first-child {
  display: block;
  width: 108%;
  margin-left: -4%;
}

.field-strip {
  display: block;
  width: 112%;
  margin: -22px 0 0 -6%;
}

.floating-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ribbon {
  position: absolute;
  width: 260px;
  opacity: .86;
  filter: drop-shadow(0 14px 18px rgba(148, 28, 23, .16));
}

.ribbon-a {
  top: 62px;
  right: -108px;
  animation: ribbonFloat 5.4s ease-in-out infinite;
}

.cloud {
  position: absolute;
  width: 82px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
}

.cloud::before {
  left: 12px;
  width: 34px;
  height: 34px;
}

.cloud::after {
  right: 14px;
  width: 26px;
  height: 26px;
}

.cloud-one {
  top: 106px;
  left: 24px;
  animation: drift 8s ease-in-out infinite;
}

.cloud-two {
  top: 186px;
  right: 28px;
  transform: scale(.78);
  animation: drift 9.5s ease-in-out infinite reverse;
}

.spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff2a8;
  box-shadow: 0 0 18px rgba(255, 218, 86, .85);
  animation: sparkle 3.4s ease-in-out infinite;
}

.spark-one {
  top: 92px;
  right: 94px;
}

.spark-two {
  top: 254px;
  left: 54px;
  animation-delay: 1.2s;
}

.bird {
  position: absolute;
  color: rgba(90, 72, 55, .56);
  font-size: 30px;
  transform: rotate(4deg);
}

.bird-one {
  top: 152px;
  right: 70px;
  animation: birdFloat 7s ease-in-out infinite;
}

.bird-two {
  top: 214px;
  left: 88px;
  font-size: 22px;
  animation: birdFloat 8s ease-in-out infinite reverse;
}

.page-city {
  background:
    radial-gradient(circle at 84% 14%, rgba(240, 180, 76, .22), transparent 25%),
    linear-gradient(180deg, #fff8e8 0%, #eaf8ee 100%);
}

.wide-illustration {
  width: 100%;
  margin: 18px 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--shadow);
}

.section-title {
  margin: 4px 0 12px;
  color: var(--deep-red);
  font-size: 18px;
  font-weight: 900;
}

.impression-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 12px;
  min-height: 86px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(240, 180, 76, .32);
  box-shadow: 0 10px 24px rgba(72, 66, 44, .08);
}

.mini-card h3 {
  align-self: end;
  font-size: 17px;
  color: #33201c;
}

.mini-card p {
  grid-column: 2;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.card-icon {
  grid-row: span 2;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff0d2;
}

.flag-icon::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 9px;
  width: 4px;
  height: 31px;
  background: #7c4a31;
}

.flag-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 10px;
  width: 22px;
  height: 15px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 10%, 78% 50%, 100% 92%, 0 100%);
}

.gate-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 22px;
  background: #ad6b48;
  clip-path: polygon(0 38%, 50% 0, 100% 38%, 100% 100%, 0 100%);
}

.gate-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: 9px;
  height: 14px;
  border-radius: 5px 5px 0 0;
  background: #fff4dd;
}

.basket-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 10px;
  height: 24px;
  border-radius: 5px 5px 12px 12px;
  background: #b97942;
}

.basket-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  width: 18px;
  height: 18px;
  border: 3px solid #7f4c30;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.page-red {
  background:
    radial-gradient(circle at 78% 14%, rgba(240, 180, 76, .18), transparent 24%),
    linear-gradient(180deg, #fff8ea 0%, #f2eee8 48%, #e9ded4 100%);
}

.page-red h2 {
  color: #261b1b;
  font-size: 28px;
}

.memorial-layout {
  display: grid;
  gap: 16px;
}

.memorial-art,
.peng-hero img {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff7e8, #eee2d7);
  box-shadow: var(--shadow);
}

.red-note {
  padding: 16px;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
}

.slogan-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  color: #fff8e8;
  background: linear-gradient(135deg, var(--deep-red), #2f2f2f);
  box-shadow: 0 14px 28px rgba(88, 22, 22, .2);
}

.slogan-block strong {
  font-size: 22px;
  line-height: 1.2;
}

.book-mark {
  width: 38px;
  height: 45px;
  border-radius: 5px;
  background: linear-gradient(90deg, #fff0cd 0 47%, #f7d99b 48% 100%);
  box-shadow: inset 0 -6px 0 rgba(149, 84, 45, .16);
}

.symbol-row {
  display: grid;
  grid-template-columns: 62px 1fr 58px;
  align-items: end;
  gap: 12px;
  height: 58px;
  margin-top: 6px;
}

.pine {
  width: 42px;
  height: 56px;
  background: #315b3d;
  clip-path: polygon(50% 0, 68% 30%, 61% 30%, 80% 62%, 67% 62%, 88% 100%, 12% 100%, 33% 62%, 20% 62%, 39% 30%, 32% 30%);
}

.wall {
  height: 38px;
  border-radius: 6px 6px 0 0;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(92, 72, 64, .16) 8% 10%, transparent 10% 22%, rgba(92, 72, 64, .16) 22% 24%, transparent 24%),
    #d0b09a;
}

.light-beam {
  width: 54px;
  height: 54px;
  background: radial-gradient(circle, rgba(255, 230, 140, .95), rgba(255, 210, 90, 0) 68%);
  animation: pulse 3s ease-in-out infinite;
}

.peng-hero {
  position: relative;
  margin: 8px 0 16px;
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star-field span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f4c564;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 69%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  animation: sparkle 2.8s ease-in-out infinite;
}

.star-field span:nth-child(1) {
  top: 22px;
  left: 38px;
}

.star-field span:nth-child(2) {
  top: 48px;
  right: 46px;
  animation-delay: .6s;
}

.star-field span:nth-child(3) {
  bottom: 32px;
  left: 74px;
  animation-delay: 1.1s;
}

.red-copy {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.keyword-card {
  min-height: 74px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff7e8;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #b72526, #5a3430);
  box-shadow: 0 12px 24px rgba(90, 42, 34, .18);
}

.direction-text {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff0d4;
  color: var(--deep-red);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.page-products {
  background:
    radial-gradient(circle at 82% 12%, rgba(237, 197, 84, .24), transparent 22%),
    linear-gradient(180deg, #f7fff1 0%, #fff7e1 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 196px;
  border: 0;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 26px rgba(70, 88, 52, .12);
  cursor: pointer;
}

.product-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 8px;
}

.product-card span {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: #2e221e;
  font-weight: 900;
  line-height: 1.28;
}

.product-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #685447;
}

.trip-line {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fffaf0;
  background: linear-gradient(135deg, #3f8b52, #c82021);
  font-size: 16px;
  font-weight: 850;
  text-align: center;
}

.page-invite {
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 180, 76, .2), transparent 28%),
    linear-gradient(180deg, #fff9ea 0%, #eef7ff 100%);
}

.invite-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.invite-tags span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fffaf0;
  font-size: 15px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--red), #e0a23c);
  box-shadow: 0 10px 22px rgba(200, 32, 33, .14);
}

.student-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(200, 32, 33, .14);
  box-shadow: var(--shadow);
}

.student-card h3 {
  margin-bottom: 8px;
  color: var(--deep-red);
  font-size: 18px;
}

.student-card p {
  font-size: 14px;
  line-height: 1.58;
  color: #44342f;
}

.dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 10px 26px rgba(65, 38, 30, .12);
  backdrop-filter: blur(8px);
}

.page-count {
  min-width: 52px;
  color: var(--deep-red);
  font-size: 14px;
  font-weight: 900;
}

.dot-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dfc9ad;
  transition: width 220ms ease, background 220ms ease;
}

.dot.active {
  width: 24px;
  background: var(--red);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 22, 20, .44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(340px, 100%);
  border-radius: 8px;
  padding: 22px 20px 18px;
  background: #fffaf0;
  box-shadow: 0 24px 70px rgba(29, 18, 15, .34);
  transform: translateY(18px) scale(.96);
  transition: transform 220ms ease;
}

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

.modal-card h3 {
  margin-bottom: 10px;
  color: var(--deep-red);
  font-size: 22px;
}

.modal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #4f403a;
}

.modal-close {
  width: 100%;
  margin-top: 18px;
}

.float-card {
  animation: cardFloat 4.8s ease-in-out infinite;
}

.float-card:nth-child(2) {
  animation-delay: .45s;
}

.float-card:nth-child(3) {
  animation-delay: .9s;
}

.float-card:nth-child(4) {
  animation-delay: 1.2s;
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ribbonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(7deg);
  }
  50% {
    transform: translateY(14px) rotate(3deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(18px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: .35;
    transform: scale(.84);
  }
  50% {
    opacity: 1;
    transform: scale(1.22);
  }
}

@keyframes birdFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(4deg);
  }
  50% {
    transform: translate(-12px, 6px) rotate(-2deg);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: .48;
    transform: scale(.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (min-width: 480px) {
  body {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 18px;
  }

  .phone-shell {
    height: min(860px, calc(100dvh - 36px));
    border-radius: 26px;
  }
}

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

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    min-height: 204px;
    padding: 10px 8px;
  }
}
