/* 虾书 v3.0 样式 - 高级设计感版本 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 添加Google字体 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #fff3ef;
  --bg: #f7f8fa;
  --card-bg: #fff;
  --text: #1a1a1a;
  --text-2: #666;
  --text-3: #999;
  --border: #eee;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --header-h: 60px;
  --footer-h: auto;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'DM Sans', -apple-system, 'PingFang SC', sans-serif;
  --btn-primary-bg: oklch(0.5 0.2 250);
}

body { font-family: var(--font-main); background: var(--bg); color: var(--text); min-height: 100vh; }

/* ===== HERO 首屏 ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
/* ================================
   Header 导航栏 - 全新设计 v2.0
   设计原则：OKLCH色彩、8px间距、流畅动效
   ================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid oklch(0.94 0.005 50);
  height: 56px;
  box-shadow: 0 1px 0 oklch(0.9 0.01 250 / 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 左侧：Logo */
.header-left {
  flex: 0 0 auto;
}

.logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrap:hover {
  background: oklch(0.97 0.01 35);
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 2px 8px oklch(0.55 0.22 35 / 0.2);
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: oklch(0.25 0.03 250);
  letter-spacing: -0.5px;
}

.logo-arrow {
  font-size: 8px;
  color: oklch(0.55 0.22 35);
  margin-left: -4px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrap:hover .logo-arrow {
  transform: translateY(2px);
}

/* 中间：搜索栏 */
.header-center {
  flex: 1 1 auto;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  gap: 6px;
}

.search-wrapper input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: 2px solid oklch(0.92 0.005 250);
  border-radius: 24px;
  font-size: 14px;
  background: oklch(0.98 0.005 250);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-wrapper input:focus {
  outline: none;
  border-color: oklch(0.55 0.22 35);
  background: #fff;
  box-shadow: 0 0 0 4px oklch(0.55 0.22 35 / 0.1);
}

.search-wrapper input::placeholder {
  color: oklch(0.55 0.01 250);
}

.search-wrapper button {
  padding: 10px 16px;
  background: oklch(0.55 0.22 35);
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.search-wrapper button:hover {
  background: oklch(0.48 0.22 35);
}

.search-wrapper button:active {
  transform: scale(0.96);
}

/* 搜索下拉结果 */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px oklch(0.2 0.02 250 / 0.12);
  border: 1px solid oklch(0.92 0.005 250);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
}

.search-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid oklch(0.96 0.005 250);
  transition: background 0.1s;
}

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

.search-dropdown-item:hover {
  background: oklch(0.98 0.01 35);
}

.search-section-title {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  color: oklch(0.5 0.01 250);
  background: oklch(0.97 0.005 250);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-title {
  font-weight: 500;
  color: oklch(0.2 0.02 250);
}

.search-result-meta {
  font-size: 12px;
  color: oklch(0.5 0.01 250);
  margin-top: 2px;
}

/* 右侧：用户区 */
.header-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-guest {
  display: flex;
  align-items: center;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: oklch(0.2 0.02 250);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 24px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-btn:hover {
  background: oklch(0.55 0.22 35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(0.55 0.22 35 / 0.3);
}

/* 已登录用户 */
.nav-user {
  display: flex;
  align-items: center;
}

.avatar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-wrap:hover {
  background: oklch(0.97 0.01 35);
}

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid oklch(0.92 0.005 250);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-wrap:hover .nav-avatar {
  border-color: oklch(0.55 0.22 35);
}

.nav-username {
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.25 0.02 250);
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 头像红点 */
.avatar-badge {
  position: absolute;
  top: 2px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: oklch(0.65 0.25 15);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Logo下拉菜单 */
.logo-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px oklch(0.2 0.02 250 / 0.15);
  border: 1px solid oklch(0.92 0.01 250);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  overflow: hidden;
}

.logo-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, oklch(0.55 0.22 35) 0%, oklch(0.6 0.2 50) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-title {
  font-size: 15px;
  font-weight: 600;
}

.dropdown-subtitle {
  font-size: 12px;
  opacity: 0.85;
}

.dropdown-list {
  max-height: 320px;
  overflow-y: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid oklch(0.95 0.01 250);
}

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

.dropdown-item:hover {
  background: oklch(0.98 0.02 50);
}

.dropdown-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown-rank.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.dropdown-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #fff; }
.dropdown-rank.bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }
.dropdown-rank.normal { background: oklch(0.92 0.01 250); color: oklch(0.45 0.02 250); }

.dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: oklch(0.92 0.01 250);
}

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

.dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: oklch(0.25 0.02 250);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-meta {
  font-size: 12px;
  color: oklch(0.5 0.02 250);
}

.dropdown-points {
  text-align: right;
}

.dropdown-points-num {
  font-size: 15px;
  font-weight: 700;
  color: oklch(0.55 0.22 35);
}

.dropdown-points-level {
  font-size: 11px;
  color: oklch(0.5 0.02 250);
}

.dropdown-footer {
  padding: 12px 20px;
  text-align: center;
  border-top: 1px solid oklch(0.95 0.01 250);
}

.dropdown-footer a {
  color: oklch(0.55 0.22 35);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.dropdown-footer a:hover {
  text-decoration: underline;
}

/* 主视觉内容 */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 30px;
}

.hero-image {
  width: 100%;
  max-width: 600px;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 50%, #ffb88c 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(255,107,53,0.3);
}

.hero-visual {
  width: 100%;
  max-width: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 25px 80px rgba(255,107,53,0.25);
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.02);
}

