:root {
  --lake-blue: #4aa6bd;
  --deep-lake: #176f86;
  --sky-blue: #bfeaf3;
  --reed-green: #6f9849;
  --herb-green: #4f8d54;
  --warm-gold: #e7b85a;
  --rice-white: #fffaf0;
  --vermillion: #b24a32;
  --peanut: #9d673d;
  --mushroom: #7b5137;
  --ink: #24414a;
  --muted: #68797a;
  --line: rgba(36, 65, 74, 0.14);
  --phone-width: 430px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(231, 184, 90, 0.24), transparent 28%),
    linear-gradient(135deg, #eaf8fb 0%, #f8f2df 54%, #eaf3e8 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.phone-shell {
  position: relative;
  width: min(100vw, var(--phone-width));
  height: 100dvh;
  max-height: 920px;
  overflow: hidden;
  background: var(--rice-white);
  box-shadow: 0 26px 70px rgba(30, 80, 92, 0.24);
  isolation: isolate;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 540ms cubic-bezier(0.22, 0.8, 0.2, 1);
  will-change: transform;
}

.page {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 20px 112px;
  background: linear-gradient(180deg, #f7fdff 0%, #fffaf0 100%);
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 14%, rgba(191, 234, 243, 0.65), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(231, 184, 90, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(111, 152, 73, 0.12), transparent 32%);
}

.content {
  position: relative;
  z-index: 2;
}

.tag,
.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--deep-lake);
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(23, 111, 134, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(23, 111, 134, 0.08);
}

h1,
h2 {
  margin-top: 14px;
  color: var(--deep-lake);
  line-height: 1.15;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(18px);
}

h1 {
  max-width: 326px;
  font-size: 37px;
}

h2 {
  font-size: 30px;
}

.is-active h1,
.is-active h2 {
  animation: titleIn 720ms ease forwards;
}

.lead,
.subtitle,
.body-text {
  color: #526668;
  line-height: 1.75;
}

.lead {
  margin-top: 14px;
  max-width: 310px;
  font-size: 17px;
  font-weight: 800;
}

.subtitle {
  margin-top: 8px;
  font-size: 15px;
}

.body-text {
  margin-top: 18px;
  font-size: 15px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--lake-blue), var(--deep-lake));
  box-shadow: 0 12px 26px rgba(23, 111, 134, 0.26);
}

.secondary-btn {
  color: var(--deep-lake);
  background: #fffaf0;
  border: 1px solid rgba(23, 111, 134, 0.22);
}

.primary-btn:active,
.secondary-btn:active,
.product-card:active {
  transform: scale(0.96);
  filter: brightness(0.98);
}

.page-action {
  width: 100%;
  margin-top: 20px;
}

.compact {
  min-width: 130px;
}

.cover-page {
  display: flex;
  align-items: flex-end;
  padding-top: 34px;
  background: linear-gradient(180deg, #bdeef6 0%, #f8f5dc 50%, #edf5e5 100%);
}

.cover-page::before {
  background:
    radial-gradient(circle at 54% 18%, rgba(255, 226, 127, 0.68), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 46%);
}

.cover-content {
  width: 100%;
  padding-bottom: 20px;
}

.cover-content .primary-btn {
  width: 100%;
  margin-top: 26px;
}

.asset,
.cover-lake,
.page-cloud {
  position: absolute;
  pointer-events: none;
}

.cover-lake {
  left: -12px;
  right: -12px;
  bottom: 112px;
  z-index: 1;
  width: calc(100% + 24px);
}

.cloud-asset {
  z-index: 1;
  width: 138px;
  opacity: 0.78;
  animation: cloudFloat 8s ease-in-out infinite;
}

.cloud-left {
  left: 20px;
  top: 82px;
}

.cloud-right {
  right: 18px;
  top: 154px;
  width: 112px;
  transform: scaleX(-1);
  animation-delay: -2.8s;
}

.sun-orb {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 0;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 222, 119, 0.74), rgba(255, 222, 119, 0));
  animation: glowPulse 4s ease-in-out infinite;
}

.cover-reeds {
  position: absolute;
  right: 18px;
  bottom: 210px;
  z-index: 3;
  width: 68px;
  height: 88px;
  pointer-events: none;
}

.cover-reeds span {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 76px;
  border-radius: 4px;
  background: var(--reed-green);
  transform-origin: bottom center;
  animation: reedSwing 3.6s ease-in-out infinite;
}

.cover-reeds span::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -5px;
  width: 14px;
  height: 22px;
  border-radius: 50%;
  background: #c4a35e;
}

