/* 极点 · 可后台控制的丰富模块设计
   所有增强都基于现有模块系统，可在「首页布局」中增删排序 */

/* 模块通用容器更充实 */
.module, .content-grid > section, .hero-grid {
  margin-bottom: 8px !important;
}

/* 数据看板模块（stats）更丰富 */
.stats-mod, .metrics {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 14px !important;
  margin: 16px 0 !important;
}

.metric, .stats-mod > div {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px 16px !important;
  text-align: center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: transform 0.2s ease !important;
}

.metric:hover, .stats-mod > div:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.metric strong, .stats-mod b {
  display: block !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}

.metric span, .stats-mod small {
  font-size: 13px !important;
  color: #64748b !important;
}

/* 推广横幅（banner）更精致 */
.banner, .promo-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  margin: 20px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.banner h3, .promo-banner h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  margin-bottom: 6px !important;
}

.banner p, .promo-banner p {
  color: #3b82f6 !important;
  font-size: 14px !important;
  margin: 0 !important;
}

/* 自定义文字区更丰富 */
.custom-block, .text-module {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin: 16px 0 !important;
  line-height: 1.8 !important;
}

.custom-block h2, .text-module h2 {
  font-size: 22px !important;
  margin-bottom: 12px !important;
  color: #1e293b !important;
}

/* 社区话题列表更充实 */
.post-row, .forum-item {
  display: flex !important;
  gap: 14px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  align-items: flex-start !important;
}

.post-row:last-child {
  border-bottom: none !important;
}

.post-row h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  color: #1e293b !important;
}

.post-summary {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

/* 商品卡片更丰富 */
.product-card .product-price {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #f97316 !important;
  margin: 8px 0 !important;
}

.product-card .product-price small {
  font-size: 13px !important;
  color: #94a3b8 !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
  margin-left: 6px !important;
}

/* 侧栏卡片更充实 */
.sidebar-card {
  margin-bottom: 16px !important;
}

.sidebar-card-heading {
  padding: 16px 18px 0 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}

/* 模块间间距更舒适 */
.section-head + .topics,
.section-head + .articles,
.section-head + .content-grid {
  margin-top: 4px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .stats-mod, .metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .banner, .promo-banner {
    padding: 20px !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  .custom-block, .text-module {
    padding: 20px !important;
  }
  .metric strong, .stats-mod b {
    font-size: 24px !important;
  }
}

/* 深色模式 */
.dark .metric, .dark .stats-mod > div,
.dark .custom-block, .dark .text-module,
.dark .banner {
  background: #1e293b !important;
  border-color: #334155 !important;
}
.dark .metric strong, .dark .stats-mod b {
  color: #60a5fa !important;
}
