:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9f9;
  --bg-tertiary: #e1e8ed;
  --bg-hover: #eff3f4;
  --text-primary: #14171a;
  --text-secondary: #657786;
  --text-muted: #aab8c2;
  --accent-blue: #1d9bf0;
  --accent-blue-hover: #1a8cd8;
  --accent-red: #f4212e;
  --accent-green: #00ba7c;
  --border-color: #e1e8ed;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-serif: "SF Pro Text", "Georgia", "Times New Roman", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-mono: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  --primary-color: #0080ff;
  --line-height-body: 1.75;
  --line-height-heading: 1.3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum", "lnum";
}

/* 顶部警告横幅 */
.mock-data-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f59e0b;
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mock-data-warning button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.mock-data-warning button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
}

.sidebar-left {
  width: 275px;
  flex-shrink: 0;
  padding: 12px 8px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-left-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  padding: 8px 16px;

  cursor: pointer;

}



.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 20px;
  font-weight: 400;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 155, 240, 0.05), transparent);
  transition: left 0.5s ease;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  transform: translateX(2px);
}

.nav-item.active {
  font-weight: 700;
  background-color: rgba(29, 155, 240, 0.1);
}

.nav-item.active span {
  color: var(--accent-blue);
}

.nav-item.active svg {
  fill: var(--accent-blue);
}

.nav-item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-item:hover svg {
  transform: scale(1.05);
}

