/* ============================================================
   LoveGirl 前台样式 · 粉色浪漫插画版
   ============================================================ */

:root {
  --primary: #ff7fa4;
  --primary-deep: #f45b86;
  --ink: #5c3a44;
  --ink-soft: #96707d;
  --bg: #fff6f9;
  --card: #ffffff;
  --line: #ffe1ea;
  --shadow: 0 10px 30px rgba(255, 127, 164, 0.16);
  --radius: 18px;
  --script-font: "STXingkai", "华文行楷", "KaiTi", "楷体", "Segoe Script", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 90% -10%, #ffe4ee 0%, transparent 60%),
    radial-gradient(900px 400px at -10% 20%, #fff0e8 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.hidden { display: none !important; }

/* ---------------- 顶栏(悬浮胶囊) ---------------- */

.topbar {
  position: sticky;
  top: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1020px;
  margin: 12px auto 0;
  padding: 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--primary-deep);
  white-space: nowrap;
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ffd3e0;
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 6px 18px rgba(244, 91, 134, 0.18);
}

.brand-heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
  36% { transform: scale(1.18); }
}

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ffd3e0;
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 6px 18px rgba(244, 91, 134, 0.18);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-admin { color: #c98fa3; border-left: 1px dashed #ffd3e0; border-radius: 0 !important; margin-left: 4px; padding-left: 14px !important; }
.nav-admin:hover { background: none !important; color: var(--primary-deep) !important; }

.nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.2s;
}

.nav a:hover { background: #fff0f5; color: var(--primary-deep); }

.nav a.active { background: #fff0f5; color: var(--primary-deep); font-weight: 700; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), #ffb1c8);
}

.menu-btn {
  display: none;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ffd3e0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  color: var(--primary-deep);
  box-shadow: 0 6px 18px rgba(244, 91, 134, 0.18);
}

/* ---------------- 主体 ---------------- */

.view { flex: 1; width: 100%; max-width: 1020px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 32px) 50px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  margin: 8px 2px 18px;
}

.section-title .bar { width: 6px; height: 24px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), #ffb1c8); }
.section-title small { font-weight: 400; font-size: 13px; color: var(--ink-soft); }

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff9ab8);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 127, 164, 0.4);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 127, 164, 0.5); }
.btn-ghost { background: #fff0f5; color: var(--primary-deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: #ffe4ee; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.empty .big { font-size: 44px; display: block; margin-bottom: 12px; }

.load-more { display: flex; justify-content: center; margin-top: 26px; }

/* ============================================================
/* ============================================================
   首页(参考 love-website-rebuilt:天空底 + 气球糖标题 + 通栏胶片带 + 糖果卡)
   ============================================================ */

/* 首页专属天空背景 + 波点(仅首页路由生效) */
body.on-home {
  background-color: #fff8fb;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1.4px),
    radial-gradient(ellipse at 20% 10%, #ffffff 0, transparent 32%),
    radial-gradient(ellipse at 85% 20%, #d9efff 0, transparent 30%),
    linear-gradient(180deg, #dceeff 0, #fff1f6 39%, #fff8fb 100%);
  background-size: 17px 17px, auto, auto, auto;
  background-attachment: fixed;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(240px, 30vw, 320px);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 64px);
  overflow: hidden;
}

/* 底部渐变,与页面背景自然过渡 */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(255, 248, 251, 0.9));
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.hero-photo.blur { filter: blur(16px); }

.hero-art {
  position: relative;
  flex: none;
  align-self: flex-end;
  width: clamp(220px, 24vw, 350px);
  height: 97%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 18px rgba(244, 91, 134, 0.16));
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(46%, 560px);
  min-width: 300px;
  text-align: center;
}

/* 气泡糖标题:每个字一颗糖 */
.balloon-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0 0 2px;
  line-height: 1;
}

.balloon-title span {
  display: grid;
  place-items: center;
  width: 1.14em;
  height: 1.14em;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffb7c9, #f35b83 65%, #df356b);
  border: 3px solid #ff9db7;
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.6), 0 5px 10px rgba(215, 75, 118, 0.25);
  color: #fff;
  font-size: clamp(26px, 4.6vw, 62px);
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(223, 53, 107, 0.4);
  animation: balloonBob 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

@keyframes balloonBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.forever {
  font-family: var(--script-font);
  font-size: clamp(20px, 2.8vw, 38px);
  color: #f34f7d;
  margin: 8px 0 0;
}
.forever b { font-family: serif; font-size: 1.2em; }

