/* =====================================
   FilmRoll - 胶卷照片记录
   Apple 风格 · 清透液态玻璃
   ===================================== */

/* ---------- 全局 CSS 变量 ---------- */
:root {
  --bg: #f2f1f6;
  --surface: rgba(255,255,255,.6);
  --text: #1d1d1f;
  --muted: #8e8e93;
  --accent: #a78bfa;
  --accent-glow: rgba(167,139,250,.25);
  --accent-sky: #5e9eff;
  --glass-bg: rgba(255,255,255,.55);
  --glass-border: rgba(0,0,0,.06);
  --glass-border-hover: rgba(0,0,0,.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --shadow-glass: 0 4px 20px rgba(0,0,0,.06), 0 0 0 1px rgba(255,255,255,.8) inset;
  --shadow-glass-hover: 0 12px 40px rgba(0,0,0,.1), 0 0 0 1px rgba(255,255,255,.9) inset;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "ZCOOL KuaiLe", "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* =====================================
   背景光晕层 — Apple 风格渐变光球
   ===================================== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .55;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,.28), transparent 70%);
  top: -15%; left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(147,130,255,.22), transparent 70%);
  top: 50%; right: -12%;
  animation-delay: -7s;
  animation-duration: 24s;
}

.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(130,200,255,.2), transparent 70%);
  bottom: -20%; left: 30%;
  animation-delay: -14s;
  animation-duration: 28s;
}

.orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,180,130,.18), transparent 70%);
  top: 30%; left: 50%;
  animation-delay: -5s;
  animation-duration: 22s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(3%, -2%) scale(1.05); }
  50%      { transform: translate(-2%, 3%) scale(.95); }
  75%      { transform: translate(2%, -1%) scale(1.03); }
}

/* =====================================
   导航栏 — 极致液态玻璃
   ===================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.65);
  backdrop-filter: saturate(200%) blur(40px);
  -webkit-backdrop-filter: saturate(200%) blur(40px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.logo {
  font-family: "ZCOOL KuaiLe", "Nunito", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .3s;
}

.logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .3s;
  padding: .35rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* =====================================
   页面切换动画
   ===================================== */
.page {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
  animation: pageIn .6s var(--ease-out);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
}

/* =====================================
   统计面板 — 液态玻璃卡片
   ===================================== */

/* Hero 引言 */
.hero {
  text-align: center;
  padding: 1rem 1rem 2.5rem;
}

.hero-quote {
  font-family: "ZCOOL KuaiLe", "Nunito", sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  opacity: .7;
  line-height: 1.9;
  letter-spacing: .04em;
  max-width: 520px;
  margin: 0 auto;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem 3rem;
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2.2rem;
  min-width: 120px;
  position: relative;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  box-shadow:
    0 4px 20px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.8);
  border: 1px solid rgba(0,0,0,.05);
}

/* 玻璃卡片顶部光条 */
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255,255,255,.6) 0%,
    transparent 40%,
    transparent 60%,
    rgba(167,139,250,.04) 100%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 36px rgba(0,0,0,.08),
    0 0 0 1px rgba(255,255,255,.9) inset;
  border-color: rgba(0,0,0,.08);
}

.stat-card .number {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.stat-card .label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}

/* =====================================
   月度合集
   ===================================== */
.month-section {
  padding: .5rem 0 3.5rem;
}

.month-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.month-header h2 {
  font-family: "ZCOOL KuaiLe", "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: .01em;
}

.month-header .count {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}

/* =====================================
   横滚画廊
   ===================================== */
.scroll-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.scroll-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: .6rem 0 1rem;
  scrollbar-width: none;
}

.scroll-track::-webkit-scrollbar { display: none; }

/* =====================================
   照片卡片 — 液态玻璃
   ===================================== */
.photo-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  box-shadow:
    0 4px 20px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255,255,255,.5) 0%,
    transparent 50%,
    rgba(167,139,250,.03) 100%);
  pointer-events: none;
  z-index: 2;
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 60px rgba(0,0,0,.1),
    0 0 0 1px rgba(255,255,255,.9) inset;
  border-color: rgba(0,0,0,.1);
}

.photo-card .image-wrapper {
  position: relative;
  overflow: hidden;
}

.photo-card img {
  height: 340px;
  width: auto;
  max-width: 500px;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out);
}

.photo-card:hover img { transform: scale(1.05); }

/* 悬停遮罩 */
.photo-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.15) 40%,
    transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  z-index: 3;
}

.photo-card:hover .overlay { opacity: 1; }

