:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe4ee;
  --pink-300: #ffa6c9;
  --pink-500: #f46b9d;
  --pink-600: #e04f85;
  --text-main: #4a2e38;
  --text-sub: #8b6774;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  background: linear-gradient(145deg, #fff5f8 0%, #ffe6f0 45%, #fde8f3 100%);
  overflow-x: hidden;
}
#sakura-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.hidden { display: none !important; }
.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 192, 217, 0.55);
  box-shadow: 0 12px 32px rgba(244, 107, 157, 0.12);
}
.btn-pink {
  background: linear-gradient(135deg, #ff85b3, #f46b9d);
  color: #fff; border: none; border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(244, 107, 157, 0.3);
}
.btn-pink:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(244, 107, 157, 0.4); }
.btn-pink.full { width: 100%; padding: 12px; font-size: 15px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.75); color: var(--pink-600);
  border: 1px solid var(--pink-300); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
}
.lock-wrap {
  position: relative; z-index: 2; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lock-card {
  width: 100%; max-width: 390px; border-radius: 28px;
  padding: 36px 28px; text-align: center;
}
.sakura-badge { font-size: 46px; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.lock-card h1 { font-size: 22px; margin-bottom: 8px; }
.lock-tip { font-size: 13px; color: var(--text-sub); margin-bottom: 22px; }
.err-msg { color: #e11d48; font-size: 13px; margin-top: 10px; min-height: 18px; }
input, select, textarea {
  width: 100%; border: 1px solid #ffd1e2; background: rgba(255,255,255,0.9);
  border-radius: 14px; padding: 11px 14px; font-size: 14px; color: var(--text-main);
  outline: none; margin-bottom: 12px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink-500); box-shadow: 0 0 0 3px rgba(244,107,157,.15); }
.app-wrap { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 24px 16px 60px; }
.hero {
  border-radius: 28px; padding: 26px 24px 30px; text-align: center;
  position: relative; margin-bottom: 20px;
}
.top-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.couple-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink-100); color: var(--pink-600);
  padding: 6px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; margin-bottom: 12px;
}
.heart-beat { display: inline-block; animation: beat 1.4s infinite; }
@keyframes beat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.22)} }
.hero h1 { font-size: 26px; margin-bottom: 6px; }
.subtitle { color: var(--text-sub); font-size: 14px; margin-bottom: 18px; }
.timer-box {
  display: inline-block; background: linear-gradient(135deg, #fff0f6, #ffe4ee);
  border: 1px solid #ffc6dc; border-radius: 18px; padding: 12px 22px;
}
.timer-label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.timer-digits { font-size: 18px; font-weight: 700; color: var(--pink-600); letter-spacing: .5px; }
.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.tab-btn {
  background: rgba(255,255,255,0.65); border: 1px solid #ffd1e2; color: var(--text-sub);
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.tab-btn.active { background: var(--pink-500); color: #fff; border-color: var(--pink-500); }
.filter-bar { display: flex; gap: 10px; padding: 12px; border-radius: 20px; margin-bottom: 20px; }
.filter-bar input { margin-bottom: 0; flex: 2; }
.filter-bar select { margin-bottom: 0; flex: 1; }
.timeline { display: flex; flex-direction: column; gap: 18px; }
.entry-card { border-radius: 24px; padding: 22px; transition: transform .2s; }
.entry-card:hover { transform: translateY(-2px); }
.entry-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { background: var(--pink-100); color: var(--pink-600); padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.date { background: #fff; border: 1px solid #ffd1e2; color: var(--text-sub); }
.entry-ops button { background: none; border: none; color: var(--text-sub); font-size: 12px; cursor: pointer; margin-left: 8px; }
.entry-ops button:hover { color: var(--pink-600); }
.entry-title { font-size: 18px; margin-bottom: 8px; }
.entry-body { font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; color: #5c3a47; }
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-top: 14px;
}
.polaroid {
  background: #fff; padding: 6px 6px 14px; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); cursor: zoom-in;
}
.polaroid img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; }
.wish-bar { display: flex; gap: 10px; padding: 12px; border-radius: 20px; margin-bottom: 18px; }
.wish-bar input { margin-bottom: 0; flex: 1; }
.wish-list { display: flex; flex-direction: column; gap: 10px; }
.wish-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: 18px;
}
.wish-left { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; }
.wish-left input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink-500); }
.wish-done { text-decoration: line-through; color: var(--text-sub); }
.modal {
  position: fixed; inset: 0; background: rgba(74, 46, 56, 0.35); z-index: 20;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card { width: 100%; max-width: 520px; border-radius: 26px; padding: 24px; max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-sub); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
label { display: block; font-size: 12px; color: var(--text-sub); }
label input, label select { margin-top: 4px; }
.upload-btn {
  display: inline-block; background: var(--pink-100); color: var(--pink-600);
  padding: 8px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; margin-bottom: 10px;
}
.preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.prev-item { position: relative; width: 72px; height: 72px; }
.prev-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.prev-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: var(--pink-600); color: #fff; font-size: 12px; cursor: pointer;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.82); z-index: 30;
  display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.lightbox img { max-width: 95%; max-height: 92vh; border-radius: 14px; }
.empty-tip { text-align: center; color: var(--text-sub); padding: 40px 20px; border-radius: 24px; }