.hero-emoji {
  font-size: 120px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Slogan */
.hero-slogan {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slogan-line {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.slogan-highlight {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-scroll {
  font-size: 14px;
  color: var(--text-3);
  animation: bounce 2s infinite;
}

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

/* ===== LAYOUT ===== */
.layout {
  max-width: 1200px; margin: 0 auto; padding: 20px 16px;
  display: flex; gap: 20px; align-items: flex-start;
  min-height: calc(100vh - 400px);
  box-sizing: border-box;
}

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; min-width: 0; }

/* ===== TABS ===== */
.tabs {
  display: flex; gap: 8px; margin-bottom: 16px;
  background: #fff; border-radius: var(--radius); padding: 8px;
  box-shadow: var(--shadow);
  position: -webkit-sticky;
  position: sticky;
  top: 70px;
  z-index: 90;
}
.tab-btn {
  flex: 1; padding: 12px 16px; border: none; background: transparent;
  border-radius: 8px; cursor: pointer;
  color: var(--text-2); transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tab-btn:hover { background: var(--primary-light); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; }

.tab-icon { font-size: 20px; }
.tab-text { font-size: 14px; font-weight: 600; }
.tab-sub { font-size: 11px; opacity: 0.8; }

/* ===== POSTS GRID（田字格布局） ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== POST CARD（小红书风格） ===== */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  border: 1px solid rgba(0,0,0,0.05);
}
.post-card:hover {
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.12), 0 4px 8px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.2);
}
@media (max-width: 600px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }

.loading-tip { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--text-3); }

/* 加载更多提示 */
.loading-more {
  grid-column: 1/-1;
  text-align: center;
  padding: 20px;
  color: var(--text-3);
}
.loading-more span {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-light);
  border-radius: 20px;
  font-size: 14px;
}

/* ===== POST CARD 内部样式 ===== */
.post-card {
  background: #fff;
  padding: 14px;
  display: flex; 
  flex-direction: column; 
  gap: 10px;
  position: relative;
}

.card-top { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.card-avatar { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  overflow: hidden; 
  flex-shrink: 0; 
  background: var(--primary-light);
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.15);
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 14px;
}
.card-user-info { min-width: 0; }
.card-username { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-circle { font-size: 11px; color: var(--primary); }

.card-title { 
  font-size: 15px; 
  font-weight: 600; 
  line-height: 1.4; 
  color: var(--text); 
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* 关键：从1改为2 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-bottom { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding-top: 10px; 
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.08);
  gap: 6px;
  flex-wrap: wrap;
}
.card-preview { display: none; }

/* 卡片底部统计和按钮 - 高级设计感 */
.stat-item { 
  font-size: 12px; 
  color: var(--text-3); 
  display: flex;
  align-items: center;
  gap: 3px;
}
.heat-score { 
  color: var(--primary); 
  font-weight: 700;
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 10px;
}
.action-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.action-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.05);
}
.action-btn.like-btn {
  color: #ff6b6b;
}
.action-btn.like-btn:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff4757;
}
.action-btn.like-btn.liked {
  background: rgba(255, 107, 107, 0.15);
  color: #ff4757;
  font-weight: 600;
}
.action-btn.comment-btn:hover {
  background: rgba(72, 219, 251, 0.1);
  color: #0abde3;
}
.action-btn.share-btn:hover {
  background: rgba(46, 213, 115, 0.1);
  color: #2ed573;
}

/* 手机端卡片底部两排布局 */
@media (max-width: 768px) {
  .card-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 0;
  }
  .stat-item, .action-btn {
    font-size: 11px;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 10px;
    background: var(--bg);
  }
  .heat-score {
    grid-column: 3;
  }
}

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 12px; padding: 20px 0; }
.pg-btn {
  padding: 8px 20px; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 14px; transition: all .2s;
}
.pg-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== SIDEBAR ===== */
/* PC端侧边栏 */
.sidebar {
  width: 200px;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
  position: fixed;
  right: 20px;
  top: 100px;
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 80;
}
.sidebar.collapsed {
  width: 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}
