* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3efec;
  color: #3c302e;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fffaf7;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.hero {
  position: relative;
  padding: 55px 20px 45px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #fffdfb 0%, #fff5f1 100%);
}

.hero::before {
  position: absolute;
  top: -70px;
  left: -70px;
  width: 160px;
  height: 160px;
  content: "";
  border-radius: 50%;
  background: rgba(192, 45, 55, 0.05);
}

.hero::after {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  content: "";
  border-radius: 50%;
  background: rgba(192, 45, 55, 0.05);
}

.hero-decoration {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #a78b83;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 5px;
}

.double-happiness {
  position: relative;
  z-index: 1;
  color: #bd2f38;
  font-family: STKaiti, KaiTi, serif;
  font-size: 105px;
  font-weight: 700;
  line-height: 1;
}

.names {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  font-family: STKaiti, KaiTi, serif;
  font-size: 27px;
}

.heart {
  margin: 0 12px;
  color: #bd2f38;
  font-size: 16px;
}

.english-title {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: #bd2f38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-style: italic;
  letter-spacing: 1px;
}

.hero-date {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: #8e756e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 5px;
}

.photo-section {
  padding: 0 20px;
}

.cover-photo {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}

.photo-card {
  position: relative;
  padding: 10px 10px 40px;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(70, 40, 30, 0.12);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  right: 20px;
  bottom: 12px;
  color: #a78b83;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 5px;
}

.section {
  padding: 65px 28px;
  text-align: center;
}

.section-small-title {
  margin-bottom: 12px;
  color: #bda69f;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 5px;
}

.section h1,
.section h2 {
  margin: 0 0 25px;
  color: #442f2d;
  font-family: STKaiti, KaiTi, serif;
  font-weight: 400;
}

.section h1 {
  font-size: 34px;
}

.section h2 {
  font-size: 29px;
}

.section p {
  margin: 15px 0;
  color: #715f5a;
  font-size: 15px;
  line-height: 2.2;
}

.divider {
  margin: 20px 0;
  color: #bd2f38;
  font-size: 10px;
  letter-spacing: 8px;
}

.invitation {
  padding-top: 75px;
}

.countdown-section {
  background: #bd2f38;
  color: #ffffff;
}

.countdown-section .section-small-title {
  color: rgba(255, 255, 255, 0.65);
}

.countdown-section h2 {
  color: #ffffff;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 35px;
}

.countdown-item {
  padding: 20px 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.countdown-item strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.countdown-item span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.wedding-info {
  background: #fffaf7;
}

.info-card {
  margin-top: 25px;
  padding: 35px 20px;
  border: 1px solid #eaded8;
  border-radius: 5px;
  background: #ffffff;
}

.info-icon {
  margin-bottom: 14px;
  color: #bd2f38;
  font-size: 23px;
}

.info-label {
  margin-bottom: 13px;
  color: #ad9289;
  font-size: 12px;
  letter-spacing: 3px;
}

.info-value {
  color: #442f2d;
  font-size: 19px;
  font-weight: 500;
}

.info-sub {
  margin-top: 10px;
  color: #88736d;
  font-size: 13px;
  line-height: 1.8;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 46px;
  margin-top: 25px;
  padding: 0 25px;
  border: 0;
  border-radius: 50px;
  background: #bd2f38;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.primary-button:active {
  transform: scale(0.98);
}

.share-section {
  background: #f8efeb;
}

.share-button {
  font-family: inherit;
}

.footer {
  padding: 55px 20px 80px;
  text-align: center;
  background: #442f2d;
  color: rgba(255, 255, 255, 0.75);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 4px;
}

.footer-heart {
  margin-bottom: 20px;
  color: #e19a9f;
  font-size: 22px;
  letter-spacing: 0;
}

.footer-text {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
}

.share-mask {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  align-items: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  text-align: center;
}

.share-mask.active {
  display: flex;
}

.share-arrow {
  align-self: flex-end;
  margin: 25px 35px 0 0;
  font-size: 60px;
  line-height: 1;
}

.share-tip {
  margin-top: 40px;
  padding: 0 30px;
  font-size: 17px;
  line-height: 2;
}

.share-tip strong {
  color: #ffccd0;
}

.share-mask button {
  margin-top: 40px;
  padding: 11px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

@media (max-width: 380px) {
  .double-happiness {
    font-size: 90px;
  }

  .names {
    font-size: 23px;
  }

  .cover-photo {
    height: 470px;
  }

  .photo-card img {
    height: 400px;
  }

  .countdown-item strong {
    font-size: 23px;
  }
}
