/* 首页样式 */
body {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.banner-slider {
    background: transparent;
    padding: 30px 0;
}

.banner-with-category {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

.slider-wrapper {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
}

.slider-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* 首页商品分类菜单 */
.home-category-menu {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.category-menu-title {
    background: linear-gradient(135deg, #ff5000 0%, #ff6600 100%);
    color: #fff;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.2);
}

.home-category-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-category-menu .category-item {
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
    position: relative;
}

.home-category-menu .category-item:last-child {
    border-bottom: none;
}

.home-category-menu .category-item a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    gap: 12px;
}

.home-category-menu .category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff5000, #ff6600);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.home-category-menu .category-item:hover::before {
    transform: scaleY(1);
}

.home-category-menu .category-item:hover {
    background: linear-gradient(90deg, #fff2e8 0%, #fff 100%);
}

.home-category-menu .category-item:hover a {
    color: #ff5000;
    padding-left: 24px;
}

.category-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.category-arrow {
    color: #ccc;
    font-size: 20px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.home-category-menu .category-item:hover .category-arrow {
    color: #ff5000;
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-with-category {
        grid-template-columns: 200px 1fr;
        gap: 15px;
    }
    
    .slider-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-with-category {
        grid-template-columns: 1fr;
    }
    
    .home-category-menu {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .category-menu-title {
        padding: 15px;
        font-size: 16px;
    }
    
    .home-category-menu .category-item a {
        padding: 14px 15px;
    }
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.6);
}

.slider-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
    border-color: #fff;
}

.main-content {
    padding: 40px 0 60px;
    background: transparent;
}

.product-section {
    margin-bottom: 60px;
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.product-section:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(to right, #ff5000, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff5000, #ff6600);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #ff5000, #ff6600);
    border-radius: 2px;
}

.section-header a {
    color: #999;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
}

.section-header a:hover {
    color: #ff5000;
    background: #fff2e8;
    transform: translateX(3px);
}

/* 优惠活动区域 */
.promotion-section {
    padding: 40px 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    position: relative;
}

.promotion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 80, 0, 0.2), transparent);
}

.promotion-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.promotion-coupons,
.promotion-discounts {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 80, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.promotion-coupons::before,
.promotion-discounts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff5000, #ff6600, #ff5000);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.promotion-coupons:hover,
.promotion-discounts:hover {
    box-shadow: 0 10px 40px rgba(255, 80, 0, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 80, 0, 0.2);
}

.promotion-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promotion-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff5000, #ff6600);
    border-radius: 2px;
}

/* 优惠券样式 */
.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coupon-item {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    cursor: pointer;
}

.coupon-item::before {
    content: '';
    position: absolute;
    right: 130px;
    top: 0;
    bottom: 0;
    width: 24px;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 12px,
        rgba(255, 255, 255, 0.4) 12px,
        rgba(255, 255, 255, 0.4) 24px
    );
    z-index: 1;
}

.coupon-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 118px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coupon-item.coupon-1 {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}

.coupon-item.coupon-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.35);
}

.coupon-item.coupon-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.35);
}

.coupon-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.coupon-item:hover::after {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.coupon-left {
    padding: 30px 35px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    background: rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.coupon-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.coupon-amount {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.95;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.coupon-amount span {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
}

.coupon-desc {
    font-size: 13px;
    opacity: 0.95;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.coupon-right {
    flex: 1;
    padding: 30px 35px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.coupon-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.coupon-time {
    font-size: 13px;
    opacity: 0.95;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    width: fit-content;
}

.coupon-btn {
    align-self: flex-start;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.coupon-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* 满减活动样式 */
.discounts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.discount-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 2px solid #ffe5e5;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.discount-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff5000, #ff6600);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.discount-item:hover::before {
    transform: scaleX(1);
}

.discount-item:hover {
    border-color: #ff5000;
    background: linear-gradient(135deg, #fff2e8 0%, #ffffff 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 80, 0, 0.2);
}

.discount-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff5000, #ff6600);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 80, 0, 0.35);
    transition: all 0.3s;
    position: relative;
}

.discount-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #ff5000, #ff6600);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(8px);
}

.discount-item:hover .discount-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 80, 0, 0.4);
}

.discount-item:hover .discount-icon::before {
    opacity: 0.5;
}

.discount-content {
    flex: 1;
}

.discount-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff5000, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.discount-desc {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .promotion-wrapper {
        grid-template-columns: 1fr;
    }
    
    .discounts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .coupons-list {
        gap: 12px;
    }
    
    .coupon-item {
        flex-direction: column;
    }
    
    .coupon-item::before {
        display: none;
    }
    
    .coupon-left {
        min-width: 100%;
        padding: 20px;
    }
    
    .coupon-right {
        padding: 20px;
    }
    
    .discounts-list {
        grid-template-columns: 1fr;
    }
}

