/* ===== 轮播图 ===== */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.banner-list {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-list li {
    min-width: 100%;
}

.banner-list li img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: block;
}

.banner-dots span.active {
    background-color: #e94560;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 20px;
    border: none;
    cursor: pointer;
    line-height: 40px;
    text-align: center;
}

.banner-btn:hover {
    background-color: rgba(233, 69, 96, 0.8);
}

.banner-prev { left: 0; }
.banner-next { right: 0; }

/* ===== 限时秒杀 ===== */
.flash-sale {
    background-color: #fff;
    margin-top: 20px;
    padding: 20px;
    border-radius: 4px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 20px;
    color: #1a1a2e;
    border-left: 4px solid #e94560;
    padding-left: 12px;
}

.section-title a {
    font-size: 13px;
    color: #e94560;
}

.section-title a:hover {
    text-decoration: underline;
}

.flash-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.flash-timer span.num {
    background-color: #1a1a2e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
}

.flash-list {
    display: flex;
    gap: 16px;
}

.flash-item {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.flash-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.flash-item img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin: 0 auto 12px;
}

.flash-item .flash-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash-item .flash-price {
    color: #e94560;
    font-size: 16px;
    font-weight: bold;
}

.flash-item .flash-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* ===== 商品分类列表 ===== */
.product-section {
    background-color: #fff;
    margin-top: 20px;
    padding: 20px;
    border-radius: 4px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.product-card {
    width: calc(25% - 12px);
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background-color: #fff;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-card a {
    display: block;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-info h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .price {
    color: #e94560;
    font-size: 18px;
    font-weight: bold;
}

.product-info .price-old {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 6px;
}

.product-card .btn-cart {
    display: block;
    margin: 0 12px 12px;
    background-color: #0f3460;
    color: #fff;
    text-align: center;
    padding: 7px 0;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

.product-card .btn-cart:hover {
    background-color: #e94560;
}