@font-face {
  font-family: "WeddingArt";
  src: url("/assets/fonts/zcool-xiaowei-subset.woff2?v=20260605-font3") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #fff5f1;
  --panel: rgba(255, 253, 250, 0.92);
  --ink: #342522;
  --muted: #896d63;
  --line: #efd8d1;
  --accent: #c76573;
  --accent-dark: #93424f;
  --sage: #768667;
  --rose: #f2b8bd;
  --gold: #d8ae72;
  --art-font: "WeddingArt", "ZCOOL XiaoWei", "Xingkai SC", "STXingkai", "FZYaoti", "华文行楷", "华文新魏", "STKaiti", "Kaiti SC", "KaiTi", serif;
  --script-font: var(--art-font);
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-family: var(--script-font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 204, 213, 0.44), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(255, 232, 190, 0.40), transparent 25%),
    radial-gradient(circle at 50% 104%, rgba(241, 176, 185, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(255, 252, 248, 0.98), rgba(255, 238, 236, 0.96) 48%, rgba(255, 247, 239, 0.98)),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 68px),
    radial-gradient(circle at center, rgba(199, 101, 115, 0.08) 0 1.5px, transparent 2px);
  background-size: 70px 70px, 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.wechat-share-image {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 300px;
  height: 300px;
  opacity: 0.01;
}

button,
input {
  font: inherit;
  font-family: var(--ui-font);
}

.romance-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.balloon {
  position: absolute;
  width: 42px;
  height: 54px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(242, 184, 189, 0.78));
  box-shadow: inset -8px -10px 18px rgba(147, 66, 79, 0.10);
  animation: floatBalloon 9s ease-in-out infinite;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52px;
  width: 1px;
  height: 72px;
  background: rgba(199, 101, 115, 0.24);
}

.balloon-one {
  left: 5%;
  top: 18%;
}

.balloon-two {
  right: 7%;
  top: 28%;
  width: 36px;
  height: 48px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(216, 174, 114, 0.58));
  animation-delay: -2.6s;
}

.balloon-three {
  left: 78%;
  top: 72%;
  width: 32px;
  height: 42px;
  opacity: 0.72;
  animation-delay: -5s;
}

.petal {
  position: absolute;
  width: 14px;
  height: 20px;
  border-radius: 14px 2px 14px 2px;
  background: rgba(242, 184, 189, 0.58);
  animation: driftPetal 12s linear infinite;
}

.petal-one {
  left: 16%;
  top: -24px;
}

.petal-two {
  left: 52%;
  top: -40px;
  animation-delay: -4s;
}

.petal-three {
  left: 82%;
  top: -34px;
  animation-delay: -8s;
}

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.26;
  transform: rotate(45deg);
  background: var(--rose);
  animation: pulseHeart 5.8s ease-in-out infinite;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: inherit;
}

.heart::before {
  left: -10px;
}

.heart::after {
  top: -10px;
}

.heart-one {
  left: 10%;
  top: 62%;
}

.heart-two {
  right: 12%;
  top: 12%;
  width: 16px;
  height: 16px;
  background: var(--gold);
  animation-delay: -1.8s;
}

.heart-two::before,
.heart-two::after {
  width: 16px;
  height: 16px;
}

.heart-two::before {
  left: -8px;
}

.heart-two::after {
  top: -8px;
}

.heart-three {
  right: 18%;
  bottom: 11%;
  width: 14px;
  height: 14px;
  opacity: 0.22;
  animation-delay: -3.4s;
}

.heart-three::before,
.heart-three::after {
  width: 14px;
  height: 14px;
}

.heart-three::before {
  left: -7px;
}

.heart-three::after {
  top: -7px;
}

.page {
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.invite {
  width: min(100%, 460px);
  position: relative;
}

.hero-photo {
  width: min(92%, 420px);
  margin: 0 auto 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(239, 216, 209, 0.92);
  box-shadow: 0 14px 34px rgba(147, 66, 79, 0.13), 0 0 0 5px rgba(255, 255, 255, 0.26);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.details {
  text-align: center;
  padding: 6px 2px 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--ui-font);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.vow {
  margin: 0;
  color: var(--muted);
  font-family: var(--art-font);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 600;
}

.vow + h1 {
  margin-top: 12px;
}

h1 {
  margin: 0;
  font-family: var(--art-font);
  font-size: 32px;
  line-height: 1.28;
  font-weight: 700;
  color: #3b2724;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.74), 0 8px 18px rgba(147, 66, 79, 0.08);
}

.info-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.info-list div,
.stats div {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.78), rgba(255, 246, 243, 0.72));
  padding: 14px 12px;
}

