*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* 恢复原有浅色背景，只让帖子卡片是深色 */
  background-color: #f7fafc;
  color: #1a202c;
}

body {
  min-height: 100vh;
}

/* 页面全局加载中遮罩 */
.page-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(14px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loading-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loading-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(99, 179, 237, 0.35);
  border-top-color: #3182ce;
  animation: page-loading-spin 0.9s linear infinite;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.6);
}

.page-loading-text {
  margin-top: 16px;
  font-size: 14px;
  color: #4a5568;
  letter-spacing: 0.08em;
}

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

/* 全屏封禁提示 */
.ban-overlay {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #dc2626 !important;
  z-index: 999999 !important; /* 提高z-index，确保在所有元素之上 */
  animation: banFadeIn 0.3s ease-out;
  pointer-events: auto !important;
}

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

.ban-content {
  text-align: center;
  color: #ffffff;
  padding: 40px;
}

.ban-icon {
  margin-bottom: 0; /* 无间距，让logo和文字紧挨着 */
  animation: banPulse 2s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ban-logo {
  width: 600px;
  height: 600px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* 将logo变为白色 */
}

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

.ban-title {
  font-size: 64px;
  font-weight: bold;
  margin: -160px 0 16px 0; /* 大幅负边距让文字向上移动，与logo非常接近 */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ban-message {
  font-size: 20px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
}

button,
input,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background-color: transparent;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 150px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* 手机版入口：小屏或未自动跳转时手动切到 shouji/single.html */
.mobile-entry-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: #3182ce;
  background: rgba(49, 130, 206, 0.12);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .mobile-entry-link { opacity: 0.7; }
}
@media (max-width: 768px) {
  .mobile-entry-link { font-size: 14px; padding: 8px 14px; background: #3182ce; color: #fff; }
}

.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #63b3ed, #3182ce);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
  text-transform: uppercase;
  color: #2d3748;
}

.nav-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    transform 0.26s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.26s ease,
    padding 0.22s ease,
    gap 0.22s ease;
}

.nav-tab {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #4a5568;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
  position: relative;
  z-index: 1;
}

.nav-tab:hover {
  color: #1a202c;
}

.nav-tab.active {
  color: #ffffff;
  transform: translateY(-0.5px);
}

.nav-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.55);
  transform: translateX(0);
  transition:
    transform 0.46s cubic-bezier(0.19, 1, 0.22, 1),
    width 0.46s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 分享大厅 Hero 内的迷你导航：使用与主导航相同的白色胶囊背景风格 */
.mini-nav-wrapper {
  margin: 12px 0 6px;
  display: flex;
  justify-content: flex-start; /* 与左侧文案对齐 */
}

.mini-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.mini-nav-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #4a5568;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.mini-nav-btn:hover {
  color: #1a202c;
}

.mini-nav-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.4);
  transform: translateY(-0.5px);
}

.mini-nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(148, 163, 184, 0.8);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 顶部小搜索框 */
.header-search-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.header-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 140px;
}

.header-search-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: #4b5563;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-btn svg {
  display: block;
}

.header-info-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease;
  color: #4a5568;
}

.header-info-icon:hover {
  background-color: #edf2f7;
  color: #2d3748;
}

.header-info-icon.has-unread {
  color: #3182ce;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.header-user:hover {
  background-color: #edf2f7;
}

.header-login-btn {
  padding: 6px 14px;
  font-size: 13px;
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.header-avatar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #3182ce;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.header-name {
  font-size: 13px;
  color: #2d3748;
}

.app-main {
  /* 默认：普通页面保持居中版心布局 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* 聊天室专用：铺满宽度，使用聊天室自己的布局（不影响其它页面） */
.app-main-chat {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.page {
  display: block;
}

.page-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

/* 迷你导航进入的板块（乐趣 / 大厅）右上角返回按钮 */
.page-back-btn {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  font-size: 13px;
  font-weight: 500;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease,
    box-shadow 0.12s ease, transform 0.12s ease;
}

.page-back-btn:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: rgba(37, 99, 235, 0.9);
  color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  transform: translateY(-0.5px);
}

.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
}

.page-subtitle {
  font-size: 13px;
  color: #718096;
}

.post-section {
  margin-bottom: 28px;
}

/* 首页 Hero 区 */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 28px;
  margin: 8px auto 28px;
  /* 增大上下留白，让 Hero 更"高"一些 */
  padding: 42px 32px;
  /* Hero 宽度再放大一些 */
  max-width: 1120px;
  min-height: 520px;
  border-radius: 45px;
  background: radial-gradient(circle at top left, #e0f2fe 0, #edf2f7 45%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  min-height: 180px;
  /* 3D倾斜效果 */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.home-hero-main-wrapper {
  display: contents;
}

.home-hero-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.home-hero-title {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  color: #1a202c;
}

.home-hero-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.home-hero-btn {
  padding: 9px 22px;
  font-size: 15px;
}

.home-hero-tip {
  font-size: 12px;
  color: #718096;
}

.home-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.home-hero-badge {
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(49, 130, 206, 0.08);
  color: #2b6cb0;
  font-weight: 500;
}

.home-hero-metrics {
  display: flex;
  gap: 22px;
}

.home-hero-metric {
  text-align: right;
}

.home-hero-metric-value {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
}

.home-hero-metric-label {
  display: block;
  font-size: 12px;
  color: #718096;
}

/* 春节倒计时轮播卡片样式（参考用户提供 UI） */
.spring-hero-wrapper {
  grid-column: 1 / -1;
}

.spring-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  background: #d6322b;
  border-radius: 45px;
  height: 220px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(148, 27, 12, 0.45);
  position: relative;
}

