:root {
  --china-red: #c62828;
  --deep-red: #8f1f22;
  --field-green: #2f8f5b;
  --rice-gold: #e2ad35;
  --lake-blue: #3b9fc6;
  --warm-cream: #fff7e8;
  --ink: #2d2a24;
  --muted: #756f63;
  --line: rgba(94, 68, 35, 0.16);
  --shadow: 0 18px 38px rgba(81, 45, 25, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  overflow: hidden;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(47, 143, 91, 0.15), transparent 22%, transparent 78%, rgba(198, 40, 40, 0.12)),
    #efe5d5;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.phone {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--warm-cream);
  box-shadow: 0 0 0 1px rgba(68, 48, 28, 0.08), 0 24px 70px rgba(43, 31, 23, 0.2);
}

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

.page {
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px 104px;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 560ms cubic-bezier(.2, .72, .2, 1), opacity 520ms ease;
  scrollbar-width: none;
}

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

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

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

.section-head {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.section-head.compact {
  margin-bottom: 10px;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(198, 40, 40, 0.18);
  border-radius: 999px;
  color: var(--deep-red);
  background: rgba(255, 247, 232, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow.dark {
  border-color: rgba(255, 244, 218, 0.28);
  color: #ffe6bd;
  background: rgba(82, 27, 27, 0.72);
}

.page-title {
  margin: 14px 0 10px;
  color: #2a2119;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.page.active .page-title {
  animation: titleIn 760ms ease both;
}

.long-title {
  font-size: 25px;
  line-height: 1.18;
}

.subtitle,
.lead,
.site-text,
.final-copy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.subtitle {
  font-weight: 700;
  color: #665133;
}

.lead {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(99, 86, 57, 0.08);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--china-red), #e0702c);
  box-shadow: 0 12px 24px rgba(198, 40, 40, 0.25);
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.secondary-btn {
  color: var(--deep-red);
  background: #fff3df;
  box-shadow: inset 0 0 0 1px rgba(198, 40, 40, 0.22), 0 10px 22px rgba(68, 47, 28, 0.08);
}

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

.bottom-action {
  width: calc(100% - 40px);
  margin: 16px 20px 0;
}

.red-btn {
  background: linear-gradient(135deg, #9d2224, #cf3f32);
  box-shadow: 0 12px 24px rgba(117, 26, 28, 0.24);
}

.page-home {
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(180deg, #fff8e7 0%, #f7d494 43%, #bfe3db 44%, #f8f0d9 100%);
}

.home-copy {
  position: relative;
  z-index: 4;
  align-self: flex-start;
  width: 100%;
  margin-top: 22px;
}

.page-home .page-title {
  max-width: 330px;
  color: #7e181d;
  font-size: 40px;
}

.home-copy .subtitle {
  max-width: 290px;
  color: #5f3c24;
}

.home-copy .primary-btn {
  margin-top: 28px;
}

.home-visual {
  position: absolute;
  inset: auto 0 62px;
  z-index: 2;
  height: 44%;
  pointer-events: none;
}

.field-scene,
.skyline-scene {
  position: absolute;
  left: 0;
  width: 100%;
}

.field-scene {
  bottom: 0;
  height: 78%;
}

.skyline-scene {
  bottom: 6%;
  height: 64%;
}

.ribbon {
  position: absolute;
  z-index: 1;
  width: 128%;
  max-width: none;
  opacity: 0.94;
  pointer-events: none;
}

.ribbon-top {
  top: 4px;
  left: -44px;
  transform: rotate(-4deg);
  animation: ribbonDrift 7s ease-in-out infinite;
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 82px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 25px -9px 0 3px rgba(255, 255, 255, 0.58), 47px 2px 0 -1px rgba(255, 255, 255, 0.5);
}

.cloud-a {
  top: 126px;
  right: 26px;
  animation: cloudMove 9s ease-in-out infinite;
}

.cloud-b {
  top: 222px;
  left: 24px;
  transform: scale(.76);
  animation: cloudMove 12s ease-in-out infinite reverse;
}

.sun-glow {
  position: absolute;
  top: 114px;
  right: 66px;
  z-index: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 121, 0.84), rgba(255, 222, 121, 0.08) 68%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}

.bird {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 10px;
  border-top: 2px solid #5c5145;
  border-radius: 50%;
}

.bird::after {
  content: "";
  position: absolute;
  left: 12px;
  top: -2px;
  width: 18px;
  height: 10px;
  border-top: 2px solid #5c5145;
  border-radius: 50%;
}

.bird-a {
  top: 190px;
  right: 84px;
  animation: birdFly 8s linear infinite;
}

.bird-b {
  top: 286px;
  left: 54px;
  transform: scale(.72);
  animation: birdFly 11s linear infinite reverse;
}

.page-intro {
  background:
    linear-gradient(180deg, #fff9e9, #f1f9ed 62%, #e8f3f8);
}

.illustration-band {
  margin: 14px 0 18px;
  border: 1px solid rgba(47, 143, 91, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #e4f6e7;
  box-shadow: var(--shadow);
}

.illustration-band img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.block-title {
  margin: 6px 0 12px;
  color: #385338;
  font-size: 18px;
}

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

.impression-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 24px rgba(55, 75, 44, 0.08);
}

.impression-card h4,
.impression-card p {
  margin: 0;
}

.impression-card h4 {
  color: #34291f;
  font-size: 17px;
}

.impression-card p {
  color: #6f6859;
  font-size: 13px;
  line-height: 1.55;
}

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

.red-memory {
  background: linear-gradient(180deg, #d84235, #9d2224);
}

.red-memory::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 9px;
  width: 12px;
  height: 25px;
  background: #ffe4bc;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.green-field {
  background: linear-gradient(180deg, #9ddfa0, #2f8f5b);
}

.green-field::before {
  content: "";
  position: absolute;
  inset: 27px 6px 8px;
  border-top: 3px solid rgba(255, 247, 202, 0.9);
  border-radius: 50%;
}

.local-flavor {
  background: linear-gradient(180deg, #f2bf55, #b56c35);
}

.local-flavor::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  width: 26px;
  height: 21px;
  border-radius: 50%;
  background: #fff2d1;
  box-shadow: inset 0 -5px 0 rgba(126, 73, 36, 0.18);
}

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

.delay-one {
  animation-delay: .55s;
}

.delay-two {
  animation-delay: 1.1s;
}

.red-page {
  color: #fff8e8;
  background:
    linear-gradient(180deg, #521818, #842021 42%, #f7ead1 43%, #fff7e8);
}

.red-page .page-title,
.red-page .subtitle {
  color: #fff7e3;
}

.red-wash {
  position: absolute;
  inset: 0 0 auto;
  height: 54%;
  background:
    linear-gradient(135deg, rgba(255, 224, 154, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.martyrs-layout {
  position: relative;
  z-index: 2;
  margin-top: 6px;
}

.martyrs-img {
  display: block;
  width: 100%;
  height: 258px;
  object-fit: contain;
}

.solemn-card {
  margin-top: -8px;
  padding: 16px;
  border: 1px solid rgba(106, 54, 31, 0.16);
  border-radius: 8px;
  color: #4e4135;
  background: rgba(255, 250, 238, 0.94);
  box-shadow: var(--shadow);
}

.solemn-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.slogan-panel,
.quote-line {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  color: #8f1f22;
  background: linear-gradient(135deg, #fff2d8, #fffaf0);
  box-shadow: inset 0 0 0 1px rgba(198, 40, 40, 0.14);
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.site-visual-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 10px;
  align-items: stretch;
  margin-top: 6px;
}

.site-visual-wrap img {
  width: 100%;
  height: 214px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 244, 221, 0.94);
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  border-radius: 999px;
  background: rgba(255, 244, 221, 0.9);
  box-shadow: inset 0 0 0 1px rgba(154, 45, 36, 0.14);
}

.timeline span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--china-red);
  box-shadow: 0 0 0 5px rgba(198, 40, 40, 0.14);
}

.site-text {
  margin: 14px 0 0;
  padding: 15px;
  border-radius: 8px;
  color: #4e4135;
  background: rgba(255, 250, 238, 0.96);
}

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

.keyword-card {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff8e8;
  background: linear-gradient(150deg, #9d2224, #ca4a34);
  box-shadow: 0 10px 20px rgba(128, 33, 31, 0.18);
  font-size: 18px;
  font-weight: 900;
  animation: cardFloat 5s ease-in-out infinite;
}

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

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

.page-products {
  background:
    linear-gradient(180deg, #fff8e8, #f2f9ee 48%, #e7f5f7);
}

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

.product-card {
  min-height: 210px;
  padding: 12px 10px 13px;
  border-radius: 8px;
  border: 1px solid rgba(100, 74, 39, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 24px rgba(91, 72, 43, 0.11);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: cardFloat 5.2s ease-in-out infinite;
}

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

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

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

.product-card:hover {
  box-shadow: 0 16px 28px rgba(91, 72, 43, 0.16);
}

.product-card img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: contain;
  margin-bottom: 8px;
}

.product-card span {
  display: block;
  margin-bottom: 6px;
  color: #3d3024;
  font-size: 16px;
  font-weight: 900;
}

.product-card p {
  margin: 0;
  color: #746a5e;
  font-size: 13px;
  line-height: 1.55;
}

.goose {
  background: #fff3df;
}

.peanut {
  background: #fff7dc;
}

.fish {
  background: #e9f8fb;
}

.morel {
  background: #f4eadc;
}

.travel-line {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #2d6242;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 900;
}

.page-invite {
  background:
    linear-gradient(180deg, #fff8e8 0%, #f6ead3 45%, #e9f6ee 100%);
}

.invite-skyline {
  width: 100%;
  height: 120px;
  object-fit: cover;
  margin: -10px 0 6px;
  border-radius: 8px;
  background: #dff4ef;
}

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

.invite-tags span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #7c231f;
  background: rgba(255, 250, 238, 0.9);
  box-shadow: inset 0 0 0 1px rgba(198, 40, 40, 0.16), 0 8px 16px rgba(84, 58, 32, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.final-copy {
  padding: 15px;
  border: 1px solid rgba(47, 143, 91, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.student-info {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #473c31;
  background: rgba(255, 250, 238, 0.92);
  box-shadow: var(--shadow);
}

.student-info p {
  display: flex;
  gap: 4px;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.35;
}

.student-info strong {
  flex: 0 0 auto;
  color: #7c231f;
}

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

.progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(98, 72, 41, 0.14);
  border-radius: 999px;
  color: #4f4034;
  background: rgba(255, 250, 238, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(56, 39, 25, 0.14);
  font-size: 13px;
  font-weight: 800;
}

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

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(110, 91, 69, 0.25);
  transition: width 220ms ease, background 220ms ease;
}

.dots button.active {
  width: 22px;
  border-radius: 999px;
  background: var(--china-red);
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(33, 25, 18, 0.44);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 22px 20px 18px;
  border-radius: 8px;
  color: #3f3329;
  background: #fffaf0;
  box-shadow: 0 22px 60px rgba(25, 17, 12, 0.32);
  transform: translateY(14px) scale(.98);
  transition: transform 220ms ease;
}

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

.modal-panel h3 {
  margin: 0 0 10px;
  color: #8f1f22;
  font-size: 22px;
}

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

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

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

@keyframes ribbonDrift {
  0%, 100% {
    transform: translateX(0) rotate(-4deg);
  }
  50% {
    transform: translateX(18px) rotate(-2deg);
  }
}

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

@keyframes glowPulse {
  0%, 100% {
    opacity: .78;
    transform: scale(.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes birdFly {
  0% {
    transform: translateX(0) scale(.85);
  }
  50% {
    transform: translateX(-34px) translateY(-10px) scale(.85);
  }
  100% {
    transform: translateX(0) scale(.85);
  }
}

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

@media (max-height: 700px) {
  .page {
    padding-top: 18px;
    padding-bottom: 92px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-home .page-title {
    font-size: 34px;
  }

  .long-title {
    font-size: 23px;
  }

  .martyrs-img {
    height: 220px;
  }

  .site-visual-wrap img {
    height: 184px;
  }

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

  .product-card img {
    height: 82px;
  }
}

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

  .bottom-action {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    padding-left: 8px;
    padding-right: 8px;
  }
}