.swoosh {
  width: 78%;
  height: 15px;
  margin: -2px auto 6px;
  border-bottom: 3px solid #ff8bab;
  border-radius: 50%;
}

.together { font-weight: 800; color: #df3569; font-size: clamp(13px, 1.5vw, 19px); }

.timer-plate {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 24px;
  border: 2px dashed #ff9db8;
  border-radius: 40px;
  background: rgba(255, 248, 251, 0.85);
  color: #e94476;
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(237, 141, 168, 0.17);
}

.timer-plate b { font-size: 1.18em; }

.timer-since { margin-top: 7px; font-size: 12px; color: var(--ink-soft); }

.floating-heart {
  position: absolute;
  color: #ff789e;
  text-shadow: 0 3px 6px #ef8aa6;
  font-size: 30px;
  animation: floaty 4s ease-in-out infinite;
  pointer-events: none;
}
.floating-heart.h1 { left: 21%; top: 15%; }
.floating-heart.h2 { left: 47%; top: 47%; font-size: 22px; animation-delay: 1.2s; }
.floating-heart.h3 { right: 4%; top: 18%; font-size: 22px; animation-delay: 2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------------- 通栏胶片带 ---------------- */

.film-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 18px max(2%, calc((100vw - 1500px) / 2));
  background: linear-gradient(180deg, #ff9fba, #ffd1df 12%, #ff8eae 50%, #ffd3e0 90%, #fff1f6);
  border-top: 7px solid rgba(255, 248, 255, 0.8);
  border-bottom: 7px solid rgba(255, 248, 255, 0.8);
  box-shadow: 0 4px 14px rgba(220, 120, 157, 0.22);
}

.film-strip::before, .film-strip::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 7px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0 13px, transparent 13px 26px);
  opacity: 0.9;
  pointer-events: none;
}
.film-strip::before { top: 2px; }
.film-strip::after { bottom: 2px; }

.film-arrow {
  flex: 0 0 48px;
  height: 48px;
  border: 2px solid #ffb5c9;
  border-radius: 50%;
  background: #fff;
  color: #f04e7c;
  font-size: 36px;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(214, 91, 133, 0.2);
  transition: transform 0.2s;
}

.film-arrow:hover { transform: scale(1.08); }

.film-intro {
  width: 17%;
  min-width: 155px;
  color: #e83d70;
  font-weight: 800;
  line-height: 1.9;
  padding: 8px 4px;
}

.film-intro strong, .film-intro span { display: block; }
.film-intro span { font-size: 13px; font-weight: 500; }

.film-window { overflow: hidden; flex: 1; min-width: 0; }

.film-track { display: flex; gap: 9px; transition: transform 0.45s ease; }

.film-track img {
  width: calc((100% - 45px) / 6);
  min-width: calc((100% - 45px) / 6);
  height: 92px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(185, 75, 115, 0.19);
  cursor: zoom-in;
  background: #fff0f5;
}

.film-empty { color: #fff; padding: 18px 10px; font-weight: 700; margin: 0; }

/* ---------------- 糖果栏目卡 ---------------- */

.feature-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 34px;
  margin-bottom: 10px;
  padding: 0 clamp(20px, 3vw, 56px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 2.2vw, 34px);
}

.feature {
  position: relative;
  display: block;
  text-align: center;
  min-width: 0;
  padding: 37px 10px 16px;
  border: 2px solid #ffc1d3;
  border-radius: 30px;
  background: linear-gradient(145deg, #fffafc, #fff0f5);
  box-shadow: 0 7px 0 #f6c0d0, 0 9px 20px rgba(219, 120, 157, 0.15);
  min-height: 285px;
  transition: transform 0.25s;
}

.feature:hover { transform: translateY(-5px); }

.feature::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed #ffb2c8;
  border-radius: 24px;
  pointer-events: none;
}

.feature .ribbon {
  position: absolute;
  top: -14px;
  left: 9%;
  right: 9%;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ff9db7, #f44e7d, #ff9db7);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  border-radius: 8px 8px 16px 16px;
  box-shadow: 0 4px 8px rgba(214, 78, 121, 0.23);
  transform: rotate(-1deg);
}

.feature .ribbon span {
  position: absolute;
  left: -7px;
  top: -4px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff739a;
  border: 4px solid #ffc1d2;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 2px 5px rgba(198, 77, 116, 0.23);
}