.spring-hero-card::before,
.spring-hero-card::after {
  content: "";
  position: absolute;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: #ffd54a;
}

.spring-hero-card::before {
  left: -60px;
}

.spring-hero-card::after {
  right: -60px;
  top: auto;
  bottom: -60px;
}

.spring-hero-left {
  position: relative;
  z-index: 1;
  padding: 32px 32px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #fff8e1;
}

.spring-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.spring-hero-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.spring-hero-days {
  font-size: 48px;
  font-weight: 900;
}

.spring-hero-unit {
  font-size: 26px;
  font-weight: 700;
}

.spring-hero-subtitle {
  font-size: 14px;
  margin-top: 4px;
}

.spring-hero-btn {
  margin-top: 14px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #ffde59;
  color: #b71c1c;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.spring-hero-right {
  position: relative;
  z-index: 1;
  padding-right: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  color: #fffbe6;
}

.spring-hero-time {
  text-align: right;
  font-size: 14px;
}

.spring-hero-time-label {
  display: block;
  opacity: 0.9;
}

.spring-hero-time-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
}

.spring-hero-horse {
  width: 220px;
  height: 110px;
  background-image: url('placeholder.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827; /* 标题改为近黑色，提升对比度：官方帖子 / 优质帖子 / 乐趣动态 / 大厅动态等 */
}

.section-title.small {
  font-size: 15px;
}

.section-desc {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 内容加载完成时的轻微淡入效果 */
  animation: post-list-fade-in 0.25s ease-out;
  /* 统一为帖子卡片提供 3D 透视空间，用于滚动倾斜效果 */
  perspective: 1200px;
  perspective-origin: center top;
  transform-style: preserve-3d;
}

/* 骨架屏样式 */
.post-skeleton {
  pointer-events: none;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 25%, #edf2f7 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-line {
  height: 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 25%, #edf2f7 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-line.skeleton-title {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 40%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes post-list-fade-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-list.compact .post-card {
  padding: 12px 14px;
}

.post-list.compact .border {
  padding: 12px 14px;
}

.post-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.13s ease, box-shadow 0.13s ease, border-color 0.13s ease;
}

.post-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

/* 新样式：根据样式.md中的结构 */
/* 帖子卡片样式：浅色背景 + 右侧封面图 */
/* 根元素CSS变量，用于动态控制倾斜 */
:root {
  --scroll-tilt-angle: 0deg;
  --scroll-tilt-intensity: 0;
}

.border {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px 220px 16px 20px; /* 预留右侧封面区域 */
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  cursor: pointer;
  z-index: 10; /* 提高点击触发区域的层级 */
  pointer-events: auto; /* 确保可以接收点击事件 */
  /* 使用卡片独立的弧度角度变量，创建弧形倾斜效果 */
  --card-arc-angle: 0deg;
  transform: translateY(0) rotateX(var(--card-arc-angle, 0deg));
  transform-origin: center top;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  /* 使用更平滑的缓动函数，模拟自然的弧度过渡 */
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), 
    box-shadow 0.18s ease, 
    border-color 0.18s ease,
    background-color 0.18s ease;
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  /* 确保整个卡片区域都可以点击 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 确保帖子内容区域可以点击 */
.border .user-content {
  pointer-events: auto;
  cursor: pointer;
  width: 100%;
}

/* 确保帖子预览文字可以点击 */
.border .post-preview,
.border .markdown-content {
  pointer-events: auto;
  cursor: pointer;
}

/* 确保标题可以点击 */
.border h2,
.border .user-content h2 {
  pointer-events: auto;
  cursor: pointer;
}

/* 确保元数据区域可以点击 */
.border .post-meta {
  pointer-events: auto;
  cursor: pointer;
}

.border:hover {
  transform: translateY(-2px) rotateX(var(--card-arc-angle, 0deg));
  border-color: #cbd5e0;
  background-color: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  z-index: 11; /* hover时进一步提高层级 */
}

