/* ============================================================
   首页独有样式
   仅适用于首页（index/index/index）
   不与其他页面共享
   ============================================================ */

/* ============================================================
   1. Banner 区域（覆盖公共样式，微调）
   ============================================================ */
.banner-wrap {
    margin: 12px 12px 8px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #dfe6e9;
    min-height: 120px;
}

.banner-slider .slide .slide-label {
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 20px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 16px;
    letter-spacing: 2px;
}

.banner-dots .dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   2. 快捷导航
   ============================================================ */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: #fff;
    margin: 0 12px 10px;
    padding: 14px 4px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav-grid .nav-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-grid .nav-item .icon.orange {
    background: linear-gradient(135deg, #ff9a56, #ff6b35);
}
.nav-grid .nav-item .icon.blue {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
}
.nav-grid .nav-item .icon.green {
    background: linear-gradient(135deg, #55efc4, #00b894);
}
.nav-grid .nav-item .icon.purple {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.nav-grid .nav-item .label {
    font-size: 12px;
    color: #2d3436;
    font-weight: 500;
}

/* ============================================================
   3. 商品列表标题
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 6px;
}

.section-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: #ff6b35;
}

.section-header .more {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.section-header .more:active {
    opacity: 0.6;
}

/* ============================================================
   4. 商品列表
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 100px;
}

.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-item:active {
    transform: scale(0.97);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.product-item .img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.product-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.product-item .info {
    padding: 10px 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-item .info .title {
    font-size: 13px;
    font-weight: 500;
    color: #2d3436;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 36px;
}

.product-item .info .price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.product-item .info .price-row .price {
    font-size: 18px;
    font-weight: 700;
    color: #f93b1d;
}

.product-item .info .price-row .price .symbol {
    font-size: 12px;
    font-weight: 600;
}

.product-item .info .price-row .origin-price {
    font-size: 12px;
    color: #b2bec3;
    text-decoration: line-through;
}

.product-item .info .sale-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.product-item .info .sale-row .tag {
    background: #ff6b35;
    color: #fff;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 18px;
    font-weight: 500;
}

/* ============================================================
   5. 加载更多
   ============================================================ */
.load-more {
    text-align: center;
    padding: 12px 0 30px;
    color: #b2bec3;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.load-more .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #eee;
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-more .hidden {
    display: none;
}

/* ============================================================
   6. 响应式
   ============================================================ */
@media (max-width: 420px) {
    .nav-grid .nav-item .icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .product-item .info .price-row .price {
        font-size: 16px;
    }

    .banner-slider .slide .slide-label {
        font-size: 14px;
        padding: 4px 14px;
    }

    .banner-slider .slide {
        font-size: 18px;
    }
}

@media (min-width: 600px) {
    .product-grid {
        gap: 14px;
        padding: 0 20px 100px;
    }

    .banner-wrap {
        margin: 16px 20px 12px;
    }

    .nav-grid {
        margin: 0 20px 14px;
        padding: 18px 8px 16px;
    }
}