.cover-reeds span:nth-child(1) {
  left: 8px;
  transform: rotate(-12deg);
}

.cover-reeds span:nth-child(2) {
  left: 24px;
  height: 86px;
  animation-delay: -0.7s;
}

.cover-reeds span:nth-child(3) {
  left: 40px;
  height: 70px;
  transform: rotate(10deg);
  animation-delay: -1.2s;
}

.cover-reeds span:nth-child(4) {
  left: 54px;
  height: 82px;
  transform: rotate(16deg);
  animation-delay: -2s;
}

.bird {
  position: absolute;
  z-index: 4;
  width: 23px;
  height: 10px;
  border-top: 2px solid rgba(36, 65, 74, 0.62);
  border-radius: 50%;
  pointer-events: none;
}

.bird::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -2px;
  width: 23px;
  height: 10px;
  border-top: 2px solid rgba(36, 65, 74, 0.62);
  border-radius: 50%;
}

.bird-a {
  left: 68px;
  top: 162px;
  animation: birdFly 8s ease-in-out infinite;
}

.bird-b {
  left: 236px;
  top: 132px;
  transform: scale(0.78);
  animation: birdFly 9s ease-in-out infinite reverse;
}

.bird-c {
  right: 72px;
  top: 105px;
  transform: scale(0.8);
  animation: birdFly 8s ease-in-out infinite;
}

.page-cloud {
  z-index: 1;
  width: 120px;
  opacity: 0.45;
  animation: cloudFloat 8s ease-in-out infinite;
}

.cloud-top {
  right: 16px;
  top: 28px;
}

.city-visual {
  display: block;
  width: 100%;
  margin: 16px auto 0;
}

.impression-panel,
.student-card,
.scene-frame,
.temple-layout {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 14px 34px rgba(36, 65, 74, 0.08);
}

.impression-panel {
  padding: 16px;
}

.impression-panel h3 {
  color: var(--herb-green);
  font-size: 18px;
}

.impression-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.impression-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 12px;
  align-items: center;
  min-height: 84px;
  padding: 12px;
  border-radius: 8px;
  background: #fffefd;
  border: 1px solid rgba(36, 65, 74, 0.1);
}

.impression-card h4 {
  color: #24414a;
  font-size: 17px;
}

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

.card-icon {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.lake-icon {
  background: linear-gradient(135deg, #9be1ea, #3b9eb7);
}

.lake-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 13px;
  height: 15px;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0 2px, transparent 3px 8px);
}

.lake-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 27px;
  width: 30px;
  height: 14px;
  clip-path: polygon(0 100%, 36% 30%, 58% 70%, 80% 10%, 100% 100%);
  background: #6f9849;
}

.temple-icon {
  background: linear-gradient(135deg, #f4d894, #b97a49);
}

.temple-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 11px;
  height: 22px;
  border-radius: 4px 4px 0 0;
  background: #fff6da;
}

.temple-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 40px;
  height: 16px;
  clip-path: polygon(0 78%, 50% 0, 100% 78%, 88% 100%, 12% 100%);
  background: var(--vermillion);
}

.gift-icon {
  background: linear-gradient(135deg, #f1cc62, #86b85d);
}

.gift-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 28px;
  height: 25px;
  border-radius: 5px;
  background: #9d673d;
}

.gift-icon::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  width: 6px;
  height: 34px;
  background: #fff8dc;
}

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

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

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

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

.suya-page {
  background: linear-gradient(180deg, #d9f7fc 0%, #f9fbeb 70%, #eef6df 100%);
}

.lake-frame {
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.lake-frame img {
  display: block;
  width: 100%;
  animation: waterFloat 5.5s ease-in-out infinite;
}

.lake-ripple {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 0;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(74, 166, 189, 0.18);
  pointer-events: none;
  animation: ripplePulse 4.5s ease-in-out infinite;
}

.ripple-one {
  top: 94px;
}

.ripple-two {
  top: 132px;
  animation-delay: -1.7s;
}

.slogan,
.quote-line,
.product-slogan {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0;
}

.slogan {
  color: var(--deep-lake);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(74, 166, 189, 0.2);
}

.temple-page {
  background: linear-gradient(180deg, #f7ecd8 0%, #fffaf0 52%, #eef3df 100%);
}

.warm-glow {
  position: absolute;
  right: -34px;
  top: 48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 184, 90, 0.36), transparent 68%);
  pointer-events: none;
  animation: glowPulseStatic 5s ease-in-out infinite;
}

.incense-cloud {
  position: absolute;
  z-index: 1;
  width: 70px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 18px 4px 0 rgba(255,255,255,0.28), 10px -8px 0 rgba(255,255,255,0.26);
  pointer-events: none;
  animation: cloudFloat 9s ease-in-out infinite;
}

.incense-a {
  left: 26px;
  top: 118px;
}

.incense-b {
  right: 42px;
  top: 170px;
  transform: scale(0.78);
  animation-delay: -3s;
}

.temple-layout {
  padding: 14px;
  background: rgba(255, 250, 240, 0.7);
}

.temple-visual {
  display: block;
  width: 100%;
}

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

.keyword-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 8px;
  color: #7a4735;
  background: #fffdf5;
  border: 1px solid rgba(178, 74, 50, 0.15);
  font-size: 18px;
  font-weight: 900;
}

