/* ========================================
   情侣恋爱记录网站 - 公共样式
   风格：玻璃拟态粉系 · 小红书/抖音风
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主粉色系 */
  --primary-pink: #FFB6C1;
  --soft-pink: #FFC0CB;
  --light-pink: #FFF0F5;
  --pale-pink: #FFFAFA;
  --deep-pink: #FF69B4;
  --rose-pink: #FF91A4;
  --hot-pink: #FF1493;

  /* 辅助色 */
  --peach: #FFDAB9;
  --lilac: #E6E6FA;
  --mint: #98FB98;
  --sky-blue: #87CEEB;

  /* 基础色 */
  --white: #FFFFFF;
  --off-white: #FFFAF0;
  --text-dark: #4A3B47;
  --text-gray: #9B8B99;
  --text-light: #C9BCC8;

  /* 玻璃拟态 */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(255, 105, 180, 0.12);

  /* 阴影系统 */
  --shadow-xs: 0 2px 8px rgba(255, 182, 193, 0.1);
  --shadow-soft: 0 4px 20px rgba(255, 182, 193, 0.15);
  --shadow-medium: 0 8px 30px rgba(255, 182, 193, 0.2);
  --shadow-hover: 0 16px 48px rgba(255, 105, 180, 0.22);
  --shadow-glow: 0 0 20px rgba(255, 105, 180, 0.3);

  /* 圆角系统 */
  --border-radius-xs: 8px;
  --border-radius-sm: 12px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --border-radius-full: 9999px;

  /* 渐变系统 */
  --gradient-pink: linear-gradient(135deg, #FFE4E9 0%, #FFF0F5 50%, #FFFFFF 100%);
  --gradient-soft: linear-gradient(180deg, #FFFAFA 0%, #FFF0F5 100%);
  --gradient-btn: linear-gradient(135deg, #FFB6C1 0%, #FF91A4 50%, #FF69B4 100%);
  --gradient-btn-hover: linear-gradient(135deg, #FF91A4 0%, #FF69B4 50%, #FF1493 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,240,245,0.8) 100%);
  --gradient-text: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
  --gradient-bg: linear-gradient(160deg, #FFE4E9 0%, #FFF0F5 30%, #FFFAFA 60%, #F0F8FF 100%);

  /* 过渡动画 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--gradient-bg);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰 - 漂浮的粉色光斑 */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  animation: floatBg 20s ease-in-out infinite;
}

body::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #FFB6C1 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

body::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #FFDAB9 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation-delay: -10s;
}

@keyframes floatBg {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* 容器 */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 720px;
  }
}

/* 头部 */
.page-header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 18px 16px;
  border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
  box-shadow: var(--glass-shadow);
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-gray);
  text-align: center;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* 返回按钮 - 玻璃拟态 */
.back-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--deep-pink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
  transition: var(--transition-bounce);
  z-index: 10;
}

.back-btn:hover {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.7), rgba(255, 105, 180, 0.6));
  color: white;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 105, 180, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.back-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* 卡片 - 玻璃拟态 */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
  border-color: rgba(255, 182, 193, 0.5);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.2));
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--border-radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}

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

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.45);
}

.btn-secondary {
  background: var(--light-pink);
  color: var(--deep-pink);
  border: 1px solid rgba(255, 182, 193, 0.3);
}

.btn-secondary:hover {
  background: var(--soft-pink);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--soft-pink);
  color: var(--rose-pink);
}

.btn-outline:hover {
  background: var(--soft-pink);
  color: white;
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
  color: white;
  box-shadow: 0 4px 15px rgba(238, 90, 90, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 90, 90, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #98D8C8, #7FC8B8);
  color: white;
  box-shadow: 0 4px 15px rgba(127, 200, 184, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 200, 184, 0.4);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12px;
  border-radius: var(--border-radius-full);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* 底部导航 - 玻璃拟态 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(255, 182, 193, 0.12);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-bounce);
  color: var(--text-gray);
  font-size: 11px;
  text-decoration: none;
  font-weight: 500;
}

.nav-item .nav-icon {
  font-size: 22px;
  transition: var(--transition-bounce);
  filter: grayscale(30%);
}

.nav-item.active {
  color: var(--deep-pink);
  background: rgba(255, 240, 245, 0.8);
}

.nav-item.active .nav-icon {
  filter: none;
  transform: scale(1.15);
}

.nav-item:hover {
  color: var(--rose-pink);
}

.nav-item:hover .nav-icon {
  transform: translateY(-2px);
}

/* 主内容区（避免底部导航遮挡） */
.main-content {
  padding-bottom: 85px;
  min-height: calc(100vh - 80px);
}

/* 输入框 */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 182, 193, 0.3);
  border-radius: var(--border-radius-md);
  font-size: 14px;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--soft-pink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* 开关按钮 */
.switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.switch-input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 48px;
  height: 26px;
  background: #E8E0E6;
  border-radius: var(--border-radius-full);
  transition: var(--transition);
  flex-shrink: 0;
}

.switch-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-bounce);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.switch-input:checked + .switch-slider {
  background: var(--gradient-btn);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.switch-input:checked + .switch-slider::before {
  left: 25px;
}

.switch-text {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

/* 标签/徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--border-radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-pink {
  background: var(--light-pink);
  color: var(--deep-pink);
}

.badge-success {
  background: linear-gradient(135deg, #E8F8F5, #D4EFDF);
  color: #2E8B7A;
}

.badge-warning {
  background: linear-gradient(135deg, #FFF8E7, #FFEAA7);
  color: #E6A817;
}

.badge-danger {
  background: linear-gradient(135deg, #FFEBEB, #FFD5D5);
  color: #E74C3C;
}

.badge-gray {
  background: #F5F5F5;
  color: #999;
}

/* 弹窗 - 玻璃拟态 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 59, 71, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-align: center;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(74, 59, 71, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius-full);
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-medium);
  letter-spacing: 0.3px;
}

.toast.success {
  background: linear-gradient(135deg, #98D8C8, #7FC8B8);
}

.toast.error {
  background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
}

.toast.warning {
  background: linear-gradient(135deg, #FFD93D, #FFC107);
  color: #5D4E00;
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(-30px) scale(0.9); opacity: 0; }
  to { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 44px;
  margin-bottom: 10px;
  opacity: 0.6;
  animation: floatIcon 3s ease-in-out infinite;
}

.empty-state .empty-text {
  font-size: 13px;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--light-pink);
  border-top-color: var(--deep-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 分割线 */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 182, 193, 0.3), transparent);
  margin: 14px 0;
}

/* 顶部头像栏 */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.user-role {
  font-size: 11px;
  color: var(--text-gray);
}

/* 浮动按钮 */
.fab {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: white;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
  cursor: pointer;
  z-index: 90;
  transition: var(--transition-bounce);
  border: none;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 28px rgba(255, 105, 180, 0.5);
}

/* 标签页 */
.tabs {
  display: flex;
  background: rgba(255, 240, 245, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-full);
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 182, 193, 0.2);
}

.tabs.subtabs {
  margin-bottom: 12px;
  padding: 3px;
  background: rgba(255, 240, 245, 0.5);
}

.tab {
  flex: 1;
  padding: 9px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tabs.subtabs .tab {
  padding: 7px 8px;
  font-size: 12px;
}

.tab.active {
  background: var(--white);
  color: var(--deep-pink);
  box-shadow: 0 2px 10px rgba(255, 182, 193, 0.2);
  font-weight: 600;
}

.tab:not(.active):hover {
  color: var(--rose-pink);
}

/* 列表项 */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 182, 193, 0.15);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.list-item-desc {
  font-size: 12px;
  color: var(--text-gray);
}

/* 隐藏滚动条但可滚动 */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 登录页专用 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--gradient-bg);
}

.login-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xl);
  padding: 40px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-logo {
  text-align: center;
  font-size: 56px;
  margin-bottom: 8px;
  animation: pulse 2s ease-in-out infinite;
}

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

.login-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.login-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 28px;
}

/* 页面过渡 */
.page {
  display: none;
  animation: pageFadeIn 0.35s ease;
}

.page.active {
  display: block;
}

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

/* 首页装饰 */
.hero-section {
  text-align: center;
  padding: 28px 20px;
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xl);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '💕';
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 80px;
  opacity: 0.08;
}

.hero-section::after {
  content: '💗';
  position: absolute;
  bottom: -30px;
  left: -10px;
  font-size: 100px;
  opacity: 0.06;
}

.hero-emoji {
  font-size: 52px;
  margin-bottom: 8px;
  animation: bounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 105, 180, 0.2));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 12px;
  color: var(--text-gray);
}

/* 悄悄话气泡样式补充 */
.whisper-bubble {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: var(--transition);
}

.whisper-bubble:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.whisper-bubble.mine {
  background: linear-gradient(135deg, rgba(255, 228, 233, 0.8), rgba(255, 240, 245, 0.9));
  border-color: rgba(255, 182, 193, 0.3);
}

.whisper-bubble.partner {
  background: linear-gradient(135deg, rgba(255, 250, 250, 0.9), rgba(230, 230, 250, 0.5));
  border-color: rgba(200, 180, 220, 0.3);
}

