/*
  首页「热门系列」区块
  ──────────────────
  数据来自后台「产品 → 系列 → 首页热门」（la_product_series.is_hot），
  最多 5 个，按 sort 倒序；一个都没勾就整块隐藏。

  结构（由 HomeHotSeriesService 生成）：
    <div class="korono-hot-series" data-korono-hot-series="1">
      <div class="korono-hot-list">
        <a class="korono-hot-card" href="/products.html?series[]=KOR-L01">
          <span class="korono-hot-thumb"><img src="..."></span>
          <span class="korono-hot-name">轻型白尼脚轮</span>
          <span class="korono-hot-code">KOR-L01</span>
        </a>
        …
      </div>
    </div>

  【为什么全部 #top 前缀 + !important】主题对 .flex_column / .avia-* 有一套样式，
  这块要完全自己控制排版，避免被主题的列宽规则干扰。
*/

/*
  【必须是整行 + 高度自适应】这个区块挂在主题的 builder 行里（兄弟节点是「热门系列」标题列）。
  · 没有宽度约束时会被挤成几十像素宽 → 卡片全叠在右边（实测）
  · 主题给列设过等高，导致我们这块被撑到 800+ px 高、底下留一大片空白（实测）
  所以宽度强制整行，高度强制 auto，并清掉浮动。
*/
#top .korono-hot-series {
  flex: 1 0 100% !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
}

#top .korono-hot-series .korono-hot-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

#top .korono-hot-series .korono-hot-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 12px 10px 14px !important;
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

#top .korono-hot-series .korono-hot-card:hover {
  border-color: #e5b3b3 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

#top .korono-hot-series .korono-hot-thumb {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 140px !important;
  margin-bottom: 10px !important;
  background: #f8f8f8 !important;
  border-radius: 3px;
  overflow: hidden;
}

#top .korono-hot-series .korono-hot-thumb img {
  max-width: 92% !important;
  max-height: 130px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

#top .korono-hot-series .korono-hot-thumb.is-empty {
  background: repeating-linear-gradient(45deg, #f7f7f7, #f7f7f7 8px, #f2f2f2 8px, #f2f2f2 16px) !important;
}

#top .korono-hot-series .korono-hot-thumb-code {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  color: #b9b9b9;
}

#top .korono-hot-series .korono-hot-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #222 !important;
  text-align: center !important;
}

#top .korono-hot-series .korono-hot-code {
  margin-top: 3px !important;
  font-family: Consolas, Monaco, monospace;
  font-size: 11.5px !important;
  color: #a81010 !important;
}

#top .korono-hot-series .korono-hot-card:hover .korono-hot-name {
  color: #a81010 !important;
}

@media (max-width: 1100px) {
  #top .korono-hot-series .korono-hot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  #top .korono-hot-series .korono-hot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
