/* ============ 基础 ============ */
:root {
  --pink: #ff7eb3;
  --pink-deep: #ff4d8d;
  --rose: #ffd1dc;
  --cream: #fff7fa;
  --text: #5a3d4e;
  --text-light: #9a7d8c;
  --shadow: 0 10px 30px rgba(255, 77, 141, 0.15);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 属性优先级最高，防止被 display:flex 等规则覆盖 */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #ffe3ec 0%, #ffd6e7 30%, #ffeef5 60%, #ffdfd0 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 110px;
  position: relative;
  z-index: 2;
}

.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============ 飘落爱心 ============ */
#hearts-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.fall-heart {
  position: absolute;
  top: -40px;
  color: rgba(255, 126, 179, 0.5);
  animation: fall linear infinite;
  user-select: none;
}

@keyframes fall {
  0%   { transform: translateY(-40px) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ============ 顶部恋爱计时 ============ */
.hero {
  padding: 28px 20px 22px;
  text-align: center;
  animation: pop-in 0.6s ease both;
}

/* 页面最顶层的版本角标（小而淡，不抢戏） */
.hero { position: relative; }
.version-tag {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 126, 179, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
  pointer-events: none;
}

@keyframes pop-in {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.hero-names {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-heart {
  color: var(--pink-deep);
  font-size: 22px;
  animation: heartbeat 1.2s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.35); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.25); }
}

.counter-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 3px;
}

.counter-days {
  font-size: 58px;
  font-weight: 800;
  color: var(--pink-deep);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(255, 77, 141, 0.25);
}

.counter-days small {
  font-size: 18px;
  font-weight: 600;
  margin-left: 6px;
  color: var(--pink);
}

.counter-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.hero-meta {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-light);
}

.hero-meta .dot { margin: 0 8px; }

/* ============ 纪念日 ============ */
.anniv {
  margin: 14px 12px 0;
  padding: 14px 16px;
  border-radius: 20px;
}

.anniv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anniv-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.anniv-add-btn {
  border: none;
  background: rgba(255, 126, 179, 0.12);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.anniv-add-btn:hover { background: rgba(255, 126, 179, 0.25); }

.anniv-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.anniv-form input[type="text"] { flex: 1 1 120px; min-width: 0; }
.anniv-form input[type="date"] { flex: 1 1 120px; min-width: 0; }

.anniv-save-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  cursor: pointer;
}

/* 第一行：置顶“在一起”（与其他行等大） */

/* 最近纪念日迷你卡（模拟 hero 毛玻璃风格，三色） */
.anniv-minis {
  margin: 12px 12px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.anniv-mini {
  border-radius: 18px;
  padding: 11px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.anniv-mini.m0 { background: rgba(255, 189, 209, 0.55); }
.anniv-mini.m1 { background: rgba(255, 226, 180, 0.55); }
.anniv-mini.m2 { background: rgba(214, 199, 255, 0.55); }
.anniv-mini.today { background: rgba(255, 197, 141, 0.6); }

.anniv-mini .mini-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anniv-mini .mini-count { font-size: 16px; font-weight: 800; color: var(--pink-deep); }
.anniv-mini.today .mini-count { color: #d95c00; }

.anniv-mini .mini-date { font-size: 11px; color: var(--text-light); }

/* 展开全部 / 收起 */
.anniv-more {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 展开后的完整列表（带删除） */
.anniv-all {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anniv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 209, 220, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
}

.anniv-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anniv-date {
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}

.anniv-count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-radius: 999px;
  padding: 4px 10px;
}

.anniv-del {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #b98a94;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.anniv-del:hover { color: #e0566f; }

/* ============ 标签页 ============ */
.tabs {
  display: flex;
  gap: 10px;
  margin: 18px 2px 14px;
  padding-right: 64px; /* 给右下角「写日记」悬浮按钮留位，避免压住心愿 tab */
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 77, 141, 0.08);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.35);
  transform: translateY(-1px);
}

/* ============ 日记列表 ============ */
.diary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diary-card {
  padding: 18px;
  animation: pop-in 0.4s ease both;
  position: relative;
  overflow: hidden;
}

.diary-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-radius: 4px 0 0 4px;
}

.diary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.diary-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-deep);
}

