/* 动态相关样式 */
/* PC端频道列表默认样式 */
.channel-list { display: flex; flex-direction: column; gap: 8px; }
.channel-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f5f5f5; border-radius: 8px; cursor: pointer; transition: all 0.2s; color: #333; }
.channel-item:hover { background: #e8e8e8; color: #333; }
.channel-item.active { background: #050505; color: white; }

/* 手机端频道列表横向滚动 */
@media (max-width: 768px) {
  /* 手机端隐藏整个侧边栏，只用底部导航 */
  .sidebar {
    display: none;
  }
}

/* 暗色模式样式 */
[data-theme="dark"] .channel-item {
  background: #1a1a1a;
  color: #e0e0e0;
}

[data-theme="dark"] .channel-item:hover {
  background: #2a2a2a;
  color: #e0e0e0;
}

[data-theme="dark"] .channel-item.active {
  background: #050505;
  color: white;
}

.activity-post-box {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px dashed #000000;
  min-height: 160px;
}
.activity-user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.activity-mood-selector { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.mood-btn { font-size: 24px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 4px; transition: all 0.2s; }
.mood-btn:hover { background: #f5f5f5; transform: scale(1.2); }
.mood-btn.selected { background: #e8e8e8; transform: scale(1.1); }
.activity-input { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; font-size: 14px; resize: vertical; margin-bottom: 12px; word-break: break-all; overflow-wrap: anywhere; white-space: pre-wrap; overflow-x: hidden; }
.activity-actions { display: flex; gap: 12px; justify-content: flex-end; }
.activity-image-preview { display: flex; flex-wrap: wrap; margin-top: 12px; }

.activity-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-all;
  width: 100%;
  max-width: 100%;
}

/* 暗色模式下的动态卡片 */
body.dark-mode .activity-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-all;
  width: 100%;
  max-width: 100%;
}

body.dark-mode .activity-header {
  border-bottom: 1px solid #2a2a2a;
}

body.dark-mode .activity-content {
  color: #e0e0e0;
}

body.dark-mode .activity-time {
  color: #999;
}

body.dark-mode .activity-footer {
  border-top: 1px solid #2a2a2a;
}

body.dark-mode .activity-stats span {
  color: #ffffff;
}

/* 暗色模式下的评论框 */
body.dark-mode .activity-post-box {
  background: #1a1a1a;
  border-color: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .activity-input {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #e0e0e0;
}


body.dark-mode .activity-input:focus {
  border-color: #666;
}

body.dark-mode .mood-btn:hover {
  background: #2a2a2a;
}

body.dark-mode .mood-btn.selected {
  background: #2a2a2a;
}

/* 暗色模式下的发布框 */
body.dark-mode .activity-post-box {
  background: #1a1a1a;
  border-color: #000000;
}

/* 暗色模式下的评论样式 */
body.dark-mode .comment-item {
  background: #2a2a2a;
}

body.dark-mode .comment-username {
  color: #e0e0e0;
}

body.dark-mode .comment-text {
  color: #c0c0c0;
}

body.dark-mode .comment-input {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #e0e0e0;
}

body.dark-mode .no-comments {
  color: #999;
}

body.dark-mode .activity-comment-box {
  border-top: 1px solid #2a2a2a;
}
.activity-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.activity-user { display: flex; align-items: center; gap: 10px; }

/* 动态频道头像大小 */
.activity-post-box .user-avatar,
.activity-card .user-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}
.activity-username { font-weight: 600; display: flex; align-items: center; gap: 4px; }
.activity-time { font-size: 12px; color: #999; display: flex; align-items: center; gap: 4px; }
.mood-emoji { font-size: 16px; }
.activity-edit-btn { background: none; border: none; cursor: pointer; color: #999; padding: 4px; margin-right: 4px; }
.activity-edit-btn:hover { color: #333; }
.activity-delete-btn { background: none; border: none; cursor: pointer; color: #999; padding: 4px; }
.activity-delete-btn:hover { color: #e74c3c; }
.note-edit-btn { background: none; border: none; cursor: pointer; color: #999; padding: 4px; margin-right: 4px; }
.note-edit-btn:hover { color: #333; }
.note-delete-btn { background: none; border: none; cursor: pointer; color: #999; padding: 4px; }
.note-delete-btn:hover { color: #e74c3c; }
.activity-content {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

.activity-content * {
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  white-space: normal !important;
  overflow-x: hidden !important;
}

.activity-content div {
  margin-bottom: 8px;
}

.activity-content div:last-child {
  margin-bottom: 0;
}

/* 支持content中的HTML内容(如1688商品) */
.activity-content h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 12px 0 8px 0;
  color: inherit;
}

.activity-content img[src*="api_image_proxy.php"] {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 12px auto;
}

.activity-content a[href*="1688.com"] {
  display: inline-block;
  padding: 10px 20px;
  background: #000000;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin: 10px 0;
}

/* 笔记详情页内容样式 - 支持商品HTML展示 */
.view-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.view-content * {
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  white-space: normal !important;
  overflow-x: hidden !important;
}

/* 笔记详情页中的商品样式 */
.view-content img[src*="api_image_proxy.php"] {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 12px auto;
}

.view-content div[style*="text-align: center"] {
  margin: 16px 0;
}

.view-content a[href*="mall.hot166.com"] {
  display: block;
  padding: 12px 24px;
  background: #000000;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  margin: 20px 0;
  text-align: center;
}

.view-content h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 12px 0 8px 0;
  color: inherit;
}

/* 暗色模式下的笔记详情页内容 */
body.dark-mode .view-content {
  color: #e0e0e0;
}

body.dark-mode .view-content a[href*="mall.hot166.com"] {
  background: #2a2a2a;
  color: white;
}
.activity-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 8px; }
.activity-images img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.activity-footer { border-top: 1px solid #f0f0f0; padding-top: 8px; }
.activity-stats { display: flex; gap: 20px; }
.activity-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #1a1a1a;
}

/* 点赞和评论按钮样式 */
.activity-like-btn,
.activity-comment-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.activity-like-btn:hover,
.activity-comment-btn:hover {
  background: #f5f5f5;
  color: #333;
}

/* 现在交流按钮样式 - 黑白风格 */
.activity-discuss-btn {
  background: #1a1a1a;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.activity-discuss-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.activity-like-btn.liked {
  color: #f43f5e;
}

.activity-like-btn.liked svg {
  fill: #f43f5e !important;
}

/* 暗色模式下的按钮 */
body.dark-mode .activity-like-btn,
body.dark-mode .activity-comment-btn {
  color: #999;
}

body.dark-mode .activity-like-btn:hover,
body.dark-mode .activity-comment-btn:hover {
  background: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .activity-like-btn.liked {
  color: #f43f5e;
}

body.dark-mode .activity-like-btn.liked svg {
  fill: #f43f5e !important;
}

.activity-like-btn span,
.activity-comment-btn span {
  font-size: 14px;
}

/* 评论框样式 */
.activity-comment-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  overflow: visible;
}

.comment-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input:focus {
  border-color: #333;
}

.comment-submit-btn {
  background: #050505;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-submit-btn:hover {
  background: #1a1a1a;
}

/* 评论列表样式 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-username {
  font-weight: 600;
  font-size: 14px;
}

.comment-time {
  font-size: 12px;
  color: #999;
}

.comment-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.no-comments {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 12px;
}

/* 图片模态框样式 */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.image-modal-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  color: black;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.image-modal-close:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

/* 动态图片点击效果 */
.activity-images img {
  transition: transform 0.2s, box-shadow 0.2s;
}

.activity-images img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Flash Sale 黑白风格 */
body:not(.dark-mode) .activity-flash-sale .activity-card {
  background: #fff;
  border: 1px solid #e0e0e0;
}

body:not(.dark-mode) .activity-flash-sale .activity-header {
  border-bottom: 1px solid #e0e0e0;
  color: #1a1a1a;
}

body:not(.dark-mode) .activity-flash-sale .activity-content {
  color: #333;
}

body:not(.dark-mode) .activity-flash-sale .activity-content a {
  color: #000;
  text-decoration: underline;
}

body:not(.dark-mode) .activity-flash-sale .activity-footer {
  border-top: 1px solid #e0e0e0;
  color: #666;
}

/* 购买按钮 - 黑色风格 */
body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="background: #e63946"],
body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="background:#e63946"] {
  background: #000000 !important;
  color: #fff !important;
}

/* 暗色模式 - 购买按钮 */
body.dark-mode .activity-flash-sale .activity-content div[style*="background: #e63946"],
body.dark-mode .activity-flash-sale .activity-content div[style*="background:#e63946"] {
  background: #000000 !important;
  color: #ffffff !important;
}

/* 修复Flash Sale商城商品布局问题 - 居中的div */
body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="text-align: center"],
body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="text-align:center"] {
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
}

body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="float: left"],
body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="float:left"] {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="float: right"],
body:not(.dark-mode) .activity-flash-sale .activity-content div[style*="float:right"] {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="mall.hot166.com"],
body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="1688.com"],
body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="amazon.com"],
body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="amzn.com"] {
  background: #1a1a1a !important;
  color: #fff !important;
  text-decoration: none !important;
  display: block !important;
  width: 100% !important;
  margin: 8px 0 !important;
  padding: 12px !important;
  text-align: center !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="mall.hot166.com"]:hover,
body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="1688.com"]:hover,
body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="amazon.com"]:hover,
body:not(.dark-mode) .activity-flash-sale .activity-content a[href*="amzn.com"]:hover {
  background: #333 !important;
}

