:root {
  --paper: #fbf7f2;
  --paper-2: #f4ede6;
  --ink: #241b17;
  --muted: rgba(36, 27, 23, 0.62);
  --rose: #e7b4b6;
  --rose-2: #cf8f93;
  --gold: #b89b66;
  --shadow: 0 22px 60px rgba(20, 12, 10, 0.08);
  --shadow-soft: 0 10px 28px rgba(20, 12, 10, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --ring: 0 0 0 4px rgba(231, 180, 182, 0.22);
}

@keyframes calendarPop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: 
    radial-gradient(1200px 700px at 12% 12%, rgba(231, 180, 182, 0.35), transparent 60%),
    radial-gradient(900px 560px at 88% 18%, rgba(184, 155, 102, 0.18), transparent 60%),
    radial-gradient(900px 700px at 70% 92%, rgba(231, 180, 182, 0.22), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  font-family: "Noto Serif SC", serif;
  letter-spacing: 0.2px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

/* 封面照片样式 */
.cover-photo {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(20, 12, 10, 0.12);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.cover-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 56px rgba(20, 12, 10, 0.18);
}

/* 首页精选照片墙 */
.featured-photos {
  margin-top: 20px;
}

.featured-photos-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  color: rgba(36, 27, 23, 0.78);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.6px;
}

.featured-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.featured-photo-item {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(20, 12, 10, 0.06);
}

.featured-photo-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(20, 12, 10, 0.12);
}

.featured-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 首页小相框 */
.photo-frame-card {
  margin-top: 18px;
}

.photo-frame {
  margin-top: 14px;
  padding: 20px;
  background: linear-gradient(145deg, #faf6f2, #f5eee6);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.03),
    0 8px 24px rgba(20, 12, 10, 0.06);
  position: relative;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 12% 12%, rgba(231, 180, 182, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 88% 88%, rgba(184, 155, 102, 0.08) 0%, transparent 35%);
  pointer-events: none;
  border-radius: 20px;
}

.frame-photo {
  max-width: 100%;
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 12px solid white;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
}

.frame-photo:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.12);
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  min-height: 100%;
}

.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
  background: rgba(251, 247, 242, 0.66);
  border-bottom: 1px solid rgba(36, 27, 23, 0.06);
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-title {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 22px;
  letter-spacing: 1.1px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

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

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(36, 27, 23, 0.7);
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 14px;
}

.nav a:hover {
  background: rgba(231, 180, 182, 0.18);
  transform: translateY(-2px);
  color: rgba(36, 27, 23, 0.9);
  box-shadow: 0 8px 24px rgba(231, 180, 182, 0.16);
}

.nav a[data-active="true"] {
  background: rgba(184, 155, 102, 0.2);
  box-shadow: inset 0 0 0 1px rgba(184, 155, 102, 0.32), 0 6px 18px rgba(184, 155, 102, 0.16);
  color: rgba(36, 27, 23, 0.9);
}

.btn {
  appearance: none;
  border: 0;
  background: rgba(36, 27, 23, 0.06);
  color: rgba(36, 27, 23, 0.84);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(36, 27, 23, 0.09);
  box-shadow: 0 8px 24px rgba(20, 12, 10, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn.music-active {
  background: linear-gradient(180deg, rgba(184, 155, 102, 0.78), rgba(160, 136, 86, 0.7));
  box-shadow: 0 14px 36px rgba(184, 155, 102, 0.25);
}

.btn.music-active:hover {
  background: linear-gradient(180deg, rgba(184, 155, 102, 0.88), rgba(160, 136, 86, 0.78));
  box-shadow: 0 18px 44px rgba(184, 155, 102, 0.3);
}

.btn.music-disabled {
  opacity: 0.4;
}

.music-status {
  font-size: 12px;
  color: var(--muted);
  padding: 0 8px;
  min-width: 40px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.82), rgba(207, 143, 147, 0.74));
  color: rgba(36, 27, 23, 0.92);
  box-shadow: 0 14px 36px rgba(207, 143, 147, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.9), rgba(207, 143, 147, 0.82));
  box-shadow: 0 18px 46px rgba(207, 143, 147, 0.32);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(36, 27, 23, 0.14);
}

