* {




  margin: 0;




  padding: 0;




  box-sizing: border-box;




  -webkit-tap-highlight-color: transparent;




}









body {




  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;




  background: linear-gradient(135deg, #a8d8ea 0%, #c9b6e4 40%, #f8bbd0 100%);




  background-attachment: fixed;




  min-height: 100vh;




  color: #333;




}









.page {




  display: none;




  min-height: 100vh;




}




.page.active {




  display: block;




}









/* ===== 登录注册页 ===== */




.auth-wrapper {




  min-height: 100vh;




  display: flex;




  align-items: center;




  justify-content: center;




  padding: 20px;




}









.auth-card {




  background: rgba(255, 255, 255, 0.4);




  backdrop-filter: blur(24px);




  -webkit-backdrop-filter: blur(24px);




  border-radius: 28px;




  padding: 40px 32px;




  width: 100%;




  max-width: 380px;




  box-shadow: 0 8px 40px rgba(102, 126, 234, 0.25);




  border: 1px solid rgba(255, 255, 255, 0.5);




}









.auth-logo {




  font-size: 64px;




  text-align: center;




  margin-bottom: 12px;




  animation: float 3s ease-in-out infinite;




}









@keyframes float {




  0%, 100% { transform: translateY(0); }




  50% { transform: translateY(-8px); }




}









.auth-title {




  text-align: center;




  font-size: 26px;




  font-weight: 700;




  background: linear-gradient(135deg, #5c6bc0, #ab47bc);




  -webkit-background-clip: text;




  -webkit-text-fill-color: transparent;




  background-clip: text;




  margin-bottom: 6px;




}









.auth-subtitle {




  text-align: center;




  color: #777;




  font-size: 14px;




  margin-bottom: 28px;




}









.form-input {




  width: 100%;




  padding: 14px 18px;




  border: 1.5px solid rgba(200, 200, 230, 0.6);




  border-radius: 14px;




  font-size: 15px;




  margin-bottom: 14px;




  background: rgba(255, 255, 255, 0.55);




  outline: none;




  transition: all 0.3s;




  color: #333;




}









.form-input:focus {




  border-color: #7986cb;




  background: rgba(255, 255, 255, 0.8);




  box-shadow: 0 0 0 3px rgba(121, 134, 203, 0.15);




}









.form-input.textarea {




  resize: none;




  min-height: 80px;




  font-family: inherit;




}









.btn-primary {




  width: 100%;




  padding: 14px;




  border: none;




  border-radius: 14px;




  background: linear-gradient(135deg, #5c6bc0, #8e24aa);




  color: white;




  font-size: 16px;




  font-weight: 600;




  cursor: pointer;




  transition: all 0.3s;




  letter-spacing: 2px;




}









.btn-primary:hover {




  transform: translateY(-2px);




  box-shadow: 0 6px 20px rgba(92, 107, 192, 0.4);




}









.btn-primary:active {




  transform: translateY(0);




}









.btn-sm {




  width: auto;




  padding: 10px 20px;




  font-size: 14px;




  letter-spacing: 1px;




}









.auth-switch {




  text-align: center;




  margin-top: 20px;




  font-size: 14px;




  color: #666;




}









.auth-switch span {




  color: #5c6bc0;




  font-weight: 600;




  cursor: pointer;




}









/* ===== 主页面布局 ===== */




.top-bar {




  padding: 14px 20px;




  background: rgba(255, 255, 255, 0.7);




  backdrop-filter: blur(16px);




  -webkit-backdrop-filter: blur(16px);




  position: sticky;




  top: 0;




  z-index: 100;




  display: flex;




  justify-content: space-between;




  align-items: center;




  border-bottom: 1px solid rgba(255, 255, 255, 0.4);




}









.top-bar-title {




  font-size: 18px;




  font-weight: 700;




  background: linear-gradient(135deg, #5c6bc0, #ab47bc);




  -webkit-background-clip: text;




  -webkit-text-fill-color: transparent;




  background-clip: text;




}









.icon-btn {




  position: relative;




  font-size: 22px;




  cursor: pointer;




  padding: 4px 8px;




}









.badge {




  position: absolute;




  top: 0;




  right: 0;




  background: #e91e63;




  color: white;




  font-size: 10px;




  min-width: 16px;




  height: 16px;




  border-radius: 8px;




  display: flex;




  align-items: center;




  justify-content: center;




  padding: 0 4px;




  font-weight: 700;




}









.main-content {




  padding-bottom: 80px;




  min-height: calc(100vh - 56px);




}









.tab-content {




  display: none;




}




.tab-content.active {




  display: block;




}









/* ===== 底部导航 ===== */




.bottom-nav {




  position: fixed;




  bottom: 0;




  left: 0;




  right: 0;




  display: flex;




  background: rgba(255, 255, 255, 0.8);




  backdrop-filter: blur(20px);




  -webkit-backdrop-filter: blur(20px);




  border-top: 1px solid rgba(255, 255, 255, 0.5);




  padding: 8px 0;




  padding-bottom: calc(8px + env(safe-area-inset-bottom));




  z-index: 100;




}









.nav-item {




  flex: 1;




  display: flex;




  flex-direction: column;




  align-items: center;




  gap: 2px;




  font-size: 11px;




  color: #999;




  cursor: pointer;




  transition: color 0.3s;




  padding: 4px 0;




}









.nav-item .nav-icon {




  font-size: 22px;




}









.nav-item.active {




  color: #7b1fa2;




  font-weight: 600;




}









/* ===== 卡片列表 ===== */




.list-container {




  padding: 12px 16px;




}









.card {




  background: rgba(255, 255, 255, 0.7);




  backdrop-filter: blur(12px);




  -webkit-backdrop-filter: blur(12px);




  border-radius: 18px;




  padding: 16px;




  margin-bottom: 12px;




  box-shadow: 0 2px 16px rgba(100, 100, 180, 0.1);




  border: 1px solid rgba(255, 255, 255, 0.5);




  cursor: pointer;




  transition: transform 0.2s;




}









.card:hover {




  transform: translateY(-2px);




}









.card-header {




  display: flex;




  align-items: center;




  margin-bottom: 10px;




}









.avatar {




  width: 42px;




  height: 42px;




  border-radius: 50%;




  background: linear-gradient(135deg, #90caf9, #f48fb1);




  display: flex;




  align-items: center;




  justify-content: center;




  font-size: 20px;




  margin-right: 12px;




  flex-shrink: 0;




  cursor: pointer;




}









.card-info {




  flex: 1;




  min-width: 0;




}









.card-nickname {




  font-weight: 600;




  font-size: 15px;




  color: #333;




  cursor: pointer;




}









.card-time {




  font-size: 12px;




  color: #999;




  margin-top: 2px;




}









.post-title {




  font-size: 16px;




  font-weight: 600;




  color: #222;




  margin-bottom: 6px;




}









.post-content {




  font-size: 14px;




  color: #555;




  line-height: 1.6;




  margin-bottom: 8px;




  word-break: break-word;




}









.post-meta {




  font-size: 13px;




  color: #888;




  display: flex;




  gap: 16px;




}









.moment-content {




  font-size: 15px;




  color: #333;




  line-height: 1.7;




  margin-bottom: 8px;




  word-break: break-word;




}









/* ===== 悬浮按钮 ===== */




.fab {




  position: fixed;




  bottom: 90px;




  right: 20px;




  width: 52px;




  height: 52px;




  border-radius: 50%;




  background: linear-gradient(135deg, #5c6bc0, #ab47bc);




  color: white;




  display: flex;




  align-items: center;




  justify-content: center;




  font-size: 24px;




  cursor: pointer;




  box-shadow: 0 4px 16px rgba(92, 107, 192, 0.4);




  z-index: 50;




  transition: transform 0.3s;




}









.fab:hover {




  transform: scale(1.1) rotate(90deg);




}









/* ===== 个人主页 ===== */




.profile-header {




  display: flex;




  align-items: center;




  padding: 24px 20px 16px;




  background: rgba(255, 255, 255, 0.5);




  backdrop-filter: blur(12px);




  margin: 12px 16px;




  border-radius: 20px;




  border: 1px solid rgba(255, 255, 255, 0.5);




}









.profile-avatar {




  width: 64px;




  height: 64px;




  border-radius: 50%;




  background: linear-gradient(135deg, #90caf9, #f48fb1);




  display: flex;




  align-items: center;




  justify-content: center;




  font-size: 32px;




  margin-right: 16px;




}









.profile-info {




  flex: 1;




}









.profile-nickname {




  font-size: 20px;




  font-weight: 700;




  color: #222;




}









.profile-username {




  font-size: 14px;




  color: #888;




  margin-top: 4px;




}









.profile-stats {




  display: flex;




  justify-content: center;




  gap: 40px;




  padding: 16px;




  margin: 0 16px 12px;




  background: rgba(255, 255, 255, 0.6);




  border-radius: 16px;




  font-size: 14px;




  color: #666;




  border: 1px solid rgba(255, 255, 255, 0.5);




}









.profile-stats b {




  font-size: 18px;




  color: #7b1fa2;




  margin-right: 4px;




}









.menu-list {




  margin: 0 16px;




  background: rgba(255, 255, 255, 0.6);




  border-radius: 16px;




  overflow: hidden;




  border: 1px solid rgba(255, 255, 255, 0.5);




}









.menu-item {




  padding: 16px 20px;




  font-size: 15px;




  color: #333;




  cursor: pointer;




  display: flex;




  align-items: center;




  gap: 12px;




  border-bottom: 1px solid rgba(0, 0, 0, 0.05);




  transition: background 0.2s;




}









.menu-item:last-child {




  border-bottom: none;




}









.menu-item:hover {




  background: rgba(255, 255, 255, 0.5);




}









.menu-item.danger {




  color: #e53935;




}









/* ===== 弹层 ===== */




.modal {




  display: none;




  position: fixed;




  top: 0;




  left: 0;




  right: 0;




  bottom: 0;




  background: rgba(0, 0, 0, 0.4);




  z-index: 1000;




  align-items: flex-end;




  justify-content: center;




}









.modal.active {




  display: flex;




}









.modal-content {




  background: rgba(255, 255, 255, 0.95);




  backdrop-filter: blur(20px);




  width: 100%;




  max-width: 500px;




  max-height: 85vh;




  border-radius: 24px 24px 0 0;




  display: flex;




  flex-direction: column;




  animation: slideUp 0.3s ease;




}









@keyframes slideUp {




  from { transform: translateY(100%); }




  to { transform: translateY(0); }




}









.modal-header {




  padding: 16px 20px;




  display: flex;




  justify-content: space-between;




  align-items: center;




  border-bottom: 1px solid rgba(0, 0, 0, 0.06);




  flex-shrink: 0;




}









.modal-title {




  font-size: 17px;




  font-weight: 600;




  color: #333;




}









.modal-close {




  font-size: 20px;




  color: #999;




  cursor: pointer;




  padding: 4px 8px;




}









.modal-body {




  flex: 1;




  overflow-y: auto;




  padding: 16px 20px;




}









.modal-footer {




  padding: 12px 16px;




  border-top: 1px solid rgba(0, 0, 0, 0.06);




  display: flex;




  gap: 10px;




  align-items: center;




  flex-shrink: 0;




}









.modal-footer .form-input {




  margin-bottom: 0;




  flex: 1;




}









/* ===== 聊天 ===== */




.chat-modal {




  max-height: 90vh;




}









.chat-body {




  background: linear-gradient(180deg, rgba(168, 216, 234, 0.15), rgba(248, 187, 208, 0.15));




  display: flex;




  flex-direction: column;




  gap: 10px;




}









.chat-msg {




  max-width: 75%;




  padding: 10px 14px;




  border-radius: 16px;




  font-size: 14px;




  line-height: 1.5;




  word-break: break-word;




}









.chat-msg.mine {




  align-self: flex-end;




  background: linear-gradient(135deg, #7986cb, #9575cd);




  color: white;




  border-bottom-right-radius: 4px;




}









.chat-msg.other {




  align-self: flex-start;




  background: rgba(255, 255, 255, 0.9);




  color: #333;




  border-bottom-left-radius: 4px;




}









.chat-time {




  font-size: 10px;




  color: #999;




  text-align: center;




  margin: 4px 0;




}









/* ===== 用户列表 ===== */




.user-item {




  display: flex;




  align-items: center;




  padding: 14px 16px;




  background: rgba(255, 255, 255, 0.7);




  border-radius: 14px;




  margin-bottom: 10px;




  cursor: pointer;




  transition: transform 0.2s;




  border: 1px solid rgba(255, 255, 255, 0.5);




}









.user-item:hover {




  transform: translateX(4px);




}









.user-item .avatar {




  margin-right: 12px;




}









.user-item-info {




  flex: 1;




}









.user-item-name {




  font-weight: 600;




  font-size: 15px;




  color: #333;




}









.follow-btn {




  padding: 6px 16px;




  border-radius: 20px;




  border: none;




  font-size: 13px;




  font-weight: 600;




  cursor: pointer;




  transition: all 0.3s;




}









.follow-btn.following {




  background: rgba(255, 255, 255, 0.8);




  color: #777;




  border: 1px solid #ddd;




}









.follow-btn.not-following {




  background: linear-gradient(135deg, #5c6bc0, #ab47bc);




  color: white;




}









/* ===== 评论 ===== */




.comment-item {




  display: flex;
  flex-direction: column;




  gap: 10px;




  padding: 10px 0;




  border-bottom: 1px solid rgba(0, 0, 0, 0.05);




}









.comment-item .avatar {




  width: 32px;




  height: 32px;




  font-size: 16px;




}









.comment-content {




  flex: 1;




}









.comment-name {




  font-size: 13px;




  font-weight: 600;




  color: #555;




}









.comment-text {




  font-size: 14px;




  color: #333;




  margin-top: 2px;




}









.comment-time {




  font-size: 11px;




  color: #aaa;




  margin-top: 2px;




}









/* ===== 空状态 ===== */




.empty-state {




  text-align: center;




  padding: 60px 20px;




  color: #999;




  font-size: 14px;




}









.empty-state .emoji {




  font-size: 48px;




  margin-bottom: 12px;




  opacity: 0.6;




}









/* ===== 通知项 ===== */




.notif-item {




  display: flex;




  align-items: center;




  gap: 12px;




  padding: 12px 0;




  border-bottom: 1px solid rgba(0, 0, 0, 0.05);




}









.notif-item .avatar {




  width: 36px;




  height: 36px;




  font-size: 18px;




}









.notif-text {




  flex: 1;




  font-size: 14px;




  color: #333;




}









.notif-time {




  font-size: 11px;




  color: #aaa;




}









/* ===== 审核项 ===== */




.pending-item {




  padding: 14px;




  background: rgba(255, 255, 255, 0.7);




  border-radius: 12px;




  margin-bottom: 10px;




}









.pending-info {




  font-size: 14px;




  color: #333;




  margin-bottom: 6px;




}









.pending-reason {




  font-size: 13px;




  color: #666;




  background: rgba(0, 0, 0, 0.03);




  padding: 8px 10px;




  border-radius: 8px;




  margin-bottom: 10px;




}









.pending-actions {




  display: flex;




  gap: 10px;




}









.pending-actions button {




  flex: 1;




  padding: 8px;




  border: none;




  border-radius: 8px;




  font-size: 13px;




  font-weight: 600;




  cursor: pointer;




}









.btn-approve {




  background: linear-gradient(135deg, #66bb6a, #43a047);




  color: white;




}









.btn-reject {




  background: rgba(229, 57, 53, 0.1);




  color: #e53935;




}









/* 滚动条美化 */




.modal-body::-webkit-scrollbar {




  width: 4px;




}




.modal-body::-webkit-scrollbar-thumb {




  background: rgba(121, 134, 203, 0.3);




  border-radius: 2px;




}









/* ===== 图片上传 ===== */




.image-upload-area {




  border: 2px dashed rgba(121, 134, 203, 0.4);




  border-radius: 12px;




  padding: 20px;




  text-align: center;




  color: #7986cb;




  font-size: 14px;




  cursor: pointer;




  margin-top: 10px;




  transition: all 0.3s;




  background: rgba(255,255,255,0.3);




}




.image-upload-area:hover {




  border-color: #7986cb;




  background: rgba(255,255,255,0.5);




}









.image-preview {




  margin-top: 10px;




  position: relative;




  display: inline-block;




}




.preview-img {




  max-width: 100%;




  max-height: 200px;




  border-radius: 10px;




  display: block;




}




.preview-img.small {




  max-height: 80px;




}




.remove-img {




  position: absolute;




  top: -8px;




  right: -8px;




  background: #e53935;




  color: white;




  width: 22px;




  height: 22px;




  border-radius: 50%;




  display: flex;




  align-items: center;




  justify-content: center;




  font-size: 12px;




  cursor: pointer;




}









/* ===== 卡片图片 ===== */




.card-image {




  width: 100%;




  max-height: 300px;




  object-fit: cover;




  border-radius: 10px;




  margin-top: 8px;




  cursor: pointer;




}




.detail-image {




  width: 100%;




  max-height: 400px;




  object-fit: contain;




  border-radius: 10px;




  cursor: pointer;




}









/* ===== 聊天图片 ===== */




.chat-image {




  max-width: 180px;




  border-radius: 10px;




  display: block;




  margin-top: 4px;




}




.chat-image-preview {




  padding: 0 16px 8px;




}




.image-btn {




  font-size: 22px;




  cursor: pointer;




  padding: 4px 8px;




}









/* ===== 大图查看器 ===== */




.image-viewer {




  position: fixed;




  top: 0; left: 0; right: 0; bottom: 0;




  background: rgba(0,0,0,0.9);




  z-index: 9999;




  display: flex;




  align-items: center;




  justify-content: center;




  cursor: zoom-out;




}




.viewer-img {




  max-width: 90%;




  max-height: 90%;




  border-radius: 8px;




}









/* ===== 头像选择 ===== */




.avatar-grid {




  display: grid;




  grid-template-columns: repeat(6, 1fr);




  gap: 10px;




}




.avatar-option {




  width: 100%;




  aspect-ratio: 1;




  display: flex;




  align-items: center;




  justify-content: center;




  font-size: 28px;




  background: rgba(255,255,255,0.6);




  border-radius: 12px;




  cursor: pointer;




  transition: all 0.2s;




}




.avatar-option:hover {




  background: rgba(121,134,203,0.2);




  transform: scale(1.1);




}









/* ===== 发起新聊天按钮 ===== */




.new-chat-btn {




  background: linear-gradient(135deg, #7986cb, #ba68c8);




  color: white;




  padding: 12px 20px;




  border-radius: 12px;




  text-align: center;




  font-weight: 600;




  margin-bottom: 12px;




  cursor: pointer;




  font-size: 14px;




}




.new-chat-btn:hover { opacity: 0.9; }









/* ===== 作品广场分类标签 ===== */




.moment-tabs {




  display: flex;




  gap: 8px;




  padding: 10px 16px;




  background: rgba(255,255,255,0.5);




  position: sticky;




  top: 56px;




  z-index: 10;




  backdrop-filter: blur(10px);




}




.moment-tab {




  padding: 6px 16px;




  border-radius: 20px;




  font-size: 13px;




  cursor: pointer;




  background: rgba(255,255,255,0.6);




  color: #666;




  transition: all 0.2s;




}




.moment-tab.active {




  background: linear-gradient(135deg, #7986cb, #ba68c8);




  color: white;




}









/* ===== 作品类型选择 ===== */




.moment-type-selector {




  display: flex;




  gap: 10px;




  margin-bottom: 15px;




}




.moment-type-btn {




  flex: 1;




  padding: 10px;




  text-align: center;




  border-radius: 10px;




  background: rgba(255,255,255,0.5);




  cursor: pointer;




  font-size: 14px;




  transition: all 0.2s;




}




.moment-type-btn.active {




  background: linear-gradient(135deg, #7986cb, #ba68c8);




  color: white;




}









/* ===== 视频播放器 ===== */




.card-video {




  width: 100%;




  max-height: 400px;




  border-radius: 10px;




  margin-top: 8px;




  background: #000;




}









/* ===== 小说/长篇文字样式 ===== */




.novel-content {




  max-height: 120px;




  overflow: hidden;




  position: relative;




  line-height: 1.8;




  font-size: 15px;




  white-space: pre-wrap;




}




.novel-content.expanded {




  max-height: none;




}




.expand-btn {




  text-align: center;




  color: #7986cb;




  font-size: 13px;




  padding: 8px;




  cursor: pointer;




  margin-top: 4px;




}




.expand-btn:hover { text-decoration: underline; }









/* ===== 详情页（微博式跳转） ===== */




.detail-page {




  display: none;




  position: fixed;




  top: 0; left: 0; right: 0; bottom: 0;




  width: 100%;




  background: linear-gradient(135deg, #e3f2fd, #f3e5f5, #fce4ec);




  z-index: 9999;




  flex-direction: column;




}




.detail-page.active {




  display: flex;




}




.detail-header {




  display: flex;




  align-items: center;




  padding: 12px 16px;




  background: rgba(255,255,255,0.8);




  backdrop-filter: blur(10px);




  border-bottom: 1px solid rgba(0,0,0,0.05);




  position: sticky;




  top: 0;




  z-index: 10;




}




.detail-back {




  font-size: 16px;




  color: #5c6bc0;




  cursor: pointer;




  margin-right: 12px;




  font-weight: 600;




}




.detail-title {




  font-size: 16px;




  font-weight: 600;




  color: #333;




}




.detail-body {




  flex: 1;




  overflow-y: auto;




  padding: 16px;




}




.detail-footer {




  display: flex;




  gap: 8px;




  padding: 10px 16px;




  background: rgba(255,255,255,0.9);




  backdrop-filter: blur(10px);




  border-top: 1px solid rgba(0,0,0,0.05);




}









/* ===== 多图网格 ===== */




.img-grid {




  display: grid;




  gap: 4px;




  margin-top: 8px;




  border-radius: 10px;




  overflow: hidden;




}




.img-grid-1 { grid-template-columns: 1fr; }




.img-grid-1 .grid-img { max-height: 400px; }




.img-grid-2 { grid-template-columns: 1fr 1fr; }




.img-grid-2 .grid-img { aspect-ratio: 1; }




.img-grid-3 { grid-template-columns: 1fr 1fr 1fr; }




.img-grid-3 .grid-img { aspect-ratio: 1; }




.grid-img {




  width: 100%;




  object-fit: cover;




  cursor: pointer;




  display: block;




}









/* ===== 多图预览（发布时） ===== */




.multi-img-preview {




  display: flex;




  flex-wrap: wrap;




  gap: 8px;




  margin-top: 10px;




}




.preview-item {




  position: relative;




  width: 80px;




  height: 80px;




}




.preview-item .preview-img {




  width: 100%;




  height: 100%;




  object-fit: cover;




  border-radius: 8px;




}









/* ===== 导航红点 ===== */




.nav-badge {




  position: absolute;




  top: 4px;




  right: 50%;




  transform: translateX(16px);




  background: #e53935;




  color: white;




  font-size: 10px;




  min-width: 16px;




  height: 16px;




  border-radius: 8px;




  display: flex;




  align-items: center;




  justify-content: center;




  padding: 0 4px;




}









/* ===== 个人页ID ===== */




.profile-id {




  font-size: 12px;




  color: #999;




  margin-top: 2px;




}









/* ===== 删除按钮 ===== */




.delete-btn {




  display: inline-block;




  background: #ffebee;




  color: #e53935;




  padding: 6px 14px;




  border-radius: 8px;




  font-size: 13px;




  cursor: pointer;




  margin-bottom: 10px;




}




.delete-btn:hover { background: #ffcdd2; }









/* ===== 头像上传按钮 ===== */




.avatar-upload-btn {




  background: linear-gradient(135deg, #7986cb, #ba68c8);




  color: white;




  padding: 12px;




  border-radius: 10px;




  text-align: center;




  font-weight: 600;




  cursor: pointer;




  margin-bottom: 10px;




}




.avatar-upload-btn:hover { opacity: 0.9; }









/* ===== 列表缩略图 ===== */




.thumb-wrap {




  position: relative;




  margin-top: 8px;




  border-radius: 10px;




  overflow: hidden;




  max-height: 200px;




}




.thumb-img {




  width: 100%;




  height: 180px;




  object-fit: cover;




  display: block;




  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);




  transition: filter 0.3s;




}




.thumb-img:not(.loaded) {




  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);




  min-height: 180px;




}




.more-badge {




  position: absolute;




  bottom: 8px;




  right: 8px;




  background: rgba(0,0,0,0.6);




  color: white;




  padding: 4px 10px;




  border-radius: 12px;




  font-size: 12px;




}









/* ===== 视频封面 ===== */




.video-thumb {




  margin-top: 8px;




  height: 160px;




  background: linear-gradient(135deg, #1a1a2e, #16213e);




  border-radius: 10px;




  display: flex;




  flex-direction: column;




  align-items: center;




  justify-content: center;




  cursor: pointer;




  position: relative;




  overflow: hidden;




}




.video-thumb::before {




  content: '';




  position: absolute;




  top: 0; left: 0; right: 0; bottom: 0;




  background: radial-gradient(circle at center, rgba(121,134,203,0.3), transparent);




}




.video-play-btn {




  width: 50px;




  height: 50px;




  background: rgba(255,255,255,0.9);




  border-radius: 50%;




  display: flex;




  align-items: center;




  justify-content: center;




  font-size: 20px;




  color: #333;




  margin-bottom: 8px;




  z-index: 1;




}









/* ===== 媒体占位符（列表不加载高清图） ===== */




.media-placeholder {




  margin-top: 8px;




  padding: 20px;




  background: linear-gradient(135deg, rgba(121,134,203,0.1), rgba(186,104,200,0.1));




  border-radius: 10px;




  text-align: center;




  color: #7986cb;




  font-size: 14px;




  border: 1px dashed rgba(121,134,203,0.3);




}




.media-placeholder.video {




  background: linear-gradient(135deg, #1a1a2e, #16213e);




  color: #fff;




  border: none;




}









/* ===== 评论图片 ===== */




.comment-image {




  max-width: 200px;




  border-radius: 8px;




  margin-top: 6px;




  cursor: pointer;




  display: block;




}









/* ===== 表情包面板 ===== */




.sticker-add {




  font-size: 18px;




  cursor: pointer;




  color: #7986cb;




  margin-left: auto;




  padding: 0 8px;




}




.sticker-grid {




  display: grid;




  grid-template-columns: repeat(4, 1fr);




  gap: 10px;




}




.sticker-item {




  position: relative;




  aspect-ratio: 1;




  background: rgba(255,255,255,0.6);




  border-radius: 10px;




  display: flex;




  align-items: center;




  justify-content: center;




  cursor: pointer;




  overflow: hidden;




  transition: transform 0.2s;




}




.sticker-item:hover { transform: scale(1.05); }




.sticker-img {




  width: 100%;




  height: 100%;




  object-fit: contain;




  padding: 8px;




}




.sticker-del {




  position: absolute;




  top: -6px;




  right: -6px;




  background: #e53935;




  color: white;




  width: 22px;




  height: 22px;




  border-radius: 50%;




  display: flex;




  align-items: center;




  justify-content: center;




  font-size: 12px;




  cursor: pointer;




  z-index: 10;




  box-shadow: 0 2px 6px rgba(0,0,0,0.3);




}









/* ===== 分享链接卡片 ===== */




.link-card {




  display: flex;




  align-items: center;




  gap: 12px;




  background: linear-gradient(135deg, rgba(121,134,203,0.15), rgba(244,143,177,0.15));




  border: 1px solid rgba(121,134,203,0.3);




  border-radius: 12px;




  padding: 12px 16px;




  margin-top: 10px;




  cursor: pointer;




  transition: all 0.2s;




}




.link-card:hover {




  background: linear-gradient(135deg, rgba(121,134,203,0.25), rgba(244,143,177,0.25));




  transform: translateY(-1px);




}




.link-icon {




  font-size: 28px;




  flex-shrink: 0;




}




.link-info {




  flex: 1;




  min-width: 0;




}




.link-url {




  font-size: 13px;




  color: #5c6bc0;




  word-break: break-all;




  font-weight: 500;




}




.link-hint {




  font-size: 11px;




  color: #999;




  margin-top: 2px;




}









/* ===== 加号表情包 ===== */




.add-sticker {




  flex-direction: column;




  gap: 4px;




  border: 2px dashed rgba(121,134,203,0.4);




  background: rgba(255,255,255,0.4);




}




.add-sticker-icon {




  font-size: 28px;




  color: #7986cb;




}




.add-sticker-text {




  font-size: 11px;




  color: #999;




}









/* ===== 视频封面 ===== */




.video-thumb.has-cover {




  padding: 0;




  position: relative;




  overflow: hidden;




}




.video-cover-img {




  width: 100%;




  height: 100%;




  object-fit: cover;




  display: block;




}




.video-thumb.has-cover .video-play-btn {




  position: absolute;




  top: 50%;




  left: 50%;




  transform: translate(-50%, -50%);




  z-index: 2;




}









/* ===== 表情包面板最高层级 ===== */




#stickerPanel {




  z-index: 20000 !important;




}









/* ===== 楼主标签 ===== */




.author-badge {




  display: inline-block;




  background: linear-gradient(135deg, #7986cb, #f48fb1);




  color: white;




  font-size: 10px;




  padding: 1px 6px;




  border-radius: 4px;




  margin-left: 6px;




  font-weight: 600;




  vertical-align: middle;




}









/* ===== 只看楼主按钮 ===== */




.only-author-btn {




  font-size: 12px;




  padding: 4px 10px;




  border-radius: 12px;




  background: rgba(121,134,203,0.1);




  color: #7986cb;




  cursor: pointer;




  transition: all 0.2s;




  font-weight: 500;




}




.only-author-btn:hover {




  background: rgba(121,134,203,0.2);




}




.only-author-btn.active {




  background: linear-gradient(135deg, #7986cb, #f48fb1);




  color: white;




}









/* ===== 收藏按钮 ===== */




.favorite-btn {




  display: inline-block;




  padding: 6px 14px;




  border-radius: 16px;




  background: rgba(255,193,7,0.15);




  color: #f9a825;




  font-size: 13px;




  cursor: pointer;




  transition: all 0.2s;




  font-weight: 500;




}




.favorite-btn:hover {




  background: rgba(255,193,7,0.25);




}




.favorite-btn.favorited {




  background: linear-gradient(135deg, #ffd54f, #ffb74d);




  color: #e65100;




}









/* ===== 默认视频封面 ===== */




.video-thumb.default-cover {




  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);




  flex-direction: column;




  gap: 8px;




  position: relative;




}




.default-cover-icon {




  font-size: 48px;




  opacity: 0.9;




}




.default-cover-text {




  font-size: 13px;




  color: rgba(255,255,255,0.9);




  font-weight: 500;




}




.video-thumb.default-cover .video-play-btn {




  position: absolute;




  top: 50%;




  left: 50%;




  transform: translate(-50%, -50%);




  z-index: 2;




  margin-top: 20px;




}









/* ===== 楼中楼（二级评论） ===== */




.reply-btn {




  color: #7986cb;




  cursor: pointer;




  margin-left: 12px;




  font-size: 12px;




}




.reply-btn:hover {




  text-decoration: underline;




}




.reply-toggle {
  margin-top: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(121,134,203,0.08), rgba(244,143,177,0.08));
  border-radius: 8px;
  font-size: 13px;
  color: #7986cb;
  cursor: pointer;
  text-align: center;
  user-select: none;
}
.reply-toggle:hover {
  background: linear-gradient(135deg, rgba(121,134,203,0.15), rgba(244,143,177,0.15));
}
.reply-list {




  margin-top: 10px;




  margin-left: 16px;




  padding-left: 12px;




  border-left: 2px solid rgba(121,134,203,0.2);




}




.reply-item {




  padding: 8px 0;




  border-bottom: 1px solid rgba(0,0,0,0.05);




}




.reply-item:last-child {




  border-bottom: none;




}




.reply-name {




  font-size: 13px;




  font-weight: 600;




  color: #555;




  margin-bottom: 4px;




}




.reply-text {




  font-size: 13px;




  color: #333;




  line-height: 1.6;




}









/* ===== @用户高亮 ===== */




.at-user {




  color: #7986cb;




  font-weight: 600;




  cursor: pointer;




}




.at-user:hover {




  text-decoration: underline;




}









/* ===== 搜索框 ===== */




.search-bar {




  padding: 12px 16px;




  position: sticky;




  top: 0;




  background: rgba(255,255,255,0.8);




  backdrop-filter: blur(10px);




  z-index: 10;




}




.search-bar .form-input {




  background: rgba(255,255,255,0.9);




}




.search-result-item {




  display: flex;




  align-items: center;




  padding: 12px 16px;




  cursor: pointer;




  border-bottom: 1px solid rgba(0,0,0,0.05);




  transition: background 0.2s;




}




.search-result-item:hover {




  background: rgba(121,134,203,0.1);




}




.search-result-item .avatar {




  margin-right: 12px;




}




.search-result-info {




  flex: 1;




}




.search-result-name {




  font-weight: 600;




  font-size: 14px;




}




.search-result-id {




  font-size: 12px;




  color: #999;




}









/* ===== 注册步骤 ===== */




.register-steps {




  display: flex;




  gap: 8px;




  margin-bottom: 16px;




}




.register-steps .step {




  flex: 1;




  text-align: center;




  padding: 6px;




  font-size: 11px;




  border-radius: 8px;




  background: rgba(0,0,0,0.05);




  color: #999;




}




.register-steps .step.active {




  background: linear-gradient(135deg, #7986cb, #f48fb1);




  color: white;




  font-weight: 600;




}









/* ===== 消息页 tab 切换 ===== */




.msg-tabs {




  display: flex;




  gap: 0;




  background: #f5f5f5;




  border-radius: 12px;




  padding: 4px;




  margin: 12px 16px;




}




.msg-tab {




  flex: 1;




  text-align: center;




  padding: 10px 8px;




  font-size: 14px;




  border-radius: 10px;




  cursor: pointer;




  color: #888;




  transition: all 0.2s;




  font-weight: 500;




}




.msg-tab.active {




  background: linear-gradient(135deg, #7986cb, #f48fb1);




  color: white;




  font-weight: 600;




  box-shadow: 0 2px 8px rgba(121, 134, 203, 0.3);




}









/* ===== 个人页/用户详情 内容 tab ===== */




.profile-content-tabs {




  display: flex;




  gap: 0;




  background: #f5f5f5;




  border-radius: 12px;




  padding: 4px;




  margin: 12px 16px;




}




.profile-tab {




  flex: 1;




  text-align: center;




  padding: 10px 8px;




  font-size: 13px;




  border-radius: 10px;




  cursor: pointer;




  color: #888;




  transition: all 0.2s;




  font-weight: 500;




}




.profile-tab.active {




  background: linear-gradient(135deg, #7986cb, #f48fb1);




  color: white;




  font-weight: 600;




  box-shadow: 0 2px 8px rgba(121, 134, 203, 0.3);




}






/* ===== 菜单小红点 ===== */

.menu-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  background: #e53935;

  color: white;

  font-size: 11px;

  min-width: 18px;

  height: 18px;

  border-radius: 9px;

  padding: 0 5px;

  margin-left: auto;

  font-weight: 600;

}



/* ===== 会话列表未读标记 ===== */

.conv-unread-dot {

  display: inline-block;

  width: 8px;

  height: 8px;

  background: #e53935;

  border-radius: 50%;

  margin-left: 6px;

}

.conv-unread-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  background: #e53935;

  color: white;

  font-size: 10px;

  min-width: 16px;

  height: 16px;

  border-radius: 8px;

  padding: 0 4px;

  margin-left: 6px;

  font-weight: 600;

}


/* ===== 复制控制 ===== */
/* 列表卡片禁止选中文本和长按菜单，防止点击时弹复制/搜索点不进去 */
.card {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-callout: none;
}
.card * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* 详情页内容区允许选中文本（覆盖卡片的禁止） */
.detail-page .card,
#postDetailPageContent,
#momentDetailPageContent {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}
/* 作者设置不允许复制的内容，强制禁止选择和右键 */
.no-copy,
.no-copy * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
}


/* ===== 推荐Feed ===== */
.recommend-card { cursor: pointer; transition: transform 0.2s; break-inside: avoid; margin-bottom: 10px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
#recommendList { column-count: 2; column-gap: 8px; padding: 8px; }
@media (min-width: 768px) { #recommendList { column-count: 3; } }
@media (min-width: 1024px) { #recommendList { column-count: 4; } }
.recommend-card:active { transform: scale(0.98); }
.recommend-title { font-size: 16px; font-weight: 600; color: #333; margin: 8px 0; }
.recommend-content { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.recommend-images { display: flex; gap: 4px; margin: 8px 0; position: relative; }
.recommend-thumb { width: 33%; height: 80px; object-fit: cover; border-radius: 6px; }
.more-images { height: 80px; }
.more-images { position: absolute; right: 0; bottom: 0; width: 33%; height: 100px; background: rgba(0,0,0,0.6); color: white; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 16px; font-weight: 600; }
.recommend-meta { display: flex; gap: 16px; font-size: 13px; color: #999; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.video-badge { display: inline-block; background: linear-gradient(135deg,#7986cb,#ec407a); color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-bottom: 8px; }

/* ===== 小说卡片 ===== */
.novel-card { cursor: pointer; padding: 12px; }
.novel-card:active { transform: scale(0.98); }
.novel-card-inner { display: flex; flex-direction: column; gap: 10px; }
.novel-cover { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.novel-cover-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg,#e8eaf6,#fce4ec); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.novel-info { flex: 1; min-width: 0; }
.novel-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 4px; }
.novel-author { font-size: 13px; color: #7986cb; margin-bottom: 4px; }
.novel-summary { font-size: 13px; color: #999; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.novel-meta { font-size: 12px; color: #bbb; }

/* 小说详情 - 章节列表 */
.chapter-list { margin-top: 8px; max-height: 400px; overflow-y: auto; }
.chapter-item { display: flex; align-items: center; padding: 12px 8px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.chapter-item:active { background: #f5f5f5; }
.chapter-num { font-size: 13px; color: #7986cb; width: 60px; flex-shrink: 0; }
.chapter-title { flex: 1; font-size: 14px; color: #333; }
.chapter-time { font-size: 12px; color: #bbb; }

/* ===== 沉浸式阅读器 ===== */
#chapterReaderModal { background: rgba(0,0,0,0.5); display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); align-items: stretch; justify-content: flex-start; flex-direction: column; max-width: 700px; width: 90%; height: 90vh; max-height: 90vh; margin: 0; border-radius: 12px; overflow: hidden; z-index: 20000; }
#chapterReaderModal.active { display: flex; }
.reader-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 24px; line-height: 2; min-height: 0; background: inherit; }
@media (max-width: 600px) {
  #chapterReaderModal { max-width: 100%; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; top: 0; left: 0; transform: none; }
}
.reader-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 10; }
.reader-back { cursor: pointer; color: #7986cb; font-size: 14px; }
.reader-title { font-size: 15px; font-weight: 600; color: #333; flex: 1; text-align: center; margin: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-settings { cursor: pointer; font-size: 18px; }
.reader-settings-panel { padding: 12px 16px; background: #f9f9f9; border-bottom: 1px solid #eee; font-size: 14px; }
.reader-text { font-size: 18px; line-height: 2; text-indent: 2em; }
.reader-nav { display: flex; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid #eee; background: #fff; }
.reader-nav button { padding: 8px 20px; border: 1px solid #7986cb; background: #fff; color: #7986cb; border-radius: 16px; cursor: pointer; font-size: 14px; }
.reader-nav button:disabled { opacity: 0.3; }

/* ===== 多图查看器 ===== */
#imageViewerModal .modal-content { background: transparent; box-shadow: none; max-width: 100%; height: 100vh; margin: 0; border-radius: 0; }
.viewer-close { position: absolute; top: 16px; right: 16px; color: white; font-size: 28px; cursor: pointer; z-index: 10; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); border-radius: 50%; }
.viewer-counter { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: white; font-size: 16px; z-index: 10; background: rgba(0,0,0,0.5); padding: 4px 16px; border-radius: 12px; }
.viewer-container { width: 100%; height: 100%; overflow: hidden; position: relative; }
.viewer-track { display: flex; width: 100%; height: 100%; transition: transform 0.3s ease; }
.viewer-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.5); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; z-index: 10; }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
@media (max-width: 600px) { .viewer-nav { display: none; } }

/* 动态多图网格 */
.moment-images-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; }
.moment-images-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; }
.moment-images-grid.single { grid-template-columns: 1fr; }
.moment-images-grid.single img { aspect-ratio: auto; max-height: 300px; }

.chapter-actions { font-size: 13px; white-space: nowrap; }
.chapter-item { flex-wrap: wrap; }
.chapter-item > div:first-child { display: flex; align-items: center; flex: 1; }

.chapter-actions { font-size: 13px; white-space: nowrap; }
.chapter-item { flex-wrap: wrap; }
.chapter-item > div:first-child { display: flex; align-items: center; flex: 1; }

.recommend-author { font-size: 12px; color: #999; padding: 8px 8px 4px; }


/* 排行榜 */
.ranking-tab { padding: 6px 14px; border: 1px solid #ddd; background: white; border-radius: 16px; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.ranking-tab.active { background: linear-gradient(135deg,#7986cb,#ec407a); color: white; border-color: transparent; }
.ranking-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.ranking-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-right: 12px; flex-shrink: 0; }
.ranking-num.top1 { background: linear-gradient(135deg,#ffd700,#ff8c00); color: white; }
.ranking-num.top2 { background: linear-gradient(135deg,#c0c0c0,#808080); color: white; }
.ranking-num.top3 { background: linear-gradient(135deg,#cd7f32,#8b4513); color: white; }
.ranking-num.other { background: #f0f0f0; color: #666; }
.ranking-content { flex: 1; min-width: 0; }
.ranking-title { font-size: 14px; color: #333; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-meta { font-size: 12px; color: #999; }
.ranking-heat { font-size: 13px; color: #ff6b6b; font-weight: 600; margin-left: 8px; }

/* Toast提示 */
.toast {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
  pointer-events: auto;
  max-width: 80vw;
  text-align: center;
}
.toast.success { background: rgba(76,175,80,0.95); }
.toast.error { background: rgba(229,57,53,0.95); }
.toast.warning { background: rgba(255,152,0,0.95); }
.toast.info { background: rgba(33,150,243,0.95); }
@keyframes toastIn {
  from { opacity:0; transform:translateY(-20px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes toastOut {
  from { opacity:1; transform:translateY(0); }
  to { opacity:0; transform:translateY(-20px); }
}

/* 全站搜索 */
.search-tab { color: #666; transition: all 0.2s; }
.search-tab.active { background: #e8eaf6; color: #3f51b5; font-weight: 600; }
.search-result-item { padding: 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; }
.search-result-item:hover { background: #f5f5f5; }
.search-result-title { font-weight: 600; color: #333; margin-bottom: 4px; font-size: 14px; }
.search-result-content { color: #666; font-size: 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result-meta { color: #999; font-size: 11px; margin-top: 4px; }

/* 夜间模式 */
body.dark-mode {
  background: #121212 !important;
  color: #e0e0e0 !important;
}
body.dark-mode .app-container,
body.dark-mode .main-content,
body.dark-mode .sidebar,
body.dark-mode .right-sidebar {
  background: #1e1e1e !important;
  color: #e0e0e0 !important;
}
body.dark-mode .card,
body.dark-mode .post-item,
body.dark-mode .moment-item,
body.dark-mode .novel-item,
body.dark-mode .list-container > div {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
  border-color: #3a3a3a !important;
}
body.dark-mode .modal-content {
  background: #1e1e1e !important;
  color: #e0e0e0 !important;
}
body.dark-mode .form-input,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}
body.dark-mode .post-title,
body.dark-mode .modal-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
  color: #fff !important;
}
body.dark-mode .search-result-item:hover {
  background: #333 !important;
}
body.dark-mode .reader-content {
  background: #1e1e1e !important;
  color: #ccc !important;
}

/* PWA安装横幅 */
#installBanner {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
body.install-banner-open .app-container {
  padding-top: 60px;
}
@media (max-width: 768px) {
  #installBanner {
    padding: 10px 12px;
  }
  #installBanner img {
    width: 32px;
    height: 32px;
  }
  #installBanner button[onclick="installPWA()"] {
    padding: 6px 12px;
    font-size: 12px;
  }
}


/* ===== 点击响应优化 ===== */
button, .menu-item, .clickable, [onclick] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.1s ease, opacity 0.1s ease;
}
button:active, .menu-item:active, .clickable:active, [onclick]:active {
  transform: scale(0.97);
  opacity: 0.8;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* 防止双击缩放 */
* {
  touch-action: manipulation;
}

/* 图片懒加载占位 */
img {
  background: #f5f5f8;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 加载动画优化 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #999;
  font-size: 14px;
}
.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #7986cb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