/* 暗色模式下的Flash Sale */
body.dark-mode .activity-flash-sale .activity-card {
  background: #1a1a1a;
  border: 1px solid #333;
}

body.dark-mode .activity-flash-sale .activity-header {
  border-bottom: 1px solid #333;
  color: #e0e0e0;
}

body.dark-mode .activity-flash-sale .activity-content {
  color: #ccc;
}

body.dark-mode .activity-flash-sale .activity-content a {
  color: #fff;
}

body.dark-mode .activity-flash-sale .activity-footer {
  border-top: 1px solid #333;
  color: #999;
}

/* 暗色模式 - 修复Flash Sale商城商品布局问题 */
body.dark-mode .activity-flash-sale .activity-content div[style*="text-align: center"],
body.dark-mode .activity-flash-sale .activity-content div[style*="text-align:center"] {
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
}

body.dark-mode .activity-flash-sale .activity-content div[style*="float: left"],
body.dark-mode .activity-flash-sale .activity-content div[style*="float:left"] {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

body.dark-mode .activity-flash-sale .activity-content div[style*="float: right"],
body.dark-mode .activity-flash-sale .activity-content div[style*="float:right"] {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

body.dark-mode .activity-flash-sale .activity-content a[href*="mall.hot166.com"],
body.dark-mode .activity-flash-sale .activity-content a[href*="1688.com"],
body.dark-mode .activity-flash-sale .activity-content a[href*="amazon.com"],
body.dark-mode .activity-flash-sale .activity-content a[href*="amzn.com"] {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 !important;
  padding: 12px !important;
  text-align: center !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

/* 倒计时样式 - 黑白风格 */
.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.countdown-label {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.countdown-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

.countdown-value {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
  font-size: 18px;
}

.countdown-unit {
  font-size: 12px;
  opacity: 0.9;
}

.countdown-separator {
  font-size: 18px;
  opacity: 0.8;
}

/* 手机端倒计时样式 - 只隐藏单位，保留分隔符 */
@media (max-width: 768px) {
  .countdown-unit {
    display: none;
  }
}

.countdown-expired {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* 白天模式下的倒计时 */
body:not(.dark-mode) .countdown-container {
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .countdown-label {
  color: #1a1a1a;
}

body:not(.dark-mode) .countdown-timer {
  color: #1a1a1a;
}

body:not(.dark-mode) .countdown-value {
  background: rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .countdown-expired {
  background: rgba(0, 0, 0, 0.08);
  color: #666;
}

/* 暗色模式下的倒计时 */
body.dark-mode .countdown-container {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .countdown-value {
  background: rgba(255, 255, 255, 0.1);
}

/* 搜索历史样式 */
.search-history-container {
  padding: 20px;
}

.search-channel-search {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.search-channel-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-channel-search input:focus {
  border-color: #1a1a1a;
}

.search-channel-search button {
  padding: 12px 24px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.search-channel-search button:hover {
  background: #333;
}

.search-history-container h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.search-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.search-topic-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  min-height: 80px;
  width: 100%;
  margin-bottom: 0;
}

.search-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #1a1a1a;
}

/* 暗色模式 - Search频道 */
body.dark-mode .search-history-container h2 {
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .search-channel-search {
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

body.dark-mode .search-topic-card {
  background: #1a1a1a;
  border-color: #333;
  color: #e0e0e0;
}

body.dark-mode .search-topic-card:hover {
  border-color: #a78bfa;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

body.dark-mode .search-topic-card::before {
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
}

body.dark-mode .search-topic-card:hover::before {
  opacity: 1;
}

.search-topic-info {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.search-topic-info h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.search-topic-meta {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.search-topic-meta svg {
  flex-shrink: 0;
}

.search-topic-time {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.search-topic-arrow {
  color: #9ca3af;
  transition: color 0.3s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.search-topic-card:hover .search-topic-arrow {
  color: #1a1a1a;
}

.empty-message {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

/* 暗色模式下的搜索历史 */
body.dark-mode .search-topic-card {
  background: #1a1a1a;
  border-color: #333;
  color: #e0e0e0;
}

body.dark-mode .search-topic-card:hover {
  border-color: #000000;
}

body.dark-mode .search-topic-info h3 {
  color: #f9fafb;
}

body.dark-mode .search-topic-meta {
  color: #9ca3af;
}

body.dark-mode .search-topic-time {
  color: #6b7280;
}

body.dark-mode .search-topic-arrow {
  color: #6b7280;
}

body.dark-mode .search-topic-card:hover .search-topic-arrow {
  color: #e0e0e0;
}

body.dark-mode .empty-message {
  color: #9ca3af;
}

body.dark-mode .search-channel-search {
  background: #1a1a1a;
  border-color: #333;
}

/* 视频样式 */
.video-wrapper {
  width: 100%;
  margin: 15px 0;
}

.video-wrapper iframe {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.activity-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.activity-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

body.dark-mode .activity-video-container {
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 平板端样式 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .activity-content {
    padding-left: 15px;
    padding-right: 15px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .activity-content > * {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .activity-content > *:first-child {
    padding-top: 0;
  }

  .activity-content > *:last-child {
    padding-bottom: 0;
  }

  textarea.activity-input {
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    overflow-x: auto !important;
  }
}

/* 移动端样式 (≤ 768px) */
@media (max-width: 768px) {
  .activity-content {
    padding-left: 15px;
    padding-right: 15px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .activity-content > * {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .activity-content > *:first-child {
    padding-top: 0;
  }

  .activity-content > *:last-child {
    padding-bottom: 0;
  }

  textarea.activity-input {
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    overflow-x: auto !important;
  }
}






