/* ==========================================================
   生日倒计时 · 视觉系统
   ========================================================== */
:root {
  --accent: #ff7aa8;
  --accent-2: #8ab6ff;
  --accent-3: #c9a7ff;
  --bg: #070910;
  --bg-2: #0d1120;
  --text: #f2f5fb;
  --muted: #8f98b3;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC",
    "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(138, 182, 255, .13), transparent 62%),
    radial-gradient(760px 620px at 96% 4%, rgba(255, 122, 168, .13), transparent 64%),
    radial-gradient(900px 900px at 50% 118%, rgba(201, 167, 255, .10), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, #090b13);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* 输入区域允许选中和编辑 */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* 图片禁止拖拽 */
img { -webkit-user-drag: none; }

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .8; }
.wrap { position: relative; z-index: 1; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; transition: transform .18s ease, opacity .18s ease, background .18s ease, box-shadow .18s ease; }
button:active { transform: scale(.975); }
button:disabled { opacity: .5; cursor: default; }
.hidden { display: none !important; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .055);
}

/* ---------------- 按钮 ---------------- */
.btn {
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d16;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  box-shadow: 0 10px 26px rgba(255, 122, 168, .22);
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 12px 32px rgba(255, 122, 168, .32); }
.btn.wide { width: 100%; display: block; }

.btn-ghost {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 13px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.btn-ghost.wide { width: 100%; margin-top: 12px; display: block; }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

input[type="text"], input[type="password"], input[type="date"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .26);
  outline: none;
  font-size: 14px;
}
input[type="date"] { color-scheme: dark; }
input[type="number"] {
  width: 100%; padding: 12px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .26);
  outline: none; font-size: 14px;
}
select {
  width: 100%;
  padding: 12px 38px 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background-color: rgba(0, 0, 0, .26);
  color: var(--text);
  outline: none;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238f98b3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
select option { background: #121725; color: var(--text); }
input[type="color"] { width: 100%; height: 46px; padding: 5px; border-radius: 13px; border: 1px solid var(--line); background: rgba(0, 0, 0, .26); }
textarea { resize: vertical; min-height: 90px; }
::placeholder { color: #5f6880; }

input:focus, textarea:focus {
  border-color: rgba(255, 122, 168, .55);
  box-shadow: 0 0 0 3px rgba(255, 122, 168, .13);
}

.msg { font-size: 12.5px; min-height: 17px; color: #ff6b81; }
.msg.ok { color: #6fe3a5; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 18px 6px;
  background: linear-gradient(180deg, rgba(7, 9, 16, .94), rgba(7, 9, 16, .58) 70%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 19, 32, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; letter-spacing: .01em; white-space: nowrap; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(255, 122, 168, .85);
}
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 10px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-inner .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.whoami { font-size: 13px; color: var(--muted); margin-right: 4px; }
.whoami b { color: var(--text); font-weight: 600; }

/* ---------------- 页面容器 ---------------- */
.page { max-width: 1120px; margin: 0 auto; padding: 22px 20px 96px; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 34px 36px 24px;
  border-radius: 30px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 460px; height: 460px;
  right: -120px; top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 168, .3), rgba(201, 167, 255, .12) 45%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px) 220px;
  gap: 24px;
  align-items: center;
}
.hero-left { min-width: 0; }

.hero-quote {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, .1);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-quote .q-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: .6;
  color: rgba(255, 122, 168, .5);
  margin-bottom: 6px;
}
.hero-quote p {
  font-size: 14.5px;
  line-height: 2;
  color: rgba(255, 255, 255, .58);
  letter-spacing: .1em;
  word-break: break-word;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #c4cbe0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headline {
  margin: 14px 0 2px;
  font-size: clamp(17px, 2.1vw, 23px);
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .01em;
}

.big-days {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
}
.days-num {
  font-size: clamp(66px, 11.5vw, 128px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(175deg, #ffffff 6%, #ffd9e6 42%, var(--accent) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(255, 122, 168, .22));
}
.days-unit {
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--muted);
  letter-spacing: .12em;
  padding-bottom: 12px;
}

.mini-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mini {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  min-width: 78px;
  justify-content: center;
}
.mini b {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.mini span { font-size: 11px; color: var(--muted); }

.target-date {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .05em;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ring-wrap { position: relative; width: 186px; max-width: 100%; }
.ring { width: 100%; height: auto; transform: rotate(-90deg); display: block; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .075); stroke-width: 7; }
.ring-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 0 8px rgba(255, 122, 168, .45));
}
.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 3px;
}
.ring-center span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ring-center small { font-size: 10.5px; color: var(--muted); letter-spacing: .2em; }
.party { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.7; white-space: nowrap; }
.party b { color: var(--accent); font-weight: 700; }

.yearbar { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .055); }
.yearbar .track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.yearbar .fill {
  height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 16px rgba(255, 122, 168, .5);
  transition: width .9s cubic-bezier(.2, .8, .2, 1);
}
.yearbar .meta {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); margin-top: 10px; letter-spacing: .05em;
}