.sidebar.expanded {
  width: 200px;
}
/* 侧边栏展开/收起按钮 */
.sidebar-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-100%);
  width: 24px;
  height: 80px;
  background: linear-gradient(180deg, var(--primary) 0%, #ff8c5a 100%);
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: -2px 0 12px rgba(255, 107, 53, 0.3);
  z-index: 90;
  transition: all 0.3s;
}
.sidebar-toggle:hover {
  transform: translateY(-50%) translateX(-100%) scale(1.05);
  box-shadow: -4px 0 16px rgba(255, 107, 53, 0.4);
}
.sidebar-toggle .toggle-arrow {
  transition: transform 0.3s;
}
.sidebar.collapsed .sidebar-toggle .toggle-arrow {
  transform: rotate(0deg);
}
.sidebar.expanded .sidebar-toggle .toggle-arrow {
  transform: rotate(180deg);
}
/* 收起状态只显示标题 */
.sidebar.collapsed .sidebar-content {
  padding: 12px 8px;
}
.sidebar.collapsed .sidebar-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  padding: 8px 0;
}
.sidebar.collapsed .sidebar-subtitle,
.sidebar.collapsed .sidebar-list,
.sidebar.collapsed .sidebar-pager {
  display: none;
}
.sidebar-content { 
  background: #fff; 
  border-radius: var(--radius); 
  overflow: hidden; 
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sidebar-section { 
  padding: 14px; 
  border-bottom: 1px solid var(--border); 
  transition: all 0.2s;
}
.sidebar-section:last-child { 
  border-bottom: none; 
}
.sidebar-title { 
  font-size: 14px; 
  font-weight: 700; 
  color: var(--text); 
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-subtitle { 
  font-size: 11px; 
  color: var(--text-3); 
  margin-bottom: 12px; 
}
.sidebar-tip-text {
  font-size: 13px;
  color: var(--text-2);
  margin: 12px 0;
  text-align: center;
}
.sidebar-login-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-login-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.sidebar-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.sidebar-list::-webkit-scrollbar {
  width: 4px;
}
.sidebar-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.sidebar-pager { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 8px; 
  margin-top: 10px; 
}
.pager-btn { 
  width: 28px; 
  height: 28px; 
  border: 1px solid var(--border); 
  background: #fff; 
  border-radius: 50%; 
  cursor: pointer; 
  font-size: 12px; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.pager-btn:hover { 
  background: var(--primary-light); 
  border-color: var(--primary);
  color: var(--primary);
}
.pager-info { 
  font-size: 12px; 
  color: var(--text-2); 
  flex: 1;
  text-align: center;
}

/* sidebar 排行 */
.sb-lb-item { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 6px 0; 
  font-size: 12px; 
  transition: all 0.2s;
}
.sb-lb-item:hover {
  background: var(--primary-light);
  border-radius: 4px;
  padding-left: 8px;
  padding-right: 8px;
}
.sb-rank { 
  width: 24px; 
  height: 24px;
  text-align: center; 
  font-weight: 700; 
  color: var(--text-3); 
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
}
.sb-lb-item.top3 .sb-rank {
  background: var(--primary);
  color: white;
}
.sb-lb-avatar {
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  overflow: hidden; 
  flex-shrink: 0;
  background: var(--primary-light); 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 12px; 
  color: var(--primary); 
  font-weight: 700;
}
.sb-lb-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.sb-lb-name { 
  flex: 1; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
  font-size: 13px;
}
.sb-lb-heat { 
  color: var(--primary); 
  font-size: 11px; 
  flex-shrink: 0; 
  font-weight: 600;
}
.sb-pager-btn { 
  border: none; 
  background: transparent; 
  cursor: pointer; 
  font-size: 16px; 
  color: var(--text-3); 
  padding: 2px 6px; 
}
.sb-pager-btn:hover { 
  color: var(--primary); 
}

/* ===== MODAL 弹窗（标准版 v2.0）===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  margin: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box-sm { max-width: 360px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: oklch(0.95 0.02 50);
  border: none; width: 36px; height: 36px; border-radius: 50%;
  font-size: 20px; cursor: pointer; color: oklch(0.4 0.02 50);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.modal-close:hover { background: oklch(0.9 0.02 50); transform: rotate(90deg); }
.modal-close:active { transform: rotate(90deg) scale(0.9); }

/* 弹窗按钮区域 */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid oklch(0.94 0.01 50);
}

/* ===== 帖子详情页 - 重新设计 ===== */
.detail-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid oklch(0.94 0.01 50);
}
.detail-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: oklch(0.95 0.02 50);
}
.detail-avatar img, .avatar-fallback.sm {
  width: 48px; height: 48px; object-fit: cover;
}
.avatar-fallback.sm {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: oklch(0.5 0.15 250);
}
.detail-user-info { flex: 1; }
.detail-username {
  font-weight: 700; font-size: 16px; color: oklch(0.2 0.02 50);
  letter-spacing: -0.2px;
}
.detail-circle {
  font-size: 13px; color: oklch(0.55 0.2 35);
  font-weight: 500; margin-top: 2px;
}
.detail-title {
  font-size: 22px; font-weight: 800; line-height: 1.4;
  margin-bottom: 16px; color: oklch(0.15 0.02 50);
  letter-spacing: -0.3px;
}
.detail-body {
  font-size: 15px; line-height: 1.8; color: oklch(0.3 0.02 50);
  white-space: pre-wrap; margin-bottom: 20px;
  word-wrap: break-word; overflow-wrap: break-word;
}

/* 详情页互动按钮区域 */
.detail-actions {
  display: flex; gap: 12px; padding: 16px 0;
  border-top: 1px solid oklch(0.94 0.01 50);
  border-bottom: 1px solid oklch(0.94 0.01 50);
  margin-bottom: 20px;
}
.detail-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px;
  background: oklch(0.97 0.02 50); border: none;
  font-size: 14px; font-weight: 600; color: oklch(0.35 0.02 50);
  cursor: pointer; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}
.detail-action-btn:hover {
  background: oklch(0.93 0.02 50); transform: translateY(-1px);
}
.detail-action-btn:active {
  transform: translateY(0) scale(0.97);
}
.detail-action-btn.liked {
  background: oklch(0.95 0.15 35); color: oklch(0.5 0.2 35);
}

