/**
 * Shiguang 拾光集 - 用户中心 & 登录页样式
 * 设计风格：毛玻璃 · 简约白
 */

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* 装饰背景 */
.login-wrapper::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(108, 159, 255, 0.1);
  filter: blur(80px);
  pointer-events: none;
}

.login-wrapper::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 184, 122, 0.08);
  filter: blur(60px);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease forwards;
}

.login-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-card-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* 二维码容器 */
.qrcode-container {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(100, 120, 160, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.qrcode-container #qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-container #qrcode img,
.qrcode-container #qrcode canvas {
  border-radius: 8px;
}

/* 二维码加载占位 */
.qrcode-placeholder {
  color: var(--text-light);
  font-size: 14px;
}

/* 二维码过期遮罩 */
.qrcode-expired-mask {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.qrcode-expired-mask:hover {
  background: rgba(255, 255, 255, 0.95);
}

.qrcode-expired-mask .expired-icon {
  font-size: 32px;
  opacity: 0.5;
}

.qrcode-expired-mask .expired-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.qrcode-expired-mask .expired-hint {
  font-size: 12px;
  color: var(--text-light);
}

/* QR overlay 通用样式 */
.qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
  z-index: 2;
  transition: opacity 0.3s;
}
.qr-overlay.hidden { display: none; }
.qr-overlay-icon { font-size: 32px; opacity: 0.6; }
.qr-overlay-text { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.qr-overlay-sub { font-size: 12px; color: var(--text-light); }

/* 倒计时 */
.login-timer {
  font-size: 12px;
  color: var(--text-light);
  margin-top: -16px;
  margin-bottom: 16px;
}

/* 登录状态 */
.login-status {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 22px;
}

.login-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.5s ease infinite;
}

.login-status.status-success .status-dot {
  background: #52c41a;
  animation: none;
}

.login-status.status-success {
  color: #52c41a;
  font-weight: 500;
}

.login-status.status-scanned {
  color: var(--accent);
}

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

/* 协议勾选 */
.login-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  margin-bottom: 24px;
}

.login-agreement input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.login-agreement label {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  cursor: pointer;
}

.login-agreement a {
  color: var(--primary);
  font-weight: 500;
}

.login-agreement a:hover {
  text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 16px rgba(108, 159, 255, 0.3);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 159, 255, 0.4);
}

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

.login-mini-hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-mini-hint .mini-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* ========== 用户中心页 ========== */
.user-page {
  min-height: 100vh;
}

/* --- Profile top bar --- */
.profile-top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.profile-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}
.profile-icon-btn:hover {
  background: rgba(108,159,255,0.08);
  color: var(--primary);
  border-color: rgba(108,159,255,0.2);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* --- Profile actions --- */
.profile-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.profile-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #c96f1a;
  background: linear-gradient(135deg, rgba(255, 184, 122, 0.22), rgba(255, 158, 84, 0.16));
  border: 1px solid rgba(255, 158, 84, 0.55);
  box-shadow: 0 2px 8px rgba(255, 158, 84, 0.18);
  transition: all var(--transition);
  cursor: pointer;
}
.profile-invite-btn:hover {
  background: linear-gradient(135deg, rgba(255, 184, 122, 0.32), rgba(255, 158, 84, 0.24));
  border-color: rgba(255, 158, 84, 0.75);
  box-shadow: 0 3px 12px rgba(255, 158, 84, 0.28);
}

/* --- Section header (shared) --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.section-subtitle {
  font-size: 12px;
  color: var(--text-light);
}
.section-more {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  transition: opacity var(--transition);
}
.section-more:hover { opacity: 0.7; }

/* ========== 热力图 ========== */
.heatmap-section {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.heatmap-container { overflow-x: auto; }
.heatmap-grid {
  display: flex;
  gap: 3px;
  min-width: fit-content;
}
.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(0,0,0,0.04);
  transition: background 0.2s;
}
.heatmap-cell.level-0 { background: rgba(108,159,255,0.06); }
.heatmap-cell.level-1 { background: rgba(108,159,255,0.2); }
.heatmap-cell.level-2 { background: rgba(108,159,255,0.4); }
.heatmap-cell.level-3 { background: rgba(108,159,255,0.65); }
.heatmap-cell.level-4 { background: rgba(108,159,255,0.9); }

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-light);
}
.heatmap-legend .heatmap-cell {
  width: 12px;
  height: 12px;
}