.whisper-bubble .whisper-date {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whisper-shared-icon {
  font-size: 12px;
  color: var(--deep-pink);
  font-weight: 500;
  background: rgba(255, 240, 245, 0.8);
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
}

.whisper-private-icon {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 500;
  background: rgba(245, 245, 245, 0.8);
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
}

.whisper-bubble .whisper-content {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.whisper-bubble .whisper-from {
  font-size: 11px;
  color: var(--deep-pink);
  margin-top: 8px;
  text-align: right;
  font-weight: 500;
}

/* 申请记录卡片补充 */
.request-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.request-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.request-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.request-icon {
  font-size: 26px;
  filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.15));
}

.request-info {
  flex: 1;
}

.request-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.request-time {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 1px;
}

/* 统计数字行 - 玻璃拟态 */
.stat-row {
  display: flex;
  justify-content: space-around;
  padding: 16px 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 3px;
}

/* 快捷入口 - 玻璃拟态 */
.quick-entry {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.quick-entry:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255, 182, 193, 0.5);
  background: rgba(255, 240, 245, 0.8);
}

.quick-entry-icon {
  font-size: 28px;
  margin-bottom: 6px;
  transition: var(--transition-bounce);
}

.quick-entry:hover .quick-entry-icon {
  transform: scale(1.15);
}

.quick-entry-label {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 500;
}

/* 背包卡券 - 玻璃拟态 */
.backpack-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
}

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

.backpack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
}

.backpack-icon {
  font-size: 36px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(255, 105, 180, 0.2));
}

.backpack-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.backpack-desc {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 8px;
  min-height: 28px;
  line-height: 1.4;
}

.backpack-qty {
  display: inline-block;
  background: linear-gradient(135deg, var(--light-pink), #FFE4E9);
  color: var(--deep-pink);
  padding: 2px 12px;
  border-radius: var(--border-radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* 典藏馆卡片 */
.museum-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-bounce);
  position: relative;
}

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

.museum-card.locked {
  opacity: 0.45;
  filter: grayscale(80%);
}

.museum-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.museum-icon {
  font-size: 30px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.15));
}

.museum-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.museum-count {
  font-size: 11px;
  color: var(--deep-pink);
  font-weight: 600;
}

/* 任务卡片 */
.user-task-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.user-task-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.task-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.task-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 8px;
  line-height: 1.5;
}

.task-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--deep-pink);
  margin-bottom: 10px;
  font-weight: 500;
}

.task-status {
  text-align: right;
}

/* 照片网格 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.photo-item {
  aspect-ratio: 1;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--light-pink);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-bounce);
}

.photo-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-soft);
}

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

/* 评价卡片 */
.evaluation-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.evaluation-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.evaluation-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-pink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.evaluation-content {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 日历样式 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 12px;
}

.calendar-day {
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
}

.calendar-day:hover {
  background: var(--light-pink);
}

.calendar-day.today {
  background: var(--gradient-btn);
  color: white;
  font-weight: 600;
}

.calendar-day.selected {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(255, 105, 180, 0.25));
  color: var(--deep-pink);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--soft-pink), var(--shadow-soft);
  transform: scale(1.05);
}

.calendar-day.selected.today {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 0 0 2px var(--deep-pink), var(--shadow-glow);
}

.calendar-add-btn {
  display: none;
  position: absolute;
  right: -4px;
  top: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
  z-index: 10;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calendar-day.selected .calendar-add-btn {
  display: block;
}

.calendar-add-btn:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.5);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 公告横幅 */
.notice-banner {
  background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 50%, #FF91A4 100%);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  color: white;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
  position: relative;
  overflow: hidden;
  animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notice-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.notice-banner-icon {
  font-size: 22px;
  margin-right: 10px;
  animation: ring 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

.notice-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-banner-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-banner-text.scroll {
  animation: scrollText 12s linear infinite;
  white-space: nowrap;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.notice-banner-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: var(--border-radius-full);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* 长按进度条 */
.long-press-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  transition: none;
  z-index: 10;
}

.long-press-active {
  animation: vibrate 0.1s linear infinite;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
}

@keyframes vibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* 悄悄话切换按钮 */
.whisper-toggle-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-pink);
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition-bounce);
  margin-left: 6px;
}

.whisper-toggle-share:hover {
  transform: scale(1.15);
  background: var(--soft-pink);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.whisper-toggle-share.shared {
  background: linear-gradient(135deg, #98D8C8, #7FC8B8);
  color: white;
}

.whisper-toggle-share.shared:hover {
  box-shadow: 0 2px 8px rgba(127, 200, 184, 0.4);
}

/* 全部悄悄话返回按钮 */
.all-whispers-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.all-whispers-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-pink);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  color: var(--deep-pink);
}

.all-whispers-back:hover {
  background: var(--soft-pink);
  color: white;
  transform: translateX(-3px);
}

.all-whispers-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* 响应式微调 */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  .card {
    padding: 16px;
  }
  .hero-title {
    font-size: 20px;
  }
}
