/* ========== 基础样式 ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  color: #374151;
  min-height: 100vh;
  background-image: linear-gradient(135deg, #fff0f3, #f5f0ff 50%, #eef2ff);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }
ul { list-style: none; }

::selection {
  background-color: rgba(255, 107, 138, 0.3);
  color: #cc0033;
}

/* ========== 自定义滚动条 ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 107, 138, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 107, 138, 0.5); }

/* ========== 玻璃态效果 ========== */
.glass-strong {
  background: hsla(0, 0%, 100%, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid hsla(0, 0%, 100%, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.glass-card {
  background: hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: hsla(0, 0%, 100%, 0.3);
  border-color: hsla(0, 0%, 100%, 0.4);
  box-shadow: 0 8px 32px rgba(255, 107, 138, 0.1);
  transform: translateY(-2px);
}

.glass-nav {
  background: hsla(0, 0%, 100%, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.15);
}

/* ========== 动画 ========== */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

@keyframes jump {
  0% { transform: translateY(0) scaleY(1) scaleX(1); }
  10% { transform: translateY(4px) scaleY(0.85) scaleX(1.1); }
  20% { transform: translateY(4px) scaleY(0.85) scaleX(1.1); }
  35% { transform: translateY(-30px) scaleY(1.1) scaleX(0.95); }
  50% { transform: translateY(-35px) scaleY(1.05) scaleX(1); }
  65% { transform: translateY(-20px) scaleY(1) scaleX(1); }
  80% { transform: translateY(0) scaleY(0.9) scaleX(1.08); }
  90% { transform: translateY(-3px) scaleY(1.02) scaleX(0.98); }
  100% { transform: translateY(0) scaleY(1) scaleX(1); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-10px); }
  75% { transform: translateY(-30px) translateX(5px); }
}

.animate-heartbeat { animation: heartbeat 1.5s ease-in-out infinite; }
.animate-jump { animation: jump 3s ease-in-out infinite; }
.animate-sway { animation: sway 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ========== 浮动装饰层 ========== */
.decoration-layer { position: fixed; pointer-events: none; }

.bg-overlay { inset: 0; z-index: 0; }
.bg-overlay img { width: 100%; height: 100%; object-fit: cover; }
.bg-overlay .mobile { display: none; }
.bg-overlay .desktop { display: block; }

.grass-bottom { left: 0; right: 0; bottom: 0; z-index: 2; }
.grass-bottom img { width: 100%; height: auto; }
.grass-bottom .mobile { display: none; }

.bush-right { right: 0; bottom: 40%; z-index: 2; }
.bush-right img { width: 7rem; height: auto; }

.usagi-stump { right: 6%; bottom: 5rem; z-index: 2; position: fixed; pointer-events: none; }
.usagi-stump .usagi {
  position: absolute; top: calc(-3rem + 9px); left: calc(-0.5rem + 7px);
  width: 4rem; height: auto; animation: jump 3s ease-in-out infinite;
  transform-origin: bottom;
}
.usagi-stump .stump { width: 13rem; height: auto; }

.yoroi-duo { left: 18%; bottom: 13rem; z-index: 3; position: fixed; pointer-events: none; }
.yoroi-duo .sprite-wrapper { overflow: hidden; width: 8rem; }
.yoroi-duo .sprite-wrapper img { width: 200%; max-width: none; display: block; height: auto; }

.foot-characters { left: 50%; transform: translateX(-50%); bottom: 2rem; z-index: 3; position: fixed; pointer-events: none; }
.foot-characters .foot-row { display: flex; align-items: flex-end; gap: 0.5rem; }
.foot-characters .sprite-wrapper { overflow: hidden; width: 4.5rem; }
.foot-characters .sprite-wrapper img { width: 200%; max-width: none; display: block; height: auto; }

.kuri-duo { right: 25%; bottom: 6rem; z-index: 3; position: fixed; pointer-events: none; }
.kuri-duo .sprite-wrapper { overflow: hidden; width: 3.5rem; }
.kuri-duo .sprite-wrapper img { width: 200%; max-width: none; display: block; height: auto; }

.hachiware-char { left: 12rem; bottom: 5.75rem; z-index: 3; position: fixed; pointer-events: none; }
.hachiware-char img { width: 8rem; height: auto; animation: sway 3s ease-in-out infinite; transform-origin: bottom; }

.chiikawa-char { right: 5rem; bottom: 47%; z-index: 3; position: fixed; pointer-events: none; }
.chiikawa-char img { width: 8rem; height: auto; animation: sway 3s ease-in-out infinite; transform-origin: bottom; }

.tree-left { left: 0; bottom: 0; z-index: 4; position: fixed; pointer-events: none; }
.tree-left img { width: 20rem; height: auto; }

.tree-right { right: 0; bottom: 0; z-index: 4; position: fixed; pointer-events: none; }
.tree-right img { width: 14rem; height: auto; }

/* ========== 顶部导航 ========== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s; background: transparent;
}
.top-nav .nav-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
}
.top-nav .logo { display: flex; align-items: center; gap: 0.625rem; }
.top-nav .logo img {
  width: 2rem; height: 2rem; border-radius: 0.5rem; object-fit: cover;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: box-shadow 0.3s;
}
.top-nav .logo:hover img { box-shadow: 0 0 10px rgba(255,107,138,0.25); }
.top-nav .logo span {
  font-size: 1rem; font-weight: 600; color: #1f2937; letter-spacing: 0.025em;
}
.top-nav .nav-links { display: flex; align-items: center; gap: 0.25rem; }
.top-nav .nav-links a {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem; border-radius: 0.75rem;
  font-size: 0.875rem; color: #4b5563;
  transition: all 0.3s;
}
.top-nav .nav-links a:hover {
  color: #ff3366; background: hsla(0,0%,100%,0.1);
}
.top-nav .nav-links a svg { width: 1rem; height: 1rem; }
.hamburger {
  display: none; padding: 0.5rem; border-radius: 0.75rem;
  transition: background 0.3s;
}
.hamburger:hover { background: hsla(0,0%,100%,0.1); }
.hamburger svg { width: 1.25rem; height: 1.25rem; color: #ff6b8a; }

/* ========== 底部导航（移动端） ========== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: none;
  background: hsla(0,0%,100%,0.4); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0 0.5rem; padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .bottom-nav-inner {
  display: flex; align-items: center; justify-content: space-around; height: 3rem;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 0.125rem;
  padding: 0.375rem 0.75rem; border-radius: 0.5rem; transition: all 0.15s;
  color: #9ca3af;
}
.bottom-nav a:hover { color: #4b5563; }
.bottom-nav a.active { color: #ff6b8a; }
.bottom-nav a svg { width: 1.25rem; height: 1.25rem; }
.bottom-nav a.active svg { fill: rgba(255,107,138,0.2); }
.bottom-nav a span { font-size: 10px; font-weight: 500; }

/* ========== 主内容区 ========== */
main {
  position: relative; z-index: 10; padding-top: 4rem; min-height: 100vh;
}

.page-container {
  max-width: 32rem; margin: 0 auto; padding: 2rem 1.25rem;
}

/* ========== 首页 ========== */
.hero-section {
  position: relative; height: calc(100vh - 4rem); overflow: hidden;
}
.hero-inner {
  max-width: 32rem; margin: 0 auto; padding: 0.75rem 1rem 0;
  display: flex; flex-direction: column; align-items: center;
}
.hero-subtitle {
  font-size: 13px; letter-spacing: 0.2em; color: rgba(255,107,138,0.8);
  margin-bottom: 0.5rem;
  transition: opacity 0.7s;
}
.hero-avatars {
  display: flex; align-items: flex-end; gap: 2.45rem; margin-bottom: 0.5rem;
  transition: all 0.7s;
}
.avatar-block { text-align: center; }
.avatar-block .avatar-img {
  width: 3.65rem; height: 3.65rem; border-radius: 50%; overflow: hidden;
  margin-bottom: 0.125rem; box-shadow: 0 0 0 2px hsla(0,0%,100%,0.5);
}
.avatar-block .avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-block p { font-size: 0.9375rem; font-weight: 500; color: #374151; }

/*margin-bottom: 1rem — 控制爱心的垂直位置，改大往上，改小往下
width/height: 0.875rem — 控制爱心大小
animation: heartbeat — 跳动动画，在第 75 行定义*/
.heart-icon {
  width: 1.5rem; height: 1.5rem; color: #ff6b8a; fill: #ff6b8a;
  margin-bottom: 2.0rem; animation: heartbeat 1.5s ease-in-out infinite;
}
.heart-icon svg { width: 100%; height: 100%; }
.hero-avatars .heart-icon {
  margin-left: 0.2rem;
}


.day-counter { text-align: center; margin-bottom: 0.25rem; transition: all 0.7s; }
.day-counter .label { font-size: 13px; color: #6b7280; margin-bottom: 0.125rem; }
.day-counter .days {
  font-size: 2.8rem; font-weight: 700; color: #374151;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.day-counter .unit { font-size: 13px; color: #6b7280; margin-top: 0.125rem; }

.live-clock {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 13px; color: #4b5563; font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem; transition: opacity 0.7s;
}
.live-clock span { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

.names-date {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 13px; color: #9ca3af; margin-bottom: 0.5rem;
  transition: opacity 0.7s;
}
.names-date .heart-sm {
  width: 0.75rem; height: 0.75rem; color: #ff6b8a; fill: #ff6b8a;
}
.names-date .dot { margin: 0 0.125rem; }

/* 即将到来卡片 */
.upcoming-card {
  width: 100%; margin-bottom: 0.75rem;
  padding: 0.625rem; transition: all 0.7s;
}
.upcoming-card .card-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #6b7280; margin-bottom: 0.375rem;
}
.upcoming-card .event-list { display: flex; flex-direction: column; gap: 0.375rem; }
.upcoming-card .event-item {
  display: flex; align-items: center; justify-content: space-between;
}
.upcoming-card .event-left {
  display: flex; align-items: center; gap: 0.625rem;
}
.upcoming-card .event-icon { width: 0.875rem; height: 0.875rem; color: rgba(255,107,138,0.6); position: relative; top: -1px; display: inline-flex; align-items: center; justify-content: center; }
.upcoming-card .event-icon svg { width: 100%; height: 100%; }
.upcoming-card .event-name { font-size: 0.75rem; color: #4b5563; }
.upcoming-card .event-days {
  font-size: 0.75rem; font-weight: 600; color: #374151;
  font-variant-numeric: tabular-nums;
}

/* 爱情语录 */
.love-quote { text-align: center; transition: opacity 0.7s; }
.love-quote .quote-text {
  font-size: 0.75rem; color: #4b5563; font-style: italic;
}
.love-quote .refresh-btn {
  margin-top: 0.5rem; font-size: 10px; color: rgba(255,107,138,0.5);
  display: inline-flex; align-items: center; gap: 0.25rem;
  transition: color 0.15s;
}
.love-quote .refresh-btn:hover { color: #ff6b8a; }
.love-quote .refresh-btn svg { width: 0.625rem; height: 0.625rem; }

/* ========== 时间线（故事页） ========== */
.timeline { position: relative; }
.timeline .line {
  position: absolute; left: 1.25rem; top: 0; bottom: 0; width: 1px;
  background: rgba(255,194,209,0.5);
}
.timeline .events { display: flex; flex-direction: column; gap: 2rem; }
.timeline .event-item {
  position: relative; padding-left: 3rem;
  opacity: 0; transform: translateX(-20px);
  transition: all 0.7s;
}
.timeline .event-item.visible {
  opacity: 1; transform: translateX(0);
}
.timeline .dot {
  position: absolute; left: 0.75rem; top: 0.25rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: white; border: 2px solid #ffa4b6; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.timeline .event-card { padding: 1rem; }
.timeline .event-header {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem;
}
.timeline .event-icon { width: 1rem; height: 1rem; }
.timeline .event-date { font-size: 0.75rem; color: #6b7280; }
.timeline .event-title {
  font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.25rem;
}
.timeline .event-desc {
  font-size: 0.75rem; color: #6b7280; line-height: 1.625;
}
.timeline .footer {
  text-align: center; margin-top: 3rem; margin-bottom: 1.5rem;
  opacity: 0; transition: all 0.7s;
}
.timeline .footer.visible { opacity: 1; }
.timeline .footer p:first-child {
  font-size: 1rem; font-weight: 600; color: #4b5563; margin-bottom: 0.25rem;
}
.timeline .footer p:last-child { font-size: 0.75rem; color: #9ca3af; }

/* ========== 占位页（日记/相册） ========== */
.coming-soon {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh; text-align: center;
  transition: all 0.7s;
}
.coming-soon .icon-circle {
  width: 4rem; height: 4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.coming-soon .icon-circle svg { width: 1.75rem; height: 1.75rem; color: rgba(255,107,138,0.6); }
.coming-soon h1 {
  font-size: 1.25rem; font-weight: 700; color: #374151; margin-bottom: 0.5rem;
}
.coming-soon .subtitle { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.25rem; }
.coming-soon .hint { font-size: 0.75rem; color: #9ca3af; }

/* ========== 祝福纸条页 ========== */
.notes-page .page-title { text-align: center; margin-bottom: 2rem; }
.notes-page .page-title h1 {
  font-size: 1.5rem; font-weight: 700; color: #374151; margin-bottom: 0.5rem;
}
.notes-page .page-title p { font-size: 0.875rem; color: #6b7280; }

.notes-form { margin-bottom: 2rem; }
.notes-form .form-row {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.notes-form input.name-input {
  width: 6rem; background: hsla(0,0%,100%,0.5);
  border: 1px solid rgba(229,231,235,0.5); border-radius: 0.5rem;
  padding: 0.25rem 0.625rem; font-size: 0.75rem; color: #374151;
  outline: none; transition: box-shadow 0.15s;
}
.notes-form input.name-input:focus {
  box-shadow: 0 0 0 1px rgba(255,107,138,0.3);
}
.notes-form .label-text { font-size: 0.75rem; color: #6b7280; }
.notes-form .target-btn {
  font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 9999px;
  transition: all 0.15s;
}
.notes-form .target-btn.active-boy {
  background: #dbeafe; color: #2563eb;
}
.notes-form .target-btn.active-girl {
  background: #fce7f3; color: #db2777;
}
.notes-form .target-btn.inactive {
  background: #f3f4f6; color: #6b7280;
}
.notes-form .textarea-row { display: flex; gap: 0.5rem; }
.notes-form textarea {
  flex: 1; background: hsla(0,0%,100%,0.5);
  border: 1px solid rgba(229,231,235,0.5); border-radius: 0.75rem;
  padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #374151;
  resize: none; outline: none; transition: box-shadow 0.15s; min-height: 3rem;
}
.notes-form textarea:focus { box-shadow: 0 0 0 1px rgba(255,107,138,0.3); }
.notes-form .send-btn {
  align-self: flex-end; padding: 0.5rem 0.75rem;
  background: rgba(255,107,138,0.8); color: white; border-radius: 0.75rem;
  transition: all 0.15s;
}
.notes-form .send-btn:hover { background: #ff6b8a; }
.notes-form .send-btn:disabled { opacity: 0.4; cursor: default; }
.notes-form .send-btn svg { width: 1rem; height: 1rem; }
.notes-form .char-count {
  font-size: 10px; color: #9ca3af; text-align: right; margin-top: 0.25rem;
}

.notes-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.note-card { padding: 1rem; }
.note-card .note-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem;
}
.note-card .note-name { font-size: 0.875rem; font-weight: 500; color: #374151; }
.note-card .note-target {
  font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 9999px;
}
.note-card .note-target.boy { background: #dbeafe; color: #2563eb; }
.note-card .note-target.girl { background: #fce7f3; color: #db2777; }
.note-card .note-message { font-size: 0.875rem; color: #4b5563; line-height: 1.625; }
.note-card .note-time { font-size: 10px; color: #9ca3af; margin-top: 0.5rem; }

.loading-text { text-align: center; font-size: 0.75rem; color: #9ca3af; }
.notes-footer { text-align: center; font-size: 10px; color: #9ca3af; }

/* ========== 关于我们页 ========== */
.about-page .page-title { text-align: center; margin-bottom: 2.5rem; }
.about-page .page-title h1 {
  font-size: 1.5rem; font-weight: 700; color: #374151; margin-bottom: 0.5rem;
}
.about-page .page-title p { font-size: 0.875rem; color: #6b7280; }

.couple-card { margin-bottom: 1.5rem; }
.couple-card .couple-avatars {
  display: flex; align-items: center; justify-content: space-around; margin-bottom: 1.5rem;
}
.couple-card .person { text-align: center; }
.couple-card .person .emoji-circle {
  width: 4rem; height: 4rem; border-radius: 50%; margin: 0 auto 0.5rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.couple-card .person p { font-size: 0.875rem; font-weight: 600; color: #374151; }
.couple-card .heart-icon { width: 1.25rem; height: 1.25rem; color: #ff6b8a; fill: #ff6b8a; }

.couple-card .info-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.couple-card .info-item { display: flex; align-items: center; gap: 0.625rem; }
.couple-card .info-item svg { width: 1rem; height: 1rem; color: rgba(255,107,138,0.6); flex-shrink: 0; }
.couple-card .info-item span { color: #4b5563; }

.profile-card { margin-bottom: 1.5rem; }
.profile-card h2 {
  font-size: 0.875rem; font-weight: 600; color: #374151;
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.profile-card h2 .emoji { font-size: 1.125rem; }
.profile-card .profile-info {
  display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem;
}
.profile-card .profile-item { display: flex; align-items: center; gap: 0.625rem; }
.profile-card .profile-item svg { width: 0.875rem; height: 0.875rem; color: rgba(255,107,138,0.6); flex-shrink: 0; }
.profile-card .profile-item span { color: #6b7280; }

.about-quote {
  text-align: center; margin: 1.5rem 0;
  transition: opacity 0.7s;
}
.about-quote p {
  font-size: 0.875rem; color: #6b7280; font-style: italic;
}

.promises-card { margin-bottom: 1.5rem; }
.promises-card h2 {
  font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.75rem;
}
.promises-card ul { display: flex; flex-direction: column; gap: 0.5rem; }
.promises-card li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.75rem; color: #6b7280; line-height: 1.625;
}
.promises-card li .check { color: #ff6b8a; margin-top: 0.125rem; flex-shrink: 0; }
.promises-card li.done span { text-decoration: line-through; color: #9ca3af; }

.about-footer {
  text-align: center; margin-top: 1rem; margin-bottom: 1.5rem;
  font-size: 0.75rem; color: #9ca3af;
  transition: opacity 0.7s;
}

/* ========== 页面标题通用 ========== */
.page-header { text-align: center; margin-bottom: 2rem; }
.page-header h1 {
  font-size: 1.5rem; font-weight: 700; color: #374151; margin-bottom: 0.5rem;
}
.page-header p { font-size: 0.875rem; color: #6b7280; }

/* ========== 恋爱日记页 ========== */
.diary-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.diary-card { padding: 1.25rem; position: relative; }
.diary-author {
  font-size: 0.75rem; color: #ff6b8a; text-align: right; margin-top: 0.75rem;
  display: block;
}
.diary-meta {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.diary-date {
  font-size: 0.75rem; color: #9ca3af; font-variant-numeric: tabular-nums;
}
.diary-mood {
  font-size: 0.6875rem; padding: 0.125rem 0.5rem; border-radius: 9999px;
  background: rgba(255,107,138,0.1); color: #ff6b8a;
}
.diary-title {
  font-size: 1rem; font-weight: 600; color: #374151; margin-bottom: 0.5rem;
}
.diary-content {
  font-size: 0.875rem; color: #6b7280; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.diary-empty, .album-empty {
  text-align: center; padding: 3rem 0; font-size: 0.875rem; color: #9ca3af;
}

/* ========== 甜蜜相册页 ========== */
.album-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; margin-bottom: 2rem;
}
.album-item {
  position: relative; border-radius: 0.75rem; overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
}
.album-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.album-item:hover img { transform: scale(1.05); }
.album-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 0.625rem 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  color: white;
}
.album-overlay .album-author {
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.125rem;
  display: block;
}
.album-overlay p {
  font-size: 0.6875rem; opacity: 0.8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 照片灯箱 */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; transition: opacity 0.3s;
  cursor: pointer;
}
.lightbox-overlay.show { opacity: 1; }
.lightbox-content {
  max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
  cursor: default;
}
.lightbox-content img {
  max-width: 100%; max-height: 75vh;
  border-radius: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  object-fit: contain;
}
.lightbox-info {
  margin-top: 1rem; text-align: center; color: white;
}
.lightbox-info h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem;
}
.lightbox-info p {
  font-size: 0.8125rem; opacity: 0.7;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .top-nav .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 4rem; left: 0; right: 0;
    background: hsla(0,0%,100%,0.2); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 1rem; gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .top-nav .nav-links.open { display: flex; }
  .top-nav .nav-links a {
    padding: 0.75rem 1rem; border-radius: 0.5rem;
    font-size: 0.9375rem; width: 100%;
  }
  .hamburger { display: block; }
  .bottom-nav { display: block; }
  .bush-right img { width: 5rem; }
  .usagi-stump { right: 8%; bottom: 3rem; }
  .usagi-stump .usagi { width: 2.5rem; }
  .usagi-stump .stump { width: 6rem; }
  .yoroi-duo { left: 18%; bottom: 9rem; }
  .yoroi-duo .sprite-wrapper { width: 4.5rem; }
  .foot-characters { bottom: 1rem; }
  .foot-characters .sprite-wrapper { width: 2.5rem; }
  .kuri-duo { right: 30%; bottom: 4rem; }
  .kuri-duo .sprite-wrapper { width: 2rem; }
  .hachiware-char { left: 6rem; bottom: calc(3.25rem - 4px); }
  .hachiware-char img { width: 4rem; }
  .chiikawa-char { right: 2rem; bottom: 14rem; }
  .chiikawa-char img { width: 4rem; }
  .tree-left img { width: 10rem; }
  .tree-right img { width: 7rem; }
  .hero-inner { padding-top: 0.75rem; }
  .hero-subtitle { font-size: 12px; }
  .hero-avatars { gap: 1.25rem; }
  .avatar-block .avatar-img { width: 2.75rem; height: 2.75rem; }
  .day-counter .days { font-size: 2.25rem; }
  .upcoming-card { padding: 0.625rem; }
  .bg-overlay .desktop { display: none; }
  .bg-overlay .mobile { display: block; }
  .grass-bottom .desktop { display: none; }
  .grass-bottom .mobile { display: block; width: 140%; margin-left: -20%; }
}