.btn-ghost:hover {
  background: rgba(36, 27, 23, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 20px;
}

.card {
  border-radius: 20px;
  background: rgba(251, 247, 242, 0.76);
  box-shadow: 0 12px 40px rgba(20, 12, 10, 0.08);
  border: 1px solid rgba(36, 27, 23, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 16px 52px rgba(20, 12, 10, 0.12);
}

.card-inner {
  padding: 20px 20px 18px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title h2 {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.8px;
  color: rgba(36, 27, 23, 0.86);
}

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

.hero {
  padding: 28px 24px 24px;
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.2), rgba(184, 155, 102, 0.14));
  border-bottom: 1px solid rgba(36, 27, 23, 0.05);
}

.hero h1 {
  margin: 0;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 38px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, rgba(36, 27, 23, 0.96), rgba(36, 27, 23, 0.78));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin: 12px 0 0;
  color: rgba(36, 27, 23, 0.72);
  line-height: 1.9;
  font-size: 14px;
}

.prose {
  padding: 20px 24px 26px;
  line-height: 2.1;
  font-size: 15px;
  color: rgba(36, 27, 23, 0.82);
}

.prose p {
  margin: 0 0 16px;
}

.signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  color: rgba(36, 27, 23, 0.7);
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 18px;
  letter-spacing: 1.2px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.stat {
  border-radius: 16px;
  background: rgba(251, 247, 242, 0.72);
  border: 1px solid rgba(36, 27, 23, 0.06);
  box-shadow: 0 10px 32px rgba(20, 12, 10, 0.06);
  padding: 14px 14px 12px;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(20, 12, 10, 0.1);
}

.stat .k {
  font-size: 12px;
  color: rgba(36, 27, 23, 0.58);
  letter-spacing: 0.3px;
}

.stat .v {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  background: linear-gradient(135deg, rgba(207, 143, 147, 0.9), rgba(184, 155, 102, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.item {
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(36, 27, 23, 0.06);
  background: rgba(251, 247, 242, 0.64);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(20, 12, 10, 0.1);
  background: rgba(251, 247, 242, 0.78);
}

.item-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.item-title strong {
  font-weight: 600;
  color: rgba(36, 27, 23, 0.86);
}

.item-title small {
  color: rgba(36, 27, 23, 0.56);
  font-size: 12px;
  white-space: nowrap;
}

.item-meta {
  margin-top: 8px;
  color: rgba(36, 27, 23, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(231, 180, 182, 0.16);
  border: 1px solid rgba(231, 180, 182, 0.26);
  color: rgba(36, 27, 23, 0.8);
  font-size: 12px;
  transition: all 0.2s ease;
}

.pill:hover {
  background: rgba(231, 180, 182, 0.24);
}

.pill.gold {
  background: rgba(184, 155, 102, 0.16);
  border-color: rgba(184, 155, 102, 0.26);
}

.pill.gold:hover {
  background: rgba(184, 155, 102, 0.24);
}

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

.inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input,
textarea,
select {
  appearance: none;
  border: 1px solid rgba(36, 27, 23, 0.12);
  background: rgba(251, 247, 242, 0.76);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  color: rgba(36, 27, 23, 0.86);
  outline: none;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: var(--ring), 0 8px 24px rgba(231, 180, 182, 0.16);
  border-color: rgba(231, 180, 182, 0.55);
  background: rgba(251, 247, 242, 0.82);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(36, 27, 23, 0.18);
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.9;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(20, 12, 10, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  width: min(720px, 100%);
  max-height: 85vh;
  border-radius: 24px;
  background: rgba(251, 247, 242, 0.92);
  border: 1px solid rgba(36, 27, 23, 0.1);
  box-shadow: 0 28px 80px rgba(20, 12, 10, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateY(8px);
  animation: rise 240ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.modal-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.16), rgba(184, 155, 102, 0.1));
  border-bottom: 1px solid rgba(36, 27, 23, 0.06);
}

.modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: rgba(36, 27, 23, 0.88);
}

.modal-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(231, 180, 182, 0.08), rgba(251, 247, 242, 0.95));
  border-top: 1px solid rgba(36, 27, 23, 0.06);
  flex-shrink: 0;
}

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

.form .full {
  grid-column: 1 / -1;
}

.form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: rgba(36, 27, 23, 0.7);
  letter-spacing: 0.3px;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.unlock {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: 
    radial-gradient(1200px 760px at 50% 30%, rgba(231, 180, 182, 0.44), rgba(251, 247, 242, 0.9)),
    linear-gradient(135deg, rgba(184, 155, 102, 0.12), transparent);
}

.unlock-card {
  width: min(520px, 100%);
  border-radius: 28px;
  background: rgba(251, 247, 242, 0.92);
  border: 1px solid rgba(36, 27, 23, 0.08);
  box-shadow: 0 32px 92px rgba(20, 12, 10, 0.2);
  padding: 26px 22px 22px;
}

.unlock-card h1 {
  margin: 0;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 30px;
  letter-spacing: 1.8px;
}

.unlock-card p {
  margin: 12px 0 0;
  color: rgba(36, 27, 23, 0.68);
  line-height: 1.9;
  font-size: 14px;
}

.unlock-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.unlock-row input {
  flex: 1;
}

.hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(36, 27, 23, 0.58);
  line-height: 1.7;
}