/* ========== 阅读偏好 ========== */
.preference-section {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.preference-chart { display: flex; flex-direction: column; gap: 12px; }
.preference-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.preference-bar-name {
  width: 72px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preference-bar-track {
  flex: 1;
  height: 20px;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.preference-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  min-width: 0;
}
.preference-bar-count {
  width: 36px;
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
  flex-shrink: 0;
}
.preference-empty {
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-light);
}

/* ========== 为你推荐 ========== */
.recommend-section {
  margin-bottom: 32px;
}
.recommend-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.recommend-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(108,159,255,0.15);
}
.recommend-card-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: rgba(0,0,0,0.03);
}
.recommend-card-body { padding: 14px 16px; }
.recommend-card .card-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(108, 159, 255, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.recommend-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.recommend-card-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== 设置面板 ========== */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.settings-overlay.open {
  opacity: 1;
  visibility: visible;
}
.settings-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.settings-overlay.open .settings-panel {
  transform: translateX(0);
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.settings-header h3 {
  font-size: 16px;
  font-weight: 600;
}
.settings-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.04);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.settings-close:hover { background: rgba(0,0,0,0.08); }

.settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.settings-group { margin-bottom: 24px; }
.settings-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.settings-item:last-child { border-bottom: none; }
.settings-item-info { flex: 1; }
.settings-item-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.settings-item-desc {
  font-size: 12px;
  color: var(--text-light);
}
.settings-item-link {
  cursor: pointer;
  transition: background var(--transition);
  padding: 14px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.settings-item-link:hover { background: rgba(0,0,0,0.02); }
.settings-arrow {
  font-size: 18px;
  color: var(--text-light);
}

/* Theme switcher */
.theme-switcher {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 3px;
}
.theme-opt {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-opt:hover { color: var(--primary); }
.theme-opt.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Font size slider */
.font-size-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.font-size-label {
  font-size: 14px;
  color: var(--text-light);
}
.font-size-slider input[type="range"] {
  width: 100px;
  accent-color: var(--primary);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  border-radius: 12px;
  transition: background 0.3s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

/* ========== 通知面板 ========== */
.notif-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.notif-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.notif-empty p { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.notif-empty span { font-size: 12px; }

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108,159,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.notif-item-content { flex: 1; }
.notif-item-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.notif-item-time { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ========== 邀请好友弹窗 ========== */
.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.invite-modal.open { display: flex; }
.invite-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.invite-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: fadeInUp 0.3s ease;
}
.invite-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.04);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.invite-modal-icon { font-size: 48px; margin-bottom: 12px; }
.invite-modal-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.invite-modal-desc { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.invite-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.invite-link-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #f8f9fc;
  outline: none;
}
.invite-copy-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.invite-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108,159,255,0.3); }
.invite-share-hint { font-size: 12px; color: var(--text-light); }

/* ========== 深色模式 ========== */
body.dark-mode {
  --text: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-light: #707070;
  --bg: #121212;
  --card: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  background: var(--bg);
  color: var(--text);
}
body.dark-mode .login-card,
body.dark-mode .stat-card,
body.dark-mode .exp-section,
body.dark-mode .data-overview,
body.dark-mode .heatmap-section,
body.dark-mode .preference-section,
body.dark-mode .tab-list-item,
body.dark-mode .recommend-card,
body.dark-mode .login-prompt {
  background: rgba(30,30,30,0.85);
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .navbar {
  background: rgba(18,18,18,0.9);
  border-bottom-color: rgba(255,255,255,0.06);
}
body.dark-mode .footer { background: #0a0a0a; }
body.dark-mode .settings-panel { background: #1e1e1e; }
body.dark-mode .settings-header { border-bottom-color: rgba(255,255,255,0.06); }
body.dark-mode .settings-close { background: rgba(255,255,255,0.06); color: #ccc; }
body.dark-mode .theme-switcher { background: rgba(255,255,255,0.06); }
body.dark-mode .theme-opt.active { background: rgba(255,255,255,0.1); }
body.dark-mode .invite-modal-card { background: #1e1e1e; }
body.dark-mode .invite-link-box input { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); color: #ccc; }
body.dark-mode .profile-icon-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); color: #bbb; }
body.dark-mode .heatmap-cell { background: rgba(255,255,255,0.04); }
body.dark-mode .heatmap-cell.level-0 { background: rgba(108,159,255,0.08); }
body.dark-mode .heatmap-cell.level-1 { background: rgba(108,159,255,0.25); }
body.dark-mode .heatmap-cell.level-2 { background: rgba(108,159,255,0.45); }
body.dark-mode .heatmap-cell.level-3 { background: rgba(108,159,255,0.65); }
body.dark-mode .heatmap-cell.level-4 { background: rgba(108,159,255,0.9); }
body.dark-mode .preference-bar-track { background: rgba(255,255,255,0.04); }
body.dark-mode .profile-avatar { border-color: #333; }
body.dark-mode .mobile-nav { background: rgba(18,18,18,0.98); }
body.dark-mode .tab-nav { background: rgba(255,255,255,0.05); }
body.dark-mode .tab-nav-btn { color: var(--text-secondary); }
body.dark-mode .login-wrapper::before,
body.dark-mode .login-wrapper::after { opacity: 0.3; }

.user-main {
  padding-top: calc(var(--nav-height) + 32px);
  padding-bottom: 80px;
}

/* 未登录提示 */
.login-prompt {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease forwards;
}

.login-prompt .prompt-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.login-prompt h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.login-prompt p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* 个人资料头部 */
.profile-header {
  text-align: center;
  padding: 40px 0 32px;
  position: relative;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg,
    rgba(108, 159, 255, 0.06) 0%,
    rgba(255, 184, 122, 0.03) 60%,
    transparent 100%);
  pointer-events: none;
}

/* 背景墙：铺满头部背景图，不加整体灰色遮罩（元素靠自身底色/文字阴影保证可读） */
.profile-header.has-bg::before {
  background: transparent;
}

.profile-header.has-bg .profile-icon-btn {
  color: #fff;
  background: rgba(15, 20, 35, 0.35);
}

.profile-header.has-bg .profile-nickname {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 0, 0, 0.4);
}

/* 背景墙模式下等级徽章：实色底 + 白字，保证清晰 */
.profile-header.has-bg .profile-level-badge.level-1 { color: #fff; background: #1e9fff; }
.profile-header.has-bg .profile-level-badge.level-2 { color: #fff; background: #ffb800; }
.profile-header.has-bg .profile-level-badge.level-3 { color: #fff; background: #16ba59; }
.profile-header.has-bg .profile-level-badge.level-4 { color: #fff; background: #9c27b0; }
.profile-header.has-bg .profile-level-badge.level-5 { color: #fff; background: #ff5722; }

/* 背景墙模式下性别徽章 */
.profile-header.has-bg .profile-gender-badge.male {
  color: #dcebff;
  background: rgba(15, 20, 35, 0.5);
}

.profile-header.has-bg .profile-gender-badge.female {
  color: #ffd9db;
  background: rgba(15, 20, 35, 0.5);
}

.profile-header.has-bg .profile-edit-btn {
  color: #fff;
  background: rgba(15, 20, 35, 0.6);
  border-color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.profile-header.has-bg .profile-edit-btn:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(15, 20, 35, 0.75);
}

.profile-header.has-bg .profile-invite-btn {
  color: #ffe1b3;
  background: rgba(15, 20, 35, 0.6);
  border-color: rgba(255, 184, 122, 0.75);
  box-shadow: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.profile-header.has-bg .profile-invite-btn:hover {
  color: #fff0d9;
  background: rgba(15, 20, 35, 0.75);
  border-color: rgba(255, 200, 130, 0.95);
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(108, 159, 255, 0.15);
}

.profile-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: 0;
  opacity: 0.6;
}

.profile-nickname {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.profile-gender-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
}

.profile-gender-badge.male {
  background: rgba(108, 159, 255, 0.12);
  color: var(--primary);
}

.profile-gender-badge.female {
  background: rgba(255, 154, 158, 0.15);
  color: #ff6b72;
}

.profile-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-level-badge.level-1 {
  color: #1e9fff;
  background: rgba(30, 159, 255, 0.12);
}

.profile-level-badge.level-2 {
  color: #ffb800;
  background: rgba(255, 184, 0, 0.12);
}

.profile-level-badge.level-3 {
  color: #16ba59;
  background: rgba(22, 186, 89, 0.12);
}

.profile-level-badge.level-4 {
  color: #9c27b0;
  background: rgba(156, 39, 176, 0.12);
}

.profile-level-badge.level-5 {
  color: #ff5722;
  background: rgba(255, 87, 34, 0.12);
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(108, 159, 255, 0.14), rgba(108, 159, 255, 0.08));
  border: 1px solid rgba(108, 159, 255, 0.5);
  box-shadow: 0 2px 8px rgba(108, 159, 255, 0.15);
  transition: all var(--transition);
  cursor: pointer;
}

.profile-edit-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 159, 255, 0.14);
  box-shadow: 0 3px 12px rgba(108, 159, 255, 0.25);
}

/* 统计卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(108, 159, 255, 0.15);
}

.stat-card .stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-light);
}

/* 经验进度条 */
.exp-section {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.exp-header .exp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.exp-header .exp-detail {
  font-size: 12px;
  color: var(--text-light);
}

.exp-bar-wrap {
  height: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.exp-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

.exp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
}

/* 数据概览 */
.data-overview {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.data-overview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.data-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: default;
}

.data-item:hover {
  background: rgba(108, 159, 255, 0.04);
}

.data-item .data-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.data-item .data-label {
  font-size: 12px;
  color: var(--text-light);
}

/* 标签页导航 */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  width: fit-content;
}

.tab-nav-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
}

.tab-nav-btn:hover {
  color: var(--primary);
  background: rgba(108, 159, 255, 0.06);
}

.tab-nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 8px rgba(108, 159, 255, 0.25);
}

/* 标签页内容 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease forwards;
}

/* 列表项 */
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.tab-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(108, 159, 255, 0.15);
}

.tab-list-item .item-cover {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.03);
}

.tab-list-item .item-info {
  flex: 1;
  min-width: 0;
}

.tab-list-item .item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tab-list-item .item-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-list-item .item-status {
  flex-shrink: 0;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.tab-list-item .item-status.status-pending {
  color: #D4804A;
  background: rgba(255, 184, 122, 0.15);
}

.tab-list-item .item-status.status-approved {
  color: #52c41a;
  background: rgba(82, 196, 26, 0.1);
}

.tab-list-item .item-status.status-rejected {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
}

.tab-more {
  text-align: center;
  padding: 20px 0;
}

.tab-more a {
  font-size: 13px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.tab-more a:hover {
  color: var(--primary);
}

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

.tab-empty .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.tab-empty p {
  font-size: 14px;
}

/* 退出按钮 */
.logout-section {
  text-align: center;
  padding: 40px 0 0;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 32px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.06);
  border: 1px solid rgba(255, 77, 79, 0.12);
  transition: all var(--transition);
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255, 77, 79, 0.1);
  border-color: rgba(255, 77, 79, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .login-card {
    padding: 36px 24px;
    margin: 0 16px;
  }

  .stats-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 18px 12px;
  }

  .stat-card .stat-value {
    font-size: 1.25rem;
  }

  .data-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-nav {
    width: 100%;
    justify-content: center;
  }

  .tab-nav-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .tab-list-item .item-cover {
    width: 64px;
    height: 48px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .recommend-list {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    width: 100%;
    max-width: 100vw;
  }

  .preference-bar-name {
    width: 56px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .stats-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 16px 20px;
  }

  .stat-card .stat-icon {
    margin-bottom: 0;
    font-size: 28px;
  }

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

  .login-card {
    padding: 32px 20px;
  }

  .qrcode-container {
    width: 200px;
    height: 200px;
  }

  .heatmap-cell {
    width: 10px;
    height: 10px;
  }

  .recommend-list {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* ========== 笔记弹窗 ========== */
.data-item-clickable {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.data-item-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(108, 159, 255, 0.12);
}

.notes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.notes-overlay.open {
  display: flex;
}

.notes-panel {
  width: 560px;
  max-width: 100%;
  max-height: 82vh;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.notes-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(108, 159, 255, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.notes-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  font-size: 15px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  line-height: 1;
}

.notes-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}

/* 笔记列表 */
.notes-list-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}

.notes-list-item:hover {
  border-color: rgba(108, 159, 255, 0.35);
  transform: translateX(2px);
}

.notes-color-bar {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

.notes-item-body {
  flex: 1;
  min-width: 0;
}

.notes-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes-item-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notes-item-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}

.notes-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.notes-empty i {
  font-size: 42px;
  opacity: 0.35;
  display: block;
  margin-bottom: 12px;
}

.notes-empty p {
  font-size: 14px;
  margin-bottom: 6px;
}

.notes-empty span {
  font-size: 12px;
}

.notes-more-btn {
  display: block;
  margin: 16px auto 8px;
  padding: 8px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.notes-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 笔记详情 */
.note-detail-post {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-detail-post i {
  color: var(--primary);
}

.note-detail-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.note-detail-quote {
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  background: var(--card);
  border-radius: 0 10px 10px 0;
  margin-bottom: 14px;
  line-height: 1.8;
  font-style: italic;
}

.note-detail-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 20px;
  min-height: 80px;
}

.note-detail-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.note-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.note-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 159, 255, 0.05);
}

.note-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7FA8FF);
  border-color: transparent;
}

.note-btn.primary:hover {
  opacity: 0.9;
  color: #fff;
}

.note-btn.danger {
  color: #ff4d4f;
  border-color: rgba(255, 77, 79, 0.25);
}

.note-btn.danger:hover {
  background: rgba(255, 77, 79, 0.06);
  border-color: rgba(255, 77, 79, 0.4);
}

.note-btn.back {
  margin-right: auto;
}

/* 编辑表单 */
.note-edit-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 14px 0 6px;
}

.note-edit-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  resize: vertical;
  font-family: inherit;
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.note-edit-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.note-edit-form textarea.note-selected-input {
  min-height: 70px;
  font-style: italic;
  color: var(--text-secondary);
}

/* 轻提示 Toast */
.sg-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(28, 32, 46, 0.92);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sg-toast.error {
  background: rgba(190, 56, 56, 0.95);
}

@media (max-width: 480px) {
  .notes-body {
    padding: 12px 14px;
  }

  .note-detail-actions {
    flex-wrap: wrap;
  }

  .note-btn.back {
    width: 100%;
    margin-right: 0;
  }
}

/* ========== 认证头衔 ========== */
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.cert-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #8a5a12;
  background: linear-gradient(135deg, rgba(255, 205, 90, 0.22), rgba(255, 170, 60, 0.16));
  border: 1px solid rgba(255, 170, 60, 0.5);
  box-shadow: 0 2px 8px rgba(255, 170, 60, 0.16);
  cursor: pointer;
  transition: all var(--transition);
}

