/* ============================================================
   川渝好门户 - 首页专业设计升级
   ============================================================ */

/* ========== 首页整体布局优化 ========== */
.home-wrap {
  max-width: var(--cy-container);
  margin: 0 auto;
  padding: var(--cy-space-5) var(--cy-space-4);
}

/* ========== 数据统计栏专业设计 ========== */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cy-space-4);
  margin-bottom: var(--cy-space-6);
}

.stat-card {
  background: var(--cy-bg-card);
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius-lg);
  padding: var(--cy-space-5);
  display: flex;
  align-items: center;
  gap: var(--cy-space-4);
  transition: var(--cy-transition-slow);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cy-primary-bg) 0%, transparent 100%);
  opacity: 0;
  transition: var(--cy-transition-slow);
  z-index: 0;
}

.stat-card:hover {
  box-shadow: var(--cy-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--cy-primary);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--cy-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.stat-icon .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.stat-icon.red {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: var(--cy-primary);
}

.stat-icon.blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--cy-blue);
}

.stat-icon.green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: var(--cy-success);
}

.stat-icon.orange {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: var(--cy-orange);
}

.stat-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.stat-info h4 {
  margin: 0;
  font-size: var(--cy-text-2xl);
  font-weight: 800;
  color: var(--cy-text);
  line-height: 1.2;
}

.stat-info p {
  margin: 2px 0 0;
  font-size: var(--cy-text-sm);
  color: var(--cy-text-muted);
}

/* ========== 频道入口卡片升级 ========== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--cy-space-3);
  margin-bottom: var(--cy-space-6);
}

.channel-card {
  background: var(--cy-bg-card);
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius-lg);
  padding: var(--cy-space-5) var(--cy-space-3);
  text-align: center;
  text-decoration: none;
  color: var(--cy-text);
  transition: var(--cy-transition-slow);
  position: relative;
  overflow: hidden;
}

.channel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cy-primary-bg) 0%, transparent 100%);
  opacity: 0;
  transition: var(--cy-transition-slow);
  z-index: 0;
}

.channel-card:hover {
  border-color: var(--cy-primary);
  transform: translateY(-4px);
  box-shadow: var(--cy-shadow-lg);
}

.channel-card:hover::before {
  opacity: 1;
}

.channel-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--cy-space-2);
  border-radius: var(--cy-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.channel-icon .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.channel-card:hover .channel-icon {
  transform: scale(1.1) rotate(5deg);
  transition: var(--cy-transition-slow);
}

.channel-name {
  font-size: var(--cy-text-base);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.channel-desc {
  font-size: var(--cy-text-xs);
  color: var(--cy-text-muted);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

/* 频道卡片新增样式 - 提升视觉层次 */
.channel-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cy-primary), var(--cy-orange));
  opacity: 0;
  transition: opacity var(--cy-transition-slow);
  z-index: 2;
}

.channel-card:hover::after {
  opacity: 1;
}

/* 频道卡片悬停效果优化 */
.channel-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(196, 30, 58, 0.15);
}

.channel-card:hover .channel-icon {
  transform: scale(1.15) rotate(8deg);
}

/* 统计卡片动画效果 */
@keyframes statCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  animation: statCardFadeIn 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* 优化频道卡片布局 */
@media (max-width: 1024px) {
  .channel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .channel-card {
    padding: var(--cy-space-3) var(--cy-space-2);
  }
  
  .channel-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .channel-icon .icon {
    width: 20px;
    height: 20px;
  }
  
  .channel-name {
    font-size: var(--cy-text-sm);
  }
  
  .channel-desc {
    display: none;
  }
}

@media (max-width: 479px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .channel-card {
    padding: var(--cy-space-2);
  }
  
  .channel-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .channel-icon .icon {
    width: 18px;
    height: 18px;
  }
  
  .channel-name {
    font-size: var(--cy-text-xs);
  }
}

/* ========== 主内容区专业设计 ========== */
.home-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--cy-space-5);
  margin-bottom: var(--cy-space-6);
}