.overlay .overlay-info {
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.overlay .overlay-info span { color: #c4b5fd; }

/* 删除按钮 — 玻璃圆形带红色悬浮 */
.photo-card .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all .35s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 1.1rem;
  font-weight: 300;
}

.photo-card:hover .delete-btn { opacity: 1; }
.photo-card .delete-btn:hover {
  background: rgba(220,38,38,.85);
  border-color: rgba(220,38,38,.6);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: scale(1.1);
}

/* 卡片底部信息 */
.photo-card .info {
  padding: .8rem 1rem;
  position: relative;
  z-index: 2;
}

.photo-card .title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}

.photo-card .meta {
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  gap: .8rem;
  margin-top: .2rem;
  font-weight: 500;
}

/* =====================================
   横滚箭头 — 玻璃圆形
   ===================================== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-65%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s var(--ease-out);
  box-shadow: 0 2px 12px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.7);
}

.arrow:hover {
  background: rgba(255,255,255,.8);
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 8px 28px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-65%) scale(1.08);
}

.arrow:active {
  transform: translateY(-65%) scale(.96);
}

.arrow.l { left: 0; }
.arrow.r { right: 0; }

/* =====================================
   加载 & 空状态
   ===================================== */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 4rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--muted);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.04);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: .2;
  color: var(--muted);
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 .5rem;
  letter-spacing: .01em;
}

.empty-state p {
  font-size: .88rem;
  font-weight: 500;
}

/* 空白月份占位 */
.empty-month-card {
  flex: 0 0 auto;
  width: 220px;
  height: 340px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.3);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px dashed rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  cursor: pointer;
  transition: all .4s var(--ease-out);
  scroll-snap-align: start;
}

.empty-month-card:hover {
  background: rgba(255,255,255,.55);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}

.empty-month-card .empty-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: .5;
  transition: opacity .3s, transform .3s;
}

.empty-month-card:hover .empty-icon {
  opacity: .8;
  transform: scale(1.1);
}

/* 小尺寸版本 — 用于有照片月份的末尾 */
.empty-month-card.small {
  width: 160px;
  height: 340px;
}

.empty-month-card.small .empty-icon {
  width: 36px;
  height: 36px;
}

.empty-month-card.small .empty-text {
  font-size: .72rem;
}

.empty-month-card .empty-text {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .02em;
}

/* 空白卡片 + 气泡行 */
.empty-card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 气泡提示 */
.bubble {
  position: relative;
  background: rgba(167,139,250,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167,139,250,.2);
  border-radius: 20px;
  padding: .55rem 1.1rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  animation: bubblePop .5s var(--ease-spring);
  letter-spacing: .02em;
  align-self: center;
}

.bubble-cheer {
  font-size: .75rem;
  padding: .45rem .95rem;
  background: rgba(167,139,250,.08);
}

@keyframes bubblePop {
  0%   { opacity: 0; transform: scale(.4); }
  50%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* =====================================
   模态框 — 极致液态玻璃
   ===================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
  animation: modalIn .5s var(--ease-out);
}

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

.modal-content {
  max-width: 920px;
  max-height: 88vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr .85fr;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  box-shadow:
    0 32px 120px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.8);
  animation: modalScale .5s var(--ease-out);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-image {
  background: #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info {
  padding: 2.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h3 {
  font-family: "ZCOOL KuaiLe", "Nunito", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: .02em;
}

.modal-info .description {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-info .details {
  display: grid;
  gap: 0;
}

.modal-info .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: .85rem;
}

.modal-info .detail-item .label {
  color: var(--muted);
  font-weight: 500;
}

.modal-info .detail-item .value {
  color: var(--accent);
  font-weight: 600;
}

/* 关闭按钮 */
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,.08);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s var(--ease-out);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.15);
  transform: scale(1.08);
}

.modal-close:active { transform: scale(.94); }

/* =====================================
   添加照片表单 — 液态玻璃卡片
   ===================================== */
.add-form {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  box-shadow:
    0 4px 28px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.7);
}

/* 表单关闭按钮 */
.form-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s var(--ease-out);
  z-index: 2;
  font-family: inherit;
  line-height: 1;
}

.form-close:hover {
  background: rgba(0,0,0,.1);
  color: var(--text);
  transform: scale(1.1);
}

.form-close:active { transform: scale(.92); }

.add-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255,255,255,.5) 0%,
    transparent 50%,
    rgba(167,139,250,.03) 100%);
  pointer-events: none;
}

