:root {
  --china-red: #c8232c;
  --deep-red: #941821;
  --taihang-green: #376a52;
  --leaf-green: #6aa873;
  --sky-blue: #bfe6f6;
  --warm-gold: #f2b94f;
  --cream: #fff8e8;
  --ink: #24312d;
  --muted: #69756f;
  --line: rgba(36, 49, 45, 0.12);
  --shadow: 0 18px 45px rgba(68, 53, 33, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 185, 79, 0.26), transparent 30%),
    linear-gradient(135deg, #e9f6fb 0%, #fff6df 46%, #f7e4d9 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

.phone {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  min-height: 640px;
  max-height: 920px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 24px 80px rgba(36, 49, 45, 0.22);
}

.slides,
.page {
  position: absolute;
  inset: 0;
}

.page {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(11%);
  transition: opacity 0.45s ease, transform 0.5s ease, visibility 0.45s;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

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

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

.page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

.page-inner {
  position: relative;
  z-index: 3;
  min-height: 100%;
  padding: 40px 22px 116px;
}

.page-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.title {
  margin: 0;
  color: var(--deep-red);
  font-size: 36px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
  animation: fadeUp 0.72s ease both;
}

.page:not(.page-cover) .title {
  font-size: 30px;
}

.subtitle {
  margin: 16px 0 0;
  color: #6b2d25;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 700;
  animation: fadeUp 0.76s ease 0.08s both;
}

.subtitle.small {
  margin-top: 10px;
  font-size: 15px;
  color: var(--taihang-green);
}

.section-label,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(200, 35, 44, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.76);
  color: var(--deep-red);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(148, 24, 33, 0.08);
}

.body-text {
  margin: 18px 0 0;
  color: #34443f;
  font-size: 15px;
  line-height: 1.85;
}

.block-title {
  margin: 26px 0 12px;
  color: var(--taihang-green);
  font-size: 18px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.primary-btn {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--china-red), #e95b3c);
  color: #fffdf6;
  box-shadow: 0 12px 24px rgba(200, 35, 44, 0.24);
}

.secondary-btn {
  margin-top: 24px;
  border: 1px solid rgba(200, 35, 44, 0.24);
  background: rgba(255, 248, 232, 0.82);
  color: var(--deep-red);
}

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

.cover-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-top: 54px;
}

.hero-note {
  width: 88%;
  margin-top: 22px;
  color: #4b5a50;
  font-size: 14px;
  line-height: 1.7;
  animation: fadeUp 0.78s ease 0.16s both;
}

.cover-art {
  background:
    linear-gradient(180deg, #bfe6f6 0%, #eaf7f5 40%, #fff2d2 100%);
}

.skyline {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: 0;
  width: calc(100% + 48px);
  height: auto;
}

.ribbon-one {
  position: absolute;
  top: 84px;
  right: -56px;
  width: 210px;
  transform: rotate(-8deg);
  animation: ribbonFloat 5.8s ease-in-out infinite;
}

.cloud {
  position: absolute;
  width: 86px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 24px 2px 0 4px rgba(255, 255, 255, 0.64), -20px 8px 0 rgba(255, 255, 255, 0.58);
  animation: drift 9s ease-in-out infinite;
}

.cloud-a {
  top: 70px;
  left: 24px;
}

.cloud-b {
  top: 148px;
  right: 36px;
  transform: scale(0.74);
  animation-delay: -2.8s;
}

.glow,
.sun-dot,
.final-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(242, 185, 79, 0.4) 42%, transparent 70%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.glow-a {
  width: 150px;
  height: 150px;
  top: 126px;
  left: 42px;
}

.glow-b {
  width: 92px;
  height: 92px;
  top: 248px;
  right: 30px;
  animation-delay: -1.4s;
}

.bird {
  position: absolute;
  width: 28px;
  height: 14px;
  border-top: 2px solid rgba(55, 106, 82, 0.82);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.bird::after {
  content: "";
  position: absolute;
  left: 14px;
  top: -2px;
  width: 28px;
  height: 14px;
  border-top: 2px solid rgba(55, 106, 82, 0.82);
  border-radius: 50%;
  transform: rotate(18deg);
}

.bird-a {
  top: 184px;
  left: 78px;
  animation: birdMove 7s ease-in-out infinite;
}

.bird-b {
  top: 118px;
  right: 92px;
  transform: scale(0.7) rotate(-10deg);
  animation: birdMove 8s ease-in-out -2s infinite;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 50%;
  border-top: 2px solid rgba(71, 154, 176, 0.38);
}

.wave-a {
  bottom: 118px;
  animation: waveShift 4s ease-in-out infinite;
}

.wave-b {
  bottom: 94px;
  animation: waveShift 4.8s ease-in-out -1.6s infinite;
}

.intro-art {
  background: linear-gradient(180deg, #f6fbfd 0%, #fff8e8 72%);
}

.intro-art .mountain {
  position: absolute;
  bottom: -8px;
  left: -18px;
  width: calc(100% + 36px);
}

.sun-dot {
  width: 130px;
  height: 130px;
  right: -36px;
  top: 42px;
  opacity: 0.86;
}

.soft-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 182px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 35, 44, 0.26), transparent);
}

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