/* ========== 内容区块优化 ========== */
.home-section {
  background: var(--cy-bg-card);
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius-lg);
  margin-bottom: var(--cy-space-5);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-section:nth-child(1) { animation-delay: 0.1s; }
.home-section:nth-child(2) { animation-delay: 0.2s; }
.home-section:nth-child(3) { animation-delay: 0.3s; }
.home-section:nth-child(4) { animation-delay: 0.4s; }

.home-section:hover {
  box-shadow: var(--cy-shadow-lg);
  transform: translateY(-2px);
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--cy-space-4) var(--cy-space-5);
  border-bottom: 1px solid var(--cy-border);
  background: var(--cy-gray-50);
  transition: all 0.3s ease;
}

.home-section-title {
  font-size: var(--cy-text-lg);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--cy-space-2);
  color: var(--cy-text);
}

.home-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--cy-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.home-section:hover .home-section-title::before {
  width: 6px;
  background: linear-gradient(180deg, var(--cy-primary), var(--cy-primary-light));
}

.home-section-more {
  font-size: var(--cy-text-sm);
  color: var(--cy-text-muted);
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: var(--cy-radius-sm);
}

.home-section-more:hover {
  color: var(--cy-primary);
  background: var(--cy-primary-bg);
  transform: translateX(3px);
}

.home-section-body {
  padding: var(--cy-space-5);
}

/* ========== 新闻列表升级 ========== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  align-items: center;
  gap: var(--cy-space-3);
  padding: var(--cy-space-3) 0;
  border-bottom: 1px solid var(--cy-border);
  transition: var(--cy-transition);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list li:hover {
  padding-left: var(--cy-space-2);
  background: var(--cy-gray-50);
  border-left: 3px solid var(--cy-primary);
}

.news-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: var(--cy-text-xs);
  font-weight: 600;
  border-radius: var(--cy-radius-sm);
  background: var(--cy-primary-bg);
  color: var(--cy-primary);
}

.news-tag.local {
  background: #fff4e6;
  color: var(--cy-orange);
}

.news-tag.hot {
  background: #ffeaea;
  color: var(--cy-danger);
}

.news-title {
  flex: 1;
  font-size: var(--cy-text-base);
  color: var(--cy-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list li:hover .news-title {
  color: var(--cy-primary);
}

.news-date {
  flex-shrink: 0;
  font-size: var(--cy-text-sm);
  color: var(--cy-text-muted);
}

/* ========== 论坛帖子列表升级 ========== */
.thread-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.thread-item {
  display: flex;
  align-items: center;
  gap: var(--cy-space-3);
  padding: var(--cy-space-3) 0;
  border-bottom: 1px solid var(--cy-border);
  transition: var(--cy-transition);
}

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

.thread-item:hover {
  background: var(--cy-gray-50);
  padding-left: var(--cy-space-2);
  border-left: 3px solid var(--cy-primary);
}

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

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

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

.thread-title {
  font-size: var(--cy-text-base);
  color: var(--cy-text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-item:hover .thread-title {
  color: var(--cy-primary);
}

.thread-meta {
  font-size: var(--cy-text-xs);
  color: var(--cy-text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: var(--cy-space-2);
}

.thread-meta .thread-forum {
  background: var(--cy-primary-bg);
  color: var(--cy-primary);
  padding: 2px 6px;
  border-radius: var(--cy-radius-sm);
  font-size: 11px;
}

.thread-meta .thread-author {
  color: var(--cy-text-secondary);
}

.thread-meta .thread-date {
  color: var(--cy-text-muted);
}

.thread-stats {
  display: flex;
  gap: var(--cy-space-4);
  font-size: var(--cy-text-sm);
  color: var(--cy-text-muted);
  flex-shrink: 0;
}

.thread-stats .thread-views,
.thread-stats .thread-replies {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 川渝特色板块样式 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cy-space-4);
}

.featured-item {
  background: var(--cy-bg-card);
  border: 1px solid var(--cy-gray-200);
  border-radius: var(--cy-radius-lg);
  padding: var(--cy-space-4);
  transition: var(--cy-transition);
  box-shadow: var(--cy-shadow-sm);
}

.featured-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--cy-shadow-md);
  border-color: var(--cy-primary);
}

