:root {
  --paper: #fbf7f2;
  --paper-2: #f4ede6;
  --ink: #241b17;
  --muted: rgba(36, 27, 23, 0.62);
  --rose: #e7b4b6;
  --rose-2: #cf8f93;
  --rose-3: #c97a7e;
  --pink: #f5c8ca;
  --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;
}

/* 动态背景光点容器 */
.dynamic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.dynamic-bg.active {
  opacity: 1;
}

/* 浮动光点 */
.floating-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(231, 180, 182, 0.8), rgba(184, 155, 102, 0.4));
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 8s ease-in-out infinite;
  filter: blur(1px);
}

.floating-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.floating-particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 9s; }
.floating-particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 8s; }
.floating-particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 10s; }
.floating-particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 7.5s; }
.floating-particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 8.5s; }
.floating-particle:nth-child(7) { left: 70%; animation-delay: 0.8s; animation-duration: 9.5s; }
.floating-particle:nth-child(8) { left: 80%; animation-delay: 1.8s; animation-duration: 7.8s; }
.floating-particle:nth-child(9) { left: 90%; animation-delay: 2.8s; animation-duration: 8.2s; }
.floating-particle:nth-child(10) { left: 15%; animation-delay: 3s; animation-duration: 9.2s; }
.floating-particle:nth-child(11) { left: 45%; animation-delay: 3.5s; animation-duration: 8.8s; }
.floating-particle:nth-child(12) { left: 75%; animation-delay: 4s; animation-duration: 7.2s; }

/* 光点大小变化 */
.floating-particle:nth-child(odd) {
  width: 6px;
  height: 6px;
}

.floating-particle:nth-child(3n) {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(184, 155, 102, 0.9), rgba(231, 180, 182, 0.5));
}

@keyframes floatUp {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateX(0) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    transform: translateX(20px) scale(1.2);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
  }
}

/* 动态背景光晕效果 */
.dynamic-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.dynamic-glow.active {
  opacity: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 4s ease-in-out infinite;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(231, 180, 182, 0.4), transparent 70%);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(184, 155, 102, 0.35), transparent 70%);
  top: 60%;
  right: 10%;
  animation-delay: 1.5s;
}

.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(231, 180, 182, 0.3), transparent 70%);
  bottom: 20%;
  left: 30%;
  animation-delay: 3s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* 音乐播放时的背景增强效果 */
body.music-playing {
  background: 
    radial-gradient(1200px 700px at 12% 12%, rgba(231, 180, 182, 0.5), transparent 60%),
    radial-gradient(900px 560px at 88% 18%, rgba(184, 155, 102, 0.3), transparent 60%),
    radial-gradient(900px 700px at 70% 92%, rgba(231, 180, 182, 0.35), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  transition: background 1s ease;
}

/* 封面照片样式 */
.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);
}

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;
  width: 100%;
  box-sizing: border-box;
}

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);
  overflow-y: auto;
}

.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;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.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;
  }
  .modal {
    max-height: 90vh;
    border-radius: 18px;
  }
  .modal-head {
    padding: 14px 16px;
  }
  .modal-body {
    padding: 14px 16px 16px;
  }
  .modal-head h3 {
    font-size: 14px;
  }
  .form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form label {
    font-size: 12px;
  }
  .actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .actions .btn {
    width: 100%;
  }
  input,
  textarea,
  select {
    padding: 10px 12px;
    font-size: 13px;
  }
  textarea {
    min-height: 120px;
  }
  .cloud-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .cloud-actions .btn {
    width: 100%;
  }
}

@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-config-section {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(231, 180, 182, 0.1);
  border-radius: 10px;
  border: 1px dashed rgba(231, 180, 182, 0.3);
}

.cloud-config-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(36, 27, 23, 0.85);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cloud-config-title::before {
  content: "⚙️";
  font-size: 12px;
}

/* 分隔线 */
.cloud-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: rgba(36, 27, 23, 0.4);
}

.cloud-divider::before,
.cloud-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(36, 27, 23, 0.2), transparent);
}

.cloud-divider span {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* 更小的输入图标 */
.cloud-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: 14px;
  padding: 0 12px;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cloud-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);
}

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

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

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

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

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

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

/* ================ 云端登录界面样式 ================ */
.cloud-login-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  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));
  z-index: 999;
  overflow: auto;
  box-sizing: border-box;
}

.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: 24px;
  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: 22px 20px 20px;
  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: 44px;
  height: 44px;
  margin: 0 auto 10px;
  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: 24px;
  letter-spacing: 1.6px;
  margin: 0 0 6px;
  color: rgba(36, 27, 23, 0.92);
  text-shadow: 0 2px 8px rgba(231, 180, 182, 0.2);
}

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

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

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

.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: 10px;
  margin-top: 18px;
}

.cloud-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  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: 20px;
  border: none;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 
    0 10px 28px rgba(207, 143, 147, 0.25),
    0 3px 10px rgba(207, 143, 147, 0.18);
}

.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 14px 36px rgba(207, 143, 147, 0.3),
    0 4px 12px rgba(207, 143, 147, 0.22);
}

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

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

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