.add-form h2 {
  font-family: "ZCOOL KuaiLe", "Nunito", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text);
  letter-spacing: .03em;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .4rem;
  font-weight: 500;
  letter-spacing: .01em;
}

/* 输入框 — 半透明液态玻璃 */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s, background .3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0,0,0,.25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(167,139,250,.5);
  background: rgba(255,255,255,.8);
  box-shadow:
    0 0 0 4px rgba(167,139,250,.08),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* 图片预览区 */
.image-preview {
  width: 100%;
  aspect-ratio: 4/3;
  border: 2px dashed rgba(0,0,0,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .35s, background .35s;
  position: relative;
  z-index: 1;
}

.image-preview:hover {
  border-color: rgba(167,139,250,.4);
  background: rgba(167,139,250,.06);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview .placeholder {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}

.image-preview .placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: .6rem;
  opacity: .35;
}

/* 提交按钮 — 浅紫色渐变 */
.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), #c4b5fd);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .4s var(--ease-out);
  margin-top: .5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(167,139,250,.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #c4b5fd, #d8cefd);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(167,139,250,.35);
}

.submit-btn:active {
  transform: translateY(0) scale(.98);
  transition: all .1s;
}

.submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =====================================
   关于页面
   ===================================== */
.about-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  position: relative;
  box-shadow:
    0 4px 28px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.about-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255,255,255,.5) 0%,
    transparent 50%,
    rgba(167,139,250,.03) 100%);
  pointer-events: none;
}

