/* ============================================================
   小宇宙 · 情侣空间
   甜美粉色 / 玻璃拟态
   ============================================================ */

:root {
  --ink: #48243a;
  --ink-soft: #6d4359;
  --muted: #a0748c;
  --muted-2: #bd95a8;
  --rose: #ff5f8f;
  --rose-deep: #ef3d74;
  --rose-soft: #ffd3e2;
  --peach: #ffb59b;
  --lilac: #c3a4ff;
  --sky: #a6d4ff;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 6px 18px -10px rgba(190, 60, 110, 0.35);
  --shadow: 0 24px 60px -30px rgba(190, 50, 105, 0.5), 0 2px 8px rgba(190, 80, 120, 0.06);
  --shadow-lift: 0 34px 70px -28px rgba(190, 45, 100, 0.55);
  --radius-lg: 30px;
  --radius: 22px;
  --radius-sm: 14px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: #ffeef5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 8% -10%, #fff2f7 0%, rgba(255, 242, 247, 0) 60%),
    radial-gradient(900px 600px at 92% 0%, #ffe3ef 0%, rgba(255, 227, 239, 0) 55%),
    linear-gradient(160deg, #fff1f6 0%, #ffe8f2 34%, #f7e8ff 68%, #eaf1ff 100%);
}

h1, h2, h3, h4, p {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
}

figure {
  margin: 0;
}

::selection {
  background: rgba(255, 95, 143, 0.22);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 175, 0.45);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ---------------------------------------------------------- 背景场景 */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.65;
  animation: none;
}

.blob-a {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: -14vw;
  background: radial-gradient(circle at 30% 30%, #ffc2d6, rgba(255, 194, 214, 0));
}

.blob-b {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  top: 6vh;
  background: radial-gradient(circle at 60% 40%, #d9c4ff, rgba(217, 196, 255, 0));
  animation-delay: -8s;
  animation-duration: 32s;
}

.blob-c {
  width: 52vw;
  height: 42vw;
  left: 22vw;
  bottom: -22vw;
  background: radial-gradient(circle at 50% 50%, #ffd9c2, rgba(255, 217, 194, 0));
  animation-delay: -16s;
  animation-duration: 38s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.petals {
  position: absolute;
  inset: 0;
}

.petal {
  position: absolute;
  top: -8vh;
  font-size: 14px;
  opacity: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  92% {
    opacity: 0.35;
  }
  100% {
    transform: translate3d(var(--drift, 40px), 112vh, 0) rotate(var(--spin, 220deg));
    opacity: 0;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 3vh, 0) scale(1.08);
  }
}

/* ---------------------------------------------------------- 基础组件 */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

.card {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(140% 110% at 0% 0%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 58%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.28));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 26px 60px -34px rgba(190, 50, 105, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7fa6 0%, var(--rose) 45%, #f34f86 100%);
  box-shadow: 0 14px 30px -12px rgba(243, 79, 134, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px -12px rgba(243, 79, 134, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-left: 4px;
}

.input,
.textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(180, 110, 140, 0.08);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 14.5px;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input:focus,
.textarea:focus {
  border-color: rgba(255, 127, 166, 0.85);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 127, 166, 0.14);
}

.textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.65;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, background 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px) rotate(-4deg);
  background: #fff;
}

/* ---------------------------------------------------------- 启动态 */

.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 13px;
}

.boot-heart {
  font-size: 46px;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.14);
  }
  60% {
    transform: scale(0.98);
  }
}

/* ---------------------------------------------------------- 登录 / 注册 */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 5vw;
  padding: 6vh 7vw;
  max-width: 1320px;
  margin: 0 auto;
}

