:root {
  --bg-grid: rgba(49, 72, 92, 0.11);
  --text-main: #2f3a44;
  --text-soft: #5f6972;
  --brand: #ff6a6a;
  --brand-2: #ffad66;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --shadow: 0 12px 40px rgba(26, 45, 63, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --hero-bg: url('https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?auto=format&fit=crop&w=1600&q=80');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background-image: linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 78px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 22px rgba(37, 58, 77, 0.12);
}

.header-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
}

.logo {
  font-size: 28px;
  letter-spacing: 3px;
  color: #33495c;
  font-family: inherit;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4a5c6b;
  font-family: inherit;
  transition: all 0.22s ease;
  background: rgba(255, 255, 255, 0.44);
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: linear-gradient(120deg, #f68f88 0%, #f4b071 100%);
  transform: translateY(-2px);
}

.hero {
  background-image: linear-gradient(130deg, rgba(255, 240, 233, 0.48), rgba(234, 247, 255, 0.3)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  padding: 138px 20px 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 199, 184, 0.42), transparent 38%),
    radial-gradient(circle at 78% 12%, rgba(140, 215, 255, 0.28), transparent 30%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  text-align: center;
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-panel {
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px 30px;
}

.couple-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 8vw, 90px);
}

.person {
  text-align: center;
}

.person img {
  width: clamp(86px, 15vw, 150px);
  height: clamp(86px, 15vw, 150px);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(39, 62, 78, 0.22);
}

.person span {
  margin-top: 10px;
  display: block;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
}

.heart {
  font-size: clamp(34px, 4vw, 56px);
  color: #ff365e;
  text-shadow: 0 6px 16px rgba(255, 54, 94, 0.4);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.wave {
  margin-top: 8px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 132px;
  margin-bottom: -1px;
  overflow: hidden;
}

.wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave .parallax>use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave .parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.wave .parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.wave .parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.wave .parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 54px;
}

.slogan {
  text-align: center;
  font-size: clamp(20px, 2.6vw, 32px);
  margin: 18px auto 22px;
  width: fit-content;
  padding: 6px 18px;
  color: transparent;
  background-image: linear-gradient(270deg,
      #ff5d5d,
      #ff9d3d,
      #ffd53f,
      #68d192,
      #4bcad6,
      #5397ff,
      #a479ff,
      #ff8bc8,
      #ff5d5d);
  background-size: 1800% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: rainbow 36s linear infinite;
}

@keyframes rainbow {
  to {
    background-position: -1800% center;
  }
}

.time-box {
  text-align: center;
  margin-bottom: 24px;
}

.time-box p,
.time-box strong {
  display: block;
}

.time-box strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-size: 30px;
  margin-top: 4px;
  letter-spacing: 0;
}

.time-box b {
  margin: 0;
}

.control-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.ghost-btn {
  border: 1px solid rgba(52, 73, 89, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: #314050;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 132, 92, 0.75);
}

.feature-grid,
.album-grid,
.diary-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.feature-card,
.album-card,
.diary-card,
.about-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.feature-card {
  grid-column: span 4;
  padding: 24px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-soft);
  line-height: 1.7;
  min-height: 54px;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(120deg, #ff7f72, #ffb26b);
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 18px;
  color: #304252;
}

.album-card {
  grid-column: span 4;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.album-card:hover {
  transform: translateY(-4px);
}

.album-card img {
  width: 100%;
  height: 236px;
  object-fit: cover;
  display: block;
}

.album-meta {
  padding: 14px 16px 18px;
}

.album-date {
  color: #5f6f7f;
  font-size: 14px;
}

.album-caption {
  margin-top: 6px;
  font-size: 18px;
}

.diary-card {
  grid-column: span 12;
  padding: 20px 22px;
}

.diary-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.diary-top h3 {
  font-size: 24px;
}

.diary-top time {
  color: #607382;
}

.diary-tags {
  margin: 10px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.diary-tags span {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(63, 84, 101, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
}

.diary-excerpt {
  color: #4f6170;
  margin-bottom: 10px;
  line-height: 1.8;
}

.diary-detail {
  display: none;
  line-height: 1.9;
  color: #354655;
  margin-bottom: 12px;
}

.diary-card.open .diary-detail {
  display: block;
}

.about-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px;
}

.bot-chat {
  max-height: 440px;
  overflow-y: auto;
  padding: 8px;
}

.bot-row {
  display: flex;
  margin: 10px 0;
}

.bot-row.user {
  justify-content: flex-end;
}

.bot-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.65;
}

.bot-row.bot .bot-bubble {
  background: rgba(255, 255, 255, 0.82);
}

.bot-row.user .bot-bubble {
  background: linear-gradient(120deg, #ff8f84, #ffb56f);
  color: #fff;
}

.bot-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 8px 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
  align-items: center;
  justify-content: center;
  background: rgba(19, 28, 38, 0.86);
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  max-width: 980px;
  width: 100%;
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
}

.lightbox figcaption {
  text-align: center;
  color: #fff;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

.site-footer {
  text-align: center;
  color: #5b6c79;
  padding: 18px 10px 34px;
}

.site-footer p:first-child {
  font-family: inherit;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 100;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(145deg, #fff3b9 0%, #ffd178 48%, #ffb3c8 100%);
  color: #5b3a1f;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(45, 32, 11, 0.22);
  transition: 0.2s;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

body.theme-dark {
  --bg-grid: rgba(133, 171, 208, 0.15);
  --text-main: #dce7f1;
  --text-soft: #b6c6d4;
  --glass: rgba(18, 28, 40, 0.54);
  --glass-strong: rgba(17, 26, 38, 0.74);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background-color: #0f1620;
}

body.theme-dark .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

body.theme-dark .site-nav a {
  color: #d7e5f0;
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .feature-card p,
body.theme-dark .album-date,
body.theme-dark .diary-top time,
body.theme-dark .diary-excerpt,
body.theme-dark .site-footer {
  color: #b8c9d8;
}

body.theme-dark .diary-detail,
body.theme-dark .album-caption,
body.theme-dark .time-box,
body.theme-dark .logo {
  color: #dce7f1;
}

body.theme-dark .diary-tags span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

body.theme-dark .bot-row.bot .bot-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: #e8f1f8;
}

body.theme-dark .theme-toggle {
  background: linear-gradient(145deg, #6d79ff 0%, #8f67ff 52%, #3a4db5 100%);
  border-color: rgba(218, 224, 255, 0.75);
  color: #eef2ff;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.48s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {

  .feature-card,
  .album-card {
    grid-column: span 6;
  }

  .header-inner {
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 10px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    padding: 8px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 146px;
  }

  .wave {
    height: 92px;
  }

  .time-box strong {
    gap: 3px;
    font-size: 24px;
  }

  .hero-panel {
    border-radius: 24px;
    padding: 18px 12px;
  }

  .couple-wrap {
    gap: 14px;
  }

  .feature-card,
  .album-card {
    grid-column: span 12;
  }

  .diary-top {
    flex-direction: column;
    align-items: flex-start;
  }
}