.feature > img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: contain;
  border-radius: 14px;
  margin: 0 auto 4px;
  transition: transform 0.25s;
}

.feature:hover > img { transform: scale(1.06) rotate(-2deg); }

.feature p { margin: 5px 0 10px; color: #dc3567; font-size: 14.5px; font-weight: 700; }

.feature-more {
  display: inline-block;
  font-style: normal;
  color: #e74476;
  background: #ffdbe6;
  border: 1px solid #ffabc2;
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 13px;
  transition: all 0.2s;
}

.feature:hover .feature-more { background: #ffb7cb; color: #fff; }

/* 纪念日胶囊(关于页使用) */
.anniv-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

.anniv-chip {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ffd3e0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(244, 91, 134, 0.14);
}

.anniv-chip b { color: var(--primary-deep); font-size: 14px; margin: 0 3px; }

/* 底部手写体标语 */
.home-quote {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 24px 2px;
  color: #ed4b7a;
  font-family: var(--script-font);
  font-size: clamp(25px, 3.4vw, 42px);
  letter-spacing: 2px;
  white-space: nowrap;
}

.home-quote b { font-family: serif; font-size: 1.3em; line-height: 1; align-self: center; }

/* ============================================================
   点点滴滴(开放式,虚线分隔)
   ============================================================ */

.timeline { display: flex; flex-direction: column; }

.post-item { padding: 20px 4px; }

.post-item + .post-item { border-top: 1px dashed #ffc9dc; }

.post-date { font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.post-content { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.8; }

.post-imgs { display: grid; gap: 8px; margin-top: 14px; }
.post-imgs.n1 { grid-template-columns: minmax(0, 420px); }
.post-imgs.n2 { grid-template-columns: repeat(2, 1fr); }
.post-imgs.n3, .post-imgs.n4, .post-imgs.n5, .post-imgs.n6, .post-imgs.n7, .post-imgs.n8, .post-imgs.n9 { grid-template-columns: repeat(3, 1fr); }

.post-imgs img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.25s;
  background: #fff0f5;
}

.post-imgs img:hover { transform: scale(1.03); }

/* ============================================================
   相册
   ============================================================ */

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  transition: all 0.2s;
}

.chip.active { background: linear-gradient(135deg, var(--primary), #ff9ab8); color: #fff; border-color: transparent; }
.chip:hover:not(.active) { border-color: var(--primary); color: var(--primary-deep); }

.photo-grid { columns: 4 220px; column-gap: 12px; }

.photo-grid figure {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  border: 1px solid var(--line);
  background: #fff0f5;
  transition: transform 0.25s, box-shadow 0.25s;
}

.photo-grid figure:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255, 127, 164, 0.3); }
.photo-grid img { width: 100%; }
.photo-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(180, 60, 100, 0.55));
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-grid figure:hover figcaption { opacity: 1; }

/* ============================================================
   恋爱事件(单行列表 + 展开打卡)
   ============================================================ */

.progress-open { margin: 4px 2px 22px; }

.progress-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.progress-title { font-weight: 800; font-size: 17px; }
.progress-num { color: var(--primary-deep); font-weight: 800; font-size: 22px; }
.progress-num small { color: var(--ink-soft); font-size: 13px; font-weight: 400; }

.progress-bar { height: 12px; background: #ffe4ee; border-radius: 999px; overflow: hidden; margin-top: 14px; }

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb1c8, var(--primary), var(--primary-deep));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  animation: shimmer 2.4s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.progress-tip { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }

.ev-list { display: flex; flex-direction: column; }

.ev-item { border-bottom: 1px dashed #ffd3e0; }
.ev-item:last-child { border-bottom: none; }

.ev-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 6px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14.5px;
  color: var(--ink);
  transition: background 0.15s;
  border-radius: 10px;
}

.ev-row.clickable { cursor: pointer; }
.ev-row.clickable:hover { background: rgba(255, 240, 246, 0.7); }

.ev-idx {
  flex: none;
  width: 26px;
  text-align: center;
  font-size: 12.5px;
  color: #d9a7b5;
  font-variant-numeric: tabular-nums;
}

.ev-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.ev-item.done .ev-check { background: linear-gradient(135deg, var(--primary), #ff9ab8); color: #fff; box-shadow: 0 3px 8px rgba(255, 127, 164, 0.4); }
.ev-item.todo .ev-check { border: 2px dashed #ffb1c8; color: #ffb1c8; font-size: 10px; }

.ev-title { flex: 1; min-width: 0; line-height: 1.5; word-break: break-word; }
.ev-item.done .ev-title { color: var(--ink); }
.ev-item.todo .ev-title { color: var(--ink-soft); }

.ev-right { display: flex; align-items: center; gap: 8px; flex: none; }
.event-tag { background: #fff0f5; border-radius: 999px; padding: 2px 10px; color: var(--primary-deep); font-size: 12px; }
.ev-date { font-size: 12px; color: var(--ink-soft); }
.ev-lock { font-size: 12px; color: #d9a7b5; }
.ev-arrow { font-size: 13px; color: #d9a7b5; width: 14px; text-align: center; }
.ev-arrow.has-detail { color: var(--primary-deep); }

.ev-detail {
  padding: 2px 44px 18px 44px;
  animation: evOpen 0.25s ease;
}

@keyframes evOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.ev-note {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
  background: rgba(255, 240, 246, 0.75);
  border-left: 3px solid #ffb1c8;
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ev-note.muted { color: #c98fa3; font-size: 13px; }

.ev-imgs { display: grid; gap: 8px; margin-top: 10px; }
.ev-imgs.n1 { grid-template-columns: minmax(0, 360px); }
.ev-imgs.n2 { grid-template-columns: repeat(2, 1fr); }
.ev-imgs.n3, .ev-imgs.n4, .ev-imgs.n5, .ev-imgs.n6, .ev-imgs.n7, .ev-imgs.n8, .ev-imgs.n9 { grid-template-columns: repeat(3, 1fr); }

.ev-imgs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: #fff0f5;
}

/* ============================================================
   恋爱相册(相册列表 + 详情)
   ============================================================ */

.album-list { display: flex; flex-direction: column; }

.album-row {
  display: flex;
  gap: 20px;
  padding: 18px 6px;
  border-bottom: 1px dashed #ffd3e0;
  transition: background 0.2s;
  border-radius: 14px;
}

.album-row:hover { background: rgba(255, 240, 246, 0.6); }
.album-row:last-child { border-bottom: none; }

.album-cover {
  flex: none;
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe8f0, #ffd6e4);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(244, 91, 134, 0.16);
}

.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.album-row:hover .album-cover img { transform: scale(1.06); }
.album-cover.noimg { display: flex; align-items: center; justify-content: center; font-size: 40px; }

.album-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.album-title { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.album-row:hover .album-title { color: var(--primary-deep); }

.album-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.album-meta { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.album-more { color: var(--primary-deep); font-weight: 700; margin-left: auto; }

.back-link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.back-link:hover { color: var(--primary-deep); border-color: var(--primary); }

.album-detail-head { margin-bottom: 10px; }
.album-detail-title { font-size: 24px; font-weight: 800; color: var(--ink); }
.album-detail-meta { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.album-detail-desc {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
  background: rgba(255, 240, 246, 0.75);
  border-left: 3px solid #ffb1c8;
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 12px 0 22px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   留言(每人一行,开放式)
   ============================================================ */

.msg-list { display: flex; flex-direction: column; }

.msg-row {
  display: flex;
  gap: 14px;
  padding: 16px 4px;
}

.msg-row + .msg-row { border-top: 1px dashed #ffc9dc; }

.msg-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ffb1c8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(255, 127, 164, 0.3);
}

.msg-main { flex: 1; min-width: 0; }

.msg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.msg-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.msg-date { font-size: 12px; color: #d9a7b5; }
.msg-content { font-size: 14px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; color: var(--ink); }

.msg-form { padding: 22px 24px; }

.msg-form h3 { font-size: 16px; margin-bottom: 14px; }

.form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.form-row input {
  flex: 1;
  min-width: 200px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}

.form-row input:focus, textarea:focus { border-color: var(--primary); }

.msg-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  min-height: 96px;
  resize: vertical;
  outline: none;
  transition: border 0.2s;
}

.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.char-count { font-size: 12px; color: var(--ink-soft); }
.char-count.over { color: #e05656; }

/* ============================================================
   关于(开放式)
   ============================================================ */

.about-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; margin: 6px 0 8px; }

.about-heart {
  font-size: clamp(40px, 5vw, 60px);
  color: #ff3b5c;
  text-align: center;
  animation: heartbeat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 59, 92, 0.55)) drop-shadow(0 6px 12px rgba(244, 91, 134, 0.35));
  align-self: center;
  padding: 0 2px;
}

.about-card { text-align: center; }

.about-card .avatar { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(244, 91, 134, 0.3); }
.about-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary-deep); }
.about-card p { font-size: 14px; line-height: 1.9; color: var(--ink); text-align: left; }

.about-anniv { margin: 26px 0 10px; }
.about-anniv h3, .about-story h3 { font-size: 17px; margin-bottom: 14px; color: var(--primary-deep); }

.about-story { margin-top: 26px; }
.about-story .story { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 2; }

.about-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.about-imgs img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; width: 100%; border: 1px solid var(--line); }

/* ============================================================
   页脚(单行,紧凑)
   ============================================================ */

.footer {
  margin-top: 8px;
  text-align: center;
  padding: 13px 16px;
  background: #ffe9f2;
  border-top: 1px solid #ffc9dc;
}

.foot-line {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.foot-line .icp {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 2px;
}

.foot-line .icp:hover { color: var(--primary-deep); text-decoration: underline; }

/* ---------------- 访问密码门 ---------------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(1000px 500px at 20% 10%, #ffe4ee 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 90%, #ffd6e4 0%, transparent 55%),
    linear-gradient(160deg, #fff6f9, #ffe9f1);
}

.gate-card {
  width: min(400px, 92vw);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #ffd3e0;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(244, 91, 134, 0.25);
  padding: 40px 32px;
  text-align: center;
  animation: gateIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gateIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.gate-lock { font-size: 46px; margin-bottom: 10px; animation: floaty 3s ease-in-out infinite; }

.gate-card h2 { font-size: 20px; margin-bottom: 8px; }
.gate-tip { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }

.gate-row { display: flex; gap: 10px; }
.gate-row input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
}
.gate-row input:focus { border-color: var(--primary); }

.gate-err { margin-top: 12px; color: #e05656; font-size: 13px; }
.gate-hearts { margin-top: 22px; color: var(--primary); letter-spacing: 8px; font-size: 15px; }

/* ---------------- 大图浏览 ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(40, 10, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-body { max-width: 88vw; max-height: 86vh; position: relative; }

.lb-body img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.lb-counter {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  color: #ffc9d8;
  font-size: 13px;
  letter-spacing: 1px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 20px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); font-size: 30px; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 400;
  background: rgba(70, 25, 40, 0.92);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 86vw;
  text-align: center;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
}

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; }
  .nav {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 250, 252, 0.98);
    border-radius: 18px;
    padding: 10px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s;
    z-index: 59;
    overflow-y: auto;
    max-height: calc(100vh - 76px);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a.active::after { display: none; }
  .menu-btn { display: block; margin-left: auto; }

  .hero { height: 250px; gap: 16px; }
  .hero-art { width: 42%; height: 92%; }
  .hero-copy { min-width: 0; width: 52%; }
  .film-intro { min-width: 130px; }

  .photo-grid { columns: 2 140px; }
  .msg-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature { min-height: 265px; }
  .lightbox button { width: 40px; height: 40px; }
  .ev-detail { padding: 2px 20px 16px 24px; }
  .album-row { flex-direction: column; gap: 12px; }
  .album-cover { width: 100%; }
  .about-pair { grid-template-columns: 1fr; gap: 18px; }
  .about-heart { font-size: 42px; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; padding: 0 12px; margin-top: 22px; }
  .feature { min-height: 235px; padding: 32px 7px 12px; border-radius: 22px; }
  .feature > img { height: 112px; }
  .feature .ribbon { font-size: 14px; height: 37px; }
  .feature .ribbon span { width: 35px; height: 35px; font-size: 19px; }
  .film-intro { display: none; }
  .film-track img { width: 46%; min-width: 46%; height: 78px; }
  .film-arrow { flex-basis: 34px; height: 34px; font-size: 26px; line-height: 26px; }
  .hero { height: auto; min-height: 210px; padding: 12px 0 16px; }
  .hero-copy { min-width: 0; width: 56%; }
  .hero-art { width: 40%; height: auto; max-height: 210px; }
  .balloon-title span { font-size: clamp(22px, 6.4vw, 34px); border-width: 2px; }
  .forever { font-size: 22px; }
  .timer-plate { padding: 7px 12px; font-size: 13px; }
}
