/* =====================
   home.css — 手机优先
   ===================== */

/* Hero */
.h-hero {
    background: linear-gradient(150deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 52px 20px 44px;
    text-align: center;
}
.h-hero__tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.h-hero__title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 1px;
}
.h-hero__sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 24px;
}
.h-hero__btns {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.h-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.h-btn--solid {
    background: #e94560;
    color: #fff;
}
.h-btn--solid:hover { background: #d63651; }
.h-btn--ghost {
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
}
.h-btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* 数据栏 */
.h-stats {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.h-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.h-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-right: 1px solid #f0f0f0;
}
.h-stats__item:last-child { border-right: none; }
.h-stats__num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #e94560;
    line-height: 1;
    margin-bottom: 4px;
}
.h-stats__label {
    font-size: 0.68rem;
    color: #888;
    text-align: center;
}

/* Section 标题 */
.h-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    padding: 20px 16px 12px;
    margin: 0;
}

/* 优势列表 */
.h-features {
    background: #fff;
    margin-top: 8px;
}
.h-features__list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.h-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}
.h-feat:last-child { border-bottom: none; }
.h-feat__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.h-feat h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 3px;
}
.h-feat p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* 产品列表 */
.h-products {
    background: #fff;
    margin-top: 8px;
    padding-bottom: 8px;
}
.h-products__list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.h-prod {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}
.h-prod:last-child { border-bottom: none; }
.h-prod__info { flex: 1; min-width: 0; }
.h-prod__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.h-prod__desc {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.h-prod__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.h-prod__price {
    font-size: 1rem;
    font-weight: 800;
    color: #e94560;
    white-space: nowrap;
}
.h-prod__price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #aaa;
}
.h-prod__btn {
    display: inline-block;
    padding: 5px 14px;
    background: #e94560;
    color: #fff;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.h-prod__btn:hover { background: #d63651; }

/* 查看全部按钮 */
.h-more-btn {
    display: block;
    text-align: center;
    padding: 14px;
    color: #e94560;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #f5f5f5;
}

/* 平板及以上：稍微宽松一些 */
@media (min-width: 600px) {
    .h-hero { padding: 70px 30px 60px; }
    .h-hero__title { font-size: 2.4rem; }
    .h-features__list,
    .h-products__list { padding: 0 24px 16px; }
    .h-section-title { padding: 24px 24px 14px; }
    .h-stats__num { font-size: 1.25rem; }
    .h-stats__label { font-size: 0.72rem; }
}

@media (min-width: 900px) {
    .h-hero { padding: 90px 40px 80px; }
    .h-hero__title { font-size: 3rem; }
    .h-features__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 0 32px 16px;
    }
    .h-feat { border-right: 1px solid #f5f5f5; padding: 18px 20px; }
    .h-feat:nth-child(even) { border-right: none; }
    .h-products__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding: 0 32px 16px;
    }
    .h-prod {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: none;
        border-right: 1px solid #f5f5f5;
        padding: 16px 20px;
    }
    .h-prod:last-child { border-right: none; }
    .h-prod__right { flex-direction: row; align-items: center; gap: 12px; }
    .h-section-title { padding: 28px 32px 16px; }
}