.cert-tag:hover {
  border-color: rgba(255, 170, 60, 0.75);
  box-shadow: 0 3px 12px rgba(255, 170, 60, 0.26);
  transform: translateY(-1px);
}

.cert-tag-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cert-tag i {
  font-size: 15px;
  color: #e8a33d;
}

.profile-header.has-bg .cert-tag {
  color: #ffe8c9;
  background: rgba(15, 20, 35, 0.62);
  border-color: rgba(255, 210, 130, 0.8);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.profile-header.has-bg .cert-tag:hover {
  background: rgba(15, 20, 35, 0.78);
  border-color: rgba(255, 215, 140, 0.95);
}

.profile-header.has-bg .cert-tag i {
  color: #ffd98f;
}

/* 认证详情弹窗 */
.cert-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-detail-card {
  width: 400px;
  max-width: 100%;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.cert-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cert-detail-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-detail-header h3 i {
  color: #e8a33d;
}

.cert-detail-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  line-height: 1;
}

.cert-detail-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.cert-detail-body {
  padding: 20px;
}

.cert-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cert-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 40px;
  color: #e8a33d;
  flex-shrink: 0;
}

.cert-detail-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cert-detail-expires {
  font-size: 12px;
  color: #d98e2b;
  font-weight: 600;
}

