/* ========================================
   轮播图 (全屏圆角卡片)
   ======================================== */
.banner-slider {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    height: 180px;
    background: var(--gray-light);
    box-shadow: var(--shadow-sm);
}
.banner-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.banner-item {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
}
.banner-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}
.banner-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}
.banner-dots .dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   分类导航 (横向滚动 + 毛玻璃)
   ======================================== */
.category-nav {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    box-shadow: var(--shadow-sm);
}
.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.category-scroll::-webkit-scrollbar {
    display: none;
}
.category-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    min-width: 64px;
    transition: transform 0.2s;
}
.category-item:active {
    transform: scale(0.92);
}
.cat-icon {
    font-size: 30px;
    margin-bottom: 4px;
}
.cat-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-dark);
    white-space: nowrap;
}

/* ========================================
   商品列表 (卡片网格)
   ======================================== */
.goods-list {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 16px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.list-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.3px;
}
.list-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}
.list-more {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg);
    transition: background 0.2s;
}
.list-more:active {
    background: var(--gray-light);
}

.goods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.goods-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.goods-card:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-sm);
}
.goods-image {
    position: relative;
    padding-top: 100%;
    background: var(--gray-light);
    overflow: hidden;
}
.goods-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.goods-card:active .goods-image img {
    transform: scale(1.02);
}
.goods-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}
.goods-info {
    padding: 10px 12px 14px;
}
.goods-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 40px;
    margin-bottom: 4px;
}
.goods-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    margin-bottom: 6px;
}
.goods-price {
    color: var(--primary-start);
    font-weight: 700;
    font-size: 16px;
}
.goods-num {
    color: var(--gray);
    font-size: 12px;
}
.progress-bar {
    height: 6px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 6px 0 4px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-start));
    border-radius: 4px;
    transition: width 0.6s ease;
}
.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

/* ========================================
   往期中奖 (列表)
   ======================================== */
.reward-list {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 16px 8px;
    box-shadow: var(--shadow-sm);
}
.reward-list .list-header {
    margin-bottom: 12px;
}
.reward-scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.reward-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}
.reward-item:last-child {
    border-bottom: none;
}
.reward-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-bg);
    flex-shrink: 0;
}
.reward-info {
    flex: 1;
    min-width: 0;
}
.reward-name {
    font-size: 15px;
    font-weight: 600;
}
.reward-content {
    font-size: 13px;
    color: var(--gray-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reward-content::before {
    content: '🎉 ';
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.page-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-light);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.page-btn:active {
    transform: scale(0.92);
}
.page-btn.active {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 61, 0, 0.25);
}