/* ---------------- 温柔语录 ---------------- */
.quote-card {
  position: relative;
  margin-top: 20px;
  padding: 34px 42px 22px;
  border-radius: 26px;
  text-align: center;
  overflow: hidden;
}
.quote-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 560px; height: 240px;
  margin: -120px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 122, 168, .17), rgba(138, 182, 255, .08) 45%, transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}
.quote-body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}
.q-open, .q-close {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  color: rgba(255, 122, 168, .55);
  flex: 0 0 auto;
}
.q-close { align-self: flex-end; padding-bottom: 2px; }
.quote-text {
  margin: 0;
  max-width: 780px;
  font-size: clamp(16px, 2.15vw, 23px);
  line-height: 1.95;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .88);
  min-height: 3.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.16, .9, .24, 1), filter .8s ease;
}
.quote-text.in { opacity: 1; transform: none; filter: none; }
.quote-text.out { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
.quote-meta {
  position: relative;
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--muted);
}
@media (max-width: 560px) {
  .quote-card { padding: 26px 20px 18px; }
  .q-open, .q-close { font-size: 22px; }
  .quote-text { min-height: 5.4em; }
}

/* ---------------- 网格 / 面板 ---------------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.grid .full { grid-column: 1 / -1; }

.panel { padding: 24px; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.badge {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 17px;
  background: linear-gradient(135deg, rgba(255, 122, 168, .16), rgba(138, 182, 255, .16));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.titles { min-width: 0; padding-top: 1px; }
.titles h3 { font-size: 15.5px; font-weight: 700; letter-spacing: .01em; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.composer { display: flex; gap: 9px; margin-bottom: 16px; align-items: stretch; }
.composer textarea { flex: 1; height: 46px; min-height: 46px; padding: 12px 14px; border-radius: 14px; }
.composer .btn { padding: 0 20px; border-radius: 14px; white-space: nowrap; font-size: 13.5px; }

.list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 360px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent;
}
.list::-webkit-scrollbar { width: 6px; }
.list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; }

.item {
  position: relative;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .032);
  border: 1px solid rgba(255, 255, 255, .055);
  font-size: 14px;
  line-height: 1.62;
  word-break: break-word;
  transition: background .2s ease, border-color .2s ease;
}
.item:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.item .meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.item .who { color: var(--accent); font-weight: 600; }
.item .del {
  position: absolute; top: 10px; right: 12px;
  font-size: 11.5px; color: #66708a; opacity: 0; transition: opacity .15s, color .15s;
}
.item:hover .del { opacity: 1; }
.item .del:hover { color: #ff6b81; }

/* 留言：删除按钮常驻在时间后面 */
.item .meta .del {
  position: static;
  margin-left: auto;
  opacity: .55;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 11.5px;
  color: #7d87a2;
}
.item .meta .del:hover {
  opacity: 1;
  color: #ff6b81;
  background: rgba(255, 107, 129, .12);
}