.diary-author {
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-radius: 999px;
  padding: 3px 10px;
}

.diary-mood {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.diary-text {
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.diary-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.diary-photos img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.18);
}

.diary-photos img:hover { transform: scale(1.06); }

/* ============ 当前身份 ============ */
.me-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.me-chip {
  font-size: 12.5px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 126, 179, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
}

.logout-btn {
  border: none;
  background: transparent;
  color: var(--pink-deep);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 6px;
  white-space: nowrap;
}

/* ============ 评论区 ============ */
.comment-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-item {
  background: rgba(255, 209, 220, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.comment-del {
  margin-left: auto;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #b98a94;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 8px;
}

.comment-del:hover { color: #e0566f; background: rgba(224, 86, 111, 0.08); }

.comment-name {
  font-weight: 700;
  color: var(--pink-deep);
  margin-right: 8px;
  font-size: 13px;
}

.comment-bar { margin-top: 10px; }

.comment-toggle {
  border: none;
  background: rgba(255, 126, 179, 0.12);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-toggle:hover { background: rgba(255, 126, 179, 0.25); }

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-input-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 12px;
}

.send-comment-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  cursor: pointer;
}

/* ============ 相册 ============ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.album-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.15);
}

.album-grid img:hover { transform: scale(1.04); }

/* ============ 空状态 ============ */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 2;
}

.empty-emoji { font-size: 52px; margin-bottom: 10px; }

/* ============ 写日记按钮 ============ */
.fab {
  position: fixed;
  right: 22px;
  bottom: 30px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.45);
  transition: transform 0.2s ease;
  z-index: 30;
}

.fab:hover { transform: scale(1.1) rotate(8deg); }

/* ============ 弹窗 ============ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--kb, 0px); /* 键盘弹出时抬到键盘上沿，输入框不被遮挡 */
  background: rgba(90, 61, 78, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  animation: fade-in 0.25s ease;
}

@media (min-width: 640px) {
  .modal { align-items: center; padding: 20px; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: min(92vh, 100%);
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 252, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 24px 24px 0 0;
  animation: slide-up 0.3s ease both;
}

@media (min-width: 640px) {
  .modal-card { border-radius: 24px; }
}

/* 键盘弹出：聚焦的输入框由 JS 平移到紧贴键盘上沿，遮罩淡化 */
html.kb-open .modal {
  align-items: flex-start;
  background: rgba(90, 61, 78, 0.22);
}
html.kb-open .modal-card {
  animation: none; /* 关闭入场动画，让 JS 设置的 transform 生效 */
  border-radius: 16px;
  margin-top: calc(8px + env(safe-area-inset-top));
  max-height: calc(100% - 16px);
  box-shadow: 0 -6px 24px rgba(90, 61, 78, 0.18);
}
html.kb-open .lock-emoji,
html.kb-open .lock-card h2,
html.kb-open .lock-card .setup-tip { display: none; }
html.kb-open .lock-card { padding-top: 14px; }
html.kb-open .modal-card input,
html.kb-open .modal-card textarea { position: relative; z-index: 1; }

@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h2 { font-size: 19px; color: var(--pink-deep); }

.close-btn {
  border: none;
  background: rgba(255, 126, 179, 0.15);
  color: var(--pink-deep);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.form-row { margin-bottom: 16px; }

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

input[type="text"], input[type="tel"], input[type="password"], input[type="date"], textarea {
  width: 100%;
  border: 1.5px solid rgba(255, 126, 179, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 126, 179, 0.15);
}

textarea { resize: vertical; }

input[type="file"] { font-size: 13px; color: var(--text-light); }

.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-item {
  border: 1.5px solid rgba(255, 126, 179, 0.3);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mood-item.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.3);
}

.author-picker { display: flex; gap: 10px; }

.author-item {
  flex: 1;
  border: 1.5px solid rgba(255, 126, 179, 0.3);
  background: #fff;
  border-radius: 14px;
  padding: 10px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.author-item.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  border-color: transparent;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.photo-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(255, 77, 141, 0.2);
}

.primary-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 77, 141, 0.35);
  transition: transform 0.15s ease, opacity 0.2s ease;
  margin-top: 4px;
}

