﻿:root {
  --green-900: #0f5a3f;
  --green-700: #2f8763;
  --green-100: #e9f6ee;
  --green-050: #f4fbf7;
  --gold: #d7b46a;
  --text: #1f2c23;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #f7fcf9, #e8f5ee);
  color: var(--text);
  scroll-behavior: smooth;
}

.deck {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 16px 12px 48px;
}

.page {
  margin: 14px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 90, 63, 0.12);
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.page.visible { opacity: 1; transform: translateY(0); }

.page h2 {
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--green-900), var(--green-700));
  color: #fff;
  font-size: 22px;
  position: relative;
  z-index: 5;
}

.full-image {
  display: block;
  width: 100%;
  height: auto;
}

.framed { border-top: 4px solid #e2efe7; }
.tail-image { transform: translateY(-25px); position: relative; z-index: 1; }

.map-card {
  width: min(64%, 360px);
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.map-preview {
  display: block;
  width: 100%;
  height: auto;
}

.go-there-btn {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #3f74ff, #2e5ce0);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(43, 82, 211, 0.42);
  font-weight: 700;
}

.go-there-btn .arrow {
  font-size: 18px;
  line-height: 1;
  margin-top: 6px;
}

.go-there-btn span:last-child {
  margin-top: -8px;
  font-size: 15px;
}

.go-there-btn:hover {
  filter: brightness(1.07);
}

.invite-page h2 {
  z-index: 6;
}

.invite-media {
  position: relative;
}

.invite-page .map-card {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  width: min(76%, 520px);
  z-index: 4;
}

.hero { position: relative; }
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 73%;
  height: 27%;
  background: #1e6845;
  z-index: 1;
}
.hero .invite-card {
  position: absolute;
  left: 50%;
  top: calc(73% + 1px);
  transform: translateX(-50%);
  width: min(85%, 640px);
  text-decoration: none;
  background: rgba(94, 145, 108, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: center;
  backdrop-filter: blur(2px);
  z-index: 2;
}

.hero .invite-card h3 {
  margin: 0;
  color: #edf1ef;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hero .invite-card:hover {
  background: rgba(94, 145, 108, 0.52);
}

.accordion-wrap {
  padding: 14px;
  background: var(--green-050);
}

details {
  border: 1px solid #cbe5d6;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-900);
}

details p {
  margin: 10px 0 4px;
  line-height: 1.7;
}

.form-page {
  background: linear-gradient(180deg, var(--green-100), #f4fcf8);
}

.sub {
  margin: 12px 16px 0;
  color: #2f5f4a;
}

.fixed-info {
  margin: 14px 16px 20px;
  padding: 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #c7e2d3;
}

.fixed-info p {
  margin: 10px 0;
  line-height: 1.7;
  color: #1f3f31;
}

.invite-form {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.invite-form label {
  display: grid;
  gap: 6px;
  color: #214b39;
  font-weight: 600;
}

.invite-form input,
.invite-form textarea {
  width: 100%;
  border: 1px solid #b8d8c7;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
}

.invite-form button {
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--green-900), #1f7a56);
  cursor: pointer;
}

.form-tip {
  min-height: 22px;
  margin: 2px 0 0;
  color: #245d45;
  font-size: 14px;
}

/* Per-page animation variants */
.zoom-in.visible { animation: zoomIn .7s both; }
.slide-up.visible { animation: slideUp .7s both; }
.fade-left.visible { animation: fadeLeft .7s both; }
.rotate-in.visible { animation: rotateIn .7s both; }
.fade-right.visible { animation: fadeRight .7s both; }
.slide-right.visible { animation: slideRight .7s both; }
.zoom-out.visible { animation: zoomOut .7s both; }
.flip-up.visible { animation: flipUp .8s both; }

@keyframes zoomIn { from { opacity:0; transform: scale(.95);} to {opacity:1; transform: scale(1);} }
@keyframes slideUp { from { opacity:0; transform: translateY(36px);} to {opacity:1; transform: translateY(0);} }
@keyframes fadeLeft { from { opacity:0; transform: translateX(28px);} to {opacity:1; transform: translateX(0);} }
@keyframes rotateIn { from { opacity:0; transform: rotate(-1.6deg) scale(.98);} to {opacity:1; transform: rotate(0) scale(1);} }
@keyframes fadeRight { from { opacity:0; transform: translateX(-28px);} to {opacity:1; transform: translateX(0);} }
@keyframes slideRight { from { opacity:0; transform: translateX(-36px);} to {opacity:1; transform: translateX(0);} }
@keyframes zoomOut { from { opacity:0; transform: scale(1.04);} to {opacity:1; transform: scale(1);} }
@keyframes flipUp { from { opacity:0; transform: perspective(700px) rotateX(8deg);} to {opacity:1; transform: perspective(700px) rotateX(0);} }

@media (max-width: 560px) {
  .deck { padding: 10px 8px 40px; }
  .page h2 { font-size: 18px; }
  .hero .invite-card {
    top: calc(73% + 1px);
    padding: 16px 12px;
    width: min(90%, 640px);
  }
  .hero .invite-card h3 { font-size: 28px; }
}

