/* =============================================================
   首页紧凑化样式（index_simple.html）
   作用域统一隔离在 .home-compact 内，不污染 moban / 默认样式。
   仅覆盖间距与版式，复用 moban 的 .single-product / .sticker 等。
   ============================================================= */

/* 1. 压掉 moban 的 80px 大间距，整页更紧凑 */
.home-compact .slider-area { margin-top: 0; }
.home-compact .mt-80 { margin-top: 24px; }

/* 2. 通用面板：把每个区块包成「标题条 + 内容区」的卡片，消除“散”的观感 */
.hp-panel {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
}
.hp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
    border-bottom: 2px solid #ff6a00;
    background: #fafafa;
}
.hp-panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 46px;
}
.hp-panel-head .more { font-size: 12px; color: #999; }
.hp-panel-head .more:hover { color: #ff6a00; }
.hp-panel-body { padding: 14px 16px 18px; }

/* 3. 信息卡片网格（置顶 / 分类） */
.hp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.hp-grid-5 { grid-template-columns: repeat(5, 1fr); }

.hp-card .single-product {
    margin: 0;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding-bottom: 8px;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.hp-card:hover .single-product {
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    border-color: #ffd2ad;
}
.hp-grid .product-img {
    height: 150px;
    overflow: hidden;
    position: relative;
}
.hp-grid .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-grid .product-content { padding: 8px 6px 0; }
.hp-grid .product-content > h4 { margin: 0 0 6px; }
.hp-grid .product-content > h4 > a { font-size: 13px; line-height: 18px; }
.hp-grid .product-reviews { margin-top: 2px; font-size: 13px; }

/* sticker 文字保持白色（原模板内联样式，这里统一） */
.home-compact .sticker a { color: #fff; }

/* 4. 最新信息：两列紧凑列表，带虚线分隔与分类标签 */
.hp-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    column-count: 2;
    column-gap: 36px;
}
.hp-list li {
    break-inside: avoid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    line-height: 38px;
    font-size: 14px;
}
.hp-list li a {
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.hp-list li a:hover { color: #ff6a00; }
.hp-list .hp-cat {
    color: #aaa;
    font-size: 12px;
    margin-left: 12px;
    flex: none;
}

/* 5. 响应式：平板 3 列、手机 2 列、超小 1 列 */
@media (max-width: 992px) {
    .hp-grid,
    .hp-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .hp-grid,
    .hp-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .hp-list { column-count: 1; }
}
@media (max-width: 480px) {
    .hp-grid,
    .hp-grid-5 { grid-template-columns: 1fr; }
}