.auth-stage {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 20px 0 40px;
  animation: rise 0.7s cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

.auth-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.auth-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.auth-title em {
  font-style: normal;
  background: linear-gradient(120deg, #ff6f9c, #c86bff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-lede {
  max-width: 30em;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.auth-features .chip {
  padding: 9px 15px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.auth-quote {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  border-left: 2px solid rgba(255, 143, 176, 0.5);
  padding-left: 16px;
  line-height: 1.8;
}

.auth-panel {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  padding: 30px 30px 26px;
  border-radius: 34px;
  animation: rise 0.7s 0.08s cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

.auth-tabs {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}

.auth-panel-head {
  margin-bottom: 22px;
}

.auth-panel-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.auth-panel-sub {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.auth-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 143, 176, 0.35);
  font-size: 12.5px;
  color: var(--muted);
}

.auth-alt a,
.auth-back-line a {
  color: var(--rose-deep);
  font-weight: 600;
  cursor: pointer;
}

.auth-alt a:hover,
.auth-back-line a:hover {
  text-decoration: underline;
}

.auth-alt .dot {
  color: var(--muted-2);
}

.auth-back-line {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
}

.auth-back-line a {
  color: var(--muted);
  font-weight: 500;
}

.auth-back-line a:hover {
  color: var(--rose-deep);
}

.auth-tab {
  padding: 10px 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.22s ease;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff86aa, var(--rose-deep));
  box-shadow: 0 10px 22px -12px rgba(239, 61, 116, 0.9);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-hint {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 4px;
}

.auth-hint code {
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--rose-deep);
  letter-spacing: 0.1em;
}

.auth-code-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  padding-left: 0.35em;
}

.auth-twofactor-head {
  text-align: center;
}

.auth-twofactor-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 18px;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px -20px rgba(190, 50, 105, 0.65);
}

.auth-closed {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 10px 10px;
  text-align: center;
}

.auth-closed-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 27px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.auth-closed h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.auth-closed p {
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted-2);
}

.auth-closed-actions {
  margin-top: 8px;
}

.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

.auth-link {
  color: var(--rose-deep);
  font-weight: 600;
  cursor: pointer;
}

.auth-error {
  display: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 90, 130, 0.12);
  color: #c9305e;
  font-size: 13px;
  line-height: 1.5;
}

.auth-error.show {
  display: block;
}