.info-card,
.scenic-panel,
.manor-card,
.student-info,
.product-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 253, 246, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.info-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 2px 14px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
}

.info-card h4 {
  margin: 0;
  color: var(--deep-red);
  font-size: 17px;
}

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

.mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.red-memory {
  background: linear-gradient(135deg, #ffd5c7, #c8232c);
}

.red-memory::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 8px;
  height: 34px;
  background: #fff7df;
  border-radius: 999px;
}

.red-memory::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 9px;
  width: 23px;
  height: 18px;
  background: #ffd74f;
  clip-path: polygon(0 0, 100% 18%, 72% 58%, 100% 100%, 0 78%);
}

.mountain-view {
  background: linear-gradient(180deg, #bfe6f6, #f8e6b5);
}

.mountain-view::before,
.mountain-view::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-style: solid;
}

.mountain-view::before {
  left: 4px;
  border-width: 0 24px 36px;
  border-color: transparent transparent #376a52;
}

.mountain-view::after {
  right: 1px;
  border-width: 0 22px 28px;
  border-color: transparent transparent #6aa873;
}

.local-gift {
  background: linear-gradient(135deg, #fff0bf, #d77b39);
}

.local-gift::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  height: 22px;
  border-radius: 6px 6px 12px 12px;
  background: #8c5a30;
}

.local-gift::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 20px;
  height: 20px;
  border: 4px solid #c8232c;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

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

.delay-1 {
  animation-delay: -1.2s;
}

.delay-2 {
  animation-delay: -2.4s;
}

.page-hongqiqu {
  background: linear-gradient(180deg, #dff3f7 0%, #fff8e8 56%, #eef5e8 100%);
}

.scenic-main {
  position: absolute;
  left: -26px;
  right: -26px;
  bottom: 0;
  width: calc(100% + 52px);
}

.mist {
  position: absolute;
  left: -20%;
  width: 70%;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  filter: blur(2px);
  animation: drift 9.5s ease-in-out infinite;
}

.mist-a {
  top: 170px;
}

.mist-b {
  top: 246px;
  animation-delay: -3s;
}

.scenic-panel {
  margin-top: 210px;
  padding: 18px;
  border-radius: 8px;
}

.scenic-panel p,
.manor-card p {
  margin: 0;
  color: #384842;
  font-size: 14px;
  line-height: 1.75;
}

.scenic-panel p + p {
  margin-top: 10px;
}

.slogan {
  margin-top: 16px;
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(200, 35, 44, 0.96), rgba(242, 185, 79, 0.95));
  color: #fffdf6;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(200, 35, 44, 0.18);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row span,
.invite-tags span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.78);
  color: var(--taihang-green);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(55, 106, 82, 0.16);
}

.page-manor {
  background:
    linear-gradient(180deg, #eef4ee 0%, #fff8e8 54%, #f3ede0 100%);
}

.leaf-shadow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(55, 106, 82, 0.18) 0 8px, transparent 9px),
    radial-gradient(circle at 60% 45%, rgba(55, 106, 82, 0.13) 0 10px, transparent 11px),
    radial-gradient(circle at 44% 72%, rgba(55, 106, 82, 0.12) 0 9px, transparent 10px);
  filter: blur(0.2px);
  animation: cardFloat 5s ease-in-out infinite;
}

.leaf-a {
  right: -48px;
  top: 54px;
}

.leaf-b {
  left: -50px;
  bottom: 160px;
  animation-delay: -2s;
}

.warm-light {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 64px;
  height: 190px;
  background: radial-gradient(circle, rgba(242, 185, 79, 0.34), transparent 68%);
}

.manor-layout {
  padding-top: 36px;
}

.manor-card {
  margin-top: 20px;
  padding: 12px 14px 16px;
  border-radius: 8px;
}

.manor-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
}

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

