.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 40px 0;
}

/* ================= 首屏横幅 ================= */
.home-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 60%, #ecfeff 100%);
  border: 1px solid #e8ecf7;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.home-hero-text {
  max-width: 560px;
}

.home-hero-text h1 {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.home-hero-text p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  line-height: 1;
  border-radius: 22px;
}

.btn-ghost {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}

.btn-ghost:hover {
  border-color: #000;
}

/* 横幅右侧数据 */
.home-hero-stats {
  display: flex;
  gap: 32px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #fff;
  border-radius: 16px;
  padding: 24px 32px;
}

.home-hero-stats strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.home-hero-stats span {
  font-size: 12px;
  color: #888;
}

/* ================= 通用区块 ================= */
.home-section {
  margin-bottom: 36px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 12px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.section-more {
  font-size: 13px;
  color: #4f46e5;
}

.section-more:hover {
  color: #312e81;
}

/* ================= 热门分类 ================= */
.home-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.home-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-cat:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.home-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-cat-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.home-cat-count {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ================= 双栏区块（排行榜 + 资讯） ================= */
.home-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.home-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px;
}

/* 热榜条目 */
.hot-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.hot-rank-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hot-rank-index {
  width: 22px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  color: #c0c4cc;
  text-align: center;
}

.hot-rank-index.top1 {
  color: #f59e0b;
}

.hot-rank-index.top2 {
  color: #94a3b8;
}

.hot-rank-index.top3 {
  color: #c2703d;
}

.hot-rank-info {
  flex: 1;
  min-width: 0;
}

.hot-rank-name {
  font-size: 14px;
  font-weight: 600;
}

.hot-rank-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.hot-rank-score {
  font-size: 14px;
  font-weight: 600;
  color: #f59e0b;
}

/* 资讯条目 */
.home-news-item {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.home-news-item:first-child {
  padding-top: 0;
}

.home-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-news-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-title:hover {
  color: #4f46e5;
}

.home-news-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}

/* ================= 发布引导 ================= */
.home-cta {
  background: #111;
  color: #fff;
  border-radius: 20px;
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.home-cta h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.home-cta p {
  font-size: 14px;
  color: #bbb;
}

/* ================= 响应式适配 ================= */
@media (max-width: 1400px) {
  .container {
    padding: 30px 20px;
  }
}

@media (max-width: 1024px) {
  .home-hero {
    padding: 32px;
  }

  .home-hero-text h1 {
    font-size: 30px;
  }

  .home-hero-stats {
    gap: 24px;
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  .home-hero {
    padding: 24px;
    margin-bottom: 24px;
  }

  .home-hero-text h1 {
    font-size: 24px;
  }

  .home-hero-stats {
    width: 100%;
    justify-content: space-around;
    gap: 0;
    padding: 16px;
  }

  .home-hero-stats strong {
    font-size: 20px;
  }

  .home-cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-twocol {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-panel {
    padding: 20px;
  }

  .home-section {
    margin-bottom: 28px;
  }

  .home-cta {
    padding: 24px;
  }

  .home-cta h2 {
    font-size: 20px;
  }
}

/* 首页空状态 */
.empty {
  padding: 40px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}