.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(251, 247, 242, 0.94);
  border: 1px solid rgba(36, 27, 23, 0.1);
  box-shadow: 0 12px 36px rgba(20, 12, 10, 0.14);
  min-width: 250px;
  animation: toastIn 240ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* 相册样式 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.photo-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.12), rgba(184, 155, 102, 0.08));
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 28px rgba(20, 12, 10, 0.08);
}

.photo-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 52px rgba(20, 12, 10, 0.16);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 10px;
  background: linear-gradient(to top, rgba(36, 27, 23, 0.88), transparent);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.photo-desc {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-date {
  font-size: 11px;
  opacity: 0.88;
}

.photo-modal-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .shell {
    padding: 24px 18px 40px;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: nowrap;
  }
  .topbar-inner .nav:not(.mobile-nav) {
    display: none !important;
  }
  .topbar-inner .brand {
    flex-shrink: 0;
  }
  .topbar-inner .nav:last-of-type:not(.mobile-nav) {
    flex-shrink: 1;
  }
  .mobile-menu-btn {
    display: flex !important;
    margin-left: auto;
  }
}

@media (max-width: 540px) {
  .brand-sub {
    display: none;
  }
  .hero h1 {
    font-size: 26px;
    letter-spacing: 1.2px;
  }
  .hero {
    padding: 20px 16px 16px;
  }
  .hero p {
    font-size: 13px;
    line-height: 1.8;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .featured-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
  }
  .toast-wrap {
    right: 10px;
    left: 10px;
  }
  .toast {
    min-width: auto;
    padding: 10px 12px;
  }
  .shell {
    padding: 20px 14px 36px;
  }
  .card-inner {
    padding: 16px 16px 14px;
  }
  .prose {
    padding: 16px 18px 20px;
    font-size: 14px;
    line-height: 2;
  }
  .cover-photo {
    max-height: 240px;
  }
  .frame-photo {
    width: 140px;
    height: 140px;
    border-width: 10px;
  }
  .btn {
    padding: 9px 12px;
    font-size: 13px;
  }
  .btn-primary {
    padding: 10px 16px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 22px;
  }
  .brand-title {
    font-size: 18px;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: rgba(36, 27, 23, 0.06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(36, 27, 23, 0.1);
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: rgba(36, 27, 23, 0.75);
  border-radius: 1px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端侧边栏 */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 90vw;
  height: 100%;
  background: rgba(251, 247, 242, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 12px 0 40px rgba(20, 12, 10, 0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 10, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 49;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(36, 27, 23, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-sidebar-title {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 19px;
  letter-spacing: 1px;
}

.mobile-sidebar-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: rgba(36, 27, 23, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(36, 27, 23, 0.7);
  transition: all 0.2s ease;
}

.mobile-sidebar-close:hover {
  background: rgba(36, 27, 23, 0.1);
}

.mobile-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 14px;
  color: rgba(36, 27, 23, 0.8);
  font-size: 15px;
  transition: all 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(231, 180, 182, 0.15);
}

.mobile-nav a[data-active="true"] {
  background: rgba(184, 155, 102, 0.18);
  color: rgba(36, 27, 23, 0.92);
  font-weight: 500;
}

.mobile-sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(36, 27, 23, 0.06);
}

.mobile-sidebar-footer .btn {
  width: 100%;
  margin-bottom: 8px;
}

/* 精致动画效果 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 14px 36px rgba(231, 180, 182, 0.2); }
  50% { box-shadow: 0 18px 48px rgba(231, 180, 182, 0.28); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(251, 247, 242, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(231, 180, 182, 0.6), rgba(184, 155, 102, 0.5));
  border-radius: 999px;
  border: 2px solid rgba(251, 247, 242, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(231, 180, 182, 0.7), rgba(184, 155, 102, 0.6));
}

/* 音量滑动条样式 */
.volume-control {
  margin-top: 4px;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(251, 247, 242, 0.72);
  border-radius: 14px;
  border: 1px solid rgba(36, 27, 23, 0.08);
  box-shadow: 0 6px 20px rgba(20, 12, 10, 0.06);
}

.volume-label {
  font-size: 13px;
  color: rgba(36, 27, 23, 0.72);
  font-weight: 500;
  white-space: nowrap;
  min-width: 70px;
}

.volume-value {
  font-size: 14px;
  color: rgba(184, 155, 102, 0.9);
  font-weight: 600;
  min-width: 45px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.volume-slider {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 180, 182, 0.3), rgba(184, 155, 102, 0.25));
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.92), rgba(207, 143, 147, 0.88));
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(207, 143, 147, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(251, 247, 242, 0.95);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 
    0 6px 16px rgba(207, 143, 147, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.12);
}

.volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.18);
}