.about-content h2 {
  font-family: "ZCOOL KuaiLe", "Nunito", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: .5rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.about-content .subtitle {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: .92rem;
  position: relative;
  z-index: 1;
}

/* =====================================
   Toast — 玻璃通知条（success / error / warning）
   ===================================== */
.toast-item {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: var(--text);
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 300;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  animation: toastIn .5s var(--ease-out);
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.toast-icon { font-size: 1rem; }

.toast-success {
  border: 1px solid rgba(52,199,89,.25);
}

.toast-success .toast-icon { color: #34c759; }

.toast-error {
  border: 1px solid rgba(255,69,58,.25);
}

.toast-error .toast-icon { color: #ff453a; }

.toast-warning {
  border: 1px solid rgba(255,159,10,.25);
}

.toast-warning .toast-icon { color: #ff9f0a; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =====================================
   图片加载失败兜底
   ===================================== */
.img-error {
  background: rgba(0,0,0,.03);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-lg);
}

.img-error::after {
  content: '🖼';
  font-size: 2rem;
  opacity: .2;
}

/* =====================================
   删除确认模态框
   ===================================== */
.modal-confirm {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 250;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-confirm.active {
  display: flex;
  animation: modalIn .3s var(--ease-out);
}

.confirm-box {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 32px 120px rgba(0,0,0,.1),
    inset 0 1px 0 rgba(255,255,255,.8);
  animation: modalScale .4s var(--ease-out);
}

.confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  color: #ff453a;
  opacity: .8;
}

.confirm-icon svg {
  width: 100%;
  height: 100%;
}

.confirm-box h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .6rem;
  letter-spacing: .01em;
}

.confirm-box p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.confirm-box p span {
  color: var(--text);
  font-weight: 600;
}

.confirm-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
}

.btn-cancel, .btn-danger {
  padding: .7rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .35s var(--ease-out);
  border: none;
  font-family: inherit;
}

.btn-cancel {
  background: rgba(0,0,0,.04);
  color: var(--text);
  border: 1px solid rgba(0,0,0,.08);
}

.btn-cancel:hover {
  background: rgba(0,0,0,.08);
}

.btn-danger {
  background: linear-gradient(135deg, #ff453a, #ff6b5a);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,69,58,.3);
}

.btn-danger:hover {
  box-shadow: 0 6px 24px rgba(255,69,58,.4);
  transform: translateY(-1px);
}

.btn-danger:active { transform: translateY(0) scale(.97); }

/* =====================================
   Footer
   ===================================== */
footer {
  text-align: center;
  padding: 2rem;
  font-size: .73rem;
  color: var(--muted);
  background: transparent;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

footer a:hover { color: var(--text); }

/* =====================================
   响应式适配 — 平板以下 (≤768px)
   ===================================== */
@media (max-width: 768px) {
  /* 导航栏 */
  nav {
    padding: 0 .8rem;
    height: 50px;
  }
  .logo { font-size: 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .76rem; }

  /* 容器 */
  .container { padding: 4.5rem .8rem 2rem; }

  /* Hero */
  .hero { padding: .5rem .5rem 1.5rem; }
  .hero-quote { font-size: .95rem; line-height: 1.7; }

  /* 统计卡片 */
  .stats {
    gap: .7rem;
    padding: 0 .3rem 2rem;
  }
  .stat-card {
    padding: 1rem 1.2rem;
    min-width: 0;
    flex: 1 1 100px;
    border-radius: var(--radius-md);
  }
  .stat-card .number { font-size: 1.6rem; }

  /* 月份标题 — 让气泡换行 */
  .month-header {
    padding: .8rem .8rem .6rem;
    flex-wrap: wrap;
    gap: .4rem;
  }
  .month-header h2 { font-size: 1.15rem; }
  .month-header .count { font-size: .72rem; }
  /* 有照片的月份标题 flex 行内气泡折行 */
  .month-header > div {
    flex-wrap: wrap;
    gap: .4rem !important;
  }

  /* 横滚区域 */
  .scroll-wrapper { padding: 0 .8rem; }
  .scroll-track { gap: .8rem; }

  /* 照片卡片图片 */
  .photo-card img {
    height: 220px;
    max-width: 75vw;
  }

  /* 空白月份卡片 — 缩小 */
  .empty-month-card {
    width: 170px;
    height: 260px;
  }
  .empty-month-card.small {
    width: 140px;
    height: 260px;
  }
  .empty-month-card .empty-icon { width: 36px; height: 36px; }
  .empty-month-card .empty-text { font-size: .72rem; }
  .empty-month-card.small .empty-icon { width: 28px; height: 28px; }
  .empty-month-card.small .empty-text { font-size: .65rem; }

  /* 空白卡片+气泡行 — 气泡缩小+允许折行 */
  .empty-card-row {
    gap: .6rem;
  }
  .bubble {
    font-size: .7rem;
    padding: .45rem .8rem;
    white-space: normal;
    max-width: 50vw;
    text-align: center;
    border-radius: 16px;
  }
  .bubble-cheer {
    font-size: .68rem;
    padding: .38rem .7rem;
    max-width: 45vw;
  }

  /* 横滚箭头 */
  .arrow { display: none; }

  /* 模态框 — 单列全屏 */
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-content {
    grid-template-columns: 1fr;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-image { max-height: 50vh; }
  .modal-info { padding: 1.2rem; }
  .modal-info h3 { font-size: 1.2rem; }
  .modal-close {
    top: .7rem;
    right: .7rem;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  /* 添加表单 */
  .add-form {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }
  .add-form h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }
  .form-group label { font-size: .72rem; }
  .form-group input,
  .form-group textarea {
    padding: .7rem .8rem;
    font-size: .82rem;
  }
  .form-row { grid-template-columns: 1fr; gap: .6rem; }
  .image-preview { aspect-ratio: 3/2; }
  .form-close { top: .7rem; right: .7rem; width: 30px; height: 30px; font-size: 1rem; }
  .submit-btn { padding: .85rem; font-size: .85rem; }

  /* 关于页 */
  .about-content { padding: 2rem 1.2rem; }
  .about-content h2 { font-size: 1.6rem; }

  /* Toast */
  .toast-item {
    bottom: 1rem;
    right: .8rem;
    left: .8rem;
    font-size: .78rem;
    padding: .75rem 1rem;
  }

  /* 删除确认 */
  .modal-confirm { padding: 1rem; }
  .confirm-box { padding: 2rem 1.2rem 1.5rem; }
  .confirm-actions { flex-direction: column; }
  .btn-cancel, .btn-danger { width: 100%; padding: .75rem; }
}

/* =====================================
   手机小屏 (≤480px)
   ===================================== */
@media (max-width: 480px) {
  .container { padding: 4.2rem .6rem 1.5rem; }
  .stats { gap: .5rem; }
  .stat-card { padding: .8rem .8rem; }

  .photo-card img {
    height: 180px;
    max-width: 70vw;
  }

  .empty-month-card {
    width: 140px;
    height: 220px;
  }
  .empty-month-card.small {
    width: 120px;
    height: 220px;
  }

  .bubble {
    font-size: .65rem;
    padding: .38rem .65rem;
    max-width: 55vw;
    border-radius: 14px;
  }
  .bubble-cheer { font-size: .62rem; max-width: 48vw; }

  .month-header h2 { font-size: 1.05rem; }

  .hero-quote { font-size: .85rem; }

  .nav-links { gap: .7rem; }
  .nav-links a { font-size: .7rem; }

  .add-form { padding: 1.2rem .8rem; }
}