/* 滚动交互：卡片进入视窗时的轻量入场动效（不做逐帧 scroll 动画，避免卡顿） */
.post-list .reveal {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-list .reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* 新帖子出现时的特殊动画 */
.post-list .border.new-post {
  animation: newPostAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes newPostAppear {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  50% {
    transform: translateY(5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 滚动方向 3D 倾斜：下滑轻微向下俯视，上滑轻微仰视 */
/* 每个卡片使用独立的弧度角度，形成自然的弧形分布 */
.scroll-tilt-down .post-list .border,
.scroll-tilt-up .post-list .border {
  /* 使用卡片自己的弧度角度，已经在JS中根据位置计算好了 */
  transform: translateY(0) rotateX(var(--card-arc-angle, 0deg));
  z-index: 10; /* 确保3D变换时仍然可以点击 */
  pointer-events: auto; /* 确保可以接收点击事件 */
}

/* 确保hover时也保持弧度倾斜效果 */
.scroll-tilt-down .post-list .border:hover,
.scroll-tilt-up .post-list .border:hover {
  transform: translateY(-2px) rotateX(var(--card-arc-angle, 0deg));
  z-index: 11; /* hover时进一步提高层级 */
}

/* 触摸设备不做 hover 夸张位移，避免误触造成跳动 */
@media (hover: none) and (pointer: coarse) {
  .border:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  }
  .border:active {
    transform: scale(0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-list .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 卡片左侧不再显示头像，突出内容本身 */
.user-pic {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pic img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.user-content {
  flex: 1;
  min-width: 0;
  pointer-events: auto;
  cursor: pointer;
}

.user-content h2.spacing {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2933;
  line-height: 1.4;
}

.user-content p.spacing {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
}

/* 右侧封面图：固定在卡片右边，类似参考站点效果 */
.user-content img.spacing {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 116px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.32);
}

.user-content .spacing.time {
  display: block;
  margin: 0 0 4px 0;
  font-size: 12px;
  color: #a0aec0;
}

.commit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  background-color: #edf2f7;
  color: #4a5568;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.btn:hover {
  background-color: #e2e8f0;
}

.btn.active {
  background-color: #2b6cb0;
  color: #ffffff;
}

/* .btn-left 和 .btn-comment 样式已在.btn中定义 */

.icon-heart-empty::before {
  content: "♡";
  font-size: 14px;
  display: inline-block;
  margin-right: 2px;
}

.icon-heart-empty.active::before,
.btn.active .icon-heart-empty::before {
  content: "♥";
  color: #e53e3e;
}

.icon-comment-alt::before {
  content: "💬";
  font-size: 14px;
  display: inline-block;
  margin-right: 2px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #a0aec0;
  margin-bottom: 4px;
}

.post-tag {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 500;
}

.post-tag.official {
  background-color: #ebf8ff;
  color: #2b6cb0;
}

.post-tag.quality {
  background-color: #fefcbf;
  color: #b7791f;
}

.post-author {
  color: #4a5568;
}

.post-time {
  color: #a0aec0;
}

.post-dot {
  color: #cbd5e0;
}

.post-hot {
  color: #ed8936;
}

.post-hot.muted {
  color: #a0aec0;
}

.post-title {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
}

.post-content {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
}

/* Markdown内容样式 */
.markdown-content {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin: 20px 0 12px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.4;
}

.markdown-content h2 {
  font-size: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.markdown-content h3 {
  font-size: 17px;
}

.markdown-content p {
  margin: 12px 0;
}

.markdown-content ul,
.markdown-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.markdown-content li {
  margin: 6px 0;
}

.markdown-content ul li {
  list-style-type: disc;
}

.markdown-content ol li {
  list-style-type: decimal;
}

.markdown-content a {
  color: #3182ce;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.markdown-content a:hover {
  border-bottom-color: #3182ce;
}

.markdown-content code {
  background-color: #edf2f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: #e53e3e;
}

.markdown-content pre {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 14px;
}

.markdown-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #3182ce;
  background-color: #ebf8ff;
  border-radius: 4px;
  color: #2c5282;
  position: relative;
}

.markdown-content blockquote p {
  margin: 0;
}

.markdown-content blockquote strong {
  color: #2c5282;
  font-weight: 600;
}

/* 声明框样式（WARNING, INFO, NOTE等） */
.markdown-content blockquote.warning {
  border-left-color: #f6ad55;
  background-color: #fffaf0;
  color: #744210;
}

.markdown-content blockquote.warning strong {
  color: #744210;
}

.markdown-content blockquote.info {
  border-left-color: #4299e1;
  background-color: #ebf8ff;
  color: #2c5282;
}

.markdown-content blockquote.info strong {
  color: #2c5282;
}

.markdown-content blockquote.note {
  border-left-color: #48bb78;
  background-color: #f0fff4;
  color: #22543d;
}

.markdown-content blockquote.note strong {
  color: #22543d;
}

/* 列表预览样式（限制显示） */
.post-preview.markdown-content {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.post-preview.markdown-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(247, 250, 252, 0.95));
  pointer-events: none;
}

.post-image {
  border-radius: 10px;
  margin-bottom: 10px;
  max-height: 260px;
  object-fit: cover;
  width: 100%;
}

.post-image.large {
  max-height: 500px;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* 多图片网格布局 */
.post-images-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.post-images-grid:not(.detail) {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.post-images-grid.detail {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.post-image-item {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.post-images-grid:not(.detail) .post-image-item {
  height: 120px;
}

.post-image-item:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* 帖子详情页：垂直交替显示内容和图片 */
.post-detail-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-content-item {
  width: 100%;
}

.post-content-item.markdown-content {
  margin: 0;
}

.post-image-wrapper {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.post-detail-image {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-detail-image:hover {
  transform: scale(1.01);
  opacity: 0.95;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 图片预览弹窗 */
.image-preview-mask {
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.image-preview-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.image-preview-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-preview-main {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.image-preview-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  max-width: 100%;
}

.image-preview-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  border: 2px solid transparent;
}

.image-preview-thumbnails img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.image-preview-thumbnails img.active {
  opacity: 1;
  border-color: #4299e1;
}

/* 图片选择预览 */
.selected-images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.image-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.image-preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}

.remove-image-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.image-name {
  display: block;
  padding: 4px 8px;
  font-size: 12px;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  background-color: #edf2f7;
  color: #4a5568;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.post-action:hover {
  background-color: #e2e8f0;
}

.post-action.active {
  background-color: #2b6cb0;
  color: #ffffff;
}

.post-manage-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.post-manage-btn {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  font-size: 12px;
  background-color: #f7fafc;
  color: #4a5568;
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.post-manage-btn:hover {
  background-color: #edf2f7;
  border-color: #cbd5e0;
}

.post-manage-btn.danger {
  border-color: #fed7d7;
  color: #e53e3e;
  background-color: #fff5f5;
}

.post-manage-btn.danger:hover {
  background-color: #fed7d7;
}

.empty-hint {
  margin: 8px 2px 0;
  font-size: 13px;
  color: #a0aec0;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.search-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #cbd5e0;
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
  background-color: #ffffff;
}

.search-input:focus {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 1px #2b6cb0;
}

.primary-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  background: linear-gradient(135deg, #2b6cb0, #3182ce);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.12s ease, transform 0.12s ease, filter 0.12s ease;
}

.primary-btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 18px rgba(49, 130, 206, 0.35);
  transform: translateY(-0.5px);
}

.primary-btn.full {
  width: 100%;
}

.search-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: #a0aec0;
}

.search-count {
  color: #718096;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.checkbox-inline input {
  cursor: pointer;
}

.page-profile .page-title-row {
  margin-bottom: 16px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 18px;
}

/* 更多页：导航站式卡片 */
.page-more .page-title-row {
  margin-bottom: 16px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.more-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 24px;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.4);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.more-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
  background-color: #020617;
}

.more-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #111827;
}

.more-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.more-card-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #e5e7eb;
}

.profile-card {
  background-color: transparent;
}

/* 手机卡片风格外框 */
.profile-phone-card {
  border-radius: 32px;
  border: 3px solid #111827;
  padding: 18px 18px;
  background: linear-gradient(145deg, #ffffff, #f7fafc);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.profile-phone-inner {
  background-color: #ffffff;
  border-radius: 26px;
  padding: 28px 24px 26px;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  min-height: 420px;
}

.profile-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.avatar-upload-btn {
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #111827;
  color: #111827;
  cursor: pointer;
  background-color: #ffffff;
  font-weight: 500;
  box-shadow: 0 2px 0 #111827;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.avatar-upload-btn input {
  display: none;
}

.avatar-upload-btn:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #111827;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-label {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
}

.profile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-save-btn {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #111827;
  background-color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 0 #111827;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.profile-save-btn:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #111827;
}

/* 积分任务卡片 */
.profile-points-card {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.points-bar {
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background-color: #f6ad55;
}

.points-title {
  font-weight: 600;
  color: #1a202c;
}

.points-current {
  margin-left: auto;
  font-size: 12px;
  color: #4a5568;
}

.points-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.points-task-name {
  color: #1a202c;
}

.points-task-btn {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #16a34a;
  background-color: #16a34a;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 0 #15803d;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.points-task-btn:hover {
  background-color: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #15803d;
}

.points-task-btn.disabled {
  background-color: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.points-task-reward {
  font-size: 12px;
  color: #4b5563;
}

.points-task-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.points-task-tag.pending {
  background-color: #facc15;
  color: #92400e;
}

.points-task-tag.done {
  background-color: #e5e7eb;
  color: #4b5563;
}

.points-go-btn {
  margin-top: 6px;
  width: 100%;
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid #ea580c;
  background-color: #fb923c;
  color: #1f2933;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 0 #c05621;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.points-go-btn:hover {
  background-color: #fdba74;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #c05621;
}

.points-go-icon {
  font-size: 14px;
}

.input,
.textarea {
  border-radius: 10px;
  border: 1px solid #cbd5e0;
  padding: 7px 10px;
  font-size: 14px;
  outline: none;
  background-color: #ffffff;
}

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

.input:focus,
.textarea:focus {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 1px #2b6cb0;
}

.save-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #48bb78;
}

.profile-content {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 14px 16px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

/* 右侧积分提现卡片（手机风格） */
.profile-exchange-card {
  border-radius: 32px;
  border-width: 3px;
  border-color: #111827;
  padding: 18px 18px;
  background: linear-gradient(145deg, #ffffff, #f7fafc);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.exchange-phone-inner {
  background-color: #ffffff;
  border-radius: 26px;
  padding: 20px 18px 22px;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exchange-row {
  display: flex;
  gap: 8px;
}

.exchange-input {
  flex: 1;
}

.exchange-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background-color: #34d399;
  color: #065f46;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 #059669;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.exchange-btn:hover {
  background-color: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #059669;
}

.exchange-tip {
  font-size: 12px;
  color: #4b5563;
}

.exchange-message {
  font-size: 13px;
  color: #16a34a;
}

.exchange-back-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #111827;
  background-color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 0 #111827;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.exchange-back-btn:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #111827;
}

/* 温馨提示区域 */
.exchange-warm-tips {
  margin-top: 8px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.exchange-tips-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}

.exchange-tips-icon {
  font-size: 14px;
}

.exchange-tips-title {
  font-size: 13px;
}

.exchange-tips-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.exchange-tips-list li {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 6px;
}

.exchange-tips-list li:last-child {
  margin-bottom: 0;
}

/* 积分不足提示 */
.exchange-insufficient-text {
  margin: 8px 0 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
}

/* 错误消息样式 */
.exchange-message.error {
  color: #dc2626;
  background-color: #fef2f2;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

.profile-tabs {
  display: inline-flex;
  background-color: #f7fafc;
  padding: 3px;
  border-radius: 999px;
  gap: 4px;
  margin-bottom: 10px;
}

.profile-tab {
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: #4a5568;
}

.profile-tab.active {
  background-color: #ffffff;
  color: #2b6cb0;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.35);
}

.profile-panel {
  margin-top: 4px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  z-index: 30;
}

/* 信息中心弹窗动画 */
.modal-fade-enter-active {
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-fade-leave-active {
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-fade-enter-from,
.modal-fade-leave-to {
  opacity: 0;
}

.modal-slide-enter-active {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-slide-leave-active {
  transition: all 0.25s cubic-bezier(0.4, 0, 1, 1);
}

.modal-slide-enter-from {
  opacity: 0;
  transform: scale(0.92) translateY(-30px);
}

.modal-slide-leave-to {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
}

/* 聊天区域右键菜单 */
.chat-context-menu {
  position: fixed;
  z-index: 50;
  min-width: 180px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  border: 1px solid #e5e7eb;
  padding: 4px 0;
  overflow: hidden;
}

.chat-context-item {
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  outline: none;
}

.chat-context-item:hover {
  background-color: #f3f4f6;
}

/* 好友在线状态红绿点 */
.friend-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  box-shadow: 0 0 0 1px #ffffff;
  vertical-align: middle;
}

.friend-status-dot--online {
  background-color: #22c55e; /* 绿 */
}

.friend-status-dot--offline {
  background-color: #9ca3af; /* 灰/红点不在线时用灰色，避免太刺眼 */
}

.modal {
  max-width: 900px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.38);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal.modal-small {
  max-width: 460px;
}

.modal.modal-medium {
  max-width: 600px;
}

.modal.modal-info-center {
  width: 385px;
  height: 624px;
  max-width: 385px;
  max-height: 624px;
}

.modal-header {
  padding: 18px 24px 12px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.4;
}

.modal-meta {
  font-size: 12px;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  border: none;
  background: #edf2f7;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #4a5568;
}

.icon-btn:hover {
  background-color: #e2e8f0;
}

.modal-body {
  padding: 10px 18px 16px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px 18px;
  border-top: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-footer-row {
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
}

.modal-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #a0aec0;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-form-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.post-form-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.post-form-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.post-form-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}

.post-form-user-hint {
  font-size: 12px;
  color: #718096;
  line-height: 1.4;
}

.post-form-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-items: flex-start;
}

.post-form-label {
  font-size: 13px;
  color: #4a5568;
  padding-top: 7px;
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.post-form-required {
  font-size: 11px;
  color: #e53e3e;
}

.post-form-optional {
  font-size: 11px;
  color: #a0aec0;
}

.post-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-form-tip {
  font-size: 12px;
  color: #a0aec0;
}

.file-input-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e0;
  background-color: #f7fafc;
  font-size: 13px;
  color: #4a5568;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.file-input-trigger:hover {
  background-color: #edf2f7;
  border-color: #a0aec0;
}

.file-input-trigger input {
  display: none;
}

.file-input-display {
  font-size: 12px;
  color: #718096;
}

/* 内容区域图片小图标 */
.content-image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 8px;
  background-color: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.content-image-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #cbd5e0;
  transition: all 0.2s ease;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-image-thumb:hover {
  border-color: #3182ce;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
}

.content-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-image-thumb .image-index {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background-color: rgba(49, 130, 206, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
}

.comment-box {
  background-color: #f7fafc;
  border-radius: 12px;
  padding: 14px 14px 12px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.input.flex {
  flex: 1;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #4a5568;
  padding: 4px 0;
  line-height: 1.6;
}

.comment-author {
  font-weight: 500;
}

.comment-dot {
  color: #cbd5e0;
  margin: 0 3px;
}

.comment-text {
  color: #4a5568;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.comment-header-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-time {
  font-size: 12px;
  color: #a0aec0;
}

.comment-delete-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 12px;
  color: #f97373;
  cursor: pointer;
  padding: 0 4px;
}

.comment-delete-btn:hover {
  text-decoration: underline;
}

.comment-images {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.comment-image-item {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
}

.comment-image-btn {
  border: none;
  background: #e5e7eb;
  color: #374151;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 14px;
}

.comment-image-btn:hover {
  background: #d1d5db;
}

.comment-image-preview-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.comment-image-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 12px;
  color: #4b5563;
}

.comment-image-index {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  color: #6b7280;
}

/* 用户资料卡（聊天头像点击弹层） */
.user-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.user-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card-info {
  min-width: 0;
}

.user-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.user-card-bio {
  font-size: 13px;
  color: #4b5563;
}

.user-card-bio.empty {
  color: #9ca3af;
}

.user-card-post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-card-post-item {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.user-card-post-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.user-card-post-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.user-card-post-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* 代码板块卡片样式（基于 代码板块的卡片.md 调整命名） */
.code-card-wrapper {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.code-card-editor {
  max-width: 100%;
  background-color: #1d1e22;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid #2d3748;
}

/* 代码卡片右侧主体区域：让编辑器和底部操作垂直排列 */
.code-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 代码卡片顶部三色圆点，来自 代码板块的卡片.md，做局部作用域 */
.code-card-editor .tools {
  display: flex;
  align-items: center;
  padding: 8px 10px 0;
}

.code-card-editor .circle {
  padding: 0 4px;
}

.code-card-editor .box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-card-editor .red {
  background-color: #ff605c;
}

.code-card-editor .yellow {
  background-color: #ffbd44;
}

.code-card-editor .green {
  background-color: #00ca4e;
}

/* 代码详情弹层里的卡片：稍微放大一点并撑满宽度 */
.code-detail-editor {
  max-width: 100%;
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
}

.code-card-title {
  font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.57px;
  color: rgb(212, 212, 212);
}

.code-card-icon {
  width: 20px;
  transition: 0.2s ease;
}

.code-card-icon:hover {
  cursor: pointer;
  border-radius: 50px;
  background-color: #6e7281;
}

.code-card-content {
  margin: 0 10px 10px;
  color: white;
  overflow-x: auto;
}

.code-card-code {
  display: block;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 代码列表预览带行号样式 */
.code-card-lines {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  background-color: #0b1120;
  border-radius: 8px;
  padding: 6px 8px;
  max-height: 260px;
  overflow: auto;
}

.code-line {
  display: flex;
  align-items: flex-start;
}

.code-line-number {
  width: 32px;
  flex-shrink: 0;
  padding-right: 6px;
  text-align: right;
  color: #64748b;
  user-select: none;
}

.code-line-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: #e5e7eb;
}

.code-more-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #a5b4fc;
}

/* ===== 按照 代码板块的卡片.md 中的 highlight.js 样式接入 ===== */
pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
}

code.hljs {
  padding: 3px 5px;
}

.hljs {
  color: #c9d1d9;
  background: #0d1117;
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  color: #ff7b72;
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  color: #d2a8ff;
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  color: #79c0ff;
}

.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  color: #a5d6ff;
}

.hljs-built_in,
.hljs-symbol {
  color: #ffa657;
}

.hljs-comment,
.hljs-code,
.hljs-formula {
  color: #8b949e;
}

.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  color: #7ee787;
}

.hljs-subst {
  color: #c9d1d9;
}

.hljs-section {
  color: #1f6feb;
  font-weight: bold;
}

.hljs-bullet {
  color: #f2cc60;
}

.hljs-emphasis {
  color: #c9d1d9;
  font-style: italic;
}

.hljs-strong {
  color: #c9d1d9;
  font-weight: bold;
}

.hljs-addition {
  color: #aff5b4;
  background-color: #033a16;
}

.hljs-deletion {
  color: #ffdcd7;
  background-color: #67060c;
}

.code-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}

.code-card-meta-left .time {
  font-size: 12px;
  color: #a0aec0;
}

.code-card-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 首页优质区里展示代码的多行预览块 */
.quality-code-snippet {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  background-color: #0f172a;
  color: #e5e7eb;
  padding: 8px 10px;
  border-radius: 8px;
  max-height: 240px;        /* 可以看到更多代码行 */
  overflow: auto;           /* 代码过长时支持滚动 */
  white-space: pre-wrap;
  word-break: break-word;
}

/* Mac风格代码卡片样式 */
.mac-code-card {
  width: 100%;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 12px 0;
}

.mac-code-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.mac-code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.mac-code-header span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-code-header .mac-red {
  background-color: #ff5f57;
}

.mac-code-header .mac-yellow {
  background-color: #ffbd2e;
}

.mac-code-header .mac-green {
  background-color: #28c941;
}

.mac-code-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #272729;
}

.mac-code-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.mac-code-tag {
  display: inline-block;
  font-size: 10px;
  border-radius: 5px;
  background-color: #0d1117;
  padding: 4px 8px;
  margin-right: 6px;
  margin-bottom: 12px;
  color: #dcdcdc;
}

.mac-code-editor {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
  max-height: 280px;
  border: 1px solid #2d2d2d;
}

.mac-code-editor::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.mac-code-editor::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.mac-code-editor::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.mac-code-editor pre {
  margin: 0;
  padding: 0;
}

.mac-code-editor pre code {
  white-space: pre-wrap;
  display: block;
  color: inherit;
  background: transparent;
}

.fab-post {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2b6cb0, #3182ce);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 14px 30px rgba(49, 130, 206, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.fab-post:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(49, 130, 206, 0.65);
}

/* ================= iOS 风格左下角音乐播放器 ================= */
.main-music-card {
  position: fixed;
  left: 20px;
  bottom: 100px;
  z-index: 25;

  max-width: 420px;
  width: 320px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px;
  border-radius: 35px;
  background: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: -apple-system, system-ui, sans-serif;
  color: white;
  transition: all 0.3s ease;
  /* 禁止选中和复制 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 播放器右上角收起按钮 */
.music-close-player {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.music-close-player:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-0.5px);
}

/* 播放器高斯模糊加载效果 */
.main-music-card.music-loading {
  filter: blur(15px);
  opacity: 0.6;
  pointer-events: none;
  transition: filter 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-music-card:not(.music-loading) {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
}

/* 折叠状态：只保留一个带圆角的方形封面图标，双击可再次展开 */
.main-music-card.music-collapsed {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  overflow: visible; /* 关闭折叠状态下的滚动条 */
  gap: 0;
}

.main-music-card.music-collapsed .track-info {
  justify-content: center;
  padding: 0;
}

.main-music-card.music-collapsed .album-art {
  width: 64px;
  height: 64px;
  border-radius: 16px; /* 四方圆角封面 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.main-music-card.music-collapsed .track-details,
.main-music-card.music-collapsed .volume-bars,
.main-music-card.music-collapsed .music-search-container,
.main-music-card.music-collapsed .music-search-results,
.main-music-card.music-collapsed .playback-controls {
  display: none !important;
}

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

.album-art {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-image: url("photo/yinyue.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.album-art:hover {
  transform: scale(1.05);
}

.track-details {
  flex-grow: 1;
  overflow: hidden;
}

/* =============== 2026 马年悬浮倒计时（红色卡片，可拖动） =============== */
.horse-countdown-card {
  position: fixed;
  top: 96px;
  right: 32px;
  z-index: 40;
  padding: 12px 18px;
  min-width: 210px;
  border-radius: 18px;
  background: #e53935;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: -apple-system, system-ui, sans-serif;
  backdrop-filter: blur(6px);
  cursor: move; /* 行为和播放器一样：可拖动的悬浮窗 */
  /* 禁止选中 / 复制马年倒计时文字，避免拖动时误选中 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.horse-countdown-title {
  font-size: 14px;
  font-weight: 500;
}

.horse-countdown-time {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: #ffeb3b;
  /* 使用轻微负间距进一步压紧数字 */
  letter-spacing: -0.5px;
  /* 文案整体稍微往中间靠一点 */
  text-align: center;
}

@media (max-width: 768px) {
  .horse-countdown-card {
    display: none;
  }
}

.track-title {
  font-size: 1.3em;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.artist-name {
  font-size: 0.9em;
  color: #d1d1d6;
  margin-top: 2px;
}

.volume-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 38px;
  height: 32px;
}

.volume-bars .bar {
  width: 3px;
  background: linear-gradient(180deg, #00c6ff, #0072ff);
  border-radius: 2px;
  animation: bounce 0.8s infinite ease-in-out;
  animation-delay: var(--delay);
  animation-play-state: running;
}

@keyframes bounce {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 26px;
  }
}

.playback-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: #8e8e93;
}

.current-time::before {
  content: "0:00";
  animation: timer 45s steps(45) infinite;
  display: inline-block;
  animation-play-state: running;
}

/* 音乐搜索相关样式 */
.music-search-container {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
  flex-shrink: 0;
  transform-origin: top;
}

/* 丝滑的搜索框动画 */
.music-search-smooth-enter-active {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.music-search-smooth-leave-active {
  transition: all 0.35s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.music-search-smooth-enter-from {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.music-search-smooth-enter-to {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.music-search-smooth-leave-from {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.music-search-smooth-leave-to {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.music-search-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  outline: none;
}

.music-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.music-search-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.music-search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.music-close-search {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.music-close-search:hover {
  background: rgba(255, 255, 255, 0.3);
}

.music-search-results {
  max-height: 50px; /* 大约显示1个结果的高度 */
  overflow-y: auto;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

/* 自定义滚动条样式 */
.music-search-results::-webkit-scrollbar {
  width: 6px;
}

.music-search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.music-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.music-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.music-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 2px;
}

.music-result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.music-result-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.music-result-item:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(0);
}

.music-result-number {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  min-width: 24px;
  flex-shrink: 0;
}

.music-result-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.music-result-title {
  font-size: 14px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.music-result-separator {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.music-result-artist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.music-result-play {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.music-result-item:hover .music-result-play {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@keyframes timer {
  0% {
    content: "0:00";
  }
  2.22% {
    content: "0:01";
  }
  4.44% {
    content: "0:02";
  }
  6.67% {
    content: "0:03";
  }
  8.89% {
    content: "0:04";
  }
  11.11% {
    content: "0:05";
  }
  13.33% {
    content: "0:06";
  }
  15.56% {
    content: "0:07";
  }
  17.78% {
    content: "0:08";
  }
  20% {
    content: "0:09";
  }
  22.22% {
    content: "0:10";
  }
  24.44% {
    content: "0:11";
  }
  26.67% {
    content: "0:12";
  }
  28.89% {
    content: "0:13";
  }
  31.11% {
    content: "0:14";
  }
  33.33% {
    content: "0:15";
  }
  35.56% {
    content: "0:16";
  }
  37.78% {
    content: "0:17";
  }
  40% {
    content: "0:18";
  }
  42.22% {
    content: "0:19";
  }
  44.44% {
    content: "0:20";
  }
  46.67% {
    content: "0:21";
  }
  48.89% {
    content: "0:22";
  }
  51.11% {
    content: "0:23";
  }
  53.33% {
    content: "0:24";
  }
  55.56% {
    content: "0:25";
  }
  57.78% {
    content: "0:26";
  }
  60% {
    content: "0:27";
  }
  62.22% {
    content: "0:28";
  }
  64.44% {
    content: "0:29";
  }
  66.67% {
    content: "0:30";
  }
  68.89% {
    content: "0:31";
  }
  71.11% {
    content: "0:32";
  }
  73.33% {
    content: "0:33";
  }
  75.56% {
    content: "0:34";
  }
  77.78% {
    content: "0:35";
  }
  80% {
    content: "0:36";
  }
  82.22% {
    content: "0:37";
  }
  84.44% {
    content: "0:38";
  }
  86.67% {
    content: "0:39";
  }
  88.89% {
    content: "0:40";
  }
  91.11% {
    content: "0:41";
  }
  93.33% {
    content: "0:42";
  }
  95.56% {
    content: "0:43";
  }
  97.78% {
    content: "0:44";
  }
  100% {
    content: "0:45";
  }
}

.remaining-time::before {
  content: "0:45";
  animation: timerDown 45s steps(45) infinite;
  display: inline-block;
  animation-play-state: running;
}

@keyframes timerDown {
  0% {
    content: "0:45";
  }
  2.22% {
    content: "0:44";
  }
  4.44% {
    content: "0:43";
  }
  6.67% {
    content: "0:42";
  }
  8.89% {
    content: "0:41";
  }
  11.11% {
    content: "0:40";
  }
  13.33% {
    content: "0:39";
  }
  15.56% {
    content: "0:38";
  }
  17.78% {
    content: "0:37";
  }
  20% {
    content: "0:36";
  }
  22.22% {
    content: "0:35";
  }
  24.44% {
    content: "0:34";
  }
  26.67% {
    content: "0:33";
  }
  28.89% {
    content: "0:32";
  }
  31.11% {
    content: "0:31";
  }
  33.33% {
    content: "0:30";
  }
  35.56% {
    content: "0:29";
  }
  37.78% {
    content: "0:28";
  }
  40% {
    content: "0:27";
  }
  42.22% {
    content: "0:26";
  }
  44.44% {
    content: "0:25";
  }
  46.67% {
    content: "0:24";
  }
  48.89% {
    content: "0:23";
  }
  51.11% {
    content: "0:22";
  }
  53.33% {
    content: "0:21";
  }
  55.56% {
    content: "0:20";
  }
  57.78% {
    content: "0:19";
  }
  60% {
    content: "0:18";
  }
  62.22% {
    content: "0:17";
  }
  64.44% {
    content: "0:16";
  }
  66.67% {
    content: "0:15";
  }
  68.89% {
    content: "0:14";
  }
  71.11% {
    content: "0:13";
  }
  73.33% {
    content: "0:12";
  }
  75.56% {
    content: "0:11";
  }
  77.78% {
    content: "0:10";
  }
  80% {
    content: "0:09";
  }
  82.22% {
    content: "0:08";
  }
  84.44% {
    content: "0:07";
  }
  86.67% {
    content: "0:06";
  }
  88.89% {
    content: "0:05";
  }
  91.11% {
    content: "0:04";
  }
  93.33% {
    content: "0:03";
  }
  95.56% {
    content: "0:02";
  }
  97.78% {
    content: "0:01";
  }
  100% {
    content: "0:00";
  }
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 2px;
  animation: progressAnim 45s linear infinite;
  animation-play-state: running;
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  animation: handleAnim 45s linear infinite;
  animation-play-state: running;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.control-button {
  margin-top: 2%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  color: #fff;
}

.control-button.play-pause-button:hover,
.control-button.d:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.main-control-btns {
  justify-content: center;
  align-items: center;
  display: flex;
  margin-left: 10%;
  gap: 20%;
}

.play-pause-button .icon-pause {
  display: none;
}

#play-toggle:checked ~ .track-info .volume-bars .bar {
  animation-play-state: paused;
}

#play-toggle:checked ~ .playback-controls .progress-fill,
#play-toggle:checked ~ .playback-controls .progress-handle {
  animation-play-state: paused;
}

.main-music-card:has(#play-toggle:checked) .time-info .current-time::before,
.main-music-card:has(#play-toggle:checked) .time-info .remaining-time::before {
  animation-play-state: paused;
}

#play-toggle:checked ~ .playback-controls .play-pause-button .icon-play {
  display: block;
}

#play-toggle:checked ~ .playback-controls .play-pause-button .icon-pause {
  display: none;
}

#play-toggle:not(:checked) ~ .playback-controls .play-pause-button .icon-play {
  display: none;
}

#play-toggle:not(:checked) ~ .playback-controls .play-pause-button .icon-pause {
  display: block;
}

@keyframes progressAnim {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes handleAnim {
  from {
    left: 0%;
  }
  to {
    left: 100%;
  }
}

@media (max-width: 640px) {
  .main-music-card {
    left: 10px;
    bottom: 80px;
    width: 260px;
    padding: 14px;
  }
}

@media (max-width: 860px) {
  .app-header {
    padding: 0 10px;
  }

  .logo-text {
    display: none;
  }

  .nav-tabs {
    transform: translateX(-50%) scale(0.94);
    padding: 3px 5px;
  }

  .app-main {
    padding: 18px 12px 28px;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-tabs {
    gap: 0;
    padding: 3px 4px;
    transform: translateX(-50%) scale(0.9);
  }

  .nav-tab {
    padding: 5px 10px;
    font-size: 12px;
  }

  .post-card {
    padding: 12px 12px;
  }

  .modal {
    max-height: 92vh;
  }
}

/* 信息面板样式 */
.info-section {
  margin-bottom: 24px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.unread-count {
  font-size: 13px;
  color: #ef4444;
  font-weight: 500;
}

.author-info {
  background: #f7fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.author-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.author-info-item:last-child {
  margin-bottom: 0;
}

.author-info-label {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
  min-width: 60px;
}

.author-info-value {
  font-size: 14px;
  color: #1a202c;
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notifications-list .empty-hint {
  text-align: center;
  padding: 40px 20px;
  color: #a0aec0;
  font-size: 14px;
}

.notification-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.notification-item.unread {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.notification-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  flex: 1;
}

.notification-status {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f9fafb;
}

.notification-status.status-success {
  color: #059669;
  background: #d1fae5;
}

.notification-status.status-error {
  color: #dc2626;
  background: #f9fafb;
}

.notification-content {
  font-size: 13px;
  color: #1a202c;
  line-height: 1.6;
}