/* ---------------------------------------------------------- 应用外壳 */

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 11px 14px 11px 20px;
  border-radius: 999px;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.44));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 40px -24px rgba(190, 50, 105, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
  background: linear-gradient(140deg, #fff0f6, #ffd9e7);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -10px rgba(239, 61, 116, 0.6);
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.nav-link {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.25s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.nav-link.active {
  color: var(--rose-deep);
  background: #fff;
  box-shadow: 0 8px 18px -10px rgba(239, 61, 116, 0.65);
  font-weight: 600;
}

.pair {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 6px;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
  background: linear-gradient(145deg, #fff, #ffe8f1);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px -10px rgba(200, 60, 110, 0.55);
  user-select: none;
}

.avatar-lg {
  width: 54px;
  height: 54px;
  font-size: 26px;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-width: 1.5px;
}

.avatar-pair {
  display: flex;
  align-items: center;
}

.avatar-pair .avatar + .avatar {
  margin-left: -11px;
}

.avatar.empty {
  border-style: dashed;
  border-color: rgba(255, 143, 176, 0.65);
  background: rgba(255, 255, 255, 0.35);
  color: var(--muted-2);
  font-size: 14px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-xl {
  width: 84px;
  height: 84px;
  font-size: 40px;
}

.avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.avatar-edit-side {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.avatar-edit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main {
  padding-top: 30px;
}

.view {
  animation: rise 0.5s cubic-bezier(0.22, 0.9, 0.25, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bottom-nav {
  display: none;
}

/* ---------------------------------------------------------- 首页 hero */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  padding: 38px 40px;
  border-radius: 36px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 160, 190, 0.55), rgba(255, 160, 190, 0));
}

.hero::after {
  content: "💗";
  position: absolute;
  right: 28%;
  bottom: -34px;
  font-size: 150px;
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.days {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 4px;
  line-height: 0.9;
}

.days .num {
  font-family: var(--serif);
  font-size: clamp(72px, 11vw, 132px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ff5b8b 0%, #f0447c 40%, #b46bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 24px rgba(240, 68, 124, 0.18));
}

.days .unit {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--rose-deep);
  opacity: 0.85;
}

.hero-meta {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.hero-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-people {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.people-names {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.people-names small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.side-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 4px;
}

.next-card {
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 238, 245, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -28px rgba(190, 50, 105, 0.6);
}

.next-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.next-top .tag {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: rgba(255, 95, 143, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
}

.next-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 2px;
}

.next-main .n {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.next-main .u {
  font-size: 13px;
  color: var(--muted);
}

.next-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.next-date {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.mini-item .m {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------------------------------------------------------- 统计 */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
  background: linear-gradient(145deg, #fff, #ffe6f0);
  box-shadow: inset 0 1px 0 #fff;
}

.stat-value {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ---------------------------------------------------------- 区块 */

.section {
  margin-top: 38px;
}

.page-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 95, 143, 0.15);
}

.section-sub {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 5px;
  padding-left: 17px;
}

.link-more {
  font-size: 12.5px;
  color: var(--rose-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}

.link-more:hover {
  gap: 8px;
}

/* ---------------------------------------------------------- 相册 */

.album-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.album-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -3px 0 20px;
}

.album-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.album-chip:hover {
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.album-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #ff89ad, var(--rose-deep));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 22px -14px rgba(239, 61, 116, 0.95);
}

.album-chip em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.68;
}

.photo-source {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  color: #fff;
  background: rgba(239, 61, 116, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.date-original-row {
  margin-top: 12px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-strip .photo {
  aspect-ratio: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo:hover img {
  transform: scale(1.06);
}

.photo .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #fff;
  background: linear-gradient(to top, rgba(60, 15, 35, 0.68), rgba(60, 15, 35, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo:hover .cap {
  opacity: 1;
  transform: none;
}

.photo .when {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #7a4960;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.month-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border-top: 1px dashed rgba(255, 143, 176, 0.22);
}

.month-row:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.month-label {
  position: sticky;
  top: 104px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.month-label b {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.month-label span {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--rose-deep);
}

.month-label small {
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.album-empty {
  padding: 56px 20px;
}

/* ---------------------------------------------------------- 留言 */

.notes-layout {
  display: grid;
  gap: 18px;
}

.composer {
  padding: 22px;
  border-radius: 26px;
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mood-chip {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
  filter: grayscale(0.35);
  opacity: 0.85;
}

.mood-chip:hover {
  transform: translateY(-2px) scale(1.05);
  filter: none;
  opacity: 1;
}

.mood-chip.active {
  filter: none;
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 0 2px var(--rose-soft), 0 12px 22px -14px rgba(239, 61, 116, 0.9);
  transform: translateY(-2px) scale(1.06);
}

.composer textarea {
  border: none;
  background: rgba(255, 255, 255, 0.62);
  min-height: 84px;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.composer-hint {
  font-size: 11.5px;
  color: var(--muted-2);
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note {
  display: flex;
  gap: 12px;
  max-width: 82%;
  align-items: flex-start;
  animation: rise 0.4s ease both;
}

.note.mine {
  flex-direction: row-reverse;
  margin-left: auto;
}

.note-body {
  padding: 13px 17px 12px;
  border-radius: 20px;
  border-top-left-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.note.mine .note-body {
  border-top-left-radius: 20px;
  border-top-right-radius: 7px;
  background: linear-gradient(150deg, #fff, #ffe4ee 90%);
  border-color: rgba(255, 255, 255, 0.95);
}

.note-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.note-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.note-time {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.note-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.note-text .mo {
  font-size: 15px;
  margin-right: 4px;
}

.note-del {
  align-self: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--muted-2);
  opacity: 0;
  transition: all 0.2s ease;
}

.note:hover .note-del {
  opacity: 1;
}

.note-del:hover {
  background: rgba(255, 90, 130, 0.12);
  color: var(--rose-deep);
}

/* ---------------------------------------------------------- 清单 */

.todo-panel {
  padding: 24px;
  border-radius: 28px;
}

.todo-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.ring {
  --pct: 0;
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--rose) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.55) 0);
  position: relative;
  box-shadow: 0 12px 26px -18px rgba(239, 61, 116, 0.9);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 251, 253, 0.94);
}

.ring span {
  position: relative;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
}

.todo-top-text h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.todo-top-text p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.todo-add {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.todo-add .input {
  flex: 1;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, transform 0.18s ease;
}

.todo-item:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(2px);
}

.check {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 143, 176, 0.75);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.2s ease;
}

.todo-item.done .check {
  border-color: transparent;
  background: linear-gradient(140deg, #ff8db0, var(--rose-deep));
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(239, 61, 116, 0.9);
}

.todo-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.2s ease;
}

.todo-item.done .todo-text {
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 143, 176, 0.7);
  text-decoration-thickness: 1.5px;
}

.todo-item .del {
  margin-left: auto;
  opacity: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--muted-2);
  font-size: 12px;
  flex: none;
  transition: all 0.2s ease;
}

.todo-item:hover .del {
  opacity: 1;
}

.todo-item .del:hover {
  color: var(--rose-deep);
  background: rgba(255, 90, 130, 0.1);
}

.todo-by {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ---------------------------------------------------------- 纪念日 */

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.date-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.52), rgba(255, 245, 250, 0.34));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 24px 55px -34px rgba(190, 50, 105, 0.55);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.date-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.date-card::after {
  content: attr(data-emoji);
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 76px;
  opacity: 0.12;
  transform: rotate(-10deg);
}

.date-card.has-photo::after {
  display: none;
}

.date-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-emoji {
  font-size: 24px;
  line-height: 1;
}

.date-cover {
  position: relative;
  display: block;
  width: calc(100% - 20px);
  margin: 10px 10px 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 30px -22px rgba(90, 20, 50, 0.55);
  cursor: pointer;
}

.date-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.date-cover:hover img {
  transform: scale(1.04);
}

.date-cover-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px;
  border: 1px dashed rgba(255, 143, 176, 0.42);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.72), rgba(255, 241, 247, 0.28) 72%),
    rgba(255, 255, 255, 0.28);
  color: var(--muted);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.date-cover-empty:hover {
  border-color: rgba(255, 95, 143, 0.62);
  color: var(--rose-deep);
  background:
    radial-gradient(90% 120% at 50% 0%, #fff, rgba(255, 236, 244, 0.55) 72%),
    rgba(255, 255, 255, 0.4);
}

.date-cover-empty-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 20px -14px rgba(190, 50, 105, 0.5),
    inset 0 1px 0 #fff;
  transition: transform 0.2s ease;
}

.date-cover-empty:hover .date-cover-empty-icon {
  transform: translateY(-2px) scale(1.04);
}

.date-cover-empty-text {
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.date-cover-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.date-cover:hover .date-cover-hint {
  opacity: 1;
}

.date-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
}

.date-value b {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
}

.date-value span {
  font-size: 12px;
  color: var(--muted);
}

.date-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.date-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 95, 143, 0.1);
  color: var(--rose-deep);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.date-tag.off {
  background: rgba(160, 116, 140, 0.1);
  color: var(--muted);
}

.date-elapsed {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 143, 176, 0.28);
  font-size: 11.5px;
  color: var(--muted);
}

.date-elapsed::before {
  content: "⏳";
  font-size: 11px;
  opacity: 0.75;
}

.date-card .del {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--muted-2);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.date-card:hover .del {
  opacity: 1;
}

.date-card .del:hover {
  background: rgba(255, 90, 130, 0.12);
  color: var(--rose-deep);
}

/* ---------------------------------------------------------- 设置 */

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.settings-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.panel {
  padding: 26px;
  border-radius: 26px;
}

.panel-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.panel-sub {
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.7;
  margin-bottom: 18px;
}

.panel .field + .field {
  margin-top: 14px;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 424px;
  margin-bottom: 16px;
}

.avatar-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  font-size: clamp(20px, 5.5vw, 28px);
  line-height: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: all 0.18s ease;
}

.avatar-option:hover {
  transform: translateY(-2px);
}

.avatar-option.active {
  background: #fff;
  box-shadow: 0 0 0 2px var(--rose-soft), 0 10px 20px -14px rgba(239, 61, 116, 0.9);
  transform: translateY(-2px) scale(1.04);
}

.invite-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(255, 231, 241, 0.7));
  border: 1px dashed rgba(255, 143, 176, 0.6);
}

.invite-code {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--rose-deep);
  user-select: all;
}

.invite-hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

.pair-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}

.pair-row + .pair-row {
  border-top: 1px dashed rgba(255, 143, 176, 0.28);
}

.pair-row .who {
  min-width: 0;
  flex: 1;
}

.pair-row .who b {
  font-size: 14px;
  font-weight: 600;
}

.pair-row .who small {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

.danger-link {
  color: #c9305e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.settings-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.storage-meter {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.storage-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.storage-meter-head b {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.storage-meter-head b i {
  font-style: normal;
  font-weight: 500;
  color: var(--muted-2);
}

.storage-track {
  height: 7px;
  margin: 9px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 190, 212, 0.38);
}

.storage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9fbd, var(--rose-deep));
  transition: width 0.4s ease;
}

.storage-meter .invite-hint {
  margin: 0;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.account-item-text {
  min-width: 0;
}

.account-item-text b {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.account-item-text small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

.security-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.security-badge.on {
  color: #1f8a5b;
  background: rgba(92, 219, 149, 0.16);
  border-color: rgba(92, 219, 149, 0.35);
}

.security-intro {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.totp-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.totp-step b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #ff8fb1, var(--rose-deep));
}

.totp-secret-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 246, 250, 0.95);
  border: 1px dashed rgba(255, 143, 176, 0.6);
}

.totp-secret-row code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  word-break: break-all;
  color: var(--rose-deep);
  user-select: all;
}

.totp-link {
  justify-self: start;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
}

.totp-link:hover {
  text-decoration: underline;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f06882, #cf3159);
  box-shadow: 0 14px 30px -14px rgba(207, 49, 89, 0.7);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -14px rgba(207, 49, 89, 0.8);
}

@media (max-width: 560px) {
  .account-item {
    align-items: flex-start;
  }

  .storage-meter-head {
    flex-wrap: wrap;
  }
}

/* ---------------------------------------------------------- 空状态 */

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.empty-state .big {
  font-size: 40px;
  filter: grayscale(0.1);
  opacity: 0.9;
}

.empty-state b {
  display: block;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------- 弹层 */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(70, 20, 45, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade 0.22s ease both;
  overflow-y: auto;
}

.modal {
  width: min(480px, 100%);
  margin: auto;
  border-radius: 28px;
  background: rgba(255, 253, 254, 0.94);
  border: 1px solid #fff;
  box-shadow: 0 40px 90px -30px rgba(120, 30, 70, 0.5);
  animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 0;
}

.modal-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.modal-body {
  padding: 18px 24px 24px;
  display: grid;
  gap: 14px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.emoji-option {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 12px;
  font-size: 19px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 220, 232, 0.9);
}

.emoji-option.active {
  background: #fff;
  box-shadow: 0 0 0 2px var(--rose-soft);
  transform: scale(1.05);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 246, 250, 0.9);
  border: 1px solid rgba(255, 220, 232, 0.7);
  font-size: 13.5px;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}

.switch-row span small {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

/* 图片预览 */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 30px;
  background: rgba(52, 16, 33, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: fade 0.22s ease both;
}

.lightbox .stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 6px 2px;
  color: #fff;
}

.lightbox-bar .cap {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
}

.lightbox-bar .cap small {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 3px;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  transform: translate(-50%, 24px);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgba(72, 36, 58, 0.9);
  box-shadow: 0 20px 40px -18px rgba(60, 20, 40, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
  max-width: min(86vw, 460px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------- 响应式 */

@media (max-width: 980px) {
  .auth {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 7vh 6vw;
    max-width: 560px;
  }

  .auth-stage {
    padding-bottom: 0;
    text-align: left;
  }

  .auth-panel {
    margin: 0 auto;
    max-width: 100%;
  }

  .auth-quote {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 30px 26px;
    gap: 22px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-col {
    display: contents;
  }

  .settings-profile { order: 1; }
  .settings-space { order: 2; }
  .settings-invite { order: 3; }
  .settings-welcome { order: 4; }
  .settings-account { order: 5; }

  .nav {
    display: none;
  }

  .topbar {
    border-radius: 30px;
  }

  .shell {
    padding: 0 16px 108px;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .month-row {
    gap: 16px;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .month-label b {
    font-size: 24px;
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 80;
    display: grid;
    grid-auto-flow: column;
    width: min(94vw, 520px);
    padding: 8px 6px;
    border-radius: 26px;
    background:
      radial-gradient(130% 160% at 0% 0%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 22px 50px -22px rgba(190, 50, 105, 0.6);
  }

  .bottom-link {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 18px;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .bottom-link i {
    font-style: normal;
    font-size: 19px;
    line-height: 1;
    filter: grayscale(0.3);
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  .bottom-link.active {
    color: var(--rose-deep);
    background: rgba(255, 255, 255, 0.85);
  }

  .bottom-link.active i {
    transform: translateY(-2px) scale(1.1);
    filter: none;
  }

  .note {
    max-width: 90%;
  }

  .toast {
    bottom: 96px;
  }
}

@media (max-width: 560px) {
  .auth {
    padding: 6vh 5vw;
  }

  .auth-panel {
    padding: 24px 20px 20px;
    border-radius: 28px;
  }

  .auth-title {
    font-size: 38px;
  }

  .hero {
    padding: 26px 21px;
    border-radius: 28px;
  }

  .days .num {
    font-size: clamp(64px, 19vw, 96px);
  }

  .section-title {
    font-size: 19px;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 13px 14px;
    gap: 10px;
    border-radius: 18px;
  }

  .stat-value {
    font-size: 21px;
  }

  .section {
    margin-top: 30px;
  }

  .brand-text p {
    display: none;
  }

  .topbar {
    padding: 9px 10px 9px 14px;
  }

  .pair .avatar {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .pair .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .month-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

  .month-label {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .month-label b {
    font-size: 21px;
  }

  .month-label small {
    margin-top: 0;
    margin-left: auto;
  }

  .date-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .date-card {
    border-radius: 20px;
  }

  .date-body {
    padding: 16px;
  }

  .date-value b {
    font-size: 28px;
  }

  .date-title {
    font-size: 13px;
  }

  .lightbox {
    padding: 14px;
  }

  .modal-body {
    padding: 16px 20px 22px;
  }

  .note {
    max-width: 100%;
  }

  .todo-panel,
  .composer,
  .panel {
    padding: 20px;
  }

  .todo-top {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .petal {
    display: none;
  }
}

/* ---------------------------------------------------------- 补充组件 */

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.loading {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 100px 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.loading .boot-heart {
  font-size: 34px;
}

.page-foot {
  margin-top: 52px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.drop {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 30px 20px;
  border-radius: 20px;
  border: 1.5px dashed rgba(255, 143, 176, 0.55);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.drop:hover,
.drop.drag {
  border-color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
}

.drop-sm {
  padding: 16px 14px;
  gap: 4px;
  border-radius: 16px;
}

.drop-sm .drop-icon {
  font-size: 22px;
}

.drop-sm b {
  font-size: 12.5px;
}

.drop-sm small {
  font-size: 10.5px;
}

.drop.has-file {
  padding: 14px;
  border-style: solid;
  border-color: rgba(255, 143, 176, 0.4);
}

.drop-icon {
  font-size: 30px;
  line-height: 1;
}

.drop b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop small {
  font-size: 11px;
  color: var(--muted-2);
}

.drop-preview {
  display: none;
}

.drop-preview:not(:empty) {
  display: grid;
  place-items: center;
  max-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(255, 220, 232, 0.8);
}

.drop-preview img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.date-value.today b {
  font-size: 27px;
  letter-spacing: 0.04em;
}

@media (hover: none) {
  .note-del,
  .date-card .del,
  .todo-item .del {
    opacity: 0.85;
  }
}

@media (max-width: 560px) {
  .auth-row {
    grid-template-columns: 1fr;
  }

  .date-value.today b {
    font-size: 22px;
  }

  .page-foot {
    margin-top: 36px;
  }
}

/* ---------------------------------------------------------- 照片裁剪编辑器 */

.editor-backdrop {
  z-index: 140;
}

.editor-modal {
  width: min(640px, 100%);
}

.editor-modal .modal-body {
  gap: 12px;
}

.editor-stage {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 232, 0.75);
}

.editor-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
}

.editor-stage canvas.dragging {
  cursor: grabbing;
}

.editor-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-zoom {
  flex: 1;
  min-width: 130px;
  accent-color: var(--rose);
}

.editor-hint {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

@media (hover: none) {
  .date-cover-hint {
    opacity: 0.94;
  }
}

.editor-zoom {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 143, 176, 0.28);
  outline: none;
}

.editor-zoom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px -3px rgba(239, 61, 116, 0.8);
  cursor: pointer;
}

/* ---------------------------------------------------------- 纪念日编辑 */

.mode-picker {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.mode-option {
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}

.mode-option.active {
  color: var(--rose-deep);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.82));
  box-shadow: 0 8px 16px -12px rgba(239, 61, 116, 0.9), inset 0 1px 0 #fff;
}

.field-hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted-2);
}

.date-photo-remove {
  align-self: flex-start;
  margin-top: 2px;
}

.date-body:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 记住设备 */
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.remember-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--rose);
}

/* hidden 属性优先于组件自己的 display */
[hidden] {
  display: none !important;
}

/* 留言草稿 */
.composer-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer-hint.saved {
  color: var(--rose-deep);
  font-weight: 600;
}

/* 密码可见切换 / 记住账号密码 */
.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pw-toggle:hover {
  background: rgba(255, 143, 176, 0.14);
  color: var(--rose-deep);
}

.remember-row small {
  margin-left: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.saved-login-hint {
  margin: -2px 0 2px;
  padding-left: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.saved-login-hint b {
  color: var(--rose-deep);
  font-weight: 600;
}

.saved-login-hint a {
  color: var(--rose-deep);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 焦点与错误反馈 */
:focus-visible {
  outline: 2px solid rgba(255, 95, 143, 0.5);
  outline-offset: 2px;
}

.auth-error.show {
  animation: auth-shake 0.32s ease;
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* 手机端登录：收紧欢迎区，让表单尽早出现 */
@media (max-width: 560px) {
  .auth {
    padding: 5vh 5vw 6vh;
    gap: 20px;
  }

  .auth-stage {
    text-align: center;
  }

  .auth-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-title {
    font-size: 28px;
    line-height: 1.22;
  }

  .auth-title br {
    display: none;
  }

  .auth-lede,
  .auth-features {
    display: none;
  }

  .auth-panel {
    padding: 24px 20px 20px;
  }

  .saved-login-hint {
    text-align: left;
  }
}

/* ---------------------------------------------------------- 专属邀请页 */

.welcome-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(232, 74, 122, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 240, 246, 0.52));
}

.welcome-mini-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(188, 48, 104, 0.4);
  font-size: 22px;
}

.welcome-mini-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.welcome-mini-text b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.welcome-mini-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}

.welcome-foot {
  flex-wrap: wrap;
  align-items: flex-end;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.welcome-modal {
  width: min(560px, 100%);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-field .input {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .welcome-foot {
    align-items: flex-start;
  }

  .copy-field {
    flex-wrap: wrap;
  }

  .copy-field .input {
    flex-basis: 100%;
  }
}