.featured-icon {
  font-size: 32px;
  margin-bottom: var(--cy-space-2);
}

.featured-title {
  font-size: var(--cy-text-lg);
  font-weight: 700;
  margin-bottom: var(--cy-space-2);
  color: var(--cy-text);
}

.featured-desc {
  font-size: var(--cy-text-sm);
  color: var(--cy-text-muted);
  margin-bottom: var(--cy-space-3);
  line-height: 1.4;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--cy-text-sm);
  color: var(--cy-primary);
  text-decoration: none;
  transition: var(--cy-transition);
}

.featured-link:hover {
  color: var(--cy-primary-dark);
  gap: 6px;
}

/* 响应式优化 */
@media (max-width: 767px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: var(--cy-space-3);
  }
  
  .thread-item {
    padding: var(--cy-space-2) 0;
    gap: var(--cy-space-2);
  }
  
  .thread-title {
    font-size: var(--cy-text-sm);
  }
  
  .thread-meta {
    font-size: var(--cy-text-xs);
    gap: var(--cy-space-1);
  }
  
  .thread-stats {
    gap: var(--cy-space-2);
    font-size: var(--cy-text-xs);
  }
}

/* ========== 侧边栏专业设计 ========== */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--cy-space-5);
}

.sidebar-box {
  background: var(--cy-bg-card);
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius-lg);
  overflow: hidden;
}

.sidebar-box-header {
  padding: var(--cy-space-3) var(--cy-space-4);
  border-bottom: 1px solid var(--cy-border);
  font-weight: 700;
  font-size: var(--cy-text-base);
  background: var(--cy-gray-50);
  color: var(--cy-text);
}

.sidebar-box-body {
  padding: var(--cy-space-4);
}

/* 快捷入口升级 */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cy-space-2);
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--cy-space-3) var(--cy-space-2);
  border-radius: var(--cy-radius-sm);
  text-decoration: none;
  color: var(--cy-text-secondary);
  font-size: var(--cy-text-sm);
  transition: var(--cy-transition);
}

.quick-link:hover {
  background: var(--cy-bg-hover);
  color: var(--cy-primary);
}

.quick-link-icon {
  font-size: 24px;
}

/* 热门标签升级 */
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cy-space-2);
}

.hot-tag {
  padding: 4px 12px;
  background: var(--cy-gray-50);
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius-full);
  font-size: var(--cy-text-sm);
  color: var(--cy-text-secondary);
  text-decoration: none;
  transition: var(--cy-transition);
}

.hot-tag:hover {
  border-color: var(--cy-primary);
  color: var(--cy-primary);
  background: var(--cy-primary-bg);
}

/* ========== 微博板块样式 ========== */
.weibo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--cy-space-4);
}

.weibo-item {
  background: var(--cy-bg-card);
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius-lg);
  padding: var(--cy-space-4);
  transition: var(--cy-transition);
  animation: fadeInUp 0.6s ease-out;
}

.weibo-item:hover {
  box-shadow: var(--cy-shadow-md);
  transform: translateY(-4px);
  border-color: var(--cy-primary);
}

.weibo-header {
  display: flex;
  align-items: center;
  gap: var(--cy-space-3);
  margin-bottom: var(--cy-space-3);
}

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

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

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

