/* 兽瑞 · 全局样式 v5.0（含公告系统 + 封禁 + 邮箱 + 年龄/生日） */

/* =================================================================
   1. 全局重置与基础
   ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Comic Sans MS', '幼圆', 'Yuanti SC', sans-serif;
}

body {
  background: #fff3e6;
  background-image: radial-gradient(circle at 20% 30%, #ffe7d1 0%, #ffd9b5 80%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

.fluff-ball {
  position: fixed;
  width: 150px;
  height: 150px;
  background: #f7d9aa;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.fluff-ball:nth-child(1) { top: -30px; left: -30px; }
.fluff-ball:nth-child(2) { bottom: -50px; right: -20px; width: 200px; height: 200px; background: #eac28b; }

.container {
  max-width: 1200px;
  width: 100%;
  background: rgba(255, 250, 240, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 48px 48px 32px 32px;
  box-shadow: 0 20px 40px rgba(160, 100, 40, 0.15);
  border: 2px solid #ffe3c9;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* =================================================================
   2. 头部与导航
   ================================================================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  gap: 1rem;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 3rem; }
.logo-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5e3c1f;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 #f7e1c1;
  line-height: 1.1;
}
.logo-text p {
  font-size: 1rem;
  color: #a67b4c;
  font-style: italic;
  padding-left: 6px;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: #fbe9d8;
  padding: 0.7rem 1.5rem;
  border-radius: 60px;
  border: 1px solid #f3cfaa;
  box-shadow: inset 0 2px 5px #f0d7bb;
  flex-wrap: wrap;
  max-width: 100%;
}
.nav-links a {
  text-decoration: none;
  color: #7a5a38;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-links a:hover { background: #edcba7; color: #3f2c18; }
.nav-links a.active { background: #dbb185; color: #2f1f0e; }

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8e5d2;
  border-radius: 40px;
  padding: 0.3rem 1rem 0.3rem 0.6rem;
  border: 1px solid #ebcbaa;
  text-decoration: none;
  max-width: 100%;
}
.user-badge .avatar {
  font-size: 1.8rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.user-badge span { font-weight: 600; color: #6a4c2b; }

/* =================================================================
   3. 主布局
   ================================================================= */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1.2rem;
}
.feed { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 1.8rem; min-width: 0; }

/* =================================================================
   4. 空状态
   ================================================================= */