.tweet-btn {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0d8bd9 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(29, 155, 240, 0.4), 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.tweet-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.tweet-btn:hover {
  background: linear-gradient(135deg, var(--accent-blue-hover) 0%, #0b7bc7 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(29, 155, 240, 0.5), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tweet-btn:active {
  transform: translateY(0) scale(0.99);
}

.tweet-btn svg {
  display: none;
}

@media (max-width: 1200px) {
  .sidebar-left .nav-item span {
    display: none;
  }
  .sidebar-left {
    width: 80px;
  }
  .tweet-btn span {
    display: none;
  }
  .tweet-btn svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: white;
    margin: 0 auto;
  }
}

.main-content {
  flex: 1;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
}

.header-auth {
  display: flex;
  align-items: center;
}

.login-link {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-link:hover {
  background: #004d99;
}

.login-link-sm {
  padding: 14px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.3);
}

.login-link-sm:hover {
  background: #004d99;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 128, 255, 0.4);
}

.sidebar-user-menu {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.user-switch-menu {
  position: relative;
}

.user-switch-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.user-switch-btn:hover {
  background-color: var(--bg-hover);
}

.user-switch-btn.active {
  background-color: var(--bg-hover);
}

.user-switch-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.user-switch-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-switch-info {
  flex: 1;
  min-width: 0;
}

.user-switch-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-switch-role {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-switch-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-switch-btn:hover .user-switch-arrow,
.user-switch-btn.active .user-switch-arrow {
  transform: rotate(180deg);
}

.user-switch-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 6px;
  display: none;
  z-index: 1000;
  min-width: 260px;
}

.user-switch-dropdown.show {
  display: block;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 12px 16px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-switch-list {
  max-height: 350px;
  overflow-y: auto;
}

.user-switch-list::-webkit-scrollbar {
  width: 6px;
}

.user-switch-list::-webkit-scrollbar-track {
  background: transparent;
}

.user-switch-list::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.user-switch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-switch-item:hover {
  background-color: var(--bg-hover);
  transform: translateX(2px);
}

.user-switch-item:hover .user-switch-item-name {
  color: var(--accent-blue);
}

.user-switch-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.user-switch-item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-switch-item-info {
  flex: 1;
  min-width: 0;
}

.user-switch-item-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-switch-item-handle {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 4px 8px;
}

.login-prompt {
  background: linear-gradient(135deg, rgba(0, 128, 255, 0.05), rgba(0, 128, 255, 0.1));
  border: 1px solid rgba(0, 128, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.login-prompt-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.login-prompt-content span {
  font-size: 15px;
  color: #374151;
}

.login-prompt-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.login-prompt-login {
  padding: 10px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-prompt-login:hover {
  background: #004d99;
}

.login-prompt-register {
  padding: 10px 24px;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.login-prompt-register:hover {
  background: rgba(0, 128, 255, 0.1);
}

.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background-color: var(--bg-hover);
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.tab:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.tab.active {
  color: var(--text-primary);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--accent-blue);
  border-radius: 2px 2px 0 0;
}

.new-tweet {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

.new-tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  flex-shrink: 0;
  overflow: hidden;
}

.new-tweet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-tweet-input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 19px;
  resize: none;
  min-height: 24px;
  max-height: 600px;
  overflow-y: auto;
  line-height: 1.4;
  transition: height 0.15s ease;
}

.new-tweet-input::placeholder {
  color: var(--text-muted);
}

.new-tweet-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.new-tweet-icons {
  display: flex;
  gap: 16px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: rgba(29, 155, 240, 0.1);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-blue);
}

.new-tweet-submit {
  background-color: var(--accent-blue);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.new-tweet-submit:hover {
  background-color: var(--accent-blue-hover);
}

.tweet-list {
  flex: 1;
}

.tweet {
  padding: 12px 16px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tweet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.tweet:hover {
  background-color: var(--bg-hover);
}

.tweet:hover::before {
  background: var(--accent-blue);
}

.tweet-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s ease;
  overflow: hidden;
  padding: 2px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.tweet-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.tweet:hover .tweet-avatar {
  transform: scale(1.05);
}

.tweet-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tweet-user-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.tweet-username {
  font-weight: 700;
  font-size: 15px;
}

.tweet-handle {
  color: var(--text-secondary);
  font-size: 15px;
}

.tweet-time {
  color: var(--text-secondary);
  font-size: 15px;
}

.tweet-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 480px;
}

.tweet-bio a {
  color: var(--accent-blue);
  text-decoration: none;
}

.tweet-bio a:hover {
  text-decoration: underline;
}

.tweet-dot {
  color: var(--text-secondary);
}

.tweet-options {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
  position: relative;
}

.tweet-options:hover {
  background-color: rgba(29, 155, 240, 0.1);
}

.tweet-options svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
}

.tweet-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
}

.tweet-menu-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tweet-menu-item:hover {
  background-color: var(--bg-hover);
}

.tweet-menu-item.delete {
  color: var(--accent-red);
}

.tweet-menu-divider {
  height: 1px;
  background-color: var(--border-color);
}

.tweet-edit-area {
  margin-top: 8px;
}

.tweet-edit-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 500px;
  padding: 12px;
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: height 0.15s ease;
}

.tweet-edit-textarea:focus {
  border-color: var(--accent-blue-hover);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.1);
}

.tweet-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.tweet-edit-cancel {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  border-radius: var(--radius-full);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.tweet-edit-cancel:hover {
  background-color: var(--bg-hover);
}

.tweet-edit-save {
  padding: 8px 16px;
  border: none;
  background-color: var(--accent-blue);
  color: white;
  border-radius: var(--radius-full);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.tweet-edit-save:hover {
  background-color: var(--accent-blue-hover);
  transform: scale(1.02);
}

.tweet-content {
  margin-top: 4px;
  font-size: 15px;
  line-height: var(--line-height-body);
  word-wrap: break-word;
  white-space: pre-wrap;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

.tweet-url-link {
  color: var(--accent-blue);
  text-decoration: none;
  word-break: break-all;
}

.tweet-url-link:hover {
  text-decoration: underline;
}

.tweet-image {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.tweet-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 响应式视频容器 */
.video-container {
  position: relative;
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
}

.video-container::before {
  content: '';
  display: block;
}

/* 横屏 16:9 */
.video-container.ratio-16-9::before {
  padding-top: 56.25%;
}

/* 竖屏 9:16 */
.video-container.ratio-9-16::before {
  padding-top: 177.78%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.tweet-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  max-width: 480px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 20px;
}

.stat-item:hover {
  color: var(--accent-blue);
  background-color: rgba(29, 155, 240, 0.1);
}

.stat-item svg {
  width: 18px;
  height: 18px;
  transition: all 0.2s ease;
}

.stat-item:hover svg {
  fill: var(--accent-blue);
  transform: scale(1.1);
}

.stat-value {
  font-weight: 700;
}

.share-to-x:hover {
  color: #1DA1F2;
  background-color: rgba(29, 161, 242, 0.1);
}

.share-to-x:hover svg {
  fill: #1DA1F2;
}

.sidebar-right {
  width: 350px;
  flex-shrink: 0;
  padding: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.search-box {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.search-box:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.1);
  background-color: var(--bg-primary);
}

.search-box svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: fill 0.2s ease;
}

.search-box:focus-within svg {
  fill: var(--accent-blue);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.widget {
  margin-top: 16px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-title {
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.widget-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.widget-item:hover {
  background-color: var(--bg-hover);
  padding-left: 20px;
}

.widget-item:hover .widget-item-title {
  color: var(--accent-blue);
}

.widget-item:hover::before {
  background: var(--accent-blue);
}

.widget-item-category {
  color: var(--text-muted);
  font-size: 13px;
}

.widget-item-title {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.widget-item-tweets {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}



.widget-follow-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.widget-follow-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.widget-follow-info {
  flex: 1;
  margin-left: 12px;
}

.widget-follow-name {
  font-weight: 700;
  font-size: 15px;
}

.widget-follow-handle {
  color: var(--text-secondary);
  font-size: 15px;
}

.widget-follow-btn {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.widget-follow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.widget-follow:hover {
  background-color: var(--bg-hover);
}

.widget-follow:hover .widget-follow-name {
  color: var(--accent-blue);
}

.widget-follow-btn:hover {
  background-color: var(--accent-blue);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(29, 155, 240, 0.4);
}

.widget-follow-btn.followed {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.widget-follow-btn.followed:hover {
  background-color: rgba(244, 33, 46, 0.1);
  color: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: none;
}

.widget-follow-btn:active {
  transform: scale(0.98);
}

.widget-show-more {
  padding: 16px;
  color: var(--accent-blue);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.widget-show-more:hover {
  background-color: var(--bg-hover);
  color: var(--accent-blue);
}

.detail-tweet {
  padding: 12px 16px 16px;
  border-bottom: 1px solid var(--border-color);
}

.detail-tweet .tweet-content {
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}



.replies-title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.reply-list {
  flex: 1;
}

.reply {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.reply:hover {
  background-color: var(--bg-hover);
}

.reply-content {
  flex: 1;
  min-width: 0;
}

.reply-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.reply-header .reply-username {
  font-weight: 700;
  color: var(--text-primary);
}

.reply-header .reply-handle {
  color: var(--text-secondary);
  font-size: 14px;
}

.reply-text {
  font-size: 15px;
  line-height: var(--line-height-body);
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

.reply-stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.reply-stats span:hover {
  color: var(--accent-blue);
  cursor: pointer;
}

.reply-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  overflow: hidden;
}

.reply-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

@media (max-width: 1000px) {
  .sidebar-right {
    display: none;
  }
}

@media (max-width: 600px) {
  .main-content {
    border: none;
  }
}

.login-container {
  display: flex;
  height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  background: linear-gradient(180deg, rgba(230, 249, 255, 0.8), rgba(255, 255, 255, 0.5));
}

.login-brand svg {
  width: 100px;
  height: 100px;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.feature-item svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
}

.login-card {
  max-width: 400px;
  margin: 0 auto;
}

.login-card-logo svg {
  width: 50px;
  height: 50px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f2937;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s;
}

.login-btn:hover {
  background: #004d99;
}

.login-btn-secondary {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.login-btn-secondary:hover {
  background: rgba(0, 128, 255, 0.1);
}

.login-forgot {
  text-align: center;
  margin-top: 16px;
}

.login-forgot a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.login-forgot a:hover {
  text-decoration: underline;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-divider span {
  font-size: 14px;
  color: #6b7280;
}

.error-message {
  display: none;
  padding: 12px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}

.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu-btn:hover {
  background-color: var(--bg-hover);
}

.user-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.user-menu-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-menu-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  background-color: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 6px;
  min-width: 240px;
  z-index: 1000;
}

.user-menu-dropdown.show {
  display: block;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 12px;
  transition: all 0.15s ease;
  color: var(--text-primary);
}

.user-menu-item:hover {
  background-color: var(--bg-hover);
  color: var(--accent-blue);
}

.user-menu-item:hover svg {
  color: var(--accent-blue);
}

.user-menu-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-left {
    padding: 40px;
    height: auto;
  }
  
  .login-right {
    padding: 40px;
  }
}

.admin-container {
  min-height: 100vh;
  background: #f3f4f6;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-header-left h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-user-info {
  font-size: 14px;
  color: #6b7280;
}

.admin-logout-btn {
  padding: 8px 16px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.admin-logout-btn:hover {
  background: #dc2626;
}

.admin-content {
  display: flex;
  padding: 24px;
  gap: 24px;
}

.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
  padding-left: 8px;
}

.sidebar-menu {
  background: white;
  border-radius: 8px;
  padding: 8px;
}

.menu-item {
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background: #f3f4f6;
}

.menu-item.active {
  background: rgba(0, 128, 255, 0.1);
  color: var(--primary-color);
}

.admin-main {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 24px;
  min-height: 500px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 14px;
  color: #6b7280;
}

.user-list-container {
  overflow-x: auto;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.user-table th {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.user-table tbody tr:hover {
  background: #f9fafb;
}

.badge-admin {
  display: inline-block;
  padding: 4px 10px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-user {
  display: inline-block;
  padding: 4px 10px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.switch-btn {
  padding: 6px 14px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.switch-btn:hover:not(:disabled) {
  background: #004d99;
}

.switch-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.profile-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--border-color);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1d9bf0 0%, #1a8cd8 50%, #0d6efd 100%);
}

.profile-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 16px;
  margin-top: -48px;
  margin-bottom: 4px;
}

.profile-avatar-row .profile-avatar {
  margin-bottom: 0;
}

.profile-actions {
  display: flex;
  gap: 8px;
  padding-top: 56px;
}

.profile-follow-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.profile-follow-btn:hover {
  background-color: var(--bg-hover);
}

.profile-follow-btn.followed {
  background-color: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.profile-edit-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.profile-edit-btn:hover {
  background-color: var(--bg-hover);
}

.profile-edit-modal {
  max-width: 480px;
  width: 90%;
}

.edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.edit-avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  margin-bottom: 12px;
}

.edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-avatar-btn {
  padding: 6px 16px;
  border: 1px solid var(--accent-blue);
  background-color: transparent;
  color: var(--accent-blue);
  border-radius: var(--radius-full);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-avatar-btn:hover {
  background-color: rgba(29, 155, 240, 0.1);
}

#edit-avatar-input {
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.btn-primary {
  padding: 8px 20px;
  background-color: var(--accent-blue);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
}

.btn-secondary {
  padding: 8px 20px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-tweets {
  border-top: 1px solid var(--border-color);
}

.profile-tweets .tweet-content {
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: var(--line-height-body);
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

.profile-tweets .video-container {
  max-width: 100%;
}

.profile-info {
  padding: 0 16px;
  margin-bottom: 12px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-handle {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-bio {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.profile-bio a {
  color: var(--accent-blue);
  text-decoration: none;
}

.profile-bio a:hover {
  text-decoration: underline;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-stat {
  font-size: 15px;
  color: var(--text-secondary);
}

.profile-stat-value {
  font-weight: 700;
  color: var(--text-primary);
}

.profile-stat-dot {
  color: var(--text-secondary);
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.profile-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-bottom-color 0.2s;
  border-bottom: 2px solid transparent;
}

.profile-tab:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.profile-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.switch-notification {
  position: fixed;
  top: 80px;
  right: 24px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-content span {
  font-size: 14px;
  color: #92400e;
}

.restore-admin-btn {
  padding: 6px 14px;
  background: #d97706;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.restore-admin-btn:hover {
  background: #b45309;
}

.login-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: modalFadeIn 0.2s ease;
}

.login-modal-overlay.show {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  padding: 24px;
  animation: modalSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
}

.login-modal-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue);
  border-radius: var(--radius-full);
  color: white;
}

.login-modal-logo svg {
  width: 24px;
  height: 24px;
}

.login-modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.login-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.login-modal-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.login-modal-error {
  display: none;
  padding: 10px 12px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.login-modal-form-group {
  margin-bottom: 16px;
}

.login-modal-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.login-modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.login-modal-input:focus {
  border-color: var(--accent-blue);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.1);
}

.login-modal-input::placeholder {
  color: var(--text-muted);
}

.login-modal-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.login-modal-btn:hover {
  background: var(--accent-blue-hover);
}

.login-modal-btn:active {
  transform: scale(0.99);
}

.login-modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.login-modal-divider::before,
.login-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.login-modal-divider span {
  font-size: 14px;
  color: var(--text-muted);
}

.login-modal-btn-secondary {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-modal-btn-secondary:hover {
  background: rgba(29, 155, 240, 0.1);
}

.login-modal-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.login-modal-switch-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-weight: 700;
  cursor: pointer;
  transition: text-decoration 0.2s;
}

.login-modal-switch-btn:hover {
  text-decoration: underline;
}

/* 会员页面响应式适配 */
@media (max-width: 600px) {
  .profile-cover {
    height: 120px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .profile-avatar-row {
    margin-top: -36px;
    padding: 0 12px;
  }
  
  .profile-actions {
    padding-top: 44px;
  }
  
  .profile-info {
    padding: 0 12px;
  }
  
  .profile-name {
    font-size: 18px;
  }
  
  .profile-stats {
    gap: 12px;
  }
  
  .profile-stat {
    font-size: 13px;
  }
}

/* 关键词标签样式 */
.detail-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  margin-top: 4px;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background-color: var(--bg-secondary);
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.keyword-tag:hover {
  background-color: rgba(29, 155, 240, 0.1);
  border-color: rgba(29, 155, 240, 0.3);
  transform: translateY(-1px);
}

.keyword-tag:active {
  transform: translateY(0);
}

/* 搜索结果样式 */
.search-results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  z-index: 10;
}

.search-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-back-btn:hover {
  background-color: var(--bg-hover);
}

.search-back-btn svg {
  width: 20px;
  height: 20px;
}

.search-results-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.search-results-count {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.search-loading {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 15px;
  line-height: 1.5;
}
/* ===== 转移帖子模态框 ===== */
.transfer-modal {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: transferFadeIn 0.2s ease;
}

@keyframes transferFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.transfer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.transfer-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.transfer-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.transfer-modal-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 24px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  transition: border-color 0.2s;
}

.transfer-modal-search:focus-within {
  border-color: var(--accent-blue);
}

.transfer-modal-search svg {
  fill: var(--text-muted);
  flex-shrink: 0;
}

.transfer-modal-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.transfer-modal-input::placeholder {
  color: var(--text-muted);
}

.transfer-user-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
  min-height: 200px;
  max-height: 350px;
}

.transfer-user-list::-webkit-scrollbar {
  width: 4px;
}

.transfer-user-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.transfer-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.transfer-user-item:hover {
  background: var(--bg-hover);
}

.transfer-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.transfer-user-info {
  flex: 1;
  min-width: 0;
}

.transfer-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.transfer-user-handle {
  font-size: 13px;
  color: var(--text-muted);
}

.transfer-user-select {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}

.transfer-user-item:hover .transfer-user-select {
  background: var(--accent-blue);
  color: #fff;
}

.transfer-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.transfer-modal-footer {
  padding: 12px 24px 20px;
  display: flex;
  justify-content: flex-end;
}

.transfer-cancel-btn {
  padding: 8px 24px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
}

.transfer-cancel-btn:hover {
  background: var(--border-color);
}

.modal-overlay.show {
  display: flex !important;
}