.cert-detail-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  background: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.cert-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
}

/* ========== 登录页：扫码/邮箱 Tab ========== */
.login-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 6px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-full);
  padding: 4px;
}

.login-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.email-form {
  margin-top: 14px;
  text-align: left;
}

.email-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 14px 0 6px;
}

.email-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.email-form input:focus {
  border-color: var(--primary);
}

.email-form .btn-block {
  width: 100%;
  margin-top: 20px;
  padding: 12px 0;
  font-size: 15px;
}

.code-row {
  display: flex;
  gap: 10px;
}

.code-row input {
  flex: 1;
}

.code-btn {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 13px;
  white-space: nowrap;
}

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

.email-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.email-links a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.email-links a:hover {
  color: var(--primary);
}
/* ========== 账号中心（邮箱账号） ========== */
.account-center {
  margin-bottom: 32px;
}

.account-center .section-title i {
  color: var(--primary);
  margin-right: 4px;
}

.account-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108,159,255,0.15), rgba(255,184,122,0.15));
  color: var(--primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  word-break: break-all;
}

.account-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(108,159,255,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.account-meta {
  font-size: 12px;
  color: var(--text-light);
}

.account-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.account-block:last-child {
  border-bottom: none;
}

.account-block-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.account-bound {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.account-bound-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(108,159,255,0.15);
}

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

.account-bound-tip {
  font-size: 12px;
  color: #16ba59;
  margin-top: 2px;
}

.account-unbind-row,
.account-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-unbind-row input,
.account-row input,
.account-pwd-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.account-unbind-row input:focus,
.account-row input:focus,
.account-pwd-row input:focus {
  border-color: var(--primary);
}

.account-pwd-row {
  margin-bottom: 8px;
}

.account-bind-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.account-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108,159,255,0.05);
}

