/* ============ 主题变量 ============ */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #121230;
  --bg-card: rgba(18, 18, 45, 0.85);
  --bg-card-hover: rgba(100, 150, 255, 0.12);
  --bg-input: rgba(10, 10, 30, 0.6);
  --bg-navbar: rgba(10, 10, 30, 0.85);
  --bg-modal: rgba(18, 18, 50, 0.95);
  --bg-scroll: rgba(100, 150, 255, 0.3);
  
  --text-primary: #e0e0e0;
  --text-secondary: #c8c8ee;
  --text-muted: #8899dd;
  --text-subtle: #6666aa;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  
  --accent-primary: #7b5ea7;
  --accent-blue: #1890ff;
  --accent-pink: #ff6b9d;
  --accent-green: #73d13d;
  --accent-orange: #ffaa55;
  --accent-red: #ff4d4f;
  
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 10px 40px rgba(0, 0, 0, 0.5);
  
  --star-color: #fff;
  --star-accent: #aaddff;
  --star-warm: #ffeedd;
}

.theme-light {
  --bg-primary: #f5e0c3;
  --bg-secondary: #e8c8a8;
  --bg-card: rgba(216, 144, 64, 0.15);
  --bg-card-hover: rgba(216, 144, 64, 0.25);
  --bg-input: rgba(255, 248, 240, 0.9);
  --bg-navbar: rgba(245, 224, 195, 0.96);
  --bg-modal: rgba(255, 248, 240, 0.98);
  --bg-scroll: rgba(216, 144, 64, 0.5);
  
  --text-primary: #2a1a0a;
  --text-secondary: #3a2a1a;
  --text-muted: #5a4a2a;
  --text-subtle: #7a6a4a;
  
  --border-color: rgba(216, 144, 64, 0.3);
  --border-light: rgba(216, 144, 64, 0.4);
  
  --accent-primary: #d89040;
  --accent-blue: #6a8ab8;
  --accent-pink: #d47a7a;
  --accent-green: #6a9a6a;
  --accent-orange: #c87030;
  --accent-red: #b84545;
  
  --shadow-card: 0 3px 15px rgba(216, 144, 64, 0.18);
  --shadow-modal: 0 12px 45px rgba(216, 144, 64, 0.2);
  
  --star-color: rgba(216, 144, 64, 0.5);
  --star-accent: rgba(255, 180, 100, 0.6);
  --star-warm: rgba(255, 200, 120, 0.7);
}

.theme-light .carousel-card.card-blue {
  background: rgba(200, 210, 240, 0.98);
  border: 1px solid rgba(106, 138, 184, 0.4);
}
.theme-light .carousel-card.card-blue .cc-nickname {
  color: #1a2a4a;
}
.theme-light .carousel-card.card-blue .cc-content {
  color: #2a3a5a;
}
.theme-light .carousel-card.card-blue .cc-time {
  color: #5a6a8a;
}

.theme-light .carousel-card.card-pink {
  background: rgba(240, 190, 180, 0.98);
  border: 1px solid rgba(212, 122, 122, 0.4);
}
.theme-light .carousel-card.card-pink .cc-nickname {
  color: #5a2a2a;
}
.theme-light .carousel-card.card-pink .cc-content {
  color: #6a3a3a;
}
.theme-light .carousel-card.card-pink .cc-time {
  color: #8a5a5a;
}

.theme-light .cc-date-tag.tag-old {
  background: rgba(216, 144, 64, 0.15);
}

.theme-light .carousel-empty {
  color: #7a6a4a;
}

.theme-light .recon-card {
  border-left-color: rgba(106, 138, 184, 0.5);
  background: rgba(200, 210, 240, 0.6);
}
.theme-light .recon-card.zhujing {
  border-left-color: rgba(212, 122, 122, 0.5);
  background: rgba(240, 190, 180, 0.6);
}
.theme-light .recon-nickname {
  color: #1a2a4a;
}
.theme-light .recon-time {
  color: #5a6a8a;
}