.volume-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.92), rgba(207, 143, 147, 0.88));
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(207, 143, 147, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(251, 247, 242, 0.95);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.12);
}

.volume-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 180, 182, 0.3), rgba(184, 155, 102, 0.25));
}

.volume-slider:focus {
  box-shadow: none;
}

.volume-slider:hover {
  background: linear-gradient(90deg, rgba(231, 180, 182, 0.4), rgba(184, 155, 102, 0.35));
}

/* 通用滑动条样式 */
.font-size-control,
.anim-speed-control {
  margin-top: 4px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(251, 247, 242, 0.72);
  border-radius: 14px;
  border: 1px solid rgba(36, 27, 23, 0.08);
  box-shadow: 0 6px 20px rgba(20, 12, 10, 0.06);
}

.slider-label {
  font-size: 13px;
  color: rgba(36, 27, 23, 0.72);
  font-weight: 500;
  white-space: nowrap;
  min-width: 70px;
}

.slider-value {
  font-size: 14px;
  color: rgba(184, 155, 102, 0.9);
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

/* 字体大小滑动条 */
.font-size-slider {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 180, 182, 0.2), rgba(184, 155, 102, 0.3));
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
}

.font-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184, 155, 102, 0.92), rgba(160, 136, 86, 0.88));
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(184, 155, 102, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(251, 247, 242, 0.95);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.font-size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 
    0 6px 16px rgba(184, 155, 102, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.12);
}

.font-size-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184, 155, 102, 0.92), rgba(160, 136, 86, 0.88));
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(184, 155, 102, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(251, 247, 242, 0.95);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.font-size-slider:hover {
  background: linear-gradient(90deg, rgba(231, 180, 182, 0.3), rgba(184, 155, 102, 0.4));
}

/* 动画速度滑动条 */
.anim-speed-slider {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 155, 102, 0.25), rgba(231, 180, 182, 0.3));
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
}

.anim-speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(207, 143, 147, 0.92), rgba(184, 125, 130, 0.88));
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(207, 143, 147, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(251, 247, 242, 0.95);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-speed-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 
    0 6px 16px rgba(207, 143, 147, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.12);
}

.anim-speed-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(207, 143, 147, 0.92), rgba(184, 125, 130, 0.88));
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(207, 143, 147, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(251, 247, 242, 0.95);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-speed-slider:hover {
  background: linear-gradient(90deg, rgba(184, 155, 102, 0.35), rgba(231, 180, 182, 0.4));
}

/* ================ 云端登录界面样式 ================ */
.cloud-login-wrap {
  background: 
    radial-gradient(1400px 800px at 30% 20%, rgba(231, 180, 182, 0.45), transparent 55%),
    radial-gradient(1000px 600px at 70% 80%, rgba(184, 155, 102, 0.25), transparent 50%),
    radial-gradient(800px 500px at 85% 15%, rgba(231, 180, 182, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(251, 247, 242, 0.98), rgba(244, 237, 230, 0.95));
}

.cloud-login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud-login-bg::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(231, 180, 182, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.cloud-login-bg::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(184, 155, 102, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.cloud-login-card {
  position: relative;
  width: min(520px, 92%);
  border-radius: 32px;
  background: rgba(251, 247, 242, 0.96);
  border: 1px solid rgba(231, 180, 182, 0.25);
  box-shadow: 
    0 32px 80px rgba(20, 12, 10, 0.12),
    0 8px 32px rgba(231, 180, 182, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 32px 24px 28px;
  text-align: center;
  overflow: hidden;
}

.cloud-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  right: -50%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(231, 180, 182, 0.4) 25%, 
    rgba(231, 180, 182, 0.6) 50%, 
    rgba(231, 180, 182, 0.4) 75%, 
    transparent 100%);
}

.heart-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(207, 143, 147, 0.9);
  animation: heartbeat 1.5s ease-in-out infinite;
}

.heart-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(207, 143, 147, 0.3));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

.cloud-login-title {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 32px;
  letter-spacing: 2.2px;
  margin: 0 0 8px;
  color: rgba(36, 27, 23, 0.92);
  text-shadow: 0 2px 8px rgba(231, 180, 182, 0.2);
}

.cloud-login-subtitle {
  font-size: 15px;
  color: rgba(207, 143, 147, 0.88);
  margin: 0 0 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
}

.cloud-login-desc {
  font-size: 13px;
  color: rgba(36, 27, 23, 0.65);
  margin: 0 0 28px;
  line-height: 1.8;
}

.cloud-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 8px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(251, 247, 242, 0.85);
  border: 1px solid rgba(231, 180, 182, 0.3);
  border-radius: 18px;
  padding: 0 16px;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.input-group:focus-within {
  border-color: rgba(231, 180, 182, 0.65);
  box-shadow: 
    0 0 0 3px rgba(231, 180, 182, 0.12),
    0 8px 24px rgba(231, 180, 182, 0.15);
  background: rgba(251, 247, 242, 0.95);
}

.input-group:hover {
  border-color: rgba(231, 180, 182, 0.45);
}

.input-icon {
  width: 20px;
  height: 20px;
  color: rgba(36, 27, 23, 0.55);
  margin-right: 12px;
  flex-shrink: 0;
  transition: color 200ms ease;
}

.input-group:focus-within .input-icon {
  color: rgba(207, 143, 147, 0.85);
}

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

.cloud-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: rgba(36, 27, 23, 0.88);
  outline: none;
}