.account-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7FA8FF);
  border-color: transparent;
}

.account-btn.primary:hover {
  opacity: 0.9;
  color: #fff;
}

.account-btn.danger {
  color: #ff4d4f;
  border-color: rgba(255,77,79,0.25);
}

.account-btn.danger:hover {
  background: rgba(255,77,79,0.06);
  border-color: rgba(255,77,79,0.4);
  color: #ff4d4f;
}

/* ========== 绑定小程序弹窗 ========== */
.bind-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bind-modal {
  width: 360px;
  max-width: 100%;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.bind-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.bind-modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bind-modal-header h3 i {
  color: var(--primary);
}

.bind-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  transition: all var(--transition);
}

.bind-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.bind-modal-body {
  padding: 22px 20px;
  text-align: center;
}

.bind-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.bind-qr-wrap canvas,
.bind-qr-wrap img {
  border: 6px solid #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bind-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.bind-status.scanned {
  color: #16ba59;
}

.bind-tip {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}
/* 图形验证码 */
.captcha-img {
  width: 116px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4f7fd;
}

.captcha-img:hover {
  border-color: var(--primary);
}
/* ========== 编辑资料 ========== */
.profile-edit-section {
  margin-bottom: 28px;
}

.profile-edit-section .section-title i {
  color: var(--primary);
  margin-right: 4px;
}