.quote-line {
  color: #7a4735;
  background: #fff6dd;
  border: 1px solid rgba(231, 184, 90, 0.32);
}

.product-page {
  background: linear-gradient(180deg, #fff9e9 0%, #edf6dc 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 198px;
  padding: 10px;
  border: 1px solid rgba(70, 45, 25, 0.1);
  border-radius: 8px;
  background: #fffef8;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 26px rgba(70, 45, 25, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-card:hover {
  box-shadow: 0 16px 30px rgba(70, 45, 25, 0.12);
}

.product-card img {
  width: 100%;
  height: 88px;
  object-fit: contain;
}

.product-card span {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 900;
}

.product-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.peanut {
  border-color: rgba(157, 103, 61, 0.24);
}

.sesame {
  border-color: rgba(206, 159, 52, 0.28);
}

.herb {
  border-color: rgba(79, 141, 84, 0.26);
}

.mushroom {
  border-color: rgba(123, 81, 55, 0.26);
}

.product-slogan {
  color: #6c4a25;
  background: #fff6df;
  border: 1px solid rgba(231, 184, 90, 0.34);
}

.invite-page {
  background: linear-gradient(180deg, #e9f7fb 0%, #fff6df 58%, #eaf3e8 100%);
}

.cloud-finale {
  right: 18px;
  top: 34px;
}

.invite-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.invite-tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  color: var(--deep-lake);
  background: #fffdf8;
  border: 1px solid rgba(23, 111, 134, 0.16);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(36, 65, 74, 0.07);
}

.student-card {
  padding: 16px;
  background: rgba(255, 253, 248, 0.9);
}

.student-card h3 {
  margin-bottom: 10px;
  color: var(--herb-green);
  font-size: 18px;
}

.student-card p {
  margin-top: 7px;
  color: #405a5f;
  font-size: 13px;
  line-height: 1.45;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.button-row button {
  width: 100%;
}

.progress-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(36, 65, 74, 0.12);
  box-shadow: 0 10px 30px rgba(36, 65, 74, 0.16);
  backdrop-filter: blur(12px);
}

.progress-bar span {
  color: var(--deep-lake);
  font-size: 13px;
  font-weight: 900;
}

.dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 111, 134, 0.22);
  transition: width 220ms ease, background 220ms ease;
}

.dot.is-current {
  width: 22px;
  border-radius: 999px;
  background: var(--lake-blue);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 39, 44, 0.5);
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  border-radius: 8px;
  padding: 24px 18px 18px;
  background: #fffaf0;
  box-shadow: 0 24px 60px rgba(15, 32, 36, 0.32);
  animation: modalIn 220ms ease forwards;
}

.modal-panel h3 {
  padding-right: 34px;
  color: var(--deep-lake);
  font-size: 21px;
}

.modal-panel p {
  margin-top: 12px;
  color: #51666a;
  line-height: 1.7;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--deep-lake);
  background: rgba(74, 166, 189, 0.12);
  font-size: 24px;
  cursor: pointer;
}

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

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

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

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.96;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes glowPulseStatic {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes birdFly {
  0%,
  100% {
    margin-left: -18px;
    margin-top: 0;
  }
  50% {
    margin-left: 24px;
    margin-top: -8px;
  }
}

@keyframes reedSwing {
  0%,
  100% {
    rotate: -3deg;
  }
  50% {
    rotate: 5deg;
  }
}

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

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

@keyframes ripplePulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.95);
  }
  50% {
    opacity: 0.78;
    transform: scaleX(1.04);
  }
}

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

@media (min-width: 520px) {
  .phone-shell {
    height: min(100dvh, 880px);
    border-radius: 26px;
  }
}

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

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    min-height: 190px;
  }
}