.weibo-username {
  font-size: var(--cy-text-sm);
  font-weight: 600;
  color: var(--cy-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.weibo-username:hover {
  color: var(--cy-primary);
}

.weibo-time {
  font-size: var(--cy-text-xs);
  color: var(--cy-text-muted);
}

.weibo-content {
  font-size: var(--cy-text-sm);
  color: var(--cy-text);
  line-height: 1.5;
  margin-bottom: var(--cy-space-3);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.weibo-images {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cy-space-2);
  margin-bottom: var(--cy-space-3);
}

.weibo-image {
  width: 80px;
  height: 80px;
  border-radius: var(--cy-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.weibo-stats {
  display: flex;
  gap: var(--cy-space-4);
  font-size: var(--cy-text-xs);
  color: var(--cy-text-muted);
}

.weibo-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== 最新微博侧边栏样式优化 ========== */
.sidebar-box .weibo-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--cy-border);
}

.sidebar-box .weibo-item:last-child {
  border-bottom: none;
}

.sidebar-box .weibo-item > div {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
}

.sidebar-box .weibo-avatar {
  flex-shrink: 0;
}

.sidebar-box .weibo-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-box .weibo-content {
  flex: 1;
  min-width: 0;
}

.sidebar-box .weibo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.sidebar-box .weibo-username {
  font-weight: 600;
  color: var(--cy-text);
  font-size: var(--cy-text-sm);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  display: block;
}

.sidebar-box .weibo-username:hover {
  color: var(--cy-primary);
}

.sidebar-box .weibo-time {
  font-size: var(--cy-text-xs);
  color: var(--cy-text-muted);
}

.sidebar-box .weibo-text {
  font-size: var(--cy-text-sm);
  line-height: 1.5;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-box .weibo-images {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sidebar-box .weibo-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-box .weibo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-box .weibo-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.sidebar-box .weibo-action {
  font-size: var(--cy-text-xs);
  color: var(--cy-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--cy-transition);
}

.sidebar-box .weibo-action:hover {
  color: var(--cy-primary);
}

.sidebar-box .more-link {
  font-size: var(--cy-text-sm);
  color: var(--cy-primary);
  text-decoration: none;
  transition: var(--cy-transition);
}

.sidebar-box .more-link:hover {
  color: var(--cy-primary-dark);
  text-decoration: underline;
}

/* ========== 响应式设计优化 ========== */
/* 超大屏幕设备 (1200px - 1440px) */
@media (min-width: 1200px) {
  .home-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--cy-space-4);
  }
  
  .home-main {
    grid-template-columns: 1fr 360px;
    gap: var(--cy-space-6);
  }
  
  .channel-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--cy-space-4);
  }
  
  .home-sidebar {
    gap: var(--cy-space-6);
  }
  
  /* 优化超大屏幕上的内容布局 */
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cy-space-5);
  }
  
  .news-list li {
    padding: var(--cy-space-4) 0;
  }
  
  .thread-item {
    padding: var(--cy-space-4) 0;
  }
}

/* 超超大屏幕设备 (1440px 以上) */
@media (min-width: 1440px) {
  .home-wrap {
    max-width: 1400px;
    padding: var(--cy-space-6) var(--cy-space-5);
  }
  
  .home-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--cy-space-5);
  }
  
  .home-main {
    grid-template-columns: 1fr 380px;
    gap: var(--cy-space-7);
  }
  
  .channel-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--cy-space-5);
  }
  
  .home-sidebar {
    gap: var(--cy-space-7);
  }
  
  /* 优化超超大屏幕上的内容布局 */
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cy-space-6);
  }
  
  .news-list li {
    padding: var(--cy-space-4) 0;
  }
  
  .thread-item {
    padding: var(--cy-space-4) 0;
  }
  
  .stat-card {
    padding: var(--cy-space-6);
  }
  
  .channel-card {
    padding: var(--cy-space-6);
  }
  
  .home-section-body {
    padding: var(--cy-space-6);
  }
}