.exchange-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(108,159,255,0.1);
  border: 1px solid rgba(108,159,255,0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.exchange-entry:hover {
  background: rgba(108,159,255,0.16);
  border-color: var(--primary);
}

.profile-edit-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
}

.profile-edit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.profile-edit-item + .profile-edit-item {
  border-top: 1px solid var(--border);
}

.profile-edit-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(108,159,255,0.12), rgba(255,184,122,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 22px;
}

.profile-edit-preview.bg {
  width: 84px;
  height: 52px;
  border-radius: 10px;
}

.profile-edit-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-info {
  flex: 1;
}

.profile-edit-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.profile-edit-count {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

.profile-edit-count b {
  color: var(--primary);
}

.profile-edit-tip {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ========== 金币/经验流水条目 ========== */
.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-item .item-info {
  flex: 1;
}

.log-change {
  font-size: 15px;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
}

.log-plus { color: #16ba59; }
.log-minus { color: #ff4d4f; }

.log-balance {
  font-size: 12px;
  color: var(--text-light);
  min-width: 64px;
  text-align: right;
}

/* ========== 兑换中心弹窗 ========== */
.exchange-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exchange-modal {
  width: 560px;
  max-width: 100%;
  max-height: 86vh;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.exchange-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.exchange-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exchange-modal-header h3 i {
  color: var(--primary);
}

.exchange-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  transition: all var(--transition);
}

.exchange-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.exchange-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.exchange-balance {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
}

.exchange-balance strong {
  color: #ffb800;
  font-size: 18px;
}

.exchange-balance-sub {
  font-size: 12px;
  color: var(--text-light);
}

.exchange-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--card);
}

.exchange-item.disabled {
  opacity: 0.55;
}

.exchange-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(108,159,255,0.14), rgba(255,184,122,0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.exchange-item-info {
  flex: 1;
  min-width: 0;
}

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

.exchange-item-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.exchange-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.exchange-item-cost {
  font-size: 14px;
  font-weight: 700;
  color: #ffb800;
  display: flex;
  align-items: center;
  gap: 3px;
}

.exchange-item .account-btn {
  padding: 6px 14px;
  font-size: 12px;
}

.exchange-item .account-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exchange-orders-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 16px 0 10px;
}

.exchange-order {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.exchange-order-info {
  flex: 1;
  min-width: 0;
}

.exchange-order-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.exchange-order-time {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.exchange-order-cost {
  font-size: 13px;
  font-weight: 700;
  color: #ffb800;
  display: flex;
  align-items: center;
  gap: 3px;
}

.exchange-order-status {
  font-size: 12px;
  font-weight: 600;
  color: #16ba59;
  background: rgba(22,186,89,0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
/* ========== 账号与资产入口（我的页） ========== */
.assets-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(108,159,255,0.1), rgba(255,184,122,0.08));
  border: 1px solid rgba(108,159,255,0.2);
  border-radius: 16px;
  text-decoration: none;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.assets-entry:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,159,255,0.12);
}

.assets-entry-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.assets-entry-left i {
  font-size: 28px;
  color: var(--primary);
  background: rgba(108,159,255,0.12);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assets-entry-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.assets-entry-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

.assets-entry-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ========== 账号与资产页 ========== */
.account-page-head {
  margin-bottom: 24px;
}

.account-page-head .section-title i {
  color: var(--primary);
  margin-right: 4px;
}

.exchange-section,
.logs-section {
  margin-bottom: 32px;
}

.exchange-section .section-title i,
.logs-section .section-title i {
  color: var(--primary);
  margin-right: 4px;
}

.exchange-section .exchange-balance {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.log-list {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.log-list .tab-list-item {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.log-list .tab-list-item:last-child {
  border-bottom: none;
}
/* ========== 绑定小程序引导（我的页未绑定态） ========== */
.bind-guide {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-solid);
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}

.bind-guide-icon {
  font-size: 44px;
  color: var(--primary);
  margin-bottom: 12px;
}

.bind-guide h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bind-guide p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.bind-guide-tip {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 14px;
}
/* ========== 主题皮肤 ========== */
.themes-section {
  margin-bottom: 32px;
}

.themes-section .section-title i {
  color: var(--primary);
  margin-right: 4px;
}

.themes-section .section-subtitle {
  font-size: 12px;
  color: var(--text-light);
}

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

.theme-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(108,159,255,0.25);
}

.theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(108,159,255,0.15);
}

.theme-preview {
  height: 72px;
  position: relative;
}

.theme-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.theme-info {
  padding: 12px 14px 6px;
  flex: 1;
}

.theme-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.theme-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
  line-height: 1.5;
}

.theme-expire {
  font-size: 11px;
  color: #d98e2b;
  margin-top: 4px;
  font-weight: 600;
}

.theme-action {
  padding: 8px 14px 14px;
}

.theme-action .account-btn {
  width: 100%;
  justify-content: center;
}

.theme-action .account-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 480px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}
.theme-dates {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
/* ========== 激活码激活 ========== */
.activate-box {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.activate-box input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.activate-box input:focus {
  border-color: var(--primary);
}

.activate-result {
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-top: 4px;
}

.activate-result.success {
  color: #16ba59;
  border-color: rgba(22, 186, 89, 0.3);
  background: rgba(22, 186, 89, 0.06);
}

.activate-result.error {
  color: #ff4d4f;
  border-color: rgba(255, 77, 79, 0.3);
  background: rgba(255, 77, 79, 0.06);
}
/* ========== 资料审核状态 ========== */
.audit-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.audit-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #d98e2b;
  background: rgba(255, 184, 122, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.audit-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 4px 0;
  color: var(--text-secondary);
}

.audit-recent-type {
  width: 56px;
  flex-shrink: 0;
}

.audit-recent-status {
  font-weight: 600;
}

.audit-recent-status.ok { color: #16ba59; }
.audit-recent-status.no { color: #ff4d4f; }
.audit-recent-status.wait { color: #d98e2b; }

.audit-recent-time {
  margin-left: auto;
  color: var(--text-light);
}

.nav-account-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-account-info-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
/* ========== 消息通知中心 ========== */
.msg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-item {
  display: flex;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease;
}

.msg-item.unread {
  background: rgba(108, 159, 255, 0.06);
  border-color: rgba(108, 159, 255, 0.25);
}

.msg-item.unread::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff4d4f;
}

.msg-avatar-wrap {
  flex-shrink: 0;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(108,159,255,0.15), rgba(255,184,122,0.15));
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.msg-avatar.admin {
  background: linear-gradient(135deg, #6C9FFF, #8B5CF6);
  color: #fff;
}

.msg-main {
  flex: 1;
  min-width: 0;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.msg-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.msg-reply-flag {
  font-size: 11px;
  color: var(--primary);
  background: rgba(108,159,255,0.1);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}

.msg-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-light);
}

.msg-bubble {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
}

.msg-image {
  max-width: 180px;
  max-height: 130px;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
  border: 1px solid var(--border);
}

.msg-reply-btn {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.msg-reply-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.msg-more {
  text-align: center;
  padding: 10px 0;
}

.msg-more a {
  font-size: 13px;
  color: var(--text-light);
}

.msg-more a:hover {
  color: var(--primary);
}

/* 回复框 */
.msg-composer {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.msg-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.msg-cancel-reply {
  font-size: 12px;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
}

.msg-cancel-reply:hover {
  color: var(--text);
}

.msg-composer-tools {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.msg-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.msg-tool-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.msg-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.msg-emoji {
  width: 32px;
  height: 32px;
  font-size: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.msg-emoji:hover {
  background: rgba(108, 159, 255, 0.1);
}

.msg-composer-body {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.msg-composer-body textarea {
  flex: 1;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}

.msg-composer-body textarea:focus {
  border-color: var(--primary);
}

.msg-send-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--primary), #7FA8FF);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.msg-send-btn:hover {
  opacity: 0.9;
}
.profile-edit-preview.nickname {
  font-size: 20px;
}

.profile-edit-input {
  width: 100%;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  margin-top: 6px;
  transition: border-color 0.2s ease;
}

.profile-edit-input:focus {
  border-color: var(--primary);
}
/* 移动端性能：屏外区块跳过渲染，减少滚动卡顿 */
.profile-edit-section,
.exchange-section,
.themes-section,
.logs-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
/* ========== 漂流瓶入口 ========== */
.bottle-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(90, 150, 235, 0.10), rgba(120, 200, 255, 0.12));
  border: 1px solid rgba(90, 150, 235, 0.22);
  text-decoration: none;
  transition: all 0.3s ease;
}
.bottle-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(90, 150, 235, 0.16);
}
.be-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5FA8FF, #3D7FE0);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(63, 127, 224, 0.35);
}
.be-text { flex: 1; min-width: 0; }
.be-text strong { display: block; font-size: 15px; color: #1A1A2E; }
.be-text small { font-size: 12px; color: #6B7B8D; }
.be-arrow { color: #6C9FFF; font-size: 16px; }