.theme-light .auth-title { color: #2a1a0a; }
.theme-light .auth-subtitle { color: #4a3a2a; }
.theme-light .form-group input::placeholder { color: #7a6a4a; }
.theme-light .auth-switch { color: #4a3a2a; }
.theme-light .loading { color: #6a5a3a; }
.theme-light .empty-msg { color: #6a5a3a; }
.theme-light .detail-msg .dm-nickname { color: #2a1a0a; }
.theme-light .detail-msg .dm-time { color: #6a5a3a; }
.theme-light .detail-msg .dm-content { color: #2a1a0a; }
.theme-light .detail-replies-title { color: #2a1a0a; border-bottom-color: rgba(216, 144, 64, 0.2); }
.theme-light .detail-reply-item { border-bottom-color: rgba(216, 144, 64, 0.1); }
.theme-light .detail-reply-item .dr-nickname { color: #2a1a0a; }
.theme-light .detail-reply-item .dr-time { color: #6a5a3a; }
.theme-light .detail-reply-item .dr-content { color: #3a2a1a; }
.theme-light .recon-content { color: #2a2a4a; }
.theme-light .recon-cool { color: #5a6a8a; }

.theme-light .cc-reply-row {
  border-top-color: rgba(216, 144, 64, 0.15);
  color: #6a5a3a;
}
.theme-light .cc-reply-item strong { color: #2a2a4a; }
.theme-light .cc-reply-item .cc-reply-to { color: #6a8ab8; }

.theme-light .ann-item {
  background: rgba(216, 144, 64, 0.08);
  border-left-color: rgba(106, 138, 184, 0.5);
}
.theme-light .ann-item:hover {
  background: rgba(216, 144, 64, 0.12);
}
.theme-light .ann-name { color: #2a1a0a; }
.theme-light .ann-date { color: #5a6a8a; }
.theme-light .ann-delete { color: #a06a5a; background: rgba(0,0,0,0.05); }
.theme-light .ann-delete:hover { background: rgba(200,60,60,0.15); color: #c0392b; }

.theme-light .recon-content { color: #2a2a4a; }
.theme-light .recon-content.locked { color: #6a5a3a; }
.theme-light .recon-countdown { color: #c87030; }

.theme-light .capsule-item {
  background: rgba(216, 144, 64, 0.08);
  border-left-color: rgba(216, 144, 64, 0.5);
}
.theme-light .capsule-item:hover {
  background: rgba(216, 144, 64, 0.12);
}
.theme-light .capsule-item.published {
  border-left-color: rgba(106, 154, 106, 0.6);
}
.theme-light .capsule-status.locked {
  background: rgba(216, 144, 64, 0.2);
  color: #c87030;
}
.theme-light .capsule-status.published {
  background: rgba(106, 154, 106, 0.2);
  color: #6a9a6a;
}

.theme-light .capsule-text { color: #2a2a4a; }
.theme-light .capsule-text.locked { color: #6a5a3a; }
.theme-light .capsule-actions .btn-delete {
  color: #b84545;
  border-color: rgba(184, 69, 69, 0.4);
}
.theme-light .capsule-actions .btn-delete:hover {
  background: rgba(184, 69, 69, 0.12);
}
.theme-light .capsule-empty { color: #6a5a3a; }

.theme-light .upload-tip { color: #6a5a3a; }

.theme-light .film-counter { color: rgba(106, 138, 184, 0.5); }
.theme-light .music-toggle {
  background: rgba(245, 224, 195, 0.98);
  border-color: rgba(216, 144, 64, 0.3);
  box-shadow: 0 4px 15px rgba(216, 144, 64, 0.15);
}
.theme-light .music-toggle:hover {
  border-color: rgba(106, 138, 184, 0.5);
}

.theme-light .music-list::-webkit-scrollbar-thumb {
  background: rgba(106, 138, 184, 0.4);
}
.theme-light .music-item {
  color: #2a1a0a;
}
.theme-light .music-item:hover {
  background: rgba(216, 144, 64, 0.15);
}
.theme-light .music-item.current {
  background: rgba(216, 144, 64, 0.25);
  color: #1a0a00;
}
.theme-light .music-controls button {
  color: #2a1a0a;
}
.theme-light .music-progress {
  background: rgba(216, 144, 64, 0.15);
}
.theme-light .music-progress-bar::after {
  background: #2a1a0a;
}
.theme-light .music-progress-bar {
  background: linear-gradient(90deg, #d89040, #6a8ab8);
}

.theme-light .music-panel {
  background: rgba(245, 224, 195, 0.98);
  border-color: rgba(216, 144, 64, 0.3);
  box-shadow: 0 8px 30px rgba(216, 144, 64, 0.2);
}
.theme-light .music-panel-header {
  border-bottom-color: rgba(216, 144, 64, 0.15);
  color: #2a1a0a;
}
.theme-light .music-status {
  color: #6a5a3a;
}
.theme-light .music-status.playing {
  color: #6a9a6a;
}
.theme-light .music-now-playing {
  color: #3a2a1a;
  border-bottom-color: rgba(216, 144, 64, 0.15);
}

.theme-light .play-icon {
  border-color: #2a1a0a;
}
.theme-light .play-icon.paused::before,
.theme-light .play-icon.paused::after {
  background: #2a1a0a;
}
.theme-light .missing-card h3 { color: #2a1a0a; }
.theme-light .missing-tip { color: #5a6a8a; }

.theme-light .missing-col:not(:last-child)::after {
  background: rgba(216, 144, 64, 0.15);
}
.theme-light .missing-label { color: #6a5a3a; }
.theme-light .missing-num { color: #2a1a0a; }
.theme-light .missing-col:last-child .missing-label {
  color: #6a8ab8;
}
.theme-light .missing-col:last-child .missing-num {
  color: #6a8ab8;
}

.theme-light .mood-other-name { color: #2a1a0a; }
.theme-light .mood-other-label { color: #3a2a1a; }
.theme-light .mood-other-note { color: #4a3a2a; }
.theme-light .mood-checked {
  background: rgba(216, 144, 64, 0.2);
  border-color: rgba(216, 144, 64, 0.4);
  color: #2a1a0a;
}
.theme-light .mood-note-text {
  color: #5a4a2a;
}
.theme-light .mood-btn {
  background: rgba(216, 144, 64, 0.08);
  border-color: rgba(216, 144, 64, 0.25);
  color: #2a2a4a;
}
.theme-light .mood-btn span { color: #5a6a8a; }
.theme-light .mood-btn:hover {
  background: rgba(216, 144, 64, 0.25);
  border-color: rgba(216, 144, 64, 0.5);
}
.theme-light .mood-btn.active {
  background: linear-gradient(135deg, rgba(216, 144, 64, 0.35), rgba(106, 138, 184, 0.35));
  border-color: #d89040;
}

.theme-light .ls-label { color: #6a5a3a; }
.theme-light .ls-countdown { color: #5a6a8a; }
.theme-light .btn-load-more {
  background: rgba(245, 224, 195, 0.98);
  border-color: rgba(216, 144, 64, 0.5);
  color: #3a2a1a;
}
.theme-light .btn-load-more:hover {
  background: rgba(216, 144, 64, 0.25);
  color: #2a1a0a;
  border-color: #d89040;
}

.theme-light .photo-lightbox {
  background: rgba(245, 224, 195, 0.98);
}
.theme-light .lightbox-close {
  color: #2a2a4a;
  background: rgba(216, 144, 64, 0.15);
}
.theme-light .lightbox-close:hover { background: rgba(216, 144, 64, 0.25); }
.theme-light .lightbox-prev, .theme-light .lightbox-next {
  background: rgba(216, 144, 64, 0.15);
  color: #2a2a4a;
}
.theme-light .lightbox-prev:hover, .theme-light .lightbox-next:hover {
  background: rgba(216, 144, 64, 0.25);
}
.theme-light .lightbox-del {
  color: #2a2a4a;
}

.theme-light .btn-outline {
  border-color: rgba(216, 144, 64, 0.3);
  color: #4a3a2a;
}
.theme-light .btn-like, .theme-light .btn-reply {
  border-color: rgba(216, 144, 64, 0.25);
  color: #6a5a3a;
}
.theme-light .navbar-dropdown {
  background: rgba(245, 224, 195, 0.98);
  border-color: rgba(216, 144, 64, 0.3);
}
.theme-light .navbar-dropdown::before {
  border-bottom-color: rgba(216, 144, 64, 0.3);
}
.theme-light .dropdown-item {
  color: #2a2a4a;
}
.theme-light .dropdown-item:hover {
  background: rgba(216, 144, 64, 0.15);
}
.theme-light .auth-card {
  background: rgba(245, 224, 195, 0.98);
  border-color: rgba(216, 144, 64, 0.3);
}
.theme-light .form-group input {
  border-color: rgba(216, 144, 64, 0.25);
}
.theme-light .form-group input:focus {
  border-color: rgba(216, 144, 64, 0.6);
  box-shadow: 0 0 0 2px rgba(216, 144, 64, 0.2);
}

.theme-light .sidebar-menu-item {
  color: #3a2a1a;
}
.theme-light .sidebar-menu-item:hover,
.theme-light .sidebar-menu-item.active {
  background: rgba(216, 144, 64, 0.15);
  color: #d89040;
}
.theme-light .modal-overlay {
  background: rgba(0, 0, 0, 0.45);
}
.theme-light .modal-content {
  background: rgba(245, 224, 195, 0.98);
  border-color: rgba(216, 144, 64, 0.3);
}
.theme-light .modal-header {
  border-bottom-color: rgba(216, 144, 64, 0.2);
}
.theme-light .modal-title {
  color: #2a1a0a;
}
.theme-light .modal-close {
  color: #6a5a3a;
}
.theme-light .modal-close:hover {
  background: rgba(216, 144, 64, 0.15);
}

.theme-light .content-area {
  background: rgba(245, 224, 195, 0.98);
}
.theme-light .panel {
  background: rgba(216, 144, 64, 0.15);
  border-color: rgba(216, 144, 64, 0.25);
}
.theme-light .panel-header {
  border-bottom-color: rgba(216, 144, 64, 0.2);
}
.theme-light .panel-title {
  color: #2a1a0a;
}
.theme-light .panel-body {
  color: #2a2a4a;
}
.theme-light .input-field {
  border-color: rgba(216, 144, 64, 0.25);
  background: rgba(255, 248, 240, 0.8);
  color: #2a1a0a;
}
.theme-light .input-field:focus {
  border-color: rgba(216, 144, 64, 0.6);
  box-shadow: 0 0 0 2px rgba(216, 144, 64, 0.2);
}

.theme-light .recon-empty { color: #6a5a3a; }
.theme-light .recon-countdown.unlocked { color: #6a9a6a; }

.theme-light .mood-other-label { color: #3a4a6a; }
.theme-light .love-stats-card {
  background: rgba(216, 144, 64, 0.18);
  border-color: rgba(216, 144, 64, 0.35);
  color: #2a2a4a;
}
.theme-light .char-arc-text {
  color: #2a2a4a;
}

.theme-light .refresh-carousel {
  background: rgba(245, 224, 195, 0.98);
  border-color: rgba(216, 144, 64, 0.3);
  color: #3a2a1a;
}
.theme-light .modal-cooldown .modal-content {
  background: rgba(245, 224, 195, 0.98);
}
.theme-light .modal-login .modal-content,
.theme-light .modal-register .modal-content {
  background: rgba(245, 224, 195, 0.98);
}

.theme-light .music-now-playing {
  border-bottom-color: rgba(216, 144, 64, 0.15);
  background: rgba(216, 144, 64, 0.08);
}
.theme-light .music-rank {
  border-bottom-color: rgba(216, 144, 64, 0.15);
}
.theme-light .music-rank-title { color: #6a5a3a; }
.theme-light .music-rank-item { color: #2a1a0a; }
.theme-light .music-rank-name { color: #2a1a0a; }
.theme-light .music-rank-pos { color: #6a5a3a; }
.theme-light .music-rank-time { color: #6a5a3a; }

.theme-light .album-empty { color: #6a5a3a; }
.theme-light .album-month-tag {
  background: rgba(216, 144, 64, 0.1);
  color: #6a5a3a;
  border-color: rgba(216, 144, 64, 0.2);
}
.theme-light .album-month-tag:hover {
  background: rgba(216, 144, 64, 0.25);
  color: #d89040;
  border-color: rgba(216, 144, 64, 0.4);
}

.theme-light .form-group input::placeholder { color: #6a5a3a; }
.theme-light .empty-msg { color: #6a5a3a; }

.theme-light .diary-item {
  background: rgba(216, 144, 64, 0.15);
  border-color: rgba(216, 144, 64, 0.25);
}
.theme-light .diary-item:hover { background: rgba(216, 144, 64, 0.2); }
.theme-light .diary-item-author { color: #3a2a1a; }
.theme-light .diary-item-time { color: #6a5a3a; }
.theme-light .diary-item-content { color: #2a1a0a; }
.theme-light .diary-item-title { color: #2a1a0a; }
.theme-light .diary-retract-btn { color: #6a5a3a; }
.theme-light .diary-detail-content { color: #2a1a0a; }
.theme-light .diary-title-input::placeholder { color: #6a5a3a; }
.theme-light .diary-mood-label { color: #2a1a0a; }
.theme-light .diary-textarea {
  background: rgba(255, 248, 240, 0.85);
  border-color: rgba(216, 144, 64, 0.3);
  color: #2a1a0a;
}
.theme-light .diary-textarea::placeholder { color: #6a5a3a; }
.theme-light .diary-char-count { color: #6a5a3a; }
.theme-light .diary-title-input {
  background: rgba(255, 248, 240, 0.85);
  border-color: rgba(216, 144, 64, 0.3);
  color: #2a1a0a;
}
.theme-light .diary-title-input:focus { border-color: rgba(216, 144, 64, 0.6); }
.theme-light .diary-modal .mood-btn {
  background: rgba(216, 144, 64, 0.1);
}
.theme-light .diary-modal .mood-btn:hover {
  background: rgba(216, 144, 64, 0.25);
  border-color: rgba(216, 144, 64, 0.5);
}
.theme-light .diary-modal .mood-btn.active {
  border-color: #d89040;
  background: rgba(216, 144, 64, 0.3);
  box-shadow: 0 0 8px rgba(216, 144, 64, 0.3);
}

.theme-light .carousel-empty { color: #6a5a3a; }
.theme-light .anniversary-add input {
  background: rgba(255, 248, 240, 0.9);
  border-color: rgba(216, 144, 64, 0.3);
  color: #2a1a0a;
}
.theme-light .anniversary-add input:focus {
  border-color: rgba(216, 144, 64, 0.6);
}

.theme-light .cc-reply-item strong { color: #2a2a4a; }
.theme-light .cc-reply-item .cc-reply-to { color: #6a8ab8; }

.theme-light .album-photo {
  border-color: rgba(216, 144, 64, 0.25);
  background: rgba(245, 224, 195, 0.9);
}

.theme-light .recon-cooldown > label { color: #5a6a8a; }
.theme-light .capsule-datetime label { color: #5a6a8a; }

.theme-light .message-item {
  background: rgba(216, 144, 64, 0.15);
  box-shadow: 0 1px 3px rgba(216, 144, 64, 0.15);
}
.theme-light .anniversary-card h3 { color: #3a2a1a; }
.theme-light .mood-other-item {
  background: rgba(216, 144, 64, 0.1);
}
.theme-light .ls-item {
  background: rgba(216, 144, 64, 0.12);
}

/* ============ 全局样式 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* 星空背景层 */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(1px 1px at 10% 20%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 25% 45%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 15%, var(--star-accent) 50%, transparent 100%),
    radial-gradient(1px 1px at 55% 70%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 60%, var(--star-warm) 50%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 10%, var(--star-accent) 50%, transparent 100%),
    radial-gradient(1px 1px at 35% 55%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 25%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 85%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 5% 50%, var(--star-warm) 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 40%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 45% 5%, var(--star-color) 50%, transparent 100%);
  animation: twinkle1 4s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(1px 1px at 20% 65%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 30%, var(--star-accent) 50%, transparent 100%),
    radial-gradient(1px 1px at 48% 48%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 65% 12%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 75%, var(--star-warm) 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 28%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 8% 92%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 42% 82%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 58%, var(--star-accent) 50%, transparent 100%),
    radial-gradient(1px 1px at 72% 48%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 18% 38%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1px 1px at 82% 95%, var(--star-color) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 52% 18%, var(--star-warm) 50%, transparent 100%),
    radial-gradient(1px 1px at 38% 72%, var(--star-color) 50%, transparent 100%);
  animation: twinkle2 5s ease-in-out infinite alternate;
}
@keyframes twinkle1 {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
@keyframes twinkle2 {
  0% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* ============ 流星效果（仅首页） ============ */
/* 纪念日临近 Toast */
.ann-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--bg-modal);
  border: 1px solid rgba(163, 116, 249, 0.4);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  box-shadow: var(--shadow-modal);
  backdrop-filter: blur(10px);
  max-width: 90vw;
  text-align: center;
  animation: annToastIn 0.4s ease;
}
@keyframes annToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ann-toast.hide {
  animation: annToastOut 0.4s ease forwards;
}
@keyframes annToastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-16px); }
}
.meteor-layer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.theme-light .meteor-layer {
  background: radial-gradient(circle at 10% 10%, rgba(255,230,180,0.4) 0%, transparent 50%);
}

.sun {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd54f 0%, #ff9800 30%, #f4511e 60%, transparent 100%);
  box-shadow: 0 0 60px rgba(255,150,80,0.8), 0 0 120px rgba(244,81,30,0.5), 0 0 200px rgba(216,144,64,0.3);
  animation: sunRotate 20s linear infinite;
  opacity: 0;
}
.theme-light .sun {
  opacity: 1;
}

@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sun-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,180,100,0.9), rgba(244,81,30,0.6), transparent);
  transform-origin: center top;
  opacity: 0;
}
.theme-light .sun-ray {
  opacity: 0.7;
}

.sun-ray:nth-child(1) { transform: rotate(0deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite; }
.sun-ray:nth-child(2) { transform: rotate(30deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 0.25s; }
.sun-ray:nth-child(3) { transform: rotate(60deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 0.5s; }
.sun-ray:nth-child(4) { transform: rotate(90deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 0.75s; }
.sun-ray:nth-child(5) { transform: rotate(120deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 1s; }
.sun-ray:nth-child(6) { transform: rotate(150deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 1.25s; }
.sun-ray:nth-child(7) { transform: rotate(180deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 1.5s; }
.sun-ray:nth-child(8) { transform: rotate(210deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 1.75s; }
.sun-ray:nth-child(9) { transform: rotate(240deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 2s; }
.sun-ray:nth-child(10) { transform: rotate(270deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 2.25s; }
.sun-ray:nth-child(11) { transform: rotate(300deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 2.5s; }
.sun-ray:nth-child(12) { transform: rotate(330deg) translateY(-100px); animation: rayPulse 3s ease-in-out infinite 2.75s; }

@keyframes rayPulse {
  0%, 100% { opacity: 0.3; height: 60px; }
  50% { opacity: 0.8; height: 100px; }
}

.petal {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  animation: petalFall linear forwards;
}
.theme-light .petal {
  opacity: 0.9;
}

.petal.pink { background: radial-gradient(circle, #ffb7b2 0%, #ff6b6b 100%); }
.petal.purple { background: radial-gradient(circle, #f8bbd9 0%, #e91e8c 100%); }
.petal.yellow { background: radial-gradient(circle, #fff59d 0%, #ffc107 100%); }
.petal.orange { background: radial-gradient(circle, #ffcc80 0%, #ff8f00 100%); }

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) scale(1);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg) scale(0.8);
  }
}

.meteor {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(-45deg);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(150,200,255,0.8));
  animation: meteorFall linear forwards;
}
.theme-light .meteor {
  display: none;
}

@keyframes meteorFall {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(-45deg) scaleX(0.5);
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-600px) translateY(600px) rotate(-45deg) scaleX(1.2);
  }
}

a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}
.btn-primary { background: #1890ff; color: #fff; }
.btn-primary:hover { background: #40a9ff; }
.btn-primary:active { background: #096dd9; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #aab; }
.btn-outline:hover { border-color: #1890ff; color: #1890ff; }
.btn-block { display: block; width: 100%; padding: 12px; font-size: 16px; }
.btn-like { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #aaa; padding: 3px 10px; font-size: 13px; border-radius: 15px; }
.btn-like:hover { border-color: #ff4d4f; color: #ff4d4f; }
.btn-like.liked { border-color: #ff4d4f; color: #ff4d4f; background: #fff1f0; }
.btn-reply { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #aaa; padding: 3px 10px; font-size: 13px; border-radius: 15px; }
.btn-reply:hover { border-color: #1890ff; color: #1890ff; }
.btn-favorite { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #aaa; padding: 3px 10px; font-size: 13px; border-radius: 15px; }
.btn-favorite:hover { border-color: #ffc107; color: #ffc107; }
.btn-favorite.favorited { border-color: #ffc107; color: #ffc107; background: rgba(255,193,7,0.1); }
.btn-share { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #aaa; padding: 3px 10px; font-size: 13px; border-radius: 15px; }
.btn-share:hover { border-color: #4caf50; color: #4caf50; }
.btn-favorite-mini { background: transparent; border: none; color: #666; font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.btn-favorite-mini:hover { color: #ffc107; background: rgba(255,193,7,0.1); }
.btn-favorite-mini.favorited { color: #ffc107; }

/* Toast提示 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: toastFade 0.3s ease-out;
}
@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.theme-light .toast {
  background: rgba(216, 144, 64, 0.9);
  color: #2a1a0a;
}

/* ============ 登录/注册页 ============ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 1;
}
.auth-container { width: 100%; max-width: 420px; padding: 20px; }
.auth-card {
  background: rgba(18, 18, 45, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 40px 35px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.auth-title { text-align: center; font-size: 28px; margin-bottom: 8px; color: #d8d8ee; }
.auth-subtitle { text-align: center; color: #7777aa; margin-bottom: 30px; font-size: 14px; }
.auth-form h2 { font-size: 18px; margin-bottom: 20px; text-align: center; color: #c8c8ee; }
.form-group { margin-bottom: 16px; }
/* 输入框、下拉框、日期框统一尺寸，避免性别框比别的框小一圈 */
.form-group input,
.form-group select {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
  background-color: rgba(10, 10, 30, 0.6);
  color: #ddd;
}
.form-group input::placeholder { color: #6666aa; }
.form-group input:focus, .form-group select:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.15); }
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaacc' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}
.form-group select option { background: #12122d; color: #ddd; }
/* 日期框的日历图标在深色背景上要看得清，点击整框都能弹出日历 */
.form-group input[type="date"], #regBirthday { cursor: pointer; }
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.85; filter: invert(0.85);
}
.theme-light .form-group select {
  background-color: #fff; color: #222; border-color: rgba(0,0,0,0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555060' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.theme-light .form-group select option { background: #fff; color: #222; }
.theme-light .form-group input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #7777aa; }
.auth-msg { text-align: center; margin-top: 16px; font-size: 14px; min-height: 20px; }
.auth-msg.error { color: #ff7875; }
.auth-msg.success { color: #73d13d; }

/* ============ 导航栏 ============ */
.navbar {
  background: var(--bg-navbar);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  /* z-index: 100 already above stars */
}
.navbar-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 20px; font-weight: bold; color: var(--text-secondary); }
.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s;
}
.nav-link:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
}

/* 导航下拉菜单 */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border-color: rgba(100,150,255,0.3);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-modal);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-modal);
  padding: 4px 0;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-dropdown-item:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.user-info { display: flex; align-items: center; gap: 12px; }
.nickname { color: var(--text-muted); font-weight: 500; font-size: 14px; }

/* ============ 左右分栏布局 ============ */
.main-layout {
  display: flex;
  height: calc(100vh - 56px);
  padding: 16px;
  gap: 16px;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
.toggle-right-panel {
  display: none;
}
.left-panel {
  flex: 4; /* 80% */
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.refresh-carousel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(18,18,50,0.7);
  backdrop-filter: blur(6px);
  color: #b8b8dd;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.refresh-carousel:hover {
  background: rgba(100,150,255,0.2);
  color: #fff;
  transform: rotate(180deg);
}
.refresh-carousel:active {
  transform: rotate(360deg);
}
.right-panel {
  flex: 1; /* 20% */
  min-width: 260px;
  max-width: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

/* ============ 发布留言卡片 ============ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}
.publish-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--text-secondary); }
.search-card h3 { font-size: 15px; margin-bottom: 10px; color: var(--text-secondary); }
.search-card .input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.search-card .input:focus {
  border-color: var(--accent-blue);
}
.search-card .input::placeholder {
  color: var(--text-subtle);
}
.quote-card h3 { font-size: 15px; margin-bottom: 10px; color: var(--text-secondary); }
.quote-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  position: relative;
  padding-left: 10px;
  border-left: 2px solid rgba(255,150,180,0.4);
}
.hot-card h3 { font-size: 15px; margin-bottom: 10px; color: var(--text-secondary); }
.hot-list { display: flex; flex-direction: column; gap: 6px; }
.hot-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-item:hover { background: var(--bg-card-hover); }
.hot-item .hot-meta {
  font-size: 10px;
  color: var(--text-subtle);
  margin-top: 3px;
}
.textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
  background: var(--bg-input);
  color: var(--text-primary);
}
.textarea:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(24,144,255,0.15); }
.publish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.char-count { font-size: 13px; color: var(--text-subtle); }

/* ============ 留言列表 ============ */
.message-list { }
.loading { text-align: center; padding: 40px; color: #7777aa; }
.empty-msg { text-align: center; padding: 60px 20px; color: #6666aa; font-size: 16px; }

/* 单条留言 */
.message-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}
.message-meta { flex: 1; }
.message-nickname { font-weight: 600; font-size: 15px; color: #333; }
.message-time { font-size: 12px; color: #bbb; }
.message-content { font-size: 15px; line-height: 1.7; margin-bottom: 12px; word-wrap: break-word; white-space: pre-wrap; }
.message-actions { display: flex; gap: 10px; align-items: center; }

/* ============ 回复区域 ============ */
.reply-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.reply-item {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.reply-item:last-child { border-bottom: none; }
.reply-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.reply-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}
.reply-nickname { font-weight: 600; color: #333; font-size: 13px; }
.reply-to { color: #1890ff; font-size: 13px; }
.reply-time { font-size: 11px; color: #ccc; }
.reply-content { margin-left: 34px; font-size: 14px; line-height: 1.6; color: #555; word-wrap: break-word; white-space: pre-wrap; }
.reply-actions { margin-left: 34px; margin-top: 4px; display: flex; gap: 8px; }

/* 嵌套回复缩进 */
.reply-nested { margin-left: 34px; }

/* ============ 弹窗 ============ */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: var(--bg-modal);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  /*background: var(--bg-modal);
  padding-top: 24px; */
  padding-bottom: 8px;
  z-index: 10;
}
.modal-header-right {
  display: flex;
  align-items: center;
}
.modal-header span { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.modal-close { font-size: 24px; cursor: pointer; color: var(--text-subtle); }
.modal-close:hover { color: var(--text-primary); }
.modal-footer { margin-top: 12px; text-align: right; }

/* 详情弹窗 */
.detail-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}
.detail-body {
  padding: 4px 0;
}
.detail-msg {
  margin-bottom: 16px;
}
.detail-msg .dm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.detail-msg .dm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  flex-shrink: 0;
}
.detail-msg .dm-nickname { font-weight: 600; font-size: 15px; color: #d8d8ee; }
.detail-msg .dm-time { font-size: 12px; color: #7777aa; }
.detail-msg .dm-content {
  font-size: 15px;
  line-height: 1.7;
  color: #c8c8ee;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 12px;
}
.detail-msg .dm-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.detail-replies-title {
  font-size: 14px;
  font-weight: 600;
  color: #a0a0cc;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.detail-reply-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.detail-reply-item:last-child { border-bottom: none; }
.detail-reply-item .dr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.detail-reply-item .dr-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}
.detail-reply-item .dr-nickname { font-weight: 600; font-size: 13px; color: #c0c0dd; }
.detail-reply-item .dr-to { color: #6699cc; font-size: 13px; }
.detail-reply-item .dr-time { font-size: 11px; color: #666688; }
.detail-reply-item .dr-content {
  margin-left: 34px;
  font-size: 14px;
  line-height: 1.6;
  color: #b0b0cc;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.detail-reply-item .dr-actions {
  margin-left: 34px;
  margin-top: 4px;
  display: flex;
  gap: 8px;
}
.detail-reply-nested {
  margin-left: 34px;
}

/* ============ 3D 旋转留言轨道 ============ */
.carousel-scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}
.carousel-row {
  flex: 1;
  perspective: 3000px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 150px;
}
.ring3d {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.carousel-card {
  position: absolute;
  width: 200px;
  min-height: 110px;
  max-height: 130px;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow-card);
  left: 0;
  top: 0;
  margin-left: -100px;
  margin-top: -60px;
  backface-visibility: visible;
  transition: box-shadow 0.3s;
  border: 1px solid var(--border-color);
}
.carousel-card:hover {
  box-shadow: 0 6px 25px rgba(100,150,255,0.15);
}
/* 特殊用户卡片颜色 */
.carousel-card.card-blue {
  background: rgba(30, 50, 90, 0.9);
  border: 1px solid rgba(100,180,255,0.2);
}
.carousel-card.card-pink {
  background: rgba(70, 30, 50, 0.9);
  border: 1px solid rgba(255,150,180,0.2);
}
/* 当天发布：跑马灯旋转边框 */
.carousel-card.card-today {
  animation: todayGlow 2s ease-in-out infinite alternate;
}
@keyframes todayGlow {
  0% { box-shadow: 0 0 0 2px rgba(115,209,61,0.5), 0 0 12px rgba(115,209,61,0.35); }
  50% { box-shadow: 0 0 0 2px rgba(74,144,226,0.5), 0 0 16px rgba(74,144,226,0.45); }
  100% { box-shadow: 0 0 0 2px rgba(167,139,250,0.5), 0 0 12px rgba(167,139,250,0.35); }
}
.carousel-empty {
  position: absolute;
  text-align: center;
  color: #6666aa;
  font-size: 16px;
}
/* 卡片内部样式 */
.cc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.cc-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  flex-shrink: 0;
}
.cc-nickname { font-weight: 600; font-size: 11px; color: var(--text-secondary); }
.cc-time { font-size: 9px; color: var(--text-subtle); }
.cc-date-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 2px;
  font-weight: normal;
  vertical-align: middle;
}
.cc-date-tag.tag-today {
  background: rgba(80, 180, 80, 0.18);
  color: #73d13d;
  border: 1px solid rgba(80, 180, 80, 0.3);
}
.cc-date-tag.tag-yesterday {
  background: rgba(100, 150, 255, 0.15);
  color: #8cb3ff;
  border: 1px solid rgba(100, 150, 255, 0.25);
}
.cc-date-tag.tag-old {
  background: rgba(255,255,255,0.06);
  color: var(--text-subtle);
  border: 1px solid var(--border-color);
}
.cc-content {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  word-wrap: break-word;
  white-space: pre-wrap;
  margin-bottom: 4px;
  max-height: 45px;
  overflow: hidden;
}
.cc-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.cc-actions .btn-like,
.cc-actions .btn-reply {
  font-size: 10px;
  padding: 1px 6px;
}
/* 卡片内回复预览 */
.cc-replies {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  color: #8888aa;
}
.cc-reply-item {
  padding: 1px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-reply-item strong { color: #c0c0dd; font-weight: 600; }
.cc-reply-item .cc-reply-to { color: #6699cc; }

.carousel-empty {
  position: absolute;
  text-align: center;
  color: #6666aa;
  font-size: 16px;
}

/* ============ 右侧卡片 ============ */
.side-card {
  padding: 14px 18px;
}
.side-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
}
.side-placeholder {
  text-align: center;
  color: #bbb;
  font-size: 13px;
  padding: 10px 0;
}

/* ============ 纪念日模块 ============ */
.anniversary-card {
  padding: 14px 18px;
}
.anniversary-card h3 {
  font-size: 15px;
  color: #c8c8ee;
  margin-bottom: 10px;
}
.anniversary-scroll {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.anniversary-list {
  position: relative;
  animation: annScroll 20s linear infinite;
}
.anniversary-scroll:hover .anniversary-list {
  animation-play-state: paused;
}
.ann-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border-left: 3px solid rgba(100,150,255,0.4);
  transition: background 0.3s;
}
.ann-item:hover {
  background: rgba(255,255,255,0.08);
}
.ann-delete {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #8888bb;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ann-delete:hover {
  background: rgba(255,90,90,0.2);
  color: #ff7875;
}
.ann-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.ann-info {
  flex: 1;
  min-width: 0;
}
.ann-name {
  font-size: 13px;
  font-weight: 600;
  color: #d8d8ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ann-date {
  font-size: 11px;
  color: #7777aa;
  margin-top: 2px;
}
.ann-days {
  font-size: 10px;
  color: #5588cc;
  margin-top: 1px;
  font-weight: 500;
}
@keyframes annScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
/* 添加表单 */
.anniversary-add {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.anniversary-add input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 13px;
  background: rgba(10,10,30,0.6);
  color: #ddd;
  outline: none;
}
.anniversary-add input:focus {
  border-color: #1890ff;
}
/* 经典界面的纪念日日期框：点整框弹日历 */
.anniversary-add input[type="date"] { cursor: pointer; }
.anniversary-add input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .85; }

/* ============ 留言列表 ============ */
.modal-message-list .modal-content {
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.message-list-body {
  padding: 10px 0;
}
.message-list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.message-list-pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #c8c8ee;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.message-list-pagination button:hover {
  background: rgba(100,150,255,0.2);
  border-color: rgba(100,150,255,0.3);
}
.message-list-pagination button.active {
  background: rgba(100,150,255,0.3);
  border-color: rgba(100,150,255,0.5);
  font-weight: 600;
}
.message-list-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.message-list-pagination .pagination-info {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin: 0 8px;
}
.theme-light .message-list-pagination button {
  border-color: rgba(216, 144, 64, 0.3);
  background: rgba(255,248,240,0.85);
  color: #2a1a0a;
}
.theme-light .message-list-pagination button:hover {
  background: rgba(216, 144, 64, 0.15);
}
.theme-light .message-list-pagination button.active {
  background: #d89040;
  color: #fff;
  border-color: #d89040;
}
.theme-light .message-list-pagination .pagination-info {
  color: #8a7a5a;
}
.message-list-search {
  position: relative;
  margin-bottom: 12px;
}
.message-list-search input {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #c8c8ee;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.message-list-search input::placeholder {
  color: rgba(255,255,255,0.3);
}
.message-list-search input:focus {
  border-color: rgba(100,150,255,0.5);
  background: rgba(255,255,255,0.08);
}
.btn-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
}
.btn-search-clear:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.theme-light .message-list-search input {
  background: rgba(255,248,240,0.85);
  border-color: rgba(216, 144, 64, 0.3);
  color: #2a1a0a;
}
.theme-light .message-list-search input::placeholder {
  color: #8a7a5a;
}
.theme-light .message-list-search input:focus {
  border-color: #d89040;
}
.theme-light .btn-search-clear {
  color: #6a5a3a;
}
.theme-light .btn-search-clear:hover {
  background: rgba(216, 144, 64, 0.15);
  color: #3a2a1a;
}
.message-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.message-list-item:hover {
  background: rgba(255,255,255,0.08);
}
.message-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.message-list-info {
  flex: 1;
  min-width: 0;
}
.message-list-nickname {
  font-size: 13px;
  font-weight: 600;
  color: #c8c8ee;
}
.message-list-time {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 8px;
}
.message-list-content {
  font-size: 13px;
  color: #b8b8dd;
  margin-top: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.message-list-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  display: flex;
  gap: 12px;
}
.message-list-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6666aa;
}
.theme-light .message-list-item {
  background: rgba(216, 144, 64, 0.15);
}
.theme-light .message-list-item:hover {
  background: rgba(216, 144, 64, 0.25);
}
.theme-light .message-list-nickname {
  color: #2a1a0a;
}
.theme-light .message-list-time {
  color: #6a5a3a;
}
.theme-light .message-list-content {
  color: #3a2a1a;
}
.theme-light .message-list-meta {
  color: #6a5a3a;
}
.theme-light .message-list-empty {
  color: #6a5a3a;
}

/* ============ 消息通知 ============ */
.modal-notification .modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.notification-body {
  padding: 10px 0;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.notification-item:hover {
  background: rgba(255,255,255,0.05);
}
.notification-item.unread {
  background: rgba(100,150,255,0.1);
  border-left: 3px solid rgba(100,150,255,0.5);
}
.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.notification-info {
  flex: 1;
  min-width: 0;
}
.notification-title {
  font-size: 14px;
  color: #c8c8ee;
  margin-bottom: 4px;
}
.notification-title span {
  font-weight: 600;
}
.notification-content {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notification-time {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.notification-empty {
  text-align: center;
  color: rgba(255,255,255,0.35);
  padding: 40px 20px;
}
.theme-light .notification-item:hover {
  background: rgba(216, 144, 64, 0.1);
}
.theme-light .notification-item.unread {
  background: rgba(216, 144, 64, 0.15);
  border-left-color: #d89040;
}
.theme-light .notification-title {
  color: #2a1a0a;
}
.theme-light .notification-content {
  color: #6a5a3a;
}
.theme-light .notification-time {
  color: #8a7a5a;
}
.theme-light .notification-empty {
  color: #8a7a5a;
}

/* ============ 和解信笺 ============ */
.modal-reconciliation .modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.reconciliation-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reconciliation-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.recon-cooldown {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.recon-cooldown > label {
  font-size: 13px;
  color: #9999cc;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #b8b8dd;
  cursor: pointer;
}
.radio-label input {
  cursor: pointer;
}
.reconciliation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
}
.recon-card {
  border-radius: 10px;
  padding: 14px;
  border-left: 3px solid rgba(100,180,255,0.4);
  background: rgba(30, 50, 90, 0.35);
}
.recon-card.zhujing {
  border-left-color: rgba(255,150,180,0.4);
  background: rgba(70, 30, 50, 0.35);
}
.recon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.recon-nickname {
  font-size: 13px;
  font-weight: 600;
  color: #d8d8ee;
}
.recon-time {
  font-size: 11px;
  color: #7777aa;
}
.recon-content {
  font-size: 14px;
  line-height: 1.7;
  color: #c8c8ee;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.recon-content.locked {
  color: #8888aa;
  font-style: italic;
}
.recon-countdown {
  margin-top: 8px;
  font-size: 12px;
  color: #ffaa55;
  display: flex;
  align-items: center;
  gap: 6px;
}
.recon-countdown.unlocked {
  color: #73d13d;
}
.recon-empty {
  text-align: center;
  color: #6666aa;
  padding: 30px 0;
  font-size: 14px;
}

/* ============ 时光胶囊 ============ */
.modal-capsule .modal-content {
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.capsule-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.capsule-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.capsule-datetime {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.capsule-datetime label {
  font-size: 13px;
  color: #9999cc;
}
.capsule-datetime input[type="datetime-local"] {
  flex: 1;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(10,10,30,0.6);
  color: #ddd;
  font-size: 13px;
  outline: none;
}
.capsule-datetime input[type="datetime-local"]:focus {
  border-color: #1890ff;
}
.capsule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}
.capsule-item {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid rgba(255,200,100,0.4);
  transition: background 0.3s;
}
.capsule-item:hover {
  background: rgba(255,255,255,0.07);
}
.capsule-item.published {
  border-left-color: rgba(100,200,100,0.5);
}
.capsule-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.capsule-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.capsule-status.locked {
  background: rgba(255,150,50,0.15);
  color: #ffaa55;
}
.capsule-status.published {
  background: rgba(80,180,80,0.15);
  color: #73d13d;
}
.capsule-unlock-time {
  font-size: 12px;
  color: #7777aa;
}
.capsule-actions {
  margin-top: 8px;
  text-align: right;
}
.capsule-delete {
  padding: 3px 12px;
  font-size: 12px;
  border: 1px solid rgba(255,120,120,0.35);
  border-radius: 12px;
  background: transparent;
  color: #ff7875;
  cursor: pointer;
  transition: background 0.2s;
}
.capsule-delete:hover {
  background: rgba(255,90,90,0.16);
}
.theme-light .capsule-delete { color: #c0392b; border-color: rgba(192,57,43,0.35); }
.capsule-text {
  font-size: 14px;
  line-height: 1.6;
  color: #c8c8ee;
  word-wrap: break-word;
  white-space: pre-wrap;
  min-height: 20px;
}
.capsule-text.locked {
  color: #8888aa;
  font-style: italic;
}
.capsule-actions {
  margin-top: 8px;
  text-align: right;
}
.capsule-actions .btn-delete {
  font-size: 12px;
  padding: 2px 10px;
  color: #ff7875;
  border: 1px solid rgba(255,120,117,0.3);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.capsule-actions .btn-delete:hover {
  background: rgba(255,120,117,0.1);
}
.capsule-actions .btn-delete:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.capsule-empty {
  text-align: center;
  color: #6666aa;
  padding: 30px 0;
  font-size: 14px;
}

/* ============ 相册弹窗 & 3D旋转木马 ============ */
.modal-album .modal-content {
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
}
.album-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.album-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.btn-upload {
  cursor: pointer;
  padding: 8px 18px;
  font-size: 14px;
}
.upload-tip {
  font-size: 12px;
  color: #6666aa;
}
.album-carousel-wrap {
  flex: 1;
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.album-scene {
  width: 100%;
  height: 420px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.album-ring {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
  animation: albumRotate 50s linear infinite;
}
.album-scene:hover .album-ring {
  animation-play-state: paused;
}
@keyframes albumRotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.album-photo {
  position: absolute;
  width: 220px;
  height: 300px;
  left: 0;
  top: 0;
  margin-left: -110px;
  margin-top: -150px;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: visible;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(20,20,50,0.8);
}
.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-empty {
  position: absolute;
  text-align: center;
  color: #6666aa;
  font-size: 15px;
  display: none;
}

/* ============ 相册月份导航 ============ */
.album-month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 0;
}
.album-month-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #9999cc;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.album-month-tag:hover {
  background: rgba(163,116,249,0.2);
  color: #d4b8ff;
  border-color: rgba(163,116,249,0.3);
}

/* ============ 胶片滑动相册 ============ */
.film-wrap {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 50px;
  overflow: hidden;
  user-select: none;
}

/* 孔带（上下各一行圆孔） */
.film-holes {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  background: #0a0a1a;
  border-left: 3px solid #1a1a30;
  border-right: 3px solid #1a1a30;
  overflow: hidden;
}
.film-holes-top  { border-radius: 4px 4px 0 0; border-bottom: 2px solid #111128; }
.film-holes-bottom { border-radius: 0 0 4px 4px; border-top: 2px solid #111128; }
.film-hole {
  flex-shrink: 0;
  width: 18px; height: 14px;
  border-radius: 3px;
  background: #1c1c35;
  border: 1.5px solid #2a2a48;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.7);
}

/* 轨道外层（裁切溢出的图） */
.film-track-outer {
  overflow: hidden;
  background: #0d0d20;
  border-left: 3px solid #1a1a30;
  border-right: 3px solid #1a1a30;
}

/* 轨道内层：水平排列所有卡片 */
.film-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* 单张卡片 */
.film-item {
  flex-shrink: 0;
  width: 280px;
  height: 360px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #111128;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
  filter: brightness(0.55) saturate(0.7);
}
.film-item.active {
  transform: scale(1.12);
  box-shadow: 0 12px 48px rgba(120,80,200,0.55), 0 0 0 2.5px rgba(180,120,255,0.5);
  filter: brightness(1) saturate(1.1);
  z-index: 2;
}
.film-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* 居中卡片悬停遊罩 */
.film-item.active .film-overlay {
  opacity: 1;
}
.film-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.film-overlay-icon {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
}

/* 左右按钒 */
.film-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,10,35,0.8);
  border: 1px solid rgba(180,140,255,0.25);
  color: rgba(200,180,255,0.9);
  font-size: 30px;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(6px);
}
.film-btn:hover  { background: rgba(100,70,180,0.6); color: #fff; }
.film-btn:disabled { opacity: 0.2; cursor: default; }
.film-prev { left: 6px; }
.film-next { right: 6px; }

/* 计数器 */
.film-counter {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(180,160,220,0.5);
  letter-spacing: 0.15em;
  white-space: nowrap;
}


/* ============ 音乐播放器 ============ */
.music-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.music-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 50, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.music-toggle:hover {
  transform: scale(1.1);
  border-color: rgba(100,150,255,0.4);
}
.music-toggle span {
  font-size: 20px;
}
.music-player.playing .music-toggle {
  animation: musicPulse 1.5s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100,150,255,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(100,150,255,0); }
}
.music-panel {
  display: none;
  width: 280px;
  background: rgba(18, 18, 50, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}
.music-panel.show {
  display: block;
}
.music-panel-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #d8d8ee;
}
.music-status {
  font-size: 11px;
  color: #7777aa;
}
.music-status.playing {
  color: #73d13d;
}
/* 当前播放歌名跑马灯 */
.music-now-playing {
  padding: 6px 14px;
  font-size: 12px;
  color: #a0a0cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.music-now-playing.scrolling {
  animation: marquee-scroll 10s linear infinite;
  padding-right: 40px;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.music-rank {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0 4px;
}
.music-rank-title {
  font-size: 11px;
  color: #9999cc;
  padding: 0 14px 6px;
  letter-spacing: 0.5px;
}
.music-rank-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.music-rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 12px;
  color: #b8b8dd;
}
.music-rank-pos {
  width: 16px;
  text-align: center;
  font-size: 11px;
  color: #7777aa;
  flex-shrink: 0;
}
.music-rank-pos.top1 { color: #ffd700; font-weight: bold; }
.music-rank-pos.top2 { color: #c0c0c0; font-weight: bold; }
.music-rank-pos.top3 { color: #cd7f32; font-weight: bold; }
.music-rank-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-rank-time {
  font-size: 11px;
  color: #7777aa;
  flex-shrink: 0;
}

.music-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}
.music-list::-webkit-scrollbar {
  width: 4px;
}
.music-list::-webkit-scrollbar-thumb {
  background: rgba(100,150,255,0.3);
  border-radius: 2px;
}
.music-progress {
  height: 4px;
  background: rgba(255,255,255,0.08);
  margin: 0 14px;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}
.music-progress:hover {
  height: 6px;
}
.music-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #5b8def, #a78bfa);
  border-radius: 2px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}
.music-progress-bar::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(91,141,239,0.5);
  opacity: 0;
  transition: opacity 0.2s;
}
.music-progress:hover .music-progress-bar::after {
  opacity: 1;
}
.music-time {
  display: flex;
  justify-content: space-between;
  padding: 4px 14px 0;
  font-size: 11px;
  color: #7777aa;
}
.music-item {
  padding: 8px 14px;
  font-size: 13px;
  color: #b8b8dd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-item:hover {
  background: rgba(255,255,255,0.06);
}
.music-item.current {
  background: rgba(100,150,255,0.1);
  color: #fff;
}
.music-item.current::before {
  content: '♫';
  color: #4a90e2;
}
.music-item::before {
  content: '';
  width: 12px;
  flex-shrink: 0;
}
.music-item:not(.current)::before {
  content: '';
}
.music-controls {
  padding: 10px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.music-controls button {
  background: transparent;
  border: none;
  color: #d8d8ee;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.music-controls button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.music-controls .btn-music-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8def 0%, #3a6fd8 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59,111,216,0.35);
  transition: all 0.25s;
  padding: 0;
  position: relative;
}
.music-controls .btn-music-play:hover {
  background: linear-gradient(135deg, #6e9df5 0%, #4a7fe8 100%);
  box-shadow: 0 4px 14px rgba(59,111,216,0.5);
  transform: scale(1.08);
}
.music-controls .btn-music-play:active {
  transform: scale(0.95);
}
/* 播放模式按钒 */
.music-controls .btn-music-mode {
  font-size: 15px;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}
.music-controls .btn-music-mode.active {
  opacity: 1;
  color: #7eb8ff;
}
/* 播放三角图标 */
.play-icon {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
  transition: all 0.2s;
}
/* 暂停图标 */
.play-icon.paused {
  width: 14px;
  height: 16px;
  border: none;
  margin-left: 0;
  background: transparent;
  position: relative;
}
.play-icon.paused::before,
.play-icon.paused::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 1px;
  top: 50%;
  transform: translateY(-50%);
}
.play-icon.paused::before { left: 1px; }
.play-icon.paused::after { right: 1px; }

/* ============ 想念成河 ============ */
.missing-card {
  padding: 16px 18px;
  text-align: center;
}
.missing-card h3 {
  font-size: 15px;
  color: #c8c8ee;
  margin-bottom: 6px;
}
.missing-tip {
  font-size: 12px;
  color: #7777aa;
  margin-bottom: 12px;
}
.btn-missing {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.3s;
  margin-bottom: 14px;
}
.btn-missing:hover {
  background: linear-gradient(135deg, #5a9ef2 0%, #4589cd 100%);
  box-shadow: 0 4px 15px rgba(74,144,226,0.3);
}
.btn-missing:active { transform: scale(0.98); }
.btn-missing:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.missing-stats {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}
.missing-row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.missing-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  position: relative;
}
.missing-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.missing-label {
  font-size: 11px;
  color: #9999cc;
  letter-spacing: 1px;
}
.missing-num {
  font-size: 17px;
  font-weight: 700;
  color: #d8d8ee;
  font-variant-numeric: tabular-nums;
}
.missing-col:last-child .missing-label {
  color: #7ec2ff;
  font-weight: 600;
}
.missing-col:last-child .missing-num {
  color: #7ec2ff;
  font-size: 19px;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    height: auto;
  }
  .toggle-right-panel {
    display: flex;
    position: fixed;
    top: 70px;
    right: 12px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(18,18,50,0.9);
    backdrop-filter: blur(6px);
    color: #b8b8dd;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .left-panel {
    min-height: 50vh;
  }
  .right-panel {
    max-width: 100%;
    min-width: auto;
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    background: rgba(8,8,25,0.95);
    padding: 16px;
    overflow-y: auto;
  }
  .right-panel.open {
    display: block;
  }
  .carousel-scene {
    min-height: 50vh;
  }
  .carousel-row {
    min-height: 150px;
    perspective: 2000px;
  }
  .carousel-card {
    width: 140px;
    margin-left: -70px;
    min-height: 90px;
    max-height: 110px;
    padding: 6px;
    font-size: 10px;
  }
  .container { padding: 12px; }
  .card { padding: 16px; }
  .message-item { padding: 16px; }
  .navbar-inner { padding: 10px 16px; }
  .auth-card { padding: 30px 24px; }
  .reply-content { margin-left: 0; }
  .reply-actions { margin-left: 0; }
  .reply-nested { margin-left: 16px; }
}

/* ============ 未读红点 ============ */
.unread-badge {
  display: inline-block;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  text-align: center;
  margin-left: -4px;
  margin-right: 4px;
  vertical-align: middle;
  animation: badge-pulse 1.5s infinite;
}
@keyframes badge-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============ 心情打卡卡片 ============ */
.mood-card h3 { margin-bottom: 8px; }
.mood-others { margin-bottom: 8px; }
.mood-other-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.mood-other-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg,#7b5ea7,#3b82f6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.mood-other-name { color: #8899cc; font-size: 12px; }
.mood-other-emoji { font-size: 18px; }
.mood-other-label { color: #ccd6f6; font-size: 12px; }
.mood-other-note { color: #6677aa; font-size: 11px; font-style: italic; }
.mood-other-empty { color: #555a88; font-size: 12px; padding: 4px 0; }

.mood-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mood-btn {
  flex: 1;
  min-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  color: #ccd6f6;
  font-size: 20px;
  transition: all 0.2s;
}
.mood-btn span {
  font-size: 11px;
  color: #8899cc;
}
.mood-btn:hover {
  background: rgba(120,100,200,0.18);
  border-color: rgba(120,100,200,0.5);
  transform: translateY(-2px);
}
.mood-btn.active {
  background: linear-gradient(135deg, rgba(120,80,200,0.3), rgba(60,130,250,0.3));
  border-color: #7b5ea7;
  box-shadow: 0 0 12px rgba(120,80,200,0.4);
}
.mood-note-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.mood-note-wrap .input {
  flex: 1;
  font-size: 12px;
  padding: 6px 10px;
}
.mood-checked {
  padding: 10px 12px;
  background: rgba(120,80,200,0.15);
  border: 1px solid rgba(120,80,200,0.3);
  border-radius: 8px;
  color: #ccd6f6;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.mood-note-text {
  font-size: 11px;
  color: #8899cc;
  font-style: italic;
}

/* ============ 恋爱数据面板 ============ */
.love-stats-card h3 { margin-bottom: 10px; }
.love-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ls-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}
.ls-num {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.ls-label {
  font-size: 10px;
  color: #6677aa;
  margin-top: 2px;
}
.ls-countdown {
  font-size: 10px;
  color: #a0a0cc;
  margin-top: 3px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ============ 点赞粒子动效 ============ */
.like-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  color: #ff6b9d;
  animation: like-fly 0.7s ease-out forwards;
  transform: translate(-50%, -50%);
}
@keyframes like-fly {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3); }
}

/* ============ 加载更多按鈕 ============ */
.btn-load-more {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(20,20,50,0.85);
  border: 1px solid rgba(120,100,200,0.4);
  color: #a09cc0;
  font-size: 12px;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}
.btn-load-more:hover {
  background: rgba(120,80,200,0.25);
  color: #ccd6f6;
  border-color: #7b5ea7;
}

/* ============ 页面加载淡入 ============ */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.page-loaded {
  opacity: 1;
}

/* ============ 字数圆弧进度 ============ */
.char-arc-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.char-arc-svg {
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}
.char-arc-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 3;
}
.char-arc-bar {
  fill: none;
  stroke: #7b5ea7;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s, stroke 0.2s;
}
.char-arc-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: #ccd6f6;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s;
}

/* ============ 信封飞出动效 ============ */
.envelope-anim {
  position: fixed;
  font-size: 22px;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
@keyframes envelope-fly {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  40%  { opacity: 1; transform: translate(-50%, -150%) scale(1.3); }
  100% { opacity: 0; transform: translate(calc(-50% + 60px), -300%) scale(0.4); }
}

/* ============ 撤回按鈕 ============ */
.btn-revoke {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.btn-revoke:hover {
  opacity: 1;
  background: rgba(255,80,80,0.15);
}
.cc-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ============ 相册全屏查看 ============ */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 36px;
  width: 50px; height: 80px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-del {
  position: fixed;
  top: 20px; left: 24px;
  background: rgba(220,50,50,0.15);
  border: 1px solid rgba(220,50,50,0.3);
  color: #fff;
  font-size: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
}
.lightbox-del:hover { background: rgba(220,50,50,0.45); }
.lightbox-caption {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* ============ 纪念日距下次 ============ */
.ann-next {
  font-size: 11px;
  color: #7b9be8;
  margin-top: 2px;
  display: block;
}
.ann-next.ann-today {
  color: #ffd700;
  font-weight: 600;
}

/* ============ 登录页增强 ============ */
.auth-card {
  animation: auth-card-in 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-title {
  background: linear-gradient(90deg, #d8b4fe, #93c5fd, #f9a8d4, #6ee7b7, #d8b4fe);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradientFlow 4s linear infinite;
}
@keyframes titleGradientFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.form-group input:focus {
  border-color: #7b5ea7;
  box-shadow: 0 0 0 3px rgba(123,94,167,0.2);
}

/* ============ 3D卡片悬停预览 ============ */
/* 不能覆盖 carousel-card 的 transform（内含 rotateY+translateZ），改用内层 wrapper 效果 */
.carousel-card {
  /* 不加 transition，避免影响 3D 定位 */
}
.carousel-card .cc-inner {
  transition: box-shadow 0.25s ease, outline 0.25s ease;
  border-radius: inherit;
  width: 100%; height: 100%;
}
.carousel-card:hover .cc-inner {
  box-shadow: 0 0 0 2px rgba(120,80,200,0.5), 0 8px 28px rgba(120,80,200,0.4);
  outline: 1.5px solid rgba(160,100,255,0.4);
}

/* ============ 日记弹窗 ============ */
.modal-diary { z-index: 1500; }
.modal-diary-write { z-index: 1600; }
.diary-content {
  max-width: 640px;
  width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a1030 0%, #120d28 100%);
  box-shadow: 0 8px 48px rgba(140,80,255,0.25);
}
.diary-write-content {
  max-width: 560px;
  width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a1030 0%, #120d28 100%);
  box-shadow: 0 8px 48px rgba(140,80,255,0.3);
}
.diary-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* 写日记区 - 在小弹窗内 */
.diary-write-area {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.diary-mood-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.diary-mood-label { font-size: 13px; color: rgba(255,255,255,0.5); white-space: nowrap; }
.diary-mood-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mood-btn {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 18px;
  width: 36px; height: 36px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.mood-btn:hover { background: rgba(180,130,255,0.15); border-color: rgba(180,130,255,0.4); }
.mood-btn.active { border-color: #a374f9; background: rgba(163,116,249,0.2); box-shadow: 0 0 8px rgba(163,116,249,0.4); }
.diary-textarea {
  min-height: 160px;
  max-height: 340px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(160,120,255,0.2);
  border-radius: 8px;
  color: #e2d6ff;
}
.diary-write-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.diary-char-count { font-size: 12px; color: rgba(255,255,255,0.35); }
.diary-title-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(160,120,255,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #e2d6ff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.diary-title-input::placeholder { color: rgba(255,255,255,0.25); font-weight: 400; }
.diary-title-input:focus { border-color: rgba(163,116,249,0.5); }
/* 日记列表卡片 */
.diary-list { display: flex; flex-direction: column; gap: 10px; }
.diary-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(160,120,255,0.12);
  border-radius: 12px;
  padding: 12px 16px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.diary-item:hover { background: rgba(255,255,255,0.07); transform: translateY(-1px); }
.diary-item.diary-mine { border-left: 3px solid #a374f9; }
.diary-item.diary-partner { border-left: 3px solid #f9a8d4; }
.diary-item-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.diary-item-mood { font-size: 20px; }
.diary-item-author { font-size: 13px; font-weight: 600; color: #c4aaff; }
.diary-item-time { font-size: 11px; color: rgba(255,255,255,0.35); margin-left: auto; }
.diary-item-content {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* 详情小弹窗内内容样式 */
.diary-detail-body {
  padding: 0 20px 20px;
  overflow-y: auto;
  flex: 1;
}
.diary-detail-content {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  white-space: pre-wrap;
  word-break: break-word;
}
.diary-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #d4b8ff;
  margin-bottom: 6px;
  line-height: 1.4;
}
.diary-item-footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.diary-retract-btn {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.diary-retract-btn:hover { color: #f87171; background: rgba(248,113,113,0.1); }
.diary-empty {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  padding: 40px 0;
}
.diary-month-divider {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 0 2px;
  position: relative;
}
.diary-month-divider::before,
.diary-month-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.diary-month-divider::before { left: 0; }
.diary-month-divider::after  { right: 0; }
.diary-load-more { text-align: center; }