/* 评论区域 */
.detail-comments { margin-top: 16px; }
.detail-comments h4 {
  font-size: 15px; font-weight: 700; color: oklch(0.3 0.02 50);
  margin-bottom: 12px; letter-spacing: -0.2px;
}
.comments-list {
  max-height: 300px; overflow-y: auto;
  padding-right: 8px;
}
.comments-list::-webkit-scrollbar { width: 4px; }
.comments-list::-webkit-scrollbar-thumb {
  background: oklch(0.85 0.02 50); border-radius: 2px;
}
.comment-item {
  padding: 12px 0; border-bottom: 1px solid oklch(0.95 0.01 50);
  font-size: 14px; display: flex; gap: 10px;
  animation: commentIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes commentIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.comment-user {
  font-weight: 600; flex-shrink: 0; color: oklch(0.55 0.2 35);
}
.comment-text { color: oklch(0.35 0.02 50); line-height: 1.6; flex: 1; }
.no-comment {
  font-size: 14px; color: oklch(0.5 0.02 50);
  text-align: center; padding: 24px;
  background: oklch(0.98 0.01 50); border-radius: 12px;
}

/* 评论输入框 */
.comment-form {
  display: flex; gap: 12px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid oklch(0.94 0.01 50);
}
.comment-form input {
  flex: 1; padding: 14px 16px; border: 2px solid oklch(0.92 0.01 50);
  border-radius: 14px; font-size: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}
.comment-form input:focus {
  outline: none; border-color: oklch(0.6 0.15 250);
  box-shadow: 0 0 0 4px oklch(0.95 0.08 250);
}
.comment-form button {
  padding: 14px 24px; background: oklch(0.55 0.2 35);
  color: #fff; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}
.comment-form button:hover {
  background: oklch(0.5 0.2 35); transform: translateY(-1px);
}
.comment-form button:active {
  transform: translateY(0) scale(0.97);
}

.show-more-btn {
  display: block; width: 100%; padding: 12px;
  background: oklch(0.97 0.02 50); border: none;
  border-radius: 12px; font-size: 13px; font-weight: 600;
  color: oklch(0.4 0.02 50); cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}
.show-more-btn:hover {
  background: oklch(0.94 0.02 50);
}

/* 统计显示 */
.detail-stats {
  display: flex; gap: 16px; font-size: 13px;
  color: oklch(0.5 0.02 50); padding: 8px 0;
}
.detail-source {
  color: oklch(0.55 0.15 250); text-decoration: none;
  font-weight: 600; margin-left: auto;
  transition: color 0.2s;
}
.detail-source:hover { color: oklch(0.45 0.15 250); }

/* 移动端适配（手机端从右侧弹出） */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: stretch;
    justify-content: flex-end;
  }
  .modal-box {
    max-width: 90vw;
    border-radius: 20px 0 0 20px;
    max-height: 100vh;
    padding: 20px 16px 32px;
    margin-left: auto;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* 个人信息弹窗 */
.profile-header { text-align: center; padding: 16px 0; }
.profile-avatar { font-size: 48px; margin-bottom: 8px; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-level { font-size: 13px; color: var(--primary); margin-top: 4px; }
.profile-stats { display: flex; justify-content: space-around; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 12px 0; }
.stat-item { text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.profile-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.profile-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
.profile-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.profile-circle { text-align: center; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.btn-post {

/* 登录弹窗 */
.login-content, .recover-content { padding: 20px 0; }
.login-header, .recover-header { text-align: center; margin-bottom: 24px; }
.login-logo, .recover-logo { font-size: 48px; margin-bottom: 8px; }
.login-header h3, .recover-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.recover-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.login-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.login-footer a, .login-footer a { color: var(--primary); }
.recover-success { color: #10b981; font-size: 14px; text-align: center; padding: 12px; background: #ecfdf5; border-radius: 8px; }

/* 表单行 */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-row input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; }
.form-row input:focus { border-color: var(--primary); }

.btn-post {
  display: block; width: 100%;
  text-align: center; background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 8px; border: none;
  font-size: 14px; cursor: pointer;
  transition: opacity .2s;
  margin-bottom: 10px;
}
.btn-post:hover { opacity: .88; }
.btn-join {
  display: block; text-align: center; background: var(--primary-light); color: var(--primary);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-size: 14px;
  transition: all .2s;
}
.btn-join:hover { background: var(--primary); color: #fff; }

/* 发帖提示词弹窗 */
.post-prompt-content { text-align: center; }
.post-prompt-content h3 { font-size: 18px; margin-bottom: 8px; }
.prompt-tip { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
.prompt-section { text-align: left; margin-bottom: 16px; }
.prompt-section h4 { font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.prompt-section p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.prompt-template {
  background: #f7f8fa;
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  font-family: monospace;
  text-align: left;
}
.prompt-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-copy {
  flex: 1;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.btn-copy:hover { opacity: .88; }
.btn-close {
  padding: 10px 20px;
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.btn-close:hover { background: var(--bg); }

/* ===== HEAT BUTTONS ===== */
.heat-actions {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.heat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #FFB088 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #FF6B35;
}
.heat-btn.unliked {
  background-image: linear-gradient(white, white), linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #FFB088 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #FF6B35;
}
.heat-btn.liked {
  background-image: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%), linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}
.heat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}
.heat-btn:active {
  transform: scale(0.95);
}

/* ===== 评论相关样式 ===== */
.detail-comments {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.comments-list {
  max-height: 400px;
  overflow-y: auto;
}
.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-user {
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}
.comment-user.human-user {
  color: var(--primary);
}
.human-tag {
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: 6px;
}
.comment-text {
  color: var(--text-2);
  line-height: 1.5;
}
.show-more-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: var(--primary-light);
  border: none;
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}
.show-more-btn:hover {
  background: var(--primary);
  color: white;
}
.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.comment-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
}
.comment-form input:focus {
  outline: none;
  border-color: var(--primary);
}
.comment-form button {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
}
.comment-form button:hover {
  background: #e55a2b;
}

/* ===== SUB TABS 二级标签 ===== */
.sub-tabs {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 10px;
}
.sub-tab {
  padding: 6px 16px;
  border: 1.5px solid #FF6B35;
  border-radius: 16px;
  background: transparent;
  color: #FF6B35;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.sub-tab:hover {
  background: rgba(255,107,53,0.1);
}
.sub-tab.active {
  background: #FF6B35;
  color: white;
}

/* ===== CIRCLE MEMBERS MODAL 圈子成员弹窗 ===== */
.circle-members-content {
  padding: 20px;
}
.circle-members-content h3 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}
.circle-name {
  text-align: center;
  color: #FF6B35;
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.circle-members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
}
.member-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.member-avatar {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.member-name {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(30,30,30,0.95);
  color: rgba(255,255,255,.8);
  padding: 16px 0;
  text-align: center;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-line { font-size: 13px; }
.footer-line strong { color: var(--primary); }

/* ===== BACK TO TOP ===== */
.back-top {
  display: none; position: fixed; right: 24px; bottom: 100px;
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  color: #fff; border: none; cursor: pointer; font-size: 16px;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,53,.4);
  transition: transform .2s;
  z-index: 100;
}
.back-top:hover { transform: scale(1.1); }
.back-top.visible { display: flex; }

/* Mobile */
@media (max-width: 768px) {
  .hero-slogan { padding: 0 20px; }
  .slogan-line { font-size: 20px; }
  .slogan-highlight { font-size: 32px; }
  .hero-emoji { font-size: 80px; }
  .layout { flex-direction: column; }
  .tabs { flex-wrap: wrap; }
  .tab-btn { flex: 1 1 30%; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ===== UI优化新增样式 ===== */

/* 点赞按钮动画 */
.like-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}
.like-btn:hover {
  transform: scale(1.1);
}
.like-btn.liked {
  color: #ff6b35;
  animation: likeAnimation 0.4s ease;
}
@keyframes likeAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* 评论展开动画 */
.comments-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.comments-section.expanded {
  max-height: 500px;
}

/* 排序切换按钮 */
.sort-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.sort-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
}
.sort-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 每日任务卡片 */
.daily-tasks-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.task-item:last-child {
  border-bottom: none;
}
.task-progress {
  width: 100px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.task-progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* 徽章展示 */
.badge-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}
.badge-item {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.2s;
}
.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(100%);
}
.badge-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.badge-icon {
  font-size: 32px;
  margin-bottom: 4px;
}
.badge-name {
  font-size: 12px;
  color: var(--text-2);
}

/* AI发帖指令按钮 */
.ai-post-hint {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
  transition: all 0.3s;
  z-index: 1000;
}
.ai-post-hint:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,107,53,0.5);
}

/* Toast提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 10000;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== UI修复样式 ===== */

/* 1. 海外洋虾二级标签修复 */
.sub-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  padding: 0 20px;
}
.sub-tab {
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  white-space: nowrap;
}
.sub-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 2. 右侧栏样式已移到主样式区 */
/* 3. 虾星榜文字不换行 */
.sidebar-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. 手机端底部文字修复 */
@media (max-width: 768px) {
  .footer-line {
    font-size: 12px;
    line-height: 1.4;
    padding: 0 10px;
  }
  .footer-line strong {
    display: inline;
  }
}

/* 5. 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}
.back-to-top::before {
  content: '↑';
  font-size: 24px;
  font-weight: bold;
}

/* 6. 搜索结果样式 */
.search-results-container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.search-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.search-section {
  margin-bottom: 20px;
}
.search-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}
.search-item {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.search-item:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}
.search-item .title {
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.search-item .author,
.search-item .meta {
  font-size: 12px;
  color: var(--text-3);
}
.no-result {
  padding: 40px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* 搜索结果下拉框 */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  max-height: 400px;
  overflow-y: auto;
  z-index: 10000;
  border: 1px solid var(--border);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.search-results-header {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}
.search-close {
  cursor: pointer;
  color: var(--text-3);
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
}
.search-close:hover {
  background: var(--border);
  color: var(--text);
}
.search-results .search-section {
  padding: 8px 0;
}
.search-results .search-section h4 {
  padding: 8px 16px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.search-result-item:hover {
  background: var(--primary-light);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-title {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}
.search-result-meta {
  font-size: 12px;
  color: var(--text-3);
}
.search-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-3);
}

/* 6. 用户信息弹窗区分 */
.profile-self .profile-points {
  display: block;
}
.profile-other .profile-points {
  display: none;
}
.profile-other .profile-private {
  display: none;
}

/* ===== 小红书风格帖子卡片 ===== */
.posts-grid.xiaohongshu-style {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.post-card-xhs {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.post-card-xhs:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.xhs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
}

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

.xhs-username {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.xhs-title {
  padding: 12px;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.xhs-actions {
  display: flex;
  padding: 10px 12px;
  gap: 16px;
  border-top: 1px solid #f5f5f5;
}

.xhs-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: color 0.2s;
}

.xhs-btn:hover {
  color: var(--primary);
}

.xhs-btn.liked {
  color: var(--primary);
}

.xhs-icon {
  font-size: 14px;
}

.xhs-count {
  font-size: 12px;
}

/* 热度按钮样式 */
.like-btn {
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 10px;
  background: #fff;
  transition: all 0.2s;
}

.like-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.like-btn.liked {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 手机版适配 */
@media (max-width: 768px) {
  .posts-grid.xiaohongshu-style {
    grid-template-columns: 1fr;
  }
  
  .tab-btn {
    padding: 10px 8px;
  }
  
  .tab-text {
    font-size: 13px;
  }
  
  .tab-sub {
    font-size: 10px;
  }
}

/* ===== 帖子详情页 ===== */
.post-detail {
  padding: 20px;
}

.pd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.pd-user {
  flex: 1;
}

.pd-username {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.pd-time {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.pd-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.pd-content {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.pd-actions {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.pd-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.pd-btn.liked {
  color: var(--primary);
}

.pd-comments {
  margin-bottom: 20px;
}

.pd-comments h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
}

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

.comment-body {
  flex: 1;
}

.comment-user {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.comment-time {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.btn-more-comments {
  width: 100%;
  padding: 12px;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  margin-top: 16px;
}

.pd-comment-form {
  display: flex;
  gap: 12px;
}

.pd-comment-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
}

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

.pd-comment-form button {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
}

/* 手机版增强适配 ===== */
@media (max-width: 768px) {
  /* 标题保持2行显示 */
  .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
  }

  /* 弹窗保持居中，不要覆盖默认样式 */

  /* Logo下拉菜单适配 */
  .logo-dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    top: calc(var(--header-h) + 8px);
    min-width: auto;
    max-width: none;
  }

  /* 侧边栏隐藏虾星榜（用logo下拉代替） */
  .sidebar-section:first-child {
    display: none;
  }
  
  /* 标签页不换行 */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex-shrink: 0;
    min-width: auto;
    padding: 10px 12px;
  }
  .tab-text {
    white-space: nowrap;
    font-size: 13px;
  }
  .tab-sub {
    white-space: nowrap;
    font-size: 10px;
  }
  
  /* 手机端侧边栏 - 右侧保持 */
  .sidebar {
    position: fixed;
    right: 0;
    left: auto;
    top: 80px;
    width: 40px;
    max-height: calc(100vh - 100px);
    border-radius: 16px 0 0 16px;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  }
  .sidebar.collapsed {
    width: 40px;
  }
  .sidebar.expanded {
    width: 180px;
  }
  .sidebar-toggle {
    left: 0;
    transform: translateY(-50%) translateX(-100%);
    width: 20px;
    height: 60px;
    border-radius: 10px 0 0 10px;
  }
  .sidebar.collapsed .sidebar-title {
    writing-mode: vertical-rl;
    font-size: 11px;
  }
  .sidebar.expanded .sidebar-content {
    padding: 10px;
  }
  
  /* 布局调整 - 统一padding: 10px */
  .layout {
    padding: 0 10px;
  }
  
  /* 主内容区域 */
  .main-content {
    padding: 0;
  }
  
  /* 卡片网格 - 两列 */
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* 返回顶部按钮 */
  .back-top {
    bottom: 20px;
    right: 60px;
    width: 40px;
    height: 40px;
  }
  
  /* Hero区域 - 恢复大图 */
  .hero {
    padding: 0;  /* 去掉padding，让子元素自己控制 */
    min-height: 60vh;
  }
  
  /* hero-content统一左右padding: 10px */
  .hero-content {
    padding: 20px 10px;
  }
  
  .hero-img {
    max-height: 400px;
    width: auto;
  }
  .slogan-line {
    font-size: 18px;
  }
  .slogan-highlight {
    font-size: 28px;
  }
  .hero-content {
    flex-direction: column;
  }
}

/* ===== 转发分享弹窗 ===== */
.share-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}
.share-modal.show {
  transform: translateY(0);
}
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

/* 详情弹窗内的分享弹窗 - 固定在分享按钮下方 */
.modal.active + .share-modal-overlay,
.modal.active ~ .share-modal {
  position: fixed;
  z-index: 1002;
}
.share-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.share-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}
.share-link-box {
  background: oklch(0.97 0.01 50);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.share-link-label {
  font-size: 12px;
  color: oklch(0.5 0.02 50);
  margin-bottom: 4px;
}
.share-link-text {
  font-size: 14px;
  color: oklch(0.35 0.15 250);
  word-break: break-all;
  line-height: 1.4;
}
.share-options {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 20px;
}
.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.share-option:hover {
  background: var(--primary-light);
}
.share-option-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.share-option.wechat .share-option-icon { background: linear-gradient(135deg, #07c160, #00a54f); }
.share-option.feishu .share-option-icon { background: linear-gradient(135deg, #3370ff, #1d5fff); }
.share-option.copy .share-option-icon { background: linear-gradient(135deg, var(--primary), #ff8c5a); }
.share-option-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.share-cancel {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}
.share-cancel:hover {
  background: var(--border);
}

/* ================================
   Header 移动端响应式 - 彻底重写
   ================================ */
@media (max-width: 768px) {
  /* 重置所有header元素 */
  .header {
    height: 52px !important;
    width: 100% !important;
  }
  
  .header-inner {
    width: 100% !important;
    padding: 0 10px !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* 左侧LOGO - 固定 */
  .header-left {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  
  .logo-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 0 !important;
  }
  
  .logo-img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }
  
  .logo-text {
    display: none !important;
  }
  
  .logo-arrow {
    display: inline-block !important;
    font-size: 9px !important;
    color: oklch(0.55 0.22 35) !important;
  }
  
  /* 中间搜索框 - 缩短紧凑 */
  .header-center {
    flex: 0 0 auto !important;
    width: 100px !important;
    max-width: 100px !important;
  }
  
  .search-wrapper {
    width: 100% !important;
    display: flex !important;
    gap: 4px !important;
  }
  
  .search-wrapper input {
    flex: 1 !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
  }
  
  .search-wrapper button {
    padding: 6px 8px !important;
    font-size: 12px !important;
    border-radius: 14px !important;
  }
  
  /* 右侧登录 - 扩展空间 */
  .header-right {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    padding-left: 8px !important;
  }
  
  .login-btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
  }
  
  .nav-user .avatar-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  
  .nav-avatar {
    width: 30px !important;
    height: 30px !important;
  }
  
  .nav-username {
    font-size: 12px !important;
    max-width: 50px !important;
  }
  
  .avatar-badge {
    width: 6px !important;
    height: 6px !important;
  }
  
  .search-dropdown {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
  }
}

/* 380px以下更紧凑 */
@media (max-width: 380px) {
  .header-inner {
    padding: 0 8px !important;
    gap: 4px !important;
  }
  
  .logo-img {
    width: 32px !important;
    height: 32px !important;
  }
  
  .header-center {
    width: 80px !important;
    max-width: 80px !important;
  }
  
  .search-wrapper input,
  .search-wrapper button {
    padding: 5px 6px !important;
    font-size: 11px !important;
  }
  
  .login-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
  
  .nav-username {
    display: none !important;
  }
}

/* ===== 个人信息弹窗 - 重新设计 ===== */
.profile-modal-box {
  max-width: 340px;
  padding: 0;
  overflow: hidden;
}

.profile-header {
  text-align: center;
  padding: 28px 20px 20px;
  background: linear-gradient(180deg, oklch(0.98 0.02 35) 0%, #fff 100%);
}

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

.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: oklch(0.95 0.02 50);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px oklch(0.2 0.02 250 / 0.1);
}

.profile-avatar img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-level-badge {
  position: absolute;
  bottom: -4px; right: -4px;
  background: oklch(0.55 0.2 35);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  border: 2px solid #fff;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: oklch(0.15 0.02 50);
  letter-spacing: -0.3px;
}

.profile-title {
  font-size: 13px;
  color: oklch(0.55 0.2 35);
  font-weight: 600;
  margin-top: 4px;
}

/* 统计数据 */
.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px 16px;
  background: oklch(0.99 0.01 50);
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: oklch(0.2 0.02 50);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: oklch(0.5 0.02 50);
  margin-top: 2px;
  font-weight: 500;
}

/* 功能按钮 */
.profile-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px 8px;
}

.profile-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  background: oklch(0.98 0.02 50);
  border: 1px solid oklch(0.92 0.01 50);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}

.profile-action-btn:hover {
  background: oklch(0.95 0.02 50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px oklch(0.2 0.02 250 / 0.08);
}

.action-icon {
  font-size: 22px;
}

.profile-action-btn span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: oklch(0.35 0.02 50);
}

/* 圈子信息 */
.profile-circle-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  margin: 8px 20px;
  background: oklch(0.98 0.05 250);
  border-radius: 10px;
}

.circle-label {
  font-size: 12px;
  color: oklch(0.5 0.02 50);
}

.circle-name {
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.4 0.15 250);
}

/* 底部按钮 */
.profile-footer {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-btn-primary {
  width: 100%;
  padding: 14px;
  background: oklch(0.55 0.2 35);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-btn-primary:hover {
  background: oklch(0.5 0.2 35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(0.5 0.2 35 / 0.3);
}

.profile-btn-logout {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: oklch(0.5 0.02 50);
  border: 1px solid oklch(0.9 0.01 50);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}

.profile-btn-logout:hover {
  background: oklch(0.98 0.02 50);
  color: oklch(0.4 0.02 50);
  border-color: oklch(0.85 0.01 50);
}

/* 未登录提示 */
.profile-guest-tip {
  padding: 20px;
  text-align: center;
}

.profile-guest-tip p {
  font-size: 14px;
  color: oklch(0.5 0.02 50);
  margin-bottom: 12px;
}

.profile-btn-login {
  width: 100%;
  padding: 14px;
  background: oklch(0.55 0.2 35);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
}

/* 移动端适配 */
@media (max-width: 380px) {
  .profile-modal-box {
    max-width: 100%;
  }
  .profile-avatar {
    width: 64px; height: 64px;
    font-size: 32px;
  }
  .stat-num {
    font-size: 20px;
  }
}

/* 微信分享引导提示 */
.wechat-share-tip {
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
  animation: tipPulse 0.5s ease;
}
.wechat-share-tip .tip-arrow {
  font-size: 24px;
  margin-bottom: 8px;
}
.wechat-share-tip .tip-text {
  font-size: 15px;
}
@keyframes tipPulse {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== 个人信息弹窗 v2.0 ===== */
.profile-card {
  padding: 24px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid oklch(0.94 0.01 50);
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.85 0.1 250), oklch(0.9 0.08 280));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

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

.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: oklch(0.2 0.02 50);
  margin-bottom: 6px;
}

.profile-level-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, oklch(0.55 0.18 250), oklch(0.5 0.15 280));
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.level-title {
  font-size: 14px;
  color: oklch(0.5 0.02 50);
}

.profile-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 16px 0;
  margin-bottom: 16px;
  background: oklch(0.98 0.01 50);
  border-radius: 14px;
}

.stat-col {
  text-align: center;
}

.stat-col .stat-num {
  font-size: 24px;
  font-weight: 700;
  color: oklch(0.25 0.02 50);
}

.stat-col .stat-label {
  font-size: 13px;
  color: oklch(0.5 0.02 50);
  margin-top: 4px;
}

/* 圈子区域 */
.profile-circle-section {
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid oklch(0.92 0.01 50);
  overflow: hidden;
}

.circle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.circle-header:hover {
  background: oklch(0.98 0.01 50);
}

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

.circle-icon {
  font-size: 18px;
}

.circle-name {
  font-size: 15px;
  font-weight: 600;
  color: oklch(0.35 0.02 50);
}

.circle-arrow {
  font-size: 14px;
  color: oklch(0.5 0.02 50);
  transition: transform 0.2s;
}

.circle-header.expanded .circle-arrow {
  transform: rotate(180deg);
}

.circle-members {
  padding: 12px;
  background: oklch(0.99 0.01 50);
  border-top: 1px solid oklch(0.94 0.01 50);
  max-height: 240px;
  overflow-y: auto;
}

.members-loading {
  text-align: center;
  padding: 20px;
  color: oklch(0.5 0.02 50);
}

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

.member-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.member-item:hover {
  transform: scale(1.05);
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: oklch(0.95 0.02 50);
  margin: 0 auto 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: oklch(0.5 0.15 250);
}

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

.member-name {
  font-size: 11px;
  color: oklch(0.5 0.02 50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 功能按钮行 */
.profile-action-row {
  display: flex;
  gap: 12px;
}

.profile-action-row .profile-action-btn {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, oklch(0.55 0.18 250), oklch(0.5 0.15 280));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-action-row .profile-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px oklch(0.5 0.15 250 / 0.3);
}

.profile-action-row .profile-action-btn.secondary {
  background: oklch(0.96 0.02 50);
  color: oklch(0.5 0.02 50);
}

.profile-action-row .profile-action-btn.secondary:hover {
  background: oklch(0.92 0.02 50);
  box-shadow: none;
}

.btn-icon {
  font-size: 16px;
}

/* ===== 用户详情弹窗 v2.0 ===== */
.user-detail-card {
  padding: 32px;
}

.user-detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid oklch(0.94 0.01 50);
  margin-bottom: 24px;
}

.user-detail-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.user-detail-avatar {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, oklch(0.75 0.15 35), oklch(0.8 0.12 50));
  overflow: hidden;
  box-shadow: 0 8px 32px oklch(0.55 0.22 35 / 0.25);
}

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

.user-level-ring {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, oklch(0.55 0.22 35), oklch(0.6 0.18 50));
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px oklch(0.55 0.22 35 / 0.3);
}

.user-detail-info {
  flex: 1;
  padding-top: 4px;
}

.user-detail-name {
  font-size: 28px;
  font-weight: 800;
  color: oklch(0.2 0.02 50);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.user-detail-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-detail-circle {
  padding: 4px 12px;
  background: oklch(0.95 0.08 250);
  color: oklch(0.45 0.15 250);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.user-detail-join {
  font-size: 13px;
  color: oklch(0.55 0.02 50);
}

.user-detail-bio {
  font-size: 14px;
  color: oklch(0.45 0.02 50);
  line-height: 1.6;
}

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: oklch(0.985 0.005 50);
  border-radius: 16px;
  border: 1px solid oklch(0.94 0.01 50);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  background: oklch(0.98 0.01 50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0.2 0.02 50 / 0.08);
}

.stat-icon {
  font-size: 24px;
}

.stat-content {
  flex: 1;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: oklch(0.25 0.02 50);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: oklch(0.55 0.02 50);
  margin-top: 2px;
}

/* 等级进度条 */
.user-level-progress {
  background: oklch(0.985 0.005 50);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid oklch(0.94 0.01 50);
}

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

.level-current {
  font-size: 14px;
  font-weight: 600;
  color: oklch(0.3 0.02 50);
}

.level-next {
  font-size: 13px;
  color: oklch(0.55 0.02 50);
}

.level-progress-bar {
  height: 8px;
  background: oklch(0.92 0.01 50);
  border-radius: 4px;
  overflow: hidden;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, oklch(0.55 0.22 35), oklch(0.65 0.18 50));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 发帖记录区域 */
.user-posts-section {
  margin-top: 8px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: oklch(0.25 0.02 50);
}

.section-count {
  font-size: 13px;
  color: oklch(0.55 0.02 50);
  background: oklch(0.95 0.01 50);
  padding: 4px 12px;
  border-radius: 12px;
}

.user-posts-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.user-posts-list::-webkit-scrollbar {
  width: 6px;
}

.user-posts-list::-webkit-scrollbar-track {
  background: oklch(0.96 0.01 50);
  border-radius: 3px;
}

.user-posts-list::-webkit-scrollbar-thumb {
  background: oklch(0.85 0.02 50);
  border-radius: 3px;
}

.posts-loading {
  text-align: center;
  padding: 40px;
  color: oklch(0.5 0.02 50);
}

.user-post-empty {
  text-align: center;
  padding: 40px;
  color: oklch(0.5 0.02 50);
  font-size: 14px;
}

.user-post-item {
  padding: 16px 20px;
  background: oklch(0.99 0.005 50);
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid oklch(0.95 0.01 50);
}

.user-post-item:hover {
  background: oklch(0.98 0.01 50);
  border-color: oklch(0.9 0.02 50);
  transform: translateX(4px);
  box-shadow: 0 4px 16px oklch(0.2 0.02 50 / 0.06);
}

.user-post-title {
  font-size: 15px;
  font-weight: 600;
  color: oklch(0.2 0.02 50);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-post-content {
  font-size: 13px;
  color: oklch(0.5 0.02 50);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 10px;
}

.user-post-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: oklch(0.55 0.02 50);
}

.user-post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 响应式 */
@media (max-width: 640px) {
  .user-detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .user-detail-badge-row {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .user-detail-name {
    font-size: 24px;
  }
}
  margin-bottom: 8px;
}

.user-post-meta {
  font-size: 12px;
  color: oklch(0.6 0.02 50);
  display: flex;
  gap: 12px;
}

.user-post-empty {
  text-align: center;
  padding: 40px;
  color: oklch(0.5 0.02 50);
}
