/* ============================================
   Circle - Mi Style Social Platform
   ============================================ */

/* CSS Variables */
:root {
  --primary: #8BC34A;
  --primary-light: #C5E1A5;
  --primary-dark: #689F38;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --text: #212121;
  --text-secondary: #757575;
  --text-muted: #9E9E9E;
  --border: #E0E0E0;
  --hover: #F5F5F5;
  --accent: #FF5722;
  
  --header-height: 56px;
  --sidebar-width: 280px;
  --right-sidebar-width: 280px;
  
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide global scrollbar */
html, body {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* ============================================
   Header - Floating with elliptical orbit
   ============================================ */
.header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 28px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: auto;
  min-width: 800px;
  max-width: 900px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header搜索状态 - 向上弹出 */
.header.search-active {
  transform: translateX(-50%) translateY(-80px);
  opacity: 0;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  width: 140px;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--hover);
  color: var(--text);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 500;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================
   Header Search Component
   ============================================ */
.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 搜索覆盖层 - 固定在body级别 */
.header-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 200;
}

.header-search-overlay > * {
  pointer-events: auto;
}

/* 搜索触发按钮 */
.header-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1;
}

.header-search-trigger:hover {
  background: var(--hover);
  color: var(--text);
}

.header-search-trigger svg {
  width: 20px;
  height: 20px;
}

.header-search-trigger .search-placeholder {
  font-size: 14px;
}

/* 展开状态的搜索框 - 灵动岛风格 */
.header-search-expanded {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  width: auto;
  min-width: 800px;
  max-width: 900px;
  opacity: 0;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  display: flex;
  align-items: center;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 0 20px;
}

/* 搜索激活状态 - 从上方弹下来 */
body.search-active .header-search-overlay .header-search-expanded {
  top: 12px;
  opacity: 1;
}

body.search-active .header-search-trigger {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* 搜索输入框容器 */
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
}

.search-input-wrapper .search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text);
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.search-clear-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.search-clear-btn svg {
  width: 16px;
  height: 16px;
}

.search-submit-btn {
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.search-submit-btn:hover {
  background: var(--primary-dark);
}

/* 搜索下拉面板 */
.search-dropdown {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: auto;
  min-width: 800px;
  max-width: 900px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-height: 480px;
  overflow-y: auto;
  z-index: 205;
  pointer-events: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-dropdown::-webkit-scrollbar {
  display: none;
}

body.search-active .header-search-overlay .search-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 搜索分区 */
.search-section {
  margin-bottom: 20px;
}

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

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

.section-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-header h4::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}

.clear-history-btn,
.refresh-hot-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
}

.clear-history-btn:hover,
.refresh-hot-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.clear-history-btn svg,
.refresh-hot-btn svg {
  width: 14px;
  height: 14px;
}

/* 清空按钮容器 */
.clear-all-wrapper {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  background: transparent;
  gap: 4px;
  transition: all 0.2s;
}

.clear-all-wrapper:hover {
  background: var(--hover);
}

.clear-all-wrapper:hover .clear-all-btn,
.clear-all-wrapper:hover .close-clear-mode-btn {
  color: var(--text);
}

/* 清空按钮样式 - 与清除按钮保持一致 */
.clear-all-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  padding: 0;
}

.clear-all-btn:hover {
  color: var(--text);
}

.clear-all-btn svg {
  width: 14px;
  height: 14px;
}

/* 关闭清除模式按钮 - 放在清空按钮内部，无hover效果 */
.close-clear-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.close-clear-mode-btn svg {
  width: 12px;
  height: 12px;
}

/* 搜索标签（历史搜索） */
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.search-tag:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.search-tag .remove-tag {
  width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.2s;
}

/* 清除模式下显示删除按钮 */
.search-history-clear-mode .search-tag .remove-tag {
  display: flex;
}

.search-tag .remove-tag:hover {
  background: rgb(255 255 255);
}

.search-tag .remove-tag svg {
  width: 12px;
  height: 12px;
  stroke: #5e5e5e;
}

.search-tag .remove-tag svg {
  width: 12px;
  height: 12px;
}

/* 热搜列表 */
.hot-search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hot-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.hot-search-item:hover {
  background: var(--hover);
}