/* 大屏幕设备 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .home-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--cy-space-3);
  }
  
  .home-main {
    grid-template-columns: 1fr 300px;
    gap: var(--cy-space-5);
  }
  
  .channel-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--cy-space-3);
  }
  
  .home-sidebar {
    gap: var(--cy-space-5);
  }
}

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .home-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--cy-space-3);
  }
  
  .home-main {
    grid-template-columns: 1fr;
    gap: var(--cy-space-5);
  }
  
  .channel-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--cy-space-2);
  }
  
  .home-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--cy-space-4);
  }
  
  .sidebar-box {
    margin-bottom: 0;
  }
}

/* 小屏平板/大号手机 (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .home-wrap {
    padding: var(--cy-space-3);
  }
  
  .home-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--cy-space-2);
  }
  
  .stat-card {
    padding: var(--cy-space-3);
    gap: var(--cy-space-2);
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .stat-info h4 {
    font-size: var(--cy-text-xl);
  }
  
  .stat-info p {
    font-size: var(--cy-text-xs);
  }
  
  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cy-space-2);
  }
  
  .channel-card {
    padding: var(--cy-space-3) var(--cy-space-2);
  }
  
  .channel-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .channel-name {
    font-size: var(--cy-text-sm);
  }
  
  .channel-desc {
    display: none;
  }
  
  .news-date {
    display: none;
  }
  
  .home-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--cy-space-4);
  }
  
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cy-space-1);
  }
  
  .quick-link {
    padding: var(--cy-space-2) var(--cy-space-1);
    font-size: var(--cy-text-xs);
  }
  
  .quick-link-icon {
    font-size: 20px;
  }
  
  .hot-tags {
    gap: var(--cy-space-1);
  }
  
  .hot-tag {
    padding: 3px 8px;
    font-size: var(--cy-text-xs);
  }
}

/* 手机设备 (max-width: 575px) */
@media (max-width: 575px) {
  .home-wrap {
    padding: var(--cy-space-2);
  }
  
  .home-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--cy-space-1);
  }
  
  .stat-card {
    padding: var(--cy-space-2);
    gap: var(--cy-space-1);
  }
  
  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .stat-info h4 {
    font-size: var(--cy-text-lg);
  }
  
  .stat-info p {
    font-size: var(--cy-text-xs);
  }
  
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--cy-space-1);
  }
  
  .channel-card {
    padding: var(--cy-space-2);
  }
  
  .channel-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .channel-name {
    font-size: var(--cy-text-xs);
  }
  
  .home-section-header {
    padding: var(--cy-space-3) var(--cy-space-2);
  }
  
  .home-section-title {
    font-size: var(--cy-text-base);
  }
  
  .home-section-more {
    font-size: var(--cy-text-xs);
  }
  
  .home-section-body {
    padding: var(--cy-space-3);
  }
  
  .news-list li {
    padding: var(--cy-space-2) 0;
    gap: var(--cy-space-2);
  }
  
  .news-tag {
    padding: 1px 6px;
    font-size: var(--cy-text-xs);
  }
  
  .news-title {
    font-size: var(--cy-text-sm);
  }
  
  .thread-item {
    padding: var(--cy-space-2) 0;
    gap: var(--cy-space-2);
  }
  
  .thread-title {
    font-size: var(--cy-text-sm);
  }
  
  .thread-meta {
    font-size: var(--cy-text-xs);
  }
  
  .thread-stats {
    gap: var(--cy-space-2);
    font-size: var(--cy-text-xs);
  }
  
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cy-space-1);
  }
  
  .quick-link {
    padding: var(--cy-space-1);
    font-size: var(--cy-text-xs);
  }
  
  .quick-link-icon {
    font-size: 18px;
  }
  
  .sidebar-box-header {
    padding: var(--cy-space-2) var(--cy-space-3);
    font-size: var(--cy-text-sm);
  }
  
  .sidebar-box-body {
    padding: var(--cy-space-3);
  }
  
  .hot-tags {
    gap: var(--cy-space-1);
  }
  
  .hot-tag {
    padding: 2px 6px;
    font-size: var(--cy-text-xs);
  }
  
  /* 特殊响应式调整 */
  .news-list li {
    flex-wrap: wrap;
  }
  
  .news-tag {
    order: -1;
    margin-right: auto;
  }
  
  .news-title {
    width: 100%;
    margin-top: 4px;
  }
  
  .news-date {
    display: none;
  }
}