.info-list span,
.stats span {
  display: block;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.4;
}

.info-list strong,
.stats strong {
  display: block;
  margin-top: 4px;
  font-family: var(--art-font);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.time-note {
  display: block;
  margin-top: 7px;
  color: var(--accent-dark);
  font-family: var(--art-font);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.32;
}

.map-link {
  min-height: 36px;
  margin-top: 12px;
  padding: 0 15px;
  border: 1px solid rgba(199, 101, 115, 0.30);
  border-radius: 999px;
  color: var(--accent-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(147, 66, 79, 0.13);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 600;
}

.map-link:hover {
  background: rgba(255, 255, 255, 0.96);
}

.travel-guide {
  margin-top: 12px;
  padding: 16px 14px 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.72), rgba(255, 244, 241, 0.68));
}

.travel-title {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: var(--art-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78);
}

.travel-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.travel-node {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.travel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(199, 101, 115, 0.24);
  box-shadow: 0 10px 22px rgba(147, 66, 79, 0.10);
}

.travel-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.travel-icon.train {
  color: var(--sage);
}

.travel-node strong {
  max-width: 100%;
  color: #3b2724;
  font-family: var(--art-font);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.travel-node span:not(.travel-icon) {
  max-width: 100%;
  color: var(--muted);
  font-family: var(--art-font);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 600;
}

.travel-node .travel-time {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(199, 101, 115, 0.18);
  font-family: var(--ui-font);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
  white-space: nowrap;
}

.travel-line {
  width: 100%;
  height: 1px;
  margin-top: 22px;
  display: block;
  background: linear-gradient(90deg, transparent, rgba(199, 101, 115, 0.38), transparent);
  position: relative;
}

.travel-line::after {
  content: "";
  position: absolute;
  right: 1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(199, 101, 115, 0.48);
  border-right: 1px solid rgba(199, 101, 115, 0.48);
  transform: rotate(45deg);
}

.travel-note {
  margin: 12px auto 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.rsvp {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.94), rgba(255, 248, 245, 0.90));
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(147, 66, 79, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  font-family: var(--ui-font);
}

.rsvp label {
  display: grid;
  gap: 7px;
}

.rsvp label span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.rsvp input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

.rsvp input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 101, 115, 0.14);
}

.rsvp button,
.download {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.rsvp button:hover,
.download:hover {
  background: var(--accent-dark);
}

.rsvp button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 20px;
  margin: 0;
  text-align: center;
  color: var(--sage);
  font-size: 14px;
  line-height: 1.45;
}

.form-message.error {
  color: #b13d2c;
}

@keyframes floatBalloon {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }

  50% {
    transform: translate3d(8px, -22px, 0) rotate(5deg);
  }
}

@keyframes driftPetal {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 0.72;
  }

  100% {
    transform: translate3d(-34px, 110vh, 0) rotate(260deg);
    opacity: 0;
  }
}

@keyframes pulseHeart {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(45deg) scale(0.92);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(45deg) scale(1.08);
  }
}

.admin-page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 16px;
  font-family: var(--ui-font);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-header h1 {
  font-size: 28px;
}

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

.stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats strong {
  font-size: 30px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(247, 244, 239, 0.72);
}

tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 520px) {
  .page {
    align-items: flex-start;
  }

  h1 {
    font-size: 29px;
  }

  .info-list strong {
    font-size: 20px;
  }

  .balloon-one {
    left: -2%;
  }

  .balloon-two {
    right: -1%;
  }

  .rsvp {
    padding: 15px;
  }

  .travel-route {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
    gap: 6px;
  }

  .travel-icon {
    width: 38px;
    height: 38px;
  }

  .travel-icon svg {
    width: 21px;
    height: 21px;
  }

  .travel-node strong {
    font-size: 16px;
  }

  .travel-node span:not(.travel-icon) {
    font-size: 12px;
    line-height: 1.38;
  }

  .travel-line {
    width: 100%;
    height: 1px;
    margin-top: 19px;
    background: linear-gradient(90deg, transparent, rgba(199, 101, 115, 0.42), transparent);
  }

  .travel-line::after {
    right: 1px;
    top: -4px;
    bottom: auto;
    transform: rotate(45deg);
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .download {
    width: 100%;
  }
}