.wish { display: flex; align-items: flex-start; gap: 11px; }
.wish .check {
  flex: 0 0 auto;
  width: 19px; height: 19px; margin-top: 2px;
  border-radius: 6px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-size: 11px; color: transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.wish.done .check {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #0b0d16;
}
.wish .text { flex: 1; font-size: 14px; line-height: 1.55; word-break: break-word; }
.wish.done .text { text-decoration: line-through; color: var(--muted); }
.wish .del { font-size: 11.5px; color: #66708a; opacity: .5; }
.wish:hover .del { opacity: 1; }
.wish .del:hover { color: #ff6b81; }

/* ---------------- 照片墙 ---------------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.photo {
  position: relative; aspect-ratio: 1; border-radius: 15px; overflow: hidden;
  background: rgba(255, 255, 255, .04); cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, .07);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.photo:hover img { transform: scale(1.07); }
.photo .cap {
  position: absolute; inset: auto 0 0 0; padding: 20px 10px 9px; font-size: 11.5px;
  color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo .del {
  position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px);
  color: #fff; display: grid; place-items: center;
  font-size: 11px; opacity: 0; transition: opacity .15s;
}
.photo:hover .del { opacity: 1; }

.upload-tile {
  aspect-ratio: 1; border-radius: 15px;
  border: 1.5px dashed rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  color: var(--muted); font-size: 22px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.upload-tile:hover { border-color: rgba(255, 122, 168, .6); color: var(--accent); background: rgba(255, 122, 168, .06); }

/* ---------------- 纪念日 ---------------- */
.anniv { display: flex; align-items: center; gap: 15px; }
.anniv .num {
  font-size: 21px; font-weight: 800; min-width: 58px; text-align: right;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.anniv .num small { font-size: 10.5px; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-left: 3px; }
.anniv .body { flex: 1; min-width: 0; }
.anniv .body .t { font-size: 14px; font-weight: 600; }
.anniv .body .d { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.anniv .del { font-size: 11.5px; color: #66708a; opacity: .5; }
.anniv:hover .del { opacity: 1; }
.anniv .del:hover { color: #ff6b81; }

.empty {
  color: var(--muted); font-size: 13px; text-align: center;
  padding: 28px 12px; border: 1px dashed rgba(255, 255, 255, .09);
  border-radius: 14px;
}

.footer-note {
  text-align: center; color: var(--muted); font-size: 12px;
  margin-top: 40px; letter-spacing: .1em;
}

/* ---------------- 弹层 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 6, 12, .74);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.modal .sheet {
  width: min(440px, 100%);
  padding: 26px;
  max-height: 88vh; overflow-y: auto;
  border-radius: 24px;
  animation: sheetIn .32s cubic-bezier(.16,.9,.24,1) both;
}
.modal .sheet.wide-sheet { width: min(560px, 100%); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.sheet-sub { font-size: 12.5px; color: var(--muted); margin: -8px 0 16px; line-height: 1.6; }
.divider-title {
  font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase;
  margin: 22px 0 10px;
}
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; cursor: pointer; }
.checkline input { width: 16px; height: 16px; accent-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 10px; margin-top: 8px; }
.actions .btn, .actions .btn-ghost { flex: 1; }

/* ---------------- 登录页 ---------------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.auth-card {
  width: min(420px, 100%);
  padding: 36px 32px 30px;
  border-radius: 28px;
}
.auth-logo {
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 29px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d16;
  box-shadow: 0 14px 38px rgba(255, 122, 168, .35);
}
.auth-card h1 { font-size: 22px; font-weight: 700; text-align: center; letter-spacing: .01em; }
.auth-card .sub {
  text-align: center; color: var(--muted); font-size: 13px;
  margin: 9px 0 26px; line-height: 1.7;
}
.auth-card .btn { width: 100%; padding: 14px; margin-top: 6px; border-radius: 14px; }

/* ---------------- 图片查看 / 提示 ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: rgba(3, 5, 10, .93); padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, .65); }

.toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px;
  background: rgba(20, 24, 38, .96);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 400;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255, 107, 129, .5); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .hero-main { grid-template-columns: minmax(0, 1fr) 200px; }
  .hero-quote { display: none; }
}

@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; gap: 22px; }
  .hero-right { flex-direction: row; justify-content: space-between; align-items: center; }
  .party { white-space: normal; }
  .ring-wrap { width: 118px; }
  .ring-center span { font-size: 11.5px; }
  .party { text-align: left; }
}

@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 26px 22px 20px; border-radius: 24px; }
  .page { padding: 16px 14px 80px; }
  .topbar { padding: 10px 12px 4px; }
  .nav-inner { padding: 8px 8px 8px 14px; gap: 10px; }
  .panel { padding: 20px 18px; }
  .row2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .days-num { font-size: 84px; }
  .mini { min-width: 68px; padding: 7px 11px; }
  .mini b { font-size: 17px; }
  .composer { gap: 8px; }
  .composer textarea { height: 44px; min-height: 44px; }
  .composer .btn { padding: 0 15px; font-size: 13px; border-radius: 13px; }
  .photos { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .toast { bottom: 22px; font-size: 12.5px; max-width: calc(100% - 32px); }
}