.cloud-input::placeholder {
  color: rgba(36, 27, 23, 0.45);
}

.cloud-login-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.cloud-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.9), rgba(207, 143, 147, 0.85));
  color: rgba(36, 27, 23, 0.92);
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 
    0 14px 36px rgba(207, 143, 147, 0.3),
    0 4px 12px rgba(207, 143, 147, 0.2);
}

.cloud-login-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(231, 180, 182, 0.98), rgba(207, 143, 147, 0.92));
  box-shadow: 
    0 18px 44px rgba(207, 143, 147, 0.35),
    0 6px 16px rgba(207, 143, 147, 0.25);
}

.cloud-login-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}

.cloud-login-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.cloud-cancel-btn {
  padding: 14px 28px;
  font-size: 14px;
  color: rgba(36, 27, 23, 0.7);
  background: transparent;
  border: 1px solid rgba(36, 27, 23, 0.15);
  border-radius: 24px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cloud-cancel-btn:hover {
  background: rgba(36, 27, 23, 0.06);
  border-color: rgba(36, 27, 23, 0.25);
  transform: translateY(-1px);
}

.cloud-login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(231, 180, 182, 0.15);
  font-size: 12px;
  color: rgba(36, 27, 23, 0.5);
  letter-spacing: 0.4px;
}

/* 云端登录响应式 */
@media (max-width: 540px) {
  .cloud-login-card {
    padding: 26px 18px 24px;
    border-radius: 26px;
  }
  
  .heart-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }
  
  .cloud-login-title {
    font-size: 26px;
    letter-spacing: 1.8px;
  }
  
  .cloud-login-subtitle {
    font-size: 14px;
  }
  
  .cloud-login-desc {
    font-size: 12px;
    margin-bottom: 22px;
  }
  
  .cloud-login-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .cloud-cancel-btn {
    padding: 12px 22px;
    font-size: 13px;
  }
}

/* ================ 日历选择器样式 ================ */
.custom-calendar-popup .cal-nav-btn:hover {
  background: rgba(231, 180, 182, 0.15) !important;
  border-color: rgba(231, 180, 182, 0.5) !important;
  transform: scale(1.05);
}

.custom-calendar-popup .cal-day-btn:hover {
  background: rgba(231, 180, 182, 0.15) !important;
  transform: scale(1.1);
}

.custom-calendar-popup .cal-day-btn:active {
  transform: scale(0.95);
}

/* 日期输入框样式（触发自定义日历） */
input[readonly][style*="cursor: pointer"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(231, 180, 182, 0.35);
  background: rgba(251, 247, 242, 0.85);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: rgba(36, 27, 23, 0.88);
  outline: none;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

input[readonly][style*="cursor: pointer"]:hover {
  border-color: rgba(231, 180, 182, 0.55);
  background: rgba(251, 247, 242, 0.92);
}

input[readonly][style*="cursor: pointer"]:focus {
  border-color: rgba(231, 180, 182, 0.65);
  box-shadow: 
    0 0 0 3px rgba(231, 180, 182, 0.12),
    0 8px 24px rgba(231, 180, 182, 0.15);
  background: rgba(251, 247, 242, 0.95);
}