.cloud-cancel-btn {
  padding: 11px 20px;
  font-size: 13px;
  color: rgba(36, 27, 23, 0.7);
  background: transparent;
  border: 1px solid rgba(36, 27, 23, 0.15);
  border-radius: 20px;
  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: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(231, 180, 182, 0.15);
  font-size: 11px;
  color: rgba(36, 27, 23, 0.5);
  letter-spacing: 0.3px;
}

.cloud-signup-link {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(231, 180, 182, 0.2);
  font-size: 13px;
  color: rgba(199, 108, 113, 0.85);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.cloud-signup-link:hover {
  color: rgba(199, 108, 113, 1);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 云端登录响应式 */
@media (max-width: 540px) {
  .cloud-login-card {
    padding: 18px 16px 18px;
    border-radius: 20px;
  }
  
  .heart-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  
  .cloud-login-title {
    font-size: 20px;
    letter-spacing: 1.2px;
  }
  
  .cloud-login-subtitle {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .cloud-login-desc {
    font-size: 11px;
    margin-bottom: 14px;
    line-height: 1.5;
  }
  
  .cloud-login-form {
    gap: 10px;
  }
  
  .cloud-config-section {
    margin-bottom: 10px;
    padding: 10px;
  }
  
  .cloud-config-title {
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  .cloud-input-group {
    padding: 0 10px;
    border-radius: 12px;
  }
  
  .cloud-input-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
  }
  
  .cloud-input {
    padding: 9px 0;
    font-size: 12px;
  }
  
  .cloud-divider {
    margin: 10px 0;
  }
  
  .cloud-divider span {
    font-size: 10px;
  }
  
  .cloud-login-actions {
    gap: 8px;
    margin-top: 14px;
  }
  
  .cloud-login-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .cloud-cancel-btn {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .btn-arrow {
    width: 12px;
    height: 12px;
  }
  
  .cloud-login-footer {
    margin-top: 14px;
    padding-top: 10px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .cloud-login-card {
    padding: 16px 14px 16px;
  }
  
  .heart-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }
  
  .cloud-login-title {
    font-size: 18px;
  }
}

/* ================ 日历选择器样式 ================ */
.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);
}

/* ================ 照片上传样式 ================ */
.photo-drop-zone:hover {
  border-color: rgba(231, 180, 182, 0.6);
  background: rgba(251, 247, 242, 0.8);
}

.photo-drop-zone:hover .icon-wrapper {
  transform: scale(1.05);
}

.photo-preview-wrap img {
  box-shadow: 0 4px 12px rgba(20, 12, 10, 0.08);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* ================ 统计卡片样式 ================ */
.stat-card {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20, 12, 10, 0.12);
}

/* 响应式布局：小屏幕下3列变1列 */
@media (max-width: 768px) {
  .grid:has(.stat-card) {
    grid-template-columns: 1fr;
  }
}

/* ================ 音乐律动条样式 ================ */
.audio-bar-container {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 8px;
}

.audio-bar {
  width: 3px;
  height: 8px;
  background: linear-gradient(180deg, var(--rose-2) 0%, var(--rose-3) 100%);
  border-radius: 2px;
  animation: audioWave 0.6s ease-in-out infinite alternate;
  opacity: 0.6;
}

.audio-bar:nth-child(odd) {
  background: linear-gradient(180deg, var(--pink) 0%, var(--rose-3) 100%);
}

.audio-bar:nth-child(3n) {
  background: linear-gradient(180deg, var(--rose-1) 0%, var(--pink) 100%);
}

.audio-bar-container.playing .audio-bar {
  animation-play-state: running;
  opacity: 1;
}

.audio-bar-container:not(.playing) .audio-bar {
  animation-play-state: paused;
  opacity: 0.3;
}

@keyframes audioWave {
  0% {
    height: 6px;
    transform: scaleY(0.8);
  }
  50% {
    height: 18px;
    transform: scaleY(1);
  }
  100% {
    height: 10px;
    transform: scaleY(0.9);
  }
}

/* 移动端隐藏律动条 */
@media (max-width: 640px) {
  .audio-bar-container {
    display: none;
  }
}

/* ================ 愿望列表样式 ================ */
.wish-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}

.wish-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(231, 180, 182, 0.08);
  border-radius: 10px;
  transition: all 200ms ease;
}

.wish-item:hover {
  background: rgba(231, 180, 182, 0.15);
  transform: translateX(4px);
}

.wish-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.wish-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.wish-date {
  font-size: 11px;
  color: var(--muted);
  background: rgba(231, 180, 182, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Emoji选择器 */
.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: rgba(231, 180, 182, 0.05);
  border-radius: 12px;
  margin-top: 8px;
}

.emoji-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: white;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 200ms ease;
}

.emoji-btn:hover {
  background: rgba(231, 180, 182, 0.1);
  transform: scale(1.1);
}

.emoji-btn.selected {
  border-color: var(--rose-2);
  background: rgba(231, 180, 182, 0.15);
}

/* 按钮危险样式 */
.btn-danger {
  background: #ff4d4f !important;
  color: white !important;
  border: none !important;
}

.btn-danger:hover {
  background: #ff7875 !important;
}

/* 关闭按钮 */
.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 200ms ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}