.primary-btn:hover { transform: translateY(-1px); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.setup-tip {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ============ 登录 ============ */
.code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.code-row input { flex: 1; min-width: 0; }

.send-code-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  cursor: pointer;
  white-space: nowrap;
}

.send-code-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.mock-code-tip {
  font-size: 13px;
  line-height: 1.7;
  color: #8a6d1a;
  background: #fff3cd;
  border: 1px dashed #ffe08a;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* ============ 口令锁（历史样式，登录弹窗复用） ============ */
.lock-card { text-align: center; max-width: 380px; }

.lock-emoji { font-size: 46px; margin-bottom: 8px; }

.lock-card h2 { font-size: 18px; color: var(--pink-deep); margin-bottom: 6px; }

.lock-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.lock-input::placeholder { letter-spacing: normal; font-weight: 400; font-size: 15px; }

/* ============ 今日心情 ============ */
.daily-mood { margin-top: 16px; padding: 16px; }
.dm-head { font-size: 15px; font-weight: 700; color: var(--pink-deep); margin-bottom: 12px; }
.dm-body { display: flex; gap: 10px; }
.dm-cell {
  flex: 1;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  border: 1.5px dashed rgba(255, 126, 179, 0.45);
  background: rgba(255, 255, 255, 0.55);
  font-family: inherit;
}
.dm-cell.mine { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.dm-cell.mine.empty:hover,
.dm-cell.mine.empty:active { transform: translateY(-2px); box-shadow: var(--shadow); }
.dm-cell.set {
  border-style: solid;
  border-color: rgba(255, 126, 179, 0.5);
  background: linear-gradient(135deg, rgba(255, 126, 179, 0.12), rgba(255, 77, 141, 0.10));
  color: var(--text);
}
.mood-card .setup-tip { margin-bottom: 14px; }
.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mood-grid .dm-choice {
  padding: 12px 4px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 126, 179, 0.35);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.mood-grid .dm-choice:hover,
.mood-grid .dm-choice:active {
  background: rgba(255, 126, 179, 0.14);
  transform: scale(1.05);
}

/* ============ 独立相册 ============ */
.album-upload-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.album-upload-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 126, 179, 0.4);
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--pink-deep);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.album-upload-btn:active { background: rgba(255, 126, 179, 0.14); }
.album-upload-btn.busy { pointer-events: none; opacity: 0.6; }
/* file input 视觉隐藏但保留可交互性（display:none 会让 iOS 拦截程序化点击） */
.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}
.lightbox-delete {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(90, 61, 78, 0.85);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  z-index: 1;
}

/* ============ 心愿单 ============ */
.wish-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.wish-input-row input {
  flex: 1;
  border: 1.5px solid rgba(255, 126, 179, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}
.wish-input-row input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 126, 179, 0.15);
}
.wish-add-btn {
  padding: 0 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.wish-add-btn:disabled { opacity: 0.6; }
.wish-list { display: flex; flex-direction: column; gap: 10px; }
.wish-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 126, 179, 0.35);
}
.wish-row.done {
  border-style: dashed;
  border-color: rgba(154, 125, 140, 0.3);
  background: rgba(255, 255, 255, 0.5);
}
.wish-row.done .wish-text {
  text-decoration: line-through;
  color: var(--text-light);
}
.wish-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
}
.wish-badge.ok { color: #3a9e6c; }
.wish-text {
  flex: 1;
  font-size: 14.5px;
  color: var(--text);
  word-break: break-all;
}
.wish-meta { flex-shrink: 0; font-size: 12px; color: var(--text-light); }
.wish-ops { display: flex; gap: 6px; flex-shrink: 0; }
.wish-op-btn {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 126, 179, 0.4);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--pink-deep);
  cursor: pointer;
}
.wish-op-btn.del { border-color: rgba(154, 125, 140, 0.4); color: var(--text-light); }
.wish-done-head {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 8px 0 2px;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.4);
  z-index: 80;
  animation: toast-in 0.35s ease both;
  white-space: nowrap;
}

@keyframes toast-in {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ============ 云端提示横幅 ============ */
.cloud-banner {
  margin: 14px 2px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(255, 126, 179, 0.55);
  color: var(--text-light);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ============ 图片查看 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  cursor: zoom-out;
  animation: fade-in 0.2s ease;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