.keyword-card {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(160deg, #f6f0df, #e0e7db);
  color: #5b503f;
  font-size: 18px;
  font-weight: 900;
  border: 1px solid rgba(91, 80, 63, 0.12);
  box-shadow: 0 12px 24px rgba(91, 80, 63, 0.12);
  animation: cardFloat 4.6s ease-in-out infinite;
}

.keyword-card:nth-child(2) {
  animation-delay: -1.2s;
}

.keyword-card:nth-child(3) {
  animation-delay: -2.2s;
}

.manor-slogan {
  background: linear-gradient(135deg, #62695d, #bd8d4a);
  font-size: 17px;
}

.page-products {
  background:
    radial-gradient(circle at 82% 12%, rgba(197, 51, 61, 0.16), transparent 26%),
    radial-gradient(circle at 6% 58%, rgba(106, 168, 115, 0.16), transparent 24%),
    linear-gradient(180deg, #fff8e8 0%, #fdf3dc 100%);
}

.grain {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  opacity: 0.35;
  animation: cardFloat 5.5s ease-in-out infinite;
}

.grain-a {
  top: 90px;
  left: -18px;
  background: #b33b36;
}

.grain-b {
  right: -20px;
  top: 230px;
  background: #cfb06f;
  animation-delay: -1.6s;
}

.grain-c {
  left: 36px;
  bottom: 170px;
  background: #a9d282;
  animation-delay: -3s;
}

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

.product-card {
  min-height: 178px;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  animation: cardFloat 5.2s ease-in-out infinite;
}

.product-card:nth-child(2) {
  animation-delay: -1s;
}

.product-card:nth-child(3) {
  animation-delay: -2s;
}

.product-card:nth-child(4) {
  animation-delay: -3s;
}

.product-card img {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
}

.product-card span {
  display: block;
  color: var(--deep-red);
  font-size: 15px;
  font-weight: 900;
}

.product-card p {
  margin: 7px 0 0;
  color: #5e6b64;
  font-size: 12px;
  line-height: 1.55;
}

.red-date-card {
  background: linear-gradient(155deg, rgba(255, 246, 230, 0.88), rgba(244, 204, 198, 0.82));
}

.peanut-card {
  background: linear-gradient(155deg, rgba(255, 249, 232, 0.88), rgba(221, 190, 130, 0.58));
}

.pepper-card {
  background: linear-gradient(155deg, rgba(255, 245, 232, 0.88), rgba(169, 47, 55, 0.22));
}

.melon-card {
  background: linear-gradient(155deg, rgba(250, 255, 232, 0.88), rgba(169, 210, 130, 0.55));
}

.page-promo {
  margin-top: 18px;
  padding: 13px 12px;
  border-radius: 16px;
  background: rgba(55, 106, 82, 0.1);
  color: var(--taihang-green);
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.page-final {
  background:
    radial-gradient(circle at 78% 10%, rgba(242, 185, 79, 0.25), transparent 26%),
    linear-gradient(180deg, #f8fbf4 0%, #fff8e8 70%, #fbe8dd 100%);
}

.final-ribbon {
  position: absolute;
  left: -76px;
  top: 54px;
  width: 260px;
  opacity: 0.72;
  transform: rotate(13deg);
  animation: ribbonFloat 6s ease-in-out infinite;
}

.final-glow {
  width: 180px;
  height: 180px;
  right: -50px;
  top: 90px;
}

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

.invite-tags span {
  text-align: center;
  padding: 11px 8px;
  background: rgba(255, 255, 255, 0.74);
}

.student-info {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
}

.student-info h3 {
  margin: 0 0 8px;
  color: var(--deep-red);
  font-size: 17px;
}

.student-info p {
  margin: 5px 0;
  color: #374740;
  font-size: 14px;
  line-height: 1.45;
}

.final-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.final-actions .primary-btn,
.final-actions .secondary-btn {
  margin-top: 18px;
}

.progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 253, 246, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(36, 49, 45, 0.14);
  backdrop-filter: blur(12px);
}

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

.dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(55, 106, 82, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, transform 0.18s ease;
}

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

.modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 33, 30, 0.42);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: #fffdf6;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(36, 49, 45, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.24s ease;
}

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

.modal-panel h3 {
  margin: 0;
  color: var(--deep-red);
  font-size: 21px;
}

.modal-panel p {
  margin: 12px 0 0;
  color: #46554f;
  line-height: 1.7;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(200, 35, 44, 0.1);
  color: var(--deep-red);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-ok {
  min-height: 42px;
  margin-top: 18px;
}

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

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

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

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.56;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.04);
  }
}

@keyframes ribbonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(12px) rotate(-4deg);
  }
}

@keyframes birdMove {
  0%,
  100% {
    margin-left: 0;
  }
  50% {
    margin-left: 20px;
  }
}

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

@media (max-width: 430px) {
  body {
    align-items: stretch;
  }

  .phone {
    width: 100vw;
    min-height: 100svh;
    max-height: none;
    box-shadow: none;
  }
}

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

  .product-grid {
    gap: 10px;
  }

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

  .product-card span {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