.empty-state {
  background: #fffbf4;
  border-radius: 32px;
  padding: 4rem 2rem;
  text-align: center;
  border: 2px dashed #edd7c2;
  color: #b18e66;
}
.empty-state .emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.7;
}
.empty-state h3 { font-size: 1.4rem; color: #7a5a38; margin-bottom: 0.8rem; }
.empty-state p { line-height: 1.6; }

/* =================================================================
   5. 帖子卡片
   ================================================================= */
.post-card {
  background: #fffbf4;
  border-radius: 32px 32px 32px 12px;
  padding: 1.6rem 1.8rem;
  border: 1px solid #f3dcc4;
  box-shadow: 0 8px 18px rgba(180,130,80,0.08);
  transition: all 0.25s ease;
  position: relative;
  word-break: break-word;
  overflow: hidden;
}
.post-card:hover {
  box-shadow: 0 18px 28px rgba(150,100,50,0.12);
  transform: scale(1.005);
}
.post-card::before {
  content: "🐾";
  position: absolute;
  left: -10px;
  top: 20px;
  font-size: 1.8rem;
  opacity: 0.5;
  transform: rotate(-15deg);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.post-avatar {
  width: 48px;
  height: 48px;
  background: #e6cfb5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 0 2px #f3e1cf;
  flex-shrink: 0;
  overflow: hidden;
}
.post-info { flex: 1; min-width: 0; }
.post-info .name { font-weight: 700; color: #593e24; font-size: 1.1rem; }
.post-info .handle { font-size: 0.85rem; color: #b18e66; }
.post-info .tag {
  font-size: 0.75rem;
  background: #f0dcc8;
  color: #6f4f2c;
  padding: 0.15rem 0.7rem;
  border-radius: 30px;
  display: inline-block;
  margin-top: 3px;
  font-weight: 600;
}
.admin-badge {
  background: #ffd700;
  color: #7a5a00;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}
.post-time { font-size: 0.8rem; color: #b18e66; white-space: nowrap; flex-shrink: 0; }
.post-content {
  color: #3e2d1c;
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0.8rem 0 1rem;
  border-left: 4px solid #f0cfaa;
  padding-left: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.post-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 1rem 0;
}
.post-media .preview-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid #f3dcc4;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.8rem;
  border-top: 1px solid #f5e5d6;
  padding-top: 0.8rem;
  flex-wrap: wrap;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #ad8864;
  font-weight: 600;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.action-btn:hover { background: #f6ede3; color: #5a3d24; }
.action-btn.liked { color: #e74c3c; }
.action-btn.retweeted { color: #27ae60; }

/* =================================================================
   6. 视频播放器
   ================================================================= */
.video-wrapper {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: #2a1a0e;
  display: block;
  line-height: 0;
}
.video-wrapper video.preview-video { min-height: 220px; }
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.82;
}
.video-play-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: #fff8ea;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
}
.video-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8ead9, #ecd6bc);
  border: 1px dashed #dcbf9b;
  color: #8a5a32;
  gap: 4px;
  text-align: center;
}
.video-missing-icon { font-size: 34px; opacity: 0.7; }
.video-missing strong { font-size: 14px; }
.video-missing span { font-size: 11px; color: #a17c5d; }
.video-error-tip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(80, 22, 16, 0.85);
  color: #fff4e9;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .video-wrapper, .video-wrapper video.preview-video { min-height: 180px; }
  .video-play-hint { bottom: 8px; font-size: 11px; }
}

.video-wrapper video.preview-video {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: 20px;
  border: 2px solid #f3dcc4;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 10, 0, 0.35);
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.video-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(219, 177, 133, 0.95);
  color: #3b2a18;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  pointer-events: none;
  user-select: none;
  transition: transform 0.15s;
}

.video-cover:active .video-play-btn {
  transform: scale(0.92);
}

/* =================================================================
   7. 回复
   ================================================================= */
.replies-section {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #edd7c2;
}
.replies-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.reply-item {
  display: flex;
  gap: 10px;
  padding: 0.6rem 0.8rem;
  background: #fff9f2;
  border-radius: 20px;
  border: 1px solid #f5e5d6;
}
.reply-avatar {
  width: 36px;
  height: 36px;
  background: #efe0d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.reply-body { flex: 1; min-width: 0; }
.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reply-name { font-weight: 700; color: #593e24; font-size: 0.9rem; }
.reply-handle { font-size: 0.75rem; color: #b18e66; }
.reply-time { font-size: 0.75rem; color: #c4a17a; margin-left: auto; }
.reply-content {
  color: #4a3826;
  font-size: 0.92rem;
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
}
.reply-form { display: flex; gap: 8px; align-items: center; }
.reply-input {
  flex: 1;
  background: #f9f0e7;
  border: 1px solid #f0dccb;
  border-radius: 40px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: #4a3826;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.reply-submit {
  background: #dbb185;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-weight: 700;
  color: #3b2a18;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* =================================================================
   8. 发帖框
   ================================================================= */
.compose-box {
  background: #fffbf7;
  border-radius: 32px;
  padding: 1.2rem 1.5rem;
  border: 1px solid #edd7c2;
  margin-bottom: 1.8rem;
}
.compose-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.compose-avatar {
  font-size: 2.2rem;
  background: #efe0d0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.compose-input {
  flex: 1;
  background: #f9f0e7;
  border: 1px solid #f0dccb;
  border-radius: 24px;
  padding: 0.8rem 1.4rem;
  color: #4a3826;
  font-size: 1rem;
  outline: none;
  resize: none;
  min-height: 60px;
  font-family: inherit;
  line-height: 1.5;
  min-width: 0;
}
.compose-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.upload-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3e1d0;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  color: #6a4c2b;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: auto;
}
.compose-char { font-size: 0.8rem; color: #b18e66; }
.compose-char.warning { color: #e74c3c; font-weight: 700; }
.compose-btn {
  background: #dbb185;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 700;
  color: #3b2a18;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}
.compose-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 1rem;
}
.media-preview-item { position: relative; aspect-ratio: 1; }
.media-preview-item img,
.media-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #f3dcc4;
}
.remove-media {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

/* =================================================================
   9. 侧边栏
   ================================================================= */
.widget {
  background: #fff9f2;
  border-radius: 28px;
  padding: 1.6rem 1.5rem;
  border: 1px solid #f1ddcc;
}
.widget h3 {
  color: #4f371f;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px dashed #e5cdb5;
  padding-bottom: 0.6rem;
}
.widget ul { list-style: none; }
.widget li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f5e5d6;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5e422c;
  font-weight: 500;
}
.widget li:last-child { border: none; }
.widget .emoji-bullet { font-size: 1.4rem; width: 28px; text-align: center; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.welcome-card {
  background: linear-gradient(135deg, #ffefdd, #ffe1c6);
  border-radius: 28px;
  padding: 1.8rem 1.5rem;
  color: #543b22;
  border: 1px solid #f7dbbc;
  position: relative;
}
.welcome-card h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.welcome-card p { font-size: 1rem; line-height: 1.5; margin-bottom: 1rem; }

/* =================================================================
   10. 页脚
   ================================================================= */
.footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #b28b62;
  border-top: 1px solid #f0d9c4;
  padding-top: 1.5rem;
}
.footer span { font-weight: 600; color: #8e6a44; }

/* =================================================================
   11. Toast 提示
   ================================================================= */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #5e3c1f;
  color: #fff3e6;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: #c0392b; }

/* =================================================================
   12. 动画
   ================================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.post-card.new-post { animation: fadeInUp 0.4s ease; }

/* =================================================================
   13. 灯箱
   ================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30,15,5,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 95%; max-height: 95%; border-radius: 20px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* =================================================================
   14. 个人主页
   ================================================================= */
.profile-header {
  background: linear-gradient(135deg, #ffefdd, #ffe1c6);
  border-radius: 32px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid #f7dbbc;
  margin-bottom: 2rem;
}
.profile-header h1 {
  color: #5e3c1f;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  word-break: break-word;
}
.profile-header .handle {
  color: #a67b4c;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.profile-header .bio {
  color: #6a4c2b;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
  word-break: break-word;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.profile-stats .stat { text-align: center; text-decoration: none; color: inherit; }
.profile-stats .stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #5e3c1f;
}
.profile-stats .stat .label {
  font-size: 0.85rem;
  color: #a67b4c;
}
.stat-link { text-decoration: none; color: inherit; }

.section-title {
  color: #4f371f;
  font-size: 1.2rem;
  margin: 1rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed #e5cdb5;
}

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  background: #fffbf7;
  border-radius: 30px;
  padding: 0.5rem;
  border: 1px solid #f3dcc4;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  flex: 1;
  min-width: 120px;
  padding: 0.7rem 1.2rem;
  border-radius: 24px;
  text-align: center;
  text-decoration: none;
  color: #7a5a38;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.profile-tab.active { background: #dbb185; color: #3b2a18; }

/* =================================================================
   15. 用户列表
   ================================================================= */
.user-list { display: flex; flex-direction: column; gap: 1rem; }
.user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: #fffbf4;
  border-radius: 24px;
  border: 1px solid #f3dcc4;
  flex-wrap: wrap;
}
.user-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f8e5d2;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.user-card-info { flex: 1; min-width: 0; }
.user-card-name {
  color: #593e24;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  word-break: break-word;
}
.user-card-handle {
  color: #b18e66;
  font-size: 0.85rem;
  margin-top: 2px;
}
.user-card-bio {
  color: #a67b4c;
  font-size: 0.85rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =================================================================
   16. 头像 + 昵称 + 关注
   ================================================================= */
.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.post-avatar,
.reply-avatar,
.compose-avatar,
.user-badge .avatar,
.welcome-avatar,
.big-avatar,
.user-card-avatar,
.avatar-preview {
  overflow: hidden;
}

.user-link { color: #593e24; text-decoration: none; }
.user-link:hover { color: #b58b5a; }

.follow-btn {
  background: #dbb185;
  color: #3b2a18;
  border: 1px solid #c69b6a;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 0 #b58b5a;
  white-space: nowrap;
}
.follow-btn.following {
  background: #f3e1d0;
  color: #6a4c2b;
  box-shadow: 0 2px 0 #d4b896;
}
.follow-btn.following:hover { background: #ffdede; color: #c0392b; }

.follow-btn-big {
  background: #dbb185;
  color: #3b2a18;
  border: 1px solid #c69b6a;
  padding: 0.8rem 2.2rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 0 #b58b5a;
}
.follow-btn-big.following {
  background: #f3e1d0;
  color: #6a4c2b;
}

.welcome-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.8rem;
}
.welcome-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f8e5d2;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  overflow: hidden;
}
.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dbb185;
  color: #3b2a18;
  border: 2px solid #fff;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.my-follow-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.8rem 0;
  border-top: 1px dashed #f0dccb;
  border-bottom: 1px dashed #f0dccb;
}
.my-follow-stats a {
  text-decoration: none;
  color: #8a6a48;
  font-size: 0.9rem;
  font-weight: 600;
}
.my-follow-stats strong {
  display: block;
  color: #5e3c1f;
  font-size: 1.2rem;
  font-weight: 700;
}

.big-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.big-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff5ea;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
  margin: 0 auto;
}
.avatar-edit-btn-big {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbb185;
  color: #3b2a18;
  border: 3px solid #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

/* =================================================================
   17. 头像弹窗
   ================================================================= */
.avatar-modal {
  position: fixed;
  inset: 0;
  background: rgba(60,40,20,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.avatar-modal-content {
  background: #fffbf7;
  border-radius: 32px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  border: 2px solid #ffe3c9;
  max-height: 90vh;
  overflow-y: auto;
}
.avatar-modal-content h3 {
  color: #5e3c1f;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  text-align: center;
}
.avatar-modal-desc {
  color: #a67b4c;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.avatar-preview {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #fff5ea;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.avatar-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dbb185;
  color: #3b2a18;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 0 #b58b5a;
  margin-bottom: 1.5rem;
}
.avatar-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #fff5ea;
  border-radius: 20px;
  border: 1px dashed #f0dccb;
}
.avatar-emoji-item {
  font-size: 1.6rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.avatar-emoji-item:hover { background: #ffe7c8; border-color: #dbb185; }
.avatar-modal-actions { display: flex; gap: 0.8rem; }
.avatar-modal-cancel {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  background: #f3e1d0;
  color: #6a4c2b;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.avatar-modal-status { margin-top: 1rem; min-height: 24px; }

/* =================================================================
   18. 昵称弹窗
   ================================================================= */
.nickname-edit-btn {
  background: transparent;
  border: none;
  color: #b58b5a;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.4rem;
  font-family: inherit;
}
.nickname-edit-btn-small {
  background: transparent;
  border: none;
  color: #b58b5a;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 0.3rem;
  font-family: inherit;
}
.nickname-modal {
  position: fixed;
  inset: 0;
  background: rgba(60,40,20,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.nickname-modal-content {
  background: #fffbf7;
  border-radius: 32px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  border: 2px solid #ffe3c9;
}
.nickname-modal-content h3 {
  color: #5e3c1f;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  text-align: center;
}
.nickname-modal-desc {
  color: #a67b4c;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.nickname-modal-content .form-group { margin-bottom: 1rem; }
.nickname-modal-content label {
  display: block;
  color: #6a4c2b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* =================================================================
   19. 标签系统
   ================================================================= */
.tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: #fffbf7;
  border-radius: 24px;
  padding: 0.9rem 1.2rem;
  border: 1px solid #f3dcc4;
  margin-bottom: 1.5rem;
  max-width: 100%;
}
.tags-bar-title {
  color: #6a4c2b;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.tags-bar-list { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1; min-width: 0; }
.tag-chip {
  background: #f3e1d0;
  color: #6e4e2e;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e9d4bd;
  white-space: nowrap;
}
.tag-chip.active {
  background: #dbb185;
  color: #3b2a18;
  border-color: #c69b6a;
}
.tag-add-btn {
  background: #dbb185;
  color: #3b2a18;
  border: 1px solid #c69b6a;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 0 #b58b5a;
}
.compose-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.5rem 0;
  border-top: 1px dashed #f0dccb;
  margin-top: 0.6rem;
}
.compose-tags-label {
  color: #8a6a48;
  font-weight: 600;
  font-size: 0.9rem;
}
.tag-select-chip {
  background: #f9f0e7;
  color: #8a6a48;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #f0dccb;
}
.tag-select-chip.active {
  background: #dbb185;
  color: #3b2a18;
  border-color: #c69b6a;
}
.post-tag-link {
  color: #6f4f2c;
  text-decoration: none;
  font-weight: 600;
  margin-right: 6px;
}
.post-tag-link:hover { color: #b58b5a; }
.tag-cloud-link {
  background: #f3e1d0;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.9rem;
  color: #6e4e2e;
  font-weight: 600;
  border: 1px solid #e9d4bd;
  text-decoration: none;
  display: inline-block;
  margin: 0 4px 6px 0;
}

.tag-modal {
  position: fixed;
  inset: 0;
  background: rgba(60,40,20,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.tag-modal-content {
  background: #fffbf7;
  border-radius: 32px;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  border: 2px solid #ffe3c9;
  max-height: 90vh;
  overflow-y: auto;
}
.tag-modal-content h3 {
  color: #5e3c1f;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  text-align: center;
}
.tag-modal-desc {
  color: #a67b4c;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.tag-modal-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #f0dccb;
  border-radius: 20px;
  background: #fff;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}
.tag-modal-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.tag-modal-cancel,
.tag-modal-submit {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}
.tag-modal-cancel { background: #f3e1d0; color: #6a4c2b; }
.tag-modal-submit {
  background: #dbb185;
  color: #3b2a18;
  box-shadow: 0 4px 0 #b58b5a;
}
.tag-modal-status { margin-top: 1rem; min-height: 24px; }
.tag-modal-success {
  background: #eafaf1;
  color: #27ae60;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
}
.tag-modal-error {
  background: #fdeaea;
  color: #c0392b;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
}
.my-requests-title {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #f0dccb;
  color: #6a4c2b;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.my-request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: #f9f0e7;
  border-radius: 14px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.req-label { color: #5e3c1f; font-weight: 600; }
.req-status { font-weight: 700; font-size: 0.8rem; }
.req-status.pending { color: #e67e22; }
.req-status.approved { color: #27ae60; }
.req-status.rejected { color: #c0392b; }

/* =================================================================
   20. 18+ 模式
   ================================================================= */
.adult-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

.adult-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f9f0e7;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  color: #8a6a48;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #f0dccb;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
  min-height: 42px;
  position: relative;
  touch-action: manipulation;
  font-family: inherit;
}
.adult-check-label:active { background: #ffe7c8; }
.adult-check-label.active {
  background: #ffe0e0;
  border-color: #e74c3c;
  color: #c0392b;
}
.adult-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.adult-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #dbb185;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s;
  flex-shrink: 0;
  pointer-events: none;
  font-size: 15px;
  font-weight: 700;
  color: transparent;
  line-height: 1;
}
.adult-check-label input[type="checkbox"]:checked ~ .adult-check-box {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}
.adult-check-label input[type="checkbox"]:checked ~ .adult-check-box::before {
  content: "✓";
}
.adult-check-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f9f0e7;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  color: #8a6a48;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px dashed #f0dccb;
  text-decoration: none;
  min-height: 42px;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.adult-check-link:active { background: #ffe7c8; }
.post-card.adult-post { border-left: 4px solid #e74c3c; }

/* =================================================================
   21. 管理后台
   ================================================================= */
.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}
.admin-header {
  background: linear-gradient(135deg, #f5d5b0, #e8bd94);
  border-radius: 32px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-header h1 { color: #4a2f18; font-size: 1.6rem; }
.admin-header .links a {
  color: #6a4c2b;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: rgba(255,255,255,0.4);
  margin-left: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff9f2;
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid #f1ddcc;
}
.stat-card .label {
  color: #a67b4c;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.stat-card .value {
  color: #5e3c1f;
  font-size: 2rem;
  font-weight: 700;
}

.admin-section {
  background: #fff9f2;
  border-radius: 28px;
  padding: 1.8rem;
  border: 1px solid #f1ddcc;
  margin-bottom: 2rem;
  overflow-x: auto;
}
.admin-section h2 {
  color: #4f371f;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px dashed #e5cdb5;
}
.admin-section table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-section th,
.admin-section td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #f5e5d6;
  color: #5e422c;
}
.admin-section th {
  color: #8a6a48;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.msg {
  background: #eafaf1;
  color: #27ae60;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.msg.error { background: #fdeaea; color: #c0392b; }
.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f3dcc4;
}

.role-select {
  background: #fffbf7;
  border: 1px solid #e9d4bd;
  border-radius: 20px;
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #5e3c1f;
  cursor: pointer;
  outline: none;
}
.role-save-btn {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: 6px;
  font-family: inherit;
}
.role-badge {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 6px;
}
.role-user { background: #f3e1d0; color: #6a4c2b; }
.role-admin { background: #ffd700; color: #7a5a00; }
.role-owner { background: #ffb3b3; color: #8b0000; }
.role-note {
  background: #fff5e8;
  border: 1px dashed #f0dccb;
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  color: #8a6a48;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.role-note strong { color: #b58b5a; }
.role-danger-hint {
  display: inline-block;
  font-size: 0.7rem;
  background: #ffe8cc;
  color: #b86e00;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 700;
}

.tag-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tag-review-item {
  background: #fffbf7;
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid #f0dccb;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.tag-review-item .tag-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5e3c1f;
}
.tag-review-item .tag-meta {
  font-size: 0.85rem;
  color: #a67b4c;
  line-height: 1.5;
}
.tag-review-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.tag-approve-btn,
.tag-reject-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.tag-approve-btn { background: #27ae60; color: #fff; }
.tag-reject-btn { background: #e74c3c; color: #fff; }
.tag-approved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.tag-approved-item {
  background: #eafaf1;
  color: #27ae60;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #c3e6cb;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tag-delete-btn {
  background: transparent;
  border: none;
  color: #c0392b;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.3rem;
  font-family: inherit;
}

/* =================================================================
   22. 管理后台标签页
   ================================================================= */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  background: #fffbf7;
  border-radius: 30px;
  padding: 0.5rem;
  border: 1px solid #f3dcc4;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.admin-tab {
  flex: 1;
  min-width: 100px;
  padding: 0.7rem 1rem;
  border-radius: 24px;
  text-align: center;
  text-decoration: none;
  color: #7a5a38;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.admin-tab.active { background: #dbb185; color: #3b2a18; }

/* =================================================================
   23. 管理后台专用（预览/下载菜单）
   ================================================================= */
.btn-small {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  border: none;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}
.btn-preview { background: #eaf4fd; color: #2980b9; }
.btn-preview:hover { background: #d0e8f9; }
.btn-download { background: #e8f5e9; color: #27ae60; }
.btn-download:hover { background: #c8e6c9; }
.btn-adult-on { background: #e74c3c; color: #fff; }
.btn-adult-off { background: #f3e1d0; color: #6a4c2b; }
.btn-adult-on:hover, .btn-adult-off:hover { opacity: 0.85; }

.adult-status-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.adult-status-on { background: #ffe0e0; color: #c0392b; }
.adult-status-off { background: #f3e1d0; color: #8a6a48; }

.bulk-bar {
  background: #fff5e8;
  border: 1px dashed #f0dccb;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bulk-bar-label {
  color: #6a4c2b;
  font-weight: 700;
  font-size: 0.9rem;
}

.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(30,15,5,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1rem;
}
.preview-modal-content {
  background: #fffbf7;
  border-radius: 32px;
  padding: 2rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid #ffe3c9;
}
.preview-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px dashed #e5cdb5;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.preview-modal-header h3 {
  color: #5e3c1f;
  font-size: 1.3rem;
}
.preview-modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #b18e66;
  line-height: 1;
}
.preview-modal-body .post-card { margin: 0; }

.download-menu {
  position: fixed;
  inset: 0;
  background: rgba(30,15,5,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3100;
  padding: 1rem;
}
.download-menu-content {
  background: #fffbf7;
  border-radius: 32px;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid #ffe3c9;
}
.download-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px dashed #e5cdb5;
}
.download-menu-header h3 { color: #5e3c1f; font-size: 1.3rem; }
.download-menu-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #b18e66;
  line-height: 1;
}
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fff9f2;
  border-radius: 20px;
  border: 1px solid #f1ddcc;
  margin-bottom: 0.8rem;
}
.download-item-thumb {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #f3dcc4;
  background: #f3e1d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.download-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-item-info { flex: 1; min-width: 0; }
.download-item-name {
  color: #5e3c1f;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  word-break: break-all;
}
.download-item-type {
  color: #a67b4c;
  font-size: 0.85rem;
}
.download-btn {
  background: #dbb185;
  color: #3b2a18;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 0 #b58b5a;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.download-btn:hover { background: #c9a078; }
.download-btn-all {
  background: #27ae60;
  color: #fff;
  box-shadow: 0 3px 0 #1e8449;
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}
.download-btn-all:hover { background: #219150; }
.download-empty {
  color: #b18e66;
  text-align: center;
  padding: 1rem;
}

.action-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* =================================================================
   24. 登录/注册
   ================================================================= */
.auth-box {
  max-width: 440px;
  margin: 4rem auto;
  background: rgba(255,250,240,0.92);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 2.5rem;
  border: 2px solid #ffe3c9;
  box-shadow: 0 20px 40px rgba(160,100,40,0.15);
}
.auth-box.wide { max-width: 500px; margin: 3rem auto; }
.auth-box h1 {
  text-align: center;
  color: #5e3c1f;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}
.auth-box .sub {
  text-align: center;
  color: #a67b4c;
  margin-bottom: 2rem;
  font-style: italic;
}
.auth-box .form-group { margin-bottom: 1.2rem; }
.auth-box label {
  display: block;
  color: #6a4c2b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.auth-box input[type=text],
.auth-box input[type=password],
.auth-box input[type=email] {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #f0dccb;
  border-radius: 20px;
  background: #fffbf7;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}
.auth-box .btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 40px;
  background: #dbb185;
  color: #3b2a18;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 0 #b58b5a;
  font-family: inherit;
  margin-top: 0.5rem;
}
.auth-box .link {
  text-align: center;
  margin-top: 1.5rem;
  color: #8a6a48;
}
.auth-box .link a {
  color: #b58b5a;
  font-weight: 700;
  text-decoration: none;
}
.back-home {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.back-home a {
  color: #a67b4c;
  text-decoration: none;
  font-weight: 600;
}

.avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
  background: #fffbf7;
  border-radius: 20px;
  padding: 0.8rem;
  border: 2px solid #f0dccb;
}
.avatar-option {
  font-size: 1.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 16px;
  background: #f3e1d0;
  cursor: pointer;
  border: 2px solid transparent;
}
.avatar-option.selected {
  border-color: #dbb185;
  background: #ffe7c8;
  transform: scale(1.1);
}
.hint {
  font-size: 0.8rem;
  color: #b18e66;
  margin-top: 0.3rem;
  padding-left: 0.5rem;
}

/* =================================================================
   25. Landing 欢迎页
   ================================================================= */
.landing-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.8rem 1.5rem;
  background: rgba(255,250,240,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffe3c9;
}
.landing-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.landing-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #5e3c1f;
}
.landing-topbar-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.landing-topbar-links a {
  text-decoration: none;
  color: #7a5a38;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 30px;
}
.landing-wrap {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.landing-hero {
  background: rgba(255,250,240,0.85);
  backdrop-filter: blur(12px);
  border-radius: 60px 60px 40px 40px;
  padding: 4rem 3rem;
  border: 2px solid #ffe3c9;
  box-shadow: 0 30px 60px rgba(160,100,40,0.2);
  text-align: center;
  width: 100%;
}
.landing-icon {
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.landing-hero h1 {
  font-size: 4rem;
  color: #5e3c1f;
  letter-spacing: 8px;
  text-shadow: 4px 4px 0 #f7e1c1;
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.landing-hero .tagline {
  font-size: 1.3rem;
  color: #a67b4c;
  font-style: italic;
  letter-spacing: 3px;
  margin-bottom: 2.5rem;
}
.landing-hero .desc {
  font-size: 1.05rem;
  color: #6a4c2b;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 1.3rem 3.5rem;
  background: #dbb185;
  color: #3b2a18;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 60px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 0 #b58b5a;
  letter-spacing: 2px;
  font-family: inherit;
}
.landing-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.landing-stats .num {
  font-size: 2rem;
  font-weight: 800;
  color: #5e3c1f;
}
.landing-stats .label {
  font-size: 0.9rem;
  color: #a67b4c;
  margin-top: 0.2rem;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  width: 100%;
}
.feature-card {
  background: rgba(255,251,244,0.85);
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid #f3dcc4;
  text-align: center;
}
.feature-card .emoji { font-size: 2.2rem; margin-bottom: 0.5rem; }
.feature-card .title {
  color: #5e3c1f;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.feature-card .desc {
  color: #a67b4c;
  font-size: 0.85rem;
}

/* =================================================================
   26. 安装向导
   ================================================================= */
.install-box {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,250,240,0.92);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 2.5rem;
  border: 2px solid #ffe3c9;
  width: 100%;
}
.install-logo { text-align: center; margin-bottom: 2rem; }
.install-logo .icon { font-size: 4rem; }
.install-logo h1 {
  font-size: 2.2rem;
  color: #5e3c1f;
  text-shadow: 3px 3px 0 #f7e1c1;
  letter-spacing: 3px;
}
.install-logo p {
  color: #a67b4c;
  font-style: italic;
  margin-top: 0.3rem;
}
.steps {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.step-item {
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  background: #f3e1d0;
  color: #8a6a48;
  font-weight: 600;
  font-size: 0.9rem;
}
.step-item.active { background: #dbb185; color: #3b2a18; }
.step-item.done { background: #b8d4a8; color: #3d5a2c; }

.diag-list {
  background: #fffbf7;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid #f0dccb;
  margin-bottom: 1.5rem;
}
.diag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px dashed #f0dccb;
  flex-wrap: wrap;
  gap: 8px;
}
.diag-item:last-child { border: none; }
.diag-item .label {
  color: #6a4c2b;
  font-weight: 600;
  font-size: 0.95rem;
}
.diag-item .value {
  color: #5e422c;
  font-family: monospace;
  font-size: 0.9rem;
}
.diag-item .note {
  color: #b18e66;
  font-size: 0.8rem;
  margin-left: 8px;
}
.diag-item .status { font-size: 1.2rem; }
.diag-item.ok .status { color: #27ae60; }
.diag-item.fail .status { color: #e74c3c; }

.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-item {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: #fffbf7;
  border: 2px solid #f0dccb;
  cursor: pointer;
}
.radio-item.selected { border-color: #dbb185; background: #ffe7c8; }
.radio-item input { display: none; }
.radio-item .title {
  font-weight: 700;
  color: #5e3c1f;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.radio-item .desc {
  font-size: 0.85rem;
  color: #a67b4c;
  line-height: 1.4;
}
.alert {
  padding: 1rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.alert.error { background: #fdeaea; color: #c0392b; }
.alert.success { background: #eafaf1; color: #27ae60; }
.alert.info { background: #eaf4fd; color: #2980b9; }
.db-test-msg {
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.db-test-msg.ok { background: #eafaf1; color: #27ae60; }
.db-test-msg.fail { background: #fdeaea; color: #c0392b; }
.success-box { text-align: center; padding: 2rem 0; }
.success-box .big-icon { font-size: 5rem; margin-bottom: 1rem; }
.success-box h2 {
  color: #27ae60;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.success-box p {
  color: #5e422c;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.links a {
  padding: 0.8rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
}
.links a.primary { background: #dbb185; color: #3b2a18; }
.links a.secondary { background: #f3e1d0; color: #6a4c2b; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  color: #6a4c2b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=email] {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #f0dccb;
  border-radius: 20px;
  background: #fffbf7;
  color: #4a3826;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

/* =================================================================
   27. 设置面板
   ================================================================= */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.avatar-edit-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.avatar-edit-actions { flex: 1; min-width: 240px; }

.settings-form .form-group { margin-bottom: 1rem; }
.settings-form input[type=text],
.settings-form input[type=date],
.settings-form input[type=number],
.settings-form input[type=email] {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 2px solid #f0dccb;
  border-radius: 18px;
  background: #fffbf7;
  color: #4a3826;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.settings-form input[type=text]:focus,
.settings-form input[type=date]:focus,
.settings-form input[type=number]:focus,
.settings-form input[type=email]:focus {
  border-color: #dbb185;
}

.settings-form .hint {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  padding-left: 0.3rem;
  font-weight: 600;
  transition: color 0.15s;
}

#settingsEmojiGrid {
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  max-height: 220px;
  margin-bottom: 0;
}

/* =================================================================
   28. 封禁状态 + 邮箱显示
   ================================================================= */
.banned-badge {
  display: inline-block;
  background: #ffe0e0;
  color: #c0392b;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.banned-reason-hint {
  font-size: 0.7rem;
  color: #8a6a48;
  margin-top: 2px;
  word-break: break-word;
}

.admin-section tr.banned-row {
  opacity: 0.75;
  background: #fff5f5 !important;
}

/* =================================================================
   29. 公告栏 + 公告管理
   ================================================================= */
.announcements-bar {
  background: linear-gradient(135deg, #fff5e6, #ffe9d0);
  border: 2px solid #f3dcc4;
  border-radius: 24px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(180,130,80,0.06);
}

.announcements-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #f0dccb;
}

.announcements-icon { font-size: 1.3rem; }
.announcements-title {
  color: #6a4c2b;
  font-weight: 700;
  font-size: 1rem;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.announcement-item {
  background: #fffbf7;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  border-left: 4px solid #3498db;
  border-top: 1px solid #f3dcc4;
  border-right: 1px solid #f3dcc4;
  border-bottom: 1px solid #f3dcc4;
}
.announcement-item.ann-type-info { border-left-color: #3498db; }
.announcement-item.ann-type-success { border-left-color: #27ae60; }
.announcement-item.ann-type-warning { border-left-color: #f39c12; }
.announcement-item.ann-type-danger { border-left-color: #e74c3c; }

.announcement-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.ann-pin { font-size: 0.9rem; }
.announcement-title {
  color: #5e3c1f;
  font-weight: 700;
  font-size: 0.95rem;
}
.announcement-time {
  font-size: 0.75rem;
  color: #b18e66;
  margin-left: auto;
}
.announcement-content {
  color: #4a3826;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
  margin-top: 0.3rem;
}
.announcement-meta {
  font-size: 0.75rem;
  color: #b18e66;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #f0dccb;
}
.announcement-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.announcements-admin-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* =================================================================
   ★★★★★ 全站移动端适配 v5.0 ★★★★★
   ================================================================= */

/* ---------- 小屏手机（≤ 380px） ---------- */
@media (max-width: 380px) {
  body { padding: 0.4rem 0.3rem !important; overflow-x: hidden !important; }
  .fluff-ball {
    width: 80px !important;
    height: 80px !important;
    filter: blur(25px) !important;
  }
  .container {
    padding: 0.8rem 0.6rem !important;
    border-radius: 18px !important;
    max-width: 100% !important;
  }
  .logo-text h1 { font-size: 1.3rem !important; }
  .logo-icon { font-size: 1.7rem !important; }
  .logo-text p { font-size: 0.75rem !important; }

  .nav-links {
    padding: 0.4rem 0.5rem !important;
    gap: 0.25rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
  }
  .nav-links::-webkit-scrollbar { display: none !important; }
  .nav-links a {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.6rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .user-badge .avatar { width: 24px !important; height: 24px !important; font-size: 1.3rem !important; }
  .user-badge span:not(.avatar) { font-size: 0.8rem; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .compose-box { padding: 0.8rem !important; border-radius: 16px !important; }
  .compose-avatar { width: 38px !important; height: 38px !important; font-size: 1.5rem !important; }
  .compose-input { font-size: 0.9rem !important; padding: 0.6rem 0.8rem !important; min-height: 46px !important; }
  .upload-label, .adult-check-label, .adult-check-link {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.65rem !important;
    min-height: 34px !important;
  }
  .tag-select-chip { padding: 0.25rem 0.55rem !important; font-size: 0.72rem !important; }
  .compose-btn { padding: 0.55rem 1rem !important; font-size: 0.85rem !important; }

  .post-card { padding: 0.85rem 0.8rem !important; border-radius: 16px 16px 16px 6px !important; }
  .post-avatar { width: 36px !important; height: 36px !important; font-size: 1.4rem !important; }
  .post-info .name { font-size: 0.92rem !important; }
  .post-info .handle { font-size: 0.72rem !important; }
  .post-content { font-size: 0.9rem !important; padding-left: 10px !important; }
  .action-btn { padding: 0.4rem 0.55rem !important; font-size: 0.8rem !important; }
  .action-btn .icon { font-size: 0.95rem !important; }

  .video-wrapper video.preview-video { max-height: 260px !important; border-radius: 12px !important; }
  .video-play-btn { width: 52px !important; height: 52px !important; font-size: 1.5rem !important; }

  .reply-item { padding: 0.45rem 0.6rem !important; gap: 6px !important; }
  .reply-avatar { width: 28px !important; height: 28px !important; font-size: 1rem !important; }
  .reply-input { padding: 0.45rem 0.8rem !important; font-size: 0.82rem !important; min-height: 34px; }
  .reply-submit { padding: 0.45rem 0.75rem !important; font-size: 0.78rem !important; min-height: 34px; }

  .welcome-card { padding: 1rem 0.85rem !important; border-radius: 18px !important; }
  .welcome-avatar { width: 52px !important; height: 52px !important; font-size: 2rem !important; }
  .welcome-card h2 { font-size: 1.05rem !important; }
  .welcome-card p { font-size: 0.85rem !important; }
  .widget { padding: 1rem 0.85rem !important; border-radius: 18px !important; }
  .widget h3 { font-size: 0.98rem !important; }
  .widget li { font-size: 0.82rem !important; padding: 0.4rem 0 !important; }

  .tags-bar { padding: 0.55rem 0.7rem !important; border-radius: 16px !important; }
  .tags-bar-title { font-size: 0.75rem !important; }
  .tag-chip { padding: 0.25rem 0.6rem !important; font-size: 0.72rem !important; }
  .tag-add-btn { padding: 0.3rem 0.7rem !important; font-size: 0.75rem !important; }

  .tag-modal-content, .avatar-modal-content, .nickname-modal-content {
    padding: 1rem 0.85rem !important;
    border-radius: 18px !important;
  }
  .avatar-preview { width: 76px !important; height: 76px !important; font-size: 3rem !important; }
  .avatar-emoji-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)) !important; }
  .avatar-emoji-item { font-size: 1.25rem !important; }

  .announcements-bar {
    padding: 0.65rem 0.75rem !important;
    border-radius: 14px !important;
    margin-bottom: 0.8rem !important;
  }
  .announcements-header { margin-bottom: 0.5rem !important; padding-bottom: 0.4rem !important; }
  .announcements-icon { font-size: 1rem !important; }
  .announcements-title { font-size: 0.82rem !important; }
  .announcement-item { padding: 0.55rem 0.7rem !important; border-radius: 10px !important; }
  .announcement-title { font-size: 0.82rem !important; }
  .announcement-content { font-size: 0.78rem !important; }
  .announcement-time { font-size: 0.65rem !important; }

  .admin-wrap { padding: 0.7rem 0.4rem !important; }
  .admin-header h1 { font-size: 1.05rem !important; }
  .admin-header .links a { font-size: 0.75rem !important; padding: 0.35rem 0.6rem !important; }
  .stat-card .value { font-size: 1.2rem !important; }
  .admin-tab { font-size: 0.76rem !important; padding: 0.5rem 0.7rem !important; }
  .btn-small, .btn-danger { font-size: 0.72rem !important; padding: 0.4rem 0.6rem !important; }
  .admin-section td { font-size: 0.82rem !important; }
  .admin-section td::before { font-size: 0.72rem !important; }

  .auth-box {
    padding: 1.5rem 1.2rem !important;
    border-radius: 24px !important;
    margin: 1.5rem auto !important;
  }
  .auth-box h1 { font-size: 1.5rem !important; }
  .auth-box .sub { font-size: 0.85rem !important; margin-bottom: 1.2rem !important; }

  .landing-wrap { padding: 5rem 0.8rem 1.5rem !important; }
  .landing-hero {
    padding: 2rem 1.2rem !important;
    border-radius: 30px 30px 22px 22px !important;
  }
  .landing-icon { font-size: 3.5rem !important; }
  .landing-hero h1 { font-size: 2rem !important; letter-spacing: 3px !important; }
  .landing-hero .tagline { font-size: 0.95rem !important; letter-spacing: 1px !important; margin-bottom: 1.5rem !important; }
  .landing-hero .desc { font-size: 0.88rem !important; line-height: 1.6 !important; margin-bottom: 1.5rem !important; }
  .enter-btn { padding: 0.9rem 1.8rem !important; font-size: 1rem !important; gap: 8px !important; }
  .landing-stats { gap: 1.2rem !important; margin-top: 1.5rem !important; }
  .landing-stats .num { font-size: 1.4rem !important; }
  .landing-stats .label { font-size: 0.78rem !important; }
  .feature-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
    margin-top: 1.5rem !important;
  }
  .feature-card { padding: 1rem !important; border-radius: 18px !important; }
  .feature-card .emoji { font-size: 1.7rem !important; }
  .feature-card .title { font-size: 0.85rem !important; }
  .feature-card .desc { font-size: 0.75rem !important; }

  .install-box { padding: 1.3rem 1rem !important; border-radius: 24px !important; }
  .install-logo .icon { font-size: 3rem !important; }
  .install-logo h1 { font-size: 1.6rem !important; letter-spacing: 2px !important; }
  .step-item { font-size: 0.78rem !important; padding: 0.4rem 0.8rem !important; }
  .diag-item .label { font-size: 0.85rem !important; }
  .diag-item .value { font-size: 0.78rem !important; }
  .diag-item .note { font-size: 0.72rem !important; }
  .radio-item { min-width: 100% !important; padding: 0.8rem 1rem !important; }
  .form-group input[type=text], .form-group input[type=password], .form-group input[type=email] {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
  }
  .links a { padding: 0.65rem 1.2rem !important; font-size: 0.9rem !important; }

  .profile-header { padding: 1.2rem 0.85rem !important; border-radius: 18px !important; }
  .profile-header h1 { font-size: 1.2rem !important; }
  .big-avatar { width: 84px !important; height: 84px !important; font-size: 3rem !important; }
  .profile-stats { gap: 0.9rem !important; }
  .profile-stats .stat .num { font-size: 1.1rem !important; }
  .profile-stats .stat .label { font-size: 0.7rem !important; }
  .profile-tab { font-size: 0.76rem !important; padding: 0.5rem 0.75rem !important; }
  .user-card-avatar { width: 40px !important; height: 40px !important; font-size: 1.4rem !important; }
  .user-card { padding: 0.75rem !important; }
  .user-card-name { font-size: 0.88rem !important; }

  .preview-modal, .download-menu {
    padding: 0.5rem !important;
    align-items: flex-start !important;
  }
  .preview-modal-content, .download-menu-content {
    padding: 0.9rem !important;
    border-radius: 18px !important;
  }
  .download-item-thumb { width: 48px !important; height: 48px !important; }

  .settings-panel { gap: 0.8rem !important; }
  .avatar-edit-row { gap: 0.8rem !important; }
}

/* ---------- 主流手机（≤ 768px） ---------- */
@media (max-width: 768px) {
  body { padding: 0.6rem 0.4rem !important; overflow-x: hidden !important; }
  .fluff-ball {
    width: 90px !important;
    height: 90px !important;
    filter: blur(30px) !important;
  }
  .container {
    border-radius: 24px !important;
    padding: 1rem 0.8rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    margin-bottom: 1rem !important;
  }
  .logo-area { gap: 8px !important; }
  .logo-icon { font-size: 2rem !important; }
  .logo-text h1 {
    font-size: 1.5rem !important;
    letter-spacing: 1px !important;
    text-shadow: 2px 2px 0 #f7e1c1 !important;
  }
  .logo-text p { font-size: 0.8rem !important; }

  .nav-links {
    padding: 0.5rem 0.7rem !important;
    border-radius: 20px !important;
    gap: 0.3rem !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100% !important;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.85rem !important;
    border-radius: 16px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .user-badge { padding: 0.25rem 0.7rem 0.25rem 0.4rem !important; }
  .user-badge .avatar { width: 26px !important; height: 26px !important; font-size: 1.4rem !important; }
  .user-badge span:not(.avatar) {
    font-size: 0.85rem;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tags-bar {
    padding: 0.7rem 0.9rem !important;
    border-radius: 20px !important;
    gap: 0.4rem !important;
    margin-bottom: 1rem !important;
    max-width: 100% !important;
  }
  .tags-bar-title { font-size: 0.85rem !important; }
  .tags-bar-list {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem !important;
    padding-bottom: 2px;
    min-width: 0 !important;
  }
  .tags-bar-list::-webkit-scrollbar { display: none; }
  .tag-chip { padding: 0.3rem 0.7rem !important; font-size: 0.8rem !important; flex-shrink: 0 !important; }
  .tag-add-btn { padding: 0.35rem 0.8rem !important; font-size: 0.8rem !important; flex-shrink: 0 !important; }

  .announcements-bar {
    padding: 0.8rem 0.9rem !important;
    border-radius: 18px !important;
    margin-bottom: 1rem !important;
  }
  .announcements-header { margin-bottom: 0.6rem !important; padding-bottom: 0.5rem !important; }
  .announcements-icon { font-size: 1.1rem !important; }
  .announcements-title { font-size: 0.9rem !important; }
  .announcement-item {
    padding: 0.65rem 0.8rem !important;
    border-radius: 12px !important;
  }
  .announcement-title { font-size: 0.88rem !important; }
  .announcement-content { font-size: 0.82rem !important; }
  .announcement-time { font-size: 0.7rem !important; }
  .announcement-actions .btn-small,
  .announcement-actions .btn-danger {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.7rem !important;
  }

  .main-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 0.8rem !important;
  }
  .sidebar { order: 2 !important; min-width: 0 !important; }
  .feed { order: 1 !important; gap: 1rem !important; min-width: 0 !important; }

  .compose-box {
    padding: 1rem !important;
    border-radius: 20px !important;
    margin-bottom: 1rem !important;
  }
  .compose-row { gap: 8px !important; }
  .compose-avatar { width: 42px !important; height: 42px !important; font-size: 1.7rem !important; }
  .compose-input {
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 52px !important;
    border-radius: 18px !important;
    min-width: 0 !important;
  }
  .compose-tags { padding: 0.5rem 0.2rem 0 !important; gap: 0.4rem !important; }
  .compose-tags-label { font-size: 0.8rem !important; width: 100% !important; margin-bottom: 0.2rem; }
  .tag-select-chip { padding: 0.3rem 0.7rem !important; font-size: 0.8rem !important; }
  .compose-footer {
    gap: 0.5rem !important;
    margin-top: 0.7rem !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }
  .upload-label {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.82rem !important;
    margin-right: 0 !important;
    gap: 4px !important;
  }
  .adult-check-label, .adult-check-link {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
    gap: 4px !important;
  }
  .compose-char {
    font-size: 0.75rem !important;
    order: 3 !important;
    width: 100% !important;
    text-align: right !important;
    margin-top: 0.3rem !important;
  }
  .compose-btn {
    padding: 0.6rem 1.3rem !important;
    font-size: 0.9rem !important;
    order: 4 !important;
    width: 100% !important;
    margin-top: 0.3rem !important;
  }
  .media-preview { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important; }

  .post-card {
    padding: 1rem !important;
    border-radius: 20px 20px 20px 8px !important;
    word-break: break-word !important;
    overflow: hidden !important;
  }
  .post-card::before { font-size: 1.3rem !important; left: -6px !important; top: 14px !important; }
  .post-header { gap: 8px !important; margin-bottom: 0.7rem !important; flex-wrap: wrap; }
  .post-avatar { width: 40px !important; height: 40px !important; font-size: 1.6rem !important; }
  .post-info { min-width: 0; flex: 1; }
  .post-info .name { font-size: 0.98rem !important; word-break: break-word; }
  .post-info .handle { font-size: 0.78rem !important; }
  .post-info .tag { font-size: 0.7rem !important; padding: 0.1rem 0.5rem !important; }
  .post-time { font-size: 0.75rem !important; margin-left: auto; flex-shrink: 0; }
  .post-content {
    font-size: 0.95rem !important;
    padding-left: 12px !important;
    margin: 0.6rem 0 0.8rem !important;
    border-left-width: 3px !important;
    line-height: 1.55 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .video-wrapper video.preview-video {
    max-height: 320px !important;
    border-radius: 14px !important;
  }
  .video-play-btn {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.7rem !important;
  }

  .post-media { grid-template-columns: 1fr !important; gap: 6px !important; }
  .post-media .preview-img {
    max-height: 300px !important;
    border-radius: 14px !important;
  }

  .post-actions {
    gap: 0.2rem !important;
    padding-top: 0.6rem !important;
    margin-top: 0.6rem !important;
    flex-wrap: wrap !important;
  }
  .action-btn {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.85rem !important;
    gap: 4px !important;
    min-height: 36px;
    white-space: nowrap !important;
  }
  .action-btn .icon { font-size: 1rem !important; }
  .follow-btn { padding: 0.3rem 0.7rem !important; font-size: 0.78rem !important; min-height: 30px; }

  .reply-item { padding: 0.5rem 0.7rem !important; gap: 8px !important; }
  .reply-avatar { width: 32px !important; height: 32px !important; font-size: 1.2rem !important; }
  .reply-name { font-size: 0.85rem !important; }
  .reply-handle { font-size: 0.72rem !important; }
  .reply-time { font-size: 0.7rem !important; }
  .reply-content { font-size: 0.88rem !important; word-break: break-word !important; }
  .reply-form { gap: 6px !important; flex-wrap: nowrap !important; }
  .reply-input {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.85rem !important;
    min-height: 38px;
    min-width: 0 !important;
    flex: 1;
  }
  .reply-submit {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.82rem !important;
    min-height: 38px;
    flex-shrink: 0;
  }

  .welcome-card { padding: 1.2rem 1rem !important; border-radius: 20px !important; }
  .welcome-avatar { width: 60px !important; height: 60px !important; font-size: 2.2rem !important; }
  .welcome-card h2 { font-size: 1.2rem !important; }
  .welcome-card p { font-size: 0.9rem !important; margin-bottom: 0.8rem !important; }
  .my-follow-stats { gap: 1rem !important; padding: 0.6rem 0 !important; }
  .my-follow-stats strong { font-size: 1.05rem !important; }
  .my-follow-stats a { font-size: 0.82rem !important; }
  .widget { padding: 1.2rem 1rem !important; border-radius: 20px !important; }
  .widget h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.9rem !important;
    padding-bottom: 0.5rem !important;
  }
  .widget li { padding: 0.5rem 0 !important; font-size: 0.88rem !important; gap: 8px !important; }
  .widget .emoji-bullet { font-size: 1.2rem !important; width: 24px !important; }

  .welcome-card .compose-btn {
    padding: 0.55rem 1rem !important;
    font-size: 0.85rem !important;
    width: auto !important;
    order: 0 !important;
    margin-top: 0 !important;
  }

  .empty-state { padding: 2.5rem 1.2rem !important; border-radius: 20px !important; }
  .empty-state .emoji { font-size: 3rem !important; }
  .empty-state h3 { font-size: 1.1rem !important; }
  .empty-state p { font-size: 0.9rem !important; }

  .footer {
    font-size: 0.78rem !important;
    padding-top: 1rem !important;
    margin-top: 1.5rem !important;
    line-height: 1.6;
  }

  .tag-modal, .avatar-modal, .nickname-modal {
    padding: 0.6rem !important;
    align-items: flex-start !important;
  }
  .tag-modal-content, .avatar-modal-content, .nickname-modal-content {
    padding: 1.2rem 1rem !important;
    border-radius: 22px !important;
    max-height: calc(100vh - 1.2rem) !important;
    margin-top: 0.6rem !important;
    max-width: 100% !important;
  }
  .tag-modal-content h3, .avatar-modal-content h3, .nickname-modal-content h3 {
    font-size: 1.15rem !important;
  }
  .tag-modal-desc, .avatar-modal-desc, .nickname-modal-desc {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }
  .tag-modal-input {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 44px;
  }
  .tag-modal-actions { gap: 0.5rem !important; margin-top: 1rem !important; }
  .tag-modal-cancel, .tag-modal-submit {
    padding: 0.7rem !important;
    font-size: 0.9rem !important;
    min-height: 44px;
  }

  .avatar-preview {
    width: 90px !important;
    height: 90px !important;
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
  }
  .avatar-upload-label {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.9rem !important;
    min-height: 44px;
    margin-bottom: 1rem !important;
  }
  .avatar-emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)) !important;
    gap: 0.4rem !important;
    max-height: 160px !important;
    padding: 0.4rem !important;
  }
  .avatar-emoji-item { font-size: 1.4rem !important; padding: 0.3rem !important; }
  .avatar-modal-cancel {
    padding: 0.7rem !important;
    font-size: 0.9rem !important;
    min-height: 44px;
  }

  .lightbox { padding: 0.5rem !important; }
  .lightbox-close { font-size: 2.2rem !important; top: 10px !important; right: 14px !important; }

  .toast {
    bottom: 20px !important;
    font-size: 0.88rem !important;
    padding: 0.7rem 1.2rem !important;
    max-width: calc(100vw - 2rem) !important;
  }

  .profile-header {
    padding: 1.5rem 1rem !important;
    border-radius: 22px !important;
    margin-bottom: 1rem !important;
  }
  .profile-header h1 {
    font-size: 1.35rem !important;
    word-break: break-word;
    padding: 0 0.3rem;
  }
  .profile-header .handle {
    font-size: 0.88rem !important;
    margin-bottom: 0.6rem !important;
  }
  .profile-header .bio {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    padding: 0 0.3rem;
  }
  .big-avatar { width: 96px !important; height: 96px !important; font-size: 3.6rem !important; }
  .avatar-edit-btn-big {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    bottom: 2px !important;
    right: 2px !important;
  }
  .big-avatar-wrap { margin-bottom: 0.7rem !important; }

  .follow-btn-big {
    padding: 0.7rem 1.8rem !important;
    font-size: 0.92rem !important;
    min-height: 42px;
  }

  .profile-stats { gap: 1.2rem !important; margin-top: 1.2rem !important; }
  .profile-stats .stat .num { font-size: 1.25rem !important; }
  .profile-stats .stat .label { font-size: 0.75rem !important; }

  .profile-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem !important;
    border-radius: 20px !important;
    gap: 0.3rem !important;
    margin-bottom: 1rem !important;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab {
    flex: 0 0 auto !important;
    min-width: auto !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.82rem !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
  }

  .user-card {
    padding: 0.85rem !important;
    border-radius: 18px !important;
    gap: 0.7rem !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }
  .user-card-avatar { width: 46px !important; height: 46px !important; font-size: 1.6rem !important; }
  .user-card-info { flex: 1 1 auto; min-width: 0; }
  .user-card-name { font-size: 0.95rem !important; }
  .user-card-handle { font-size: 0.78rem !important; margin-top: 1px !important; }
  .user-card-bio {
    font-size: 0.78rem !important;
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em;
  }
  .user-card .follow-btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
    min-height: 32px;
    align-self: center;
    flex-shrink: 0;
  }
  .feed { gap: 0.85rem !important; }

  .admin-wrap { padding: 1rem 0.6rem !important; max-width: 100% !important; }
  .admin-header {
    border-radius: 24px !important;
    padding: 1rem 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  .admin-header h1 { font-size: 1.2rem !important; }
  .admin-header .links { display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; }
  .admin-header .links a {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    margin-left: 0 !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,0.6) !important;
  }

  .role-note {
    padding: 0.7rem 0.9rem !important;
    font-size: 0.8rem !important;
    border-radius: 14px !important;
    line-height: 1.5 !important;
  }

  .admin-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem !important;
    border-radius: 20px !important;
    gap: 0.3rem !important;
    scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab {
    flex: 0 0 auto !important;
    min-width: auto !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.82rem !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
    margin-bottom: 1rem !important;
  }
  .stat-card { padding: 0.9rem 1rem !important; border-radius: 20px !important; }
  .stat-card .label { font-size: 0.78rem !important; margin-bottom: 0.3rem !important; }
  .stat-card .value { font-size: 1.4rem !important; }
  .stat-card .value[style*="1.2rem"] { font-size: 1rem !important; }

  .admin-section {
    padding: 1rem !important;
    border-radius: 20px !important;
    margin-bottom: 1rem !important;
    overflow-x: auto !important;
  }
  .admin-section h2 {
    font-size: 1.05rem !important;
    margin-bottom: 0.9rem !important;
    padding-bottom: 0.5rem !important;
  }

  .admin-section table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .admin-section tbody { display: block !important; width: 100% !important; }
  .admin-section tr {
    display: block !important;
    width: 100% !important;
    background: #fffbf7 !important;
    border: 1px solid #f3dcc4 !important;
    border-radius: 16px !important;
    padding: 0.8rem !important;
    margin-bottom: 0.7rem !important;
    box-shadow: 0 2px 6px rgba(180,130,80,0.06);
  }
  .admin-section tr:first-child:has(th) { display: none !important; }
  .admin-section tr:first-child th { display: none !important; }
  .admin-section tr:first-child:not(:has(td)) { display: none !important; }

  .admin-section td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.35rem 0 !important;
    border: none !important;
    font-size: 0.88rem !important;
    text-align: right;
    word-break: break-word;
    width: 100% !important;
  }
  .admin-section td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #a67b4c;
    font-size: 0.78rem;
    text-align: left;
    flex-shrink: 0;
    padding-right: 0.5rem;
  }
  .admin-section td:empty { display: none !important; }
  .admin-section td > * { max-width: 70%; }
  .admin-section td form {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .admin-section td img { width: 28px !important; height: 28px !important; }

  .btn-small {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
    min-height: 32px;
    line-height: 1;
  }
  .btn-danger {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.78rem !important;
    min-height: 32px;
    border-radius: 16px !important;
  }
  .role-save-btn {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.78rem !important;
    min-height: 32px;
    margin-left: 0 !important;
  }
  .role-select {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.8rem !important;
    min-height: 32px;
    max-width: 60%;
  }

  .bulk-bar {
    padding: 0.8rem !important;
    gap: 0.5rem !important;
    border-radius: 16px !important;
  }
  .bulk-bar-label { font-size: 0.82rem !important; width: 100%; }

  .preview-modal, .download-menu {
    padding: 0.6rem !important;
    align-items: flex-start !important;
  }
  .preview-modal-content, .download-menu-content {
    padding: 1rem !important;
    border-radius: 22px !important;
    max-height: calc(100vh - 1.2rem) !important;
    margin-top: 0.6rem !important;
  }
  .preview-modal-header, .download-menu-header {
    margin-bottom: 0.8rem !important;
    padding-bottom: 0.6rem !important;
  }
  .preview-modal-header h3, .download-menu-header h3 { font-size: 1.05rem !important; }
  .preview-modal-close, .download-menu-close { font-size: 1.6rem !important; }

  .download-item {
    padding: 0.7rem !important;
    gap: 0.7rem !important;
    border-radius: 16px !important;
    margin-bottom: 0.6rem !important;
  }
  .download-item-thumb {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
    font-size: 1.6rem !important;
  }
  .download-item-name { font-size: 0.85rem !important; }
  .download-item-type { font-size: 0.75rem !important; }
  .download-btn {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.82rem !important;
    min-height: 34px;
    border-radius: 20px !important;
  }
  .download-btn-all {
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
    border-radius: 20px !important;
  }

  .auth-box {
    padding: 1.8rem 1.3rem !important;
    border-radius: 28px !important;
    margin: 2rem auto !important;
    max-width: 100% !important;
  }
  .auth-box h1 { font-size: 1.7rem !important; }
  .auth-box .sub { font-size: 0.9rem !important; margin-bottom: 1.5rem !important; }
  .auth-box .form-group { margin-bottom: 1rem !important; }
  .auth-box input[type=text], .auth-box input[type=password], .auth-box input[type=email] {
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 44px;
  }
  .auth-box .btn { padding: 0.85rem !important; font-size: 1rem !important; min-height: 48px; }
  .avatar-picker { padding: 0.6rem !important; gap: 6px !important; }
  .avatar-option { font-size: 1.5rem !important; padding: 0.35rem 0.5rem !important; }

  .landing-topbar { padding: 0.6rem 0.9rem !important; }
  .landing-topbar-brand { font-size: 1rem !important; }
  .landing-topbar-links { gap: 0.4rem !important; }
  .landing-topbar-links a { padding: 0.35rem 0.75rem !important; font-size: 0.85rem !important; }

  .landing-wrap { padding: 5rem 1rem 2rem !important; }
  .landing-hero {
    padding: 2.5rem 1.5rem !important;
    border-radius: 40px 40px 28px 28px !important;
  }
  .landing-icon { font-size: 4rem !important; }
  .landing-hero h1 {
    font-size: 2.5rem !important;
    letter-spacing: 4px !important;
    text-shadow: 3px 3px 0 #f7e1c1 !important;
  }
  .landing-hero .tagline {
    font-size: 1.05rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 1.8rem !important;
  }
  .landing-hero .desc {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.8rem !important;
  }
  .enter-btn {
    padding: 1rem 2.2rem !important;
    font-size: 1.1rem !important;
    gap: 10px !important;
    box-shadow: 0 6px 0 #b58b5a !important;
  }
  .landing-stats { gap: 1.8rem !important; margin-top: 2rem !important; }
  .landing-stats .num { font-size: 1.6rem !important; }
  .landing-stats .label { font-size: 0.82rem !important; }
  .feature-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
    margin-top: 2rem !important;
  }
  .feature-card { padding: 1.1rem 0.9rem !important; border-radius: 20px !important; }
  .feature-card .emoji { font-size: 1.9rem !important; }
  .feature-card .title { font-size: 0.9rem !important; }
  .feature-card .desc { font-size: 0.78rem !important; }

  .install-box {
    padding: 1.5rem 1.1rem !important;
    border-radius: 28px !important;
    max-width: 100% !important;
  }
  .install-logo .icon { font-size: 3.5rem !important; }
  .install-logo h1 { font-size: 1.8rem !important; letter-spacing: 2px !important; }
  .install-logo p { font-size: 0.85rem !important; }
  .steps { gap: 0.5rem !important; margin-bottom: 1.5rem !important; }
  .step-item { font-size: 0.82rem !important; padding: 0.45rem 0.9rem !important; }
  .diag-list { padding: 1rem !important; border-radius: 20px !important; }
  .diag-item { padding: 0.55rem 0 !important; }
  .diag-item .label { font-size: 0.88rem !important; }
  .diag-item .value { font-size: 0.8rem !important; }
  .diag-item .note { font-size: 0.72rem !important; margin-left: 4px; }
  .radio-group { gap: 0.7rem !important; }
  .radio-item { min-width: 100% !important; padding: 0.9rem 1rem !important; }
  .radio-item .title { font-size: 0.95rem !important; }
  .radio-item .desc { font-size: 0.8rem !important; }
  .form-group { margin-bottom: 1rem !important; }
  .form-group label { font-size: 0.9rem !important; }
  .form-group input[type=text], .form-group input[type=password], .form-group input[type=email] {
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 44px;
  }
  .links { gap: 0.6rem !important; }
  .links a { padding: 0.7rem 1.5rem !important; font-size: 0.95rem !important; }
  .success-box .big-icon { font-size: 3.5rem !important; }
  .success-box h2 { font-size: 1.4rem !important; }
  .success-box p { font-size: 0.9rem !important; line-height: 1.7 !important; }

  .settings-panel { gap: 1rem !important; }
  .avatar-edit-row { flex-direction: column; align-items: center; gap: 1rem !important; }
  .avatar-edit-actions { width: 100%; min-width: 0; }
  .settings-form input[type=text],
  .settings-form input[type=date],
  .settings-form input[type=number],
  .settings-form input[type=email] {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 44px;
  }
  #settingsEmojiGrid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)) !important;
    max-height: 180px;
  }
  .settings-panel .admin-section {
    padding: 1rem !important;
  }
}

/* ---------- 平板（769px ~ 1024px） ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding: 1.5rem !important; }
  .main-grid {
    grid-template-columns: 1.6fr 1fr !important;
    gap: 1.5rem !important;
  }
  .logo-text h1 { font-size: 2rem !important; }
  .admin-wrap { padding: 1.5rem !important; }
  .stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---------- 触摸设备 ---------- */
@media (hover: none) and (pointer: coarse) {
  .action-btn:hover,
  .tag-chip:hover,
  .compose-btn:hover,
  .follow-btn:hover,
  .nav-links a:hover,
  .tag-cloud-link:hover,
  .post-tag-link:hover {
    background: inherit !important;
    color: inherit !important;
    transform: none !important;
  }
  .post-card:hover {
    transform: none !important;
    box-shadow: 0 8px 18px rgba(180,130,80,0.08) !important;
  }
  .action-btn { min-height: 40px; }
  .tag-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .nav-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .video-play-btn {
    min-width: 64px;
    min-height: 64px;
  }
}