@font-face {
  font-family: "Love Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../Font/noto-serif-sc-home.woff2") format("woff2");
}

@font-face {
  font-family: "Love Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../Font/noto-serif-sc-home.woff2") format("woff2");
}

:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #fbfafc;
  color: #27252d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fbfafc;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #fbfafc;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 20, 28, 0.12);
}

.site-header-inner {
  width: min(1080px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-brand {
  color: #fff;
  font-family: "Love Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(31, 21, 35, 0.58);
}

.home-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  isolation: isolate;
  background-image: var(--home-background);
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(31, 18, 34, 0.2);
}

.couple {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
}

.person {
  width: 124px;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.person-avatar {
  width: 116px;
  height: 116px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(38, 23, 39, 0.3);
}

.person figcaption {
  min-width: 42px;
  padding: 2px 11px 4px;
  border-radius: 999px;
  background: rgba(28, 25, 32, 0.22);
  color: #fff;
  font-family: "Love Serif", "Songti SC", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 10px rgba(20, 16, 24, 0.6);
}

.love-mark {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  filter: drop-shadow(0 10px 18px rgba(255, 55, 104, 0.34));
}

.home-waves {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 58px;
  display: block;
}

.wave-layers > use {
  animation: move-wave 22s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-layers > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.wave-layers > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.wave-layers > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.wave-layers > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

.home-main {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 30px;
}

.home-countdown {
  text-align: center;
}

.countdown-heading {
  margin: 0;
  color: #a92a69;
  font-family: "Love Serif", "Songti SC", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.countdown-grid {
  width: 100%;
  margin: 5px auto 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  color: #26242c;
  font-family: "Love Serif", Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.time-segment {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}

.time-segment strong {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.time-segment-days strong {
  font-size: 31px;
}

.time-segment small {
  color: #45414a;
  font-family: "Love Serif", "Songti SC", serif;
  font-size: 16px;
  font-weight: 700;
}

.home-tool-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-tool-card {
  --tool-accent: #ef6b79;
  position: relative;
  min-height: 144px;
  padding: 18px;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid #e6e1e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(51, 43, 55, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--tool-accent);
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--tool-accent);
  box-shadow: 0 15px 34px rgba(51, 43, 55, 0.13);
  outline: none;
}

.home-tool-card img {
  width: 54px;
  height: 54px;
  transition: transform 180ms ease;
}

.home-tool-card:hover img,
.home-tool-card:focus-visible img {
  transform: scale(1.05);
}

.home-tool-card span {
  font-family: "Love Serif", "Songti SC", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.tool-period {
  --tool-accent: #ed6b73;
}

.tool-calendar {
  --tool-accent: #3f9090;
}

.tool-mood {
  --tool-accent: #d75579;
}

.tool-message {
  --tool-accent: #487dab;
}

.tool-food {
  --tool-accent: #d59a38;
}

.tool-obedience {
  --tool-accent: #8a6ca8;
}

.home-animated .couple {
  animation: settle-in 500ms ease-out both;
}

.home-animated .home-countdown,
.home-animated .home-tool-grid {
  animation: rise-in 460ms ease-out both;
}

.home-animated .home-tool-grid {
  animation-delay: 90ms;
}

@keyframes move-wave {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@keyframes settle-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 54px;
  }

  .site-header-inner {
    width: calc(100% - 28px);
  }

  .site-brand {
    font-size: 22px;
  }

  .home-hero {
    height: 300px;
    background-position: center 42%;
  }

  .couple {
    width: calc(100% - 24px);
    padding-top: 76px;
    gap: 18px;
  }

  .person {
    width: 92px;
    gap: 6px;
  }

  .person-avatar {
    width: 86px;
    height: 86px;
  }

  .person figcaption {
    min-width: 38px;
    padding: 2px 9px 3px;
    font-size: 16px;
  }

  .love-mark {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .home-waves {
    height: 48px;
  }

  .home-main {
    width: calc(100% - 28px);
    padding: 16px 0 22px;
  }

  .countdown-heading {
    font-size: 22px;
  }

  .countdown-grid {
    margin-top: 5px;
    gap: 10px;
  }

  .time-segment {
    gap: 2px;
  }

  .time-segment strong,
  .time-segment-days strong {
    font-size: 24px;
  }

  .time-segment small {
    font-size: 13px;
  }

  .home-tool-grid {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-tool-card {
    min-height: 74px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .home-tool-card::before {
    inset: 0 auto 0 0;
    width: 3px;
    height: auto;
  }

  .home-tool-card img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .home-tool-card span {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .couple {
    gap: 10px;
  }

  .person {
    width: 84px;
  }

  .person-avatar {
    width: 80px;
    height: 80px;
  }

  .love-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .time-segment strong,
  .time-segment-days strong {
    font-size: 23px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .time-segment small {
    font-size: 12px;
  }
}

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