.hot-rank {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hot-search-item:nth-child(1) .hot-rank {
  color: #FF5722;
}

.hot-search-item:nth-child(2) .hot-rank {
  color: #FF9800;
}

.hot-search-item:nth-child(3) .hot-rank {
  color: #FFC107;
}

.hot-query {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-heat {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hot-heat::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hot-badge {
  padding: 2px 6px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* 空状态 */
.search-empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* 搜索建议列表 */
.search-suggestions-list {
  display: flex;
  flex-direction: column;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius);
}

.suggestion-item:hover {
  background: var(--hover);
}

.suggestion-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.suggestion-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.suggestion-type {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .header.search-active {
    transform: translateX(-50%) translateY(-100px);
  }

  .header-search-expanded {
    width: calc(100% - 32px);
    min-width: auto;
    max-width: none;
    padding: 0 16px;
  }

  body.search-active .header-search-overlay .header-search-expanded {
    width: calc(100% - 32px);
    min-width: auto;
    max-width: none;
  }

  .search-dropdown {
    width: calc(100% - 32px);
    min-width: auto;
    max-width: none;
  }
}

/* ============================================
   Layout - Floating columns with equal height
   ============================================ */
.main-layout {
  display: flex;
  padding-top: calc(var(--header-height) + 24px);
  height: calc(100vh - 12px);
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
  overflow: hidden;
}

/* ============================================
   Left Sidebar - Floating
   ============================================ */
.left-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height) - 40px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.left-sidebar::-webkit-scrollbar {
  display: none;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 8px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  min-height: 44px;
}

.nav-item:hover {
  background: var(--hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-item svg,
.nav-item i {
  width: 20px;
  height: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 12px;
}

.create-note-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--primary);
  color: white;
  border-radius: 24px;
  font-weight: 500;
  margin: 16px 0;
  transition: all 0.2s;
}

.create-note-btn:hover {
  background: var(--primary-dark);
}

.create-note-btn svg {
  width: 18px;
  height: 18px;
}

.user-profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile-mini:hover {
  background: var(--hover);
}

.mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.mini-username {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   Main Content - Floating
   ============================================ */
.main-content {
  flex: 1;
  padding: 0;
  height: calc(100vh - var(--header-height) - 40px);
  overflow-y: scroll;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  -ms-overflow-style: none;
}

.main-content::-webkit-scrollbar {
  display: none;
}

/* Content Container for hot loading */
#content-container {
  padding: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#content-container::-webkit-scrollbar {
  display: none;
}

/* Ensure hot loaded content matches feed width */
#content-container .feed,
#content-container .messages-header,
#content-container .content-tabs,
#content-container .settings-header,
#content-container .profile-header {
  padding: 0 16px;
  margin-bottom: 16px;
}

#content-container .message-item,
#content-container .notification-item,
#content-container .settings-section,
#content-container .post {
  max-width: 100%;
  width: 100%;
  margin-bottom: 16px;
}

#content-container .post-card {
  max-width: 100%;
  width: 100%;
}

/* Ensure hot loaded content has proper spacing */
#content-container {
  padding: 0;
  background: var(--surface);
  min-height: calc(100vh - var(--header-height) - 40px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Ensure profile header has proper spacing */
#content-container .profile-info {
  padding: 16px;
}

/* Ensure comments section has proper spacing */
#content-container .comments-section {
  margin-top: 16px;
}

/* Ensure chat container has proper styling */
#content-container .chat-container {
  height: calc(100vh - var(--header-height) - 80px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/*============================================
   Sticky Create Post
============================================ */
.create-post-sticky {
  position: sticky;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 50;
}

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

.create-post-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
}

.create-post-close:hover {
  background: var(--hover);
}

.create-post-close svg {
  width: 18px;
  height: 18px;
}

.create-post-privacy {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.create-post-privacy svg {
  width: 14px;
  height: 14px;
}

.create-post-link,
.create-post-more {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
}

.create-post-link:hover,
.create-post-more:hover {
  background: var(--hover);
}

.create-post-link svg,
.create-post-more svg {
  width: 18px;
  height: 18px;
}

.create-post-submit {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
}

.create-post-submit:hover {
  background: var(--primary-dark);
}

.create-post-submit svg {
  width: 16px;
  height: 16px;
}

.create-post-body {
  margin-bottom: 12px;
}

.create-post-body textarea {
  width: 100%;
  min-height: 80px;
  max-height: 300px;
  border: none;
  background: transparent;
  font-size: 15px;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  overflow-y: auto;
}

.create-post-body textarea::placeholder {
  color: var(--text-muted);
}

.create-post-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s;
}

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

.toolbar-btn svg {
  width: 20px;
  height: 20px;
}

/* Tips Banner */
.tips-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #E3F2FD;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

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

.tips-content {
  flex: 1;
}

.tips-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.tips-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.tips-btn {
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.tips-close {
  color: var(--text-muted);
  padding: 4px;
}

/* Feed */
.feed {
  display: flex;
  flex-direction: column;
}

/* Post Card */
.post-card {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.post-card:last-child {
  border-bottom: none;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.post-author-info {
  flex: 1;
}

.post-author-name {
  font-weight: 600;
  font-size: 15px;
}

.post-author-handle {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.post-time {
  font-size: 13px;
  color: var(--text-muted);
}

.post-image-container {
  position: relative;
  background: #f0f0f0;
  margin: 0 20px 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-image {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.image-action-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s;
}

.image-action-btn:hover {
  background: rgba(0,0,0,0.7);
}

.image-action-btn svg {
  width: 18px;
  height: 18px;
}

.post-actions-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}

.action-btn-bar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.action-btn-bar:hover {
  background: var(--hover);
  color: var(--text);
}

.action-btn-bar svg {
  width: 20px;
  height: 20px;
}

.action-btn-bar.more {
  margin-left: auto;
}

/* ============================================
   Post Card - New Style (like the image)
   ============================================ */
.post-header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
}

.post-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-author-line .post-author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.post-author-line .post-author-handle {
  font-size: 14px;
  color: var(--text-muted);
}

.post-time-small {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

.post-content-text {
  padding: 0 16px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
}

.post-content-inline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  margin-top: 4px;
  max-width: 100%;
}

.post-social-actions {
  display: flex;
  align-items: center;
  padding: 8px 20px 16px;
  gap: 32px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
}

.social-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn.more {
  margin-left: auto;
}

/* ============================================
   Right Sidebar - Floating
   ============================================ */
.right-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  width: var(--right-sidebar-width);
  height: calc(100vh - var(--header-height) - 40px);
  padding: 0;
  border-radius: var(--radius-lg);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.right-sidebar::-webkit-scrollbar {
  display: none;
}

/* Calendar Widget */
.calendar-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.calendar-header {
  margin-bottom: 16px;
}

.calendar-year {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calendar-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-value {
  color: var(--text);
  font-weight: 500;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

.calendar-main {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calendar-day {
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.calendar-weekday {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.calendar-stats {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.cal-stat-label {
  color: var(--text-muted);
  width: 40px;
}

.cal-stat-value {
  color: var(--text);
  font-weight: 500;
  width: 50px;
  text-align: right;
}

.cal-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.cal-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

/* Widget Section */
.widget-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.widget-title svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.widget-settings {
  color: var(--text-muted);
  padding: 4px;
}

.widget-settings svg {
  width: 16px;
  height: 16px;
}

/* Notification List */
.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.notif-content {
  flex: 1;
}

.notif-text {
  font-size: 13px;
  color: var(--text);
}

.notif-subtext {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.notif-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.notif-badge {
  width: 24px;
  height: 24px;
  background: #2196F3;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.notif-badge.gold {
  background: #FFC107;
}

/* Trend List */
.trend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.trend-name {
  color: var(--text);
}

.trend-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Sidebar Widget Component Styles
   ============================================ */
.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.sidebar-widget .widget-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-widget .widget-header h3 svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.sidebar-widget.collapsed .widget-content {
  display: none;
}

.sidebar-widget.collapsed .widget-header {
  margin-bottom: 0;
}

/* Loading State */
.sidebar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.widget-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Announcement Widget */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.announcement-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.announcement-item a {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-item a:hover {
  color: var(--primary);
}

.announcement-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Trending Widget */
.trending-list {
  display: flex;
  flex-direction: column;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.trending-rank {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.trending-item:nth-child(1) .trending-rank {
  color: #FF5722;
}

.trending-item:nth-child(2) .trending-rank {
  color: #FF9800;
}

.trending-item:nth-child(3) .trending-rank {
  color: #FFC107;
}

.trending-content {
  flex: 1;
  min-width: 0;
}

.trending-title {
  display: block;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-title:hover {
  color: var(--primary);
}

.trending-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Active Users Widget */
.active-users-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.active-user-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.active-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.active-user-name {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.active-user-item:hover .active-user-name {
  color: var(--primary);
}

/* Popular Topics Widget */
.popular-topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popular-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  text-decoration: none;
}

.popular-topic-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.topic-name {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.topic-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hot Searches Widget */
.hot-searches-list {
  display: flex;
  flex-direction: column;
}

.hot-searches-widget .hot-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.hot-searches-widget .hot-search-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.hot-searches-widget .hot-rank {
  width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.hot-searches-widget .hot-rank.top {
  color: #FF5722;
}

.hot-searches-widget .hot-query {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-searches-widget .hot-query:hover {
  color: var(--primary);
}

.hot-searches-widget .hot-badge {
  padding: 2px 6px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* Generic Widget List */
.widget-list {
  display: flex;
  flex-direction: column;
}

.widget-list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.widget-list-item a {
  font-size: 14px;
  color: var(--text);
}

.widget-list-item a:hover {
  color: var(--primary);
}

/* Custom Widget */
.custom-widget .widget-content {
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================    Main Content Only (for non-home pages)    ============================================ */
.main-content-only {
  padding-top: calc(var(--header-height) + 24px);
  max-width: 700px;
  margin: 0 auto;
  height: calc(100vh - var(--header-height) - 40px);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
}

.main-content-only::-webkit-scrollbar {
  display: none;
}

/* Auth Card */
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.btn-submit {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

/* ============================================    Post Detail    ============================================ */
.post-detail {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.post-video {
  position: relative;
  background: #f0f0f0;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.video-play-btn:hover {
  background: rgba(0,0,0,0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
}

.comments-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.comments-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.comment-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-lg);
}

.comment-form .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.comment-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.comment-item .post-header .avatar {
  width: 32px;
  height: 32px;
}

.comment-content {
  margin: 8px 0;
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.comment-actions .action-btn {
  font-size: 12px;
}

.comment-actions .action-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================    Messages    ============================================ */
.messages-header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.messages-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.message-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
}

.message-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: var(--hover);
}

.message-preview {
  margin: 12px 0;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================    Notifications    ============================================ */
.notification-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.2s;
}

.notification-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.notification-content {
  margin: 12px 0;
  line-height: 1.5;
}

.notification-content a {
  color: var(--primary);
  font-weight: 500;
}

.notification-content span {
  color: var(--text-secondary);
}

.btn-follow-small {
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-follow-small:hover {
  background: var(--primary-dark);
}

/* ============================================    Settings    ============================================ */
.settings-header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.settings-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.settings-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.settings-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

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

.settings-form .form-group {
  margin-bottom: 0;
}

.settings-form .btn-submit {
  align-self: flex-start;
  width: auto;
  padding: 10px 24px;
}

/* ============================================    User Profile    ============================================ */
.profile-header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.profile-cover {
  height: 200px;
  background: rgba(245, 245, 245, 0.8);
}

.profile-info {
  display: flex;
  flex-direction: column;
  padding: 16px;
  margin-top: -60px;
}

.profile-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  margin-bottom: 16px;
  overflow: hidden;
}

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

.profile-details {
  text-align: center;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.content-tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tab-item {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tab-item:hover {
  background: var(--hover);
  color: var(--text);
}

.tab-item.active {
  background: var(--primary);
  color: white;
}

.post {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.post-header .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.post-meta {
  flex: 1;
}

.post-author {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.post-time {
  font-size: 12px;
  color: var(--text-muted);
}

.post-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.post-media {
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-tag {
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.post-actions {
  display: flex;
  gap: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================    Profile Header V2 - 新样式    ============================================ */
.profile-header-v2 {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
}

/* 用户自定义背景图片层 */
.profile-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* 背景图片上的遮罩层，确保文字可读 */
.profile-bg-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, black, transparent);
}

.profile-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-avatar-wrap-v2 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-v2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-details-v2 {
  flex: 1;
  color: #fff;
}

.profile-name-v2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.profile-stats-v2 {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.stat-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-label-v2 {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.stat-value-v2 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.profile-meta-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-divider {
  color: rgba(255,255,255,0.3);
}

.gender-tag {
  background: rgba(59, 130, 246, 0.3);
  padding: 2px 10px;
  border-radius: 4px;
  color: #60a5fa;
  font-size: 12px;
}

.gender-tag i {
  font-size: 11px;
}

.profile-bio-v2 {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* ============================================    Header User Preview - 头部用户预览卡片    ============================================ */
.header-user-menu {
  position: relative;
}

.user-preview-dropdown {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  width: 97%;
}

.header-user-menu:hover .user-preview-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.user-preview-card {
  display: flex;
  background: #fff;
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  width: 100%;
}

/* 左侧个人信息 - 与profile-header-v2相同的布局 */
.user-preview-info {
  flex: 1;
  padding: 20px;
}

.user-preview-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.user-preview-avatar-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(139, 195, 74, 0.3);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-preview-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-preview-details {
  flex: 1;
  color: var(--text);
}

.user-preview-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.user-preview-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.user-preview-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-preview-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.user-preview-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.user-preview-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

.user-preview-meta-divider {
  color: var(--border);
}

.user-preview-gender-tag {
  background: rgba(59, 130, 246, 0.15);
  padding: 2px 10px;
  border-radius: 4px;
  color: #3b82f6;
  font-size: 12px;
}

.user-preview-gender-tag i {
  font-size: 11px;
}

.user-preview-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 右侧二维码 */
.user-preview-qrcode {
  width: 140px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.user-preview-qrcode-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.user-preview-qrcode-image {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  position: relative;
}

/* 二维码加载动画 */
.user-preview-qrcode-image.loading::after {
  content: '';
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: qrcode-spin 0.8s linear infinite;
}

@keyframes qrcode-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 二维码图片样式 */
.user-preview-qrcode-image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* 默认二维码图标（当没有生成时显示） */
.user-preview-qrcode-image.empty::before {
  content: '\f029';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 40px;
  color: var(--text-muted);
}

.user-preview-qrcode-tip {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================    Screen Lock - 锁屏组件    ============================================ */
.screen-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  animation: screen-lock-fade-in 0.5s ease forwards;
  overflow: hidden;
}

/* 渐变小球背景 */
.screen-lock-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 195, 74, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 60% 70%, rgba(236, 72, 153, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 40%);
  filter: blur(60px);
  animation: gradient-blobs 15s ease-in-out infinite;
  z-index: -1;
}

@keyframes gradient-blobs {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(5%, -5%) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(-3%, 3%) scale(0.95);
    opacity: 0.9;
  }
  75% {
    transform: translate(-5%, -3%) scale(1.05);
    opacity: 1;
  }
}

/* 移动的小球 */
.screen-lock-blobs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

.screen-lock-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}

.screen-lock-blob:nth-child(1) {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #8BC34A, #4CAF50);
  top: 10%;
  left: 10%;
  animation: blob-float-1 20s ease-in-out infinite;
}

.screen-lock-blob:nth-child(2) {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: 60%;
  right: 10%;
  animation: blob-float-2 25s ease-in-out infinite;
}

.screen-lock-blob:nth-child(3) {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  bottom: 10%;
  left: 30%;
  animation: blob-float-3 18s ease-in-out infinite;
}

.screen-lock-blob:nth-child(4) {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  top: 30%;
  right: 30%;
  animation: blob-float-4 22s ease-in-out infinite;
}

@keyframes blob-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes blob-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 40px) scale(0.95); }
  66% { transform: translate(60px, -20px) scale(1.05); }
}

@keyframes blob-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 60px) scale(1.1); }
  66% { transform: translate(-50px, -30px) scale(0.9); }
}

@keyframes blob-float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -40px) scale(0.95); }
  66% { transform: translate(40px, 60px) scale(1.05); }
}

@keyframes screen-lock-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.screen-lock-content {
  text-align: center;
  color: #fff;
  animation: screen-lock-slide-up 0.5s ease 0.2s both;
  z-index: 1;
  position: relative;
}

@keyframes screen-lock-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-lock-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.screen-lock-username {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.screen-lock-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.screen-lock-password-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: screen-lock-fade-in 0.3s ease;
}

.screen-lock-password-form input {
  width: 240px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.screen-lock-password-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.screen-lock-password-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.screen-lock-password-form button {
  width: 240px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.screen-lock-password-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

/* 锁屏倒计时提示 */
.screen-lock-countdown {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 99998;
  animation: countdown-pulse 1s ease infinite;
  display: none;
}

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

.screen-lock-countdown.warning {
  background: rgba(244, 67, 54, 0.9);
  animation: countdown-warning 0.5s ease infinite;
}

@keyframes countdown-warning {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(244, 67, 54, 0.6);
  }
}

/* ============================================    Loading Animation    ============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================    Responsive    ============================================ */
@media (max-width: 1200px) {
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    min-width: auto;
    width: calc(100% - 32px);
    padding: 0 16px;
  }
  
  .left-sidebar {
    display: none;
  }
  
  .main-layout {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .main-content {
    padding: 0;
  }
  
  .main-content-only {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .auth-card {
    margin-top: 20px;
    padding: 24px;
  }
  
  .header-nav {
    display: none;
  }
}

/* ============================================
   Discover Page Styles
   ============================================ */
.discover-header {
  margin-bottom: 24px;
}

.discover-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.tab-item {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-item:hover {
  background: var(--hover);
  color: var(--text);
}

.tab-item.active {
  background: var(--primary);
  color: white;
}

.discover-content {
  min-height: 400px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.topic-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.2s;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.topic-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  font-weight: 600;
  color: var(--text-secondary);
}

.topic-rank.rank-top {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
}

.topic-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.topic-info {
  flex: 1;
}

.topic-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.topic-count {
  font-size: 13px;
  color: var(--text-muted);
}

.topic-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.user-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.user-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.user-card-info {
  margin-bottom: 12px;
}

.user-card-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.user-card-username {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.user-card-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-follow-small {
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-follow-small:hover {
  background: var(--primary-dark);
}

.btn-follow-small.following {
  background: var(--bg);
  color: var(--text-secondary);
}

/* ============================================
   Search Page Styles
   ============================================ */
.search-header {
  margin-bottom: 24px;
}

.search-box-large {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.search-box-large svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  margin-left: 16px;
}

.search-box-large input {
  flex: 1;
  padding: 16px;
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.search-clear {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

.search-clear:hover {
  background: var(--hover);
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

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

.search-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.result-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.result-info {
  flex: 1;
}

.result-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.result-username {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-bio {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.hot-search-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-rank {
  width: 24px;
  font-weight: 600;
  color: var(--text-muted);
}

.hot-search-item:nth-child(1) .hot-rank { color: #FF5722; }
.hot-search-item:nth-child(2) .hot-rank { color: #FF9800; }
.hot-search-item:nth-child(3) .hot-rank { color: #FFC107; }

/* ============================================
   Create Post Page Styles
   ============================================ */
.create-post-container {
  max-width: 600px;
  margin: 0 auto;
}

.create-post-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.post-privacy-selector {
  display: flex;
  align-items: center;
}

.privacy-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.post-textarea-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.post-textarea {
  width: 100%;
  min-height: 150px;
  border: none;
  resize: vertical;
  font-size: 16px;
  line-height: 1.6;
  outline: none;
  font-family: inherit;
}

.post-textarea::placeholder {
  color: var(--text-muted);
}

.post-topics-section,
.post-media-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.section-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.topic-input-wrapper {
  position: relative;
}

.topic-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
}

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

.selected-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.topic-tag button {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  color: inherit;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

.media-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.media-upload-area:hover {
  border-color: var(--primary);
  background: var(--hover);
}

.media-upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-placeholder span {
  color: var(--text-secondary);
  font-size: 14px;
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.media-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.media-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-media {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.post-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.toolbar-left {
  display: flex;
  gap: 8px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.char-count {
  font-size: 14px;
  color: var(--text-muted);
}

.char-count.over-limit {
  color: var(--accent);
}

.btn-primary {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-secondary {
  padding: 10px 24px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

/* ============================================
   Followers Page Styles
   ============================================ */
.followers-header {
  margin-bottom: 24px;
}

.followers-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

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

.user-card-large {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.user-card-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.user-card-stats {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-follow {
  padding: 8px 24px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-follow:hover {
  background: var(--primary-dark);
}

.btn-follow.following {
  background: var(--bg);
  color: var(--text-secondary);
}

/* ============================================
   Auth Form Options
   ============================================ */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-me input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.forgot-password {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* ============================================
   Tips Widget
   ============================================ */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
}

.tip-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.tip-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
