/* 滞销帮扶专区页面专属样式 */
.sale-help-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    position: relative;
}

.back-link {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-base);
    z-index: 10;
}

.back-link:hover {
    background: var(--surface-container);
    color: var(--primary);
}

.sale-help-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background-image: url('/static/img/绿植.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.sale-help-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
}

.sale-help-header-content {
    position: relative;
    z-index: 1;
}

.sale-help-header-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.sale-help-header-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sale-help-header-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.sale-help-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.sale-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sale-help-card {
    background: var(--surface-container-lowest);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sale-help-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.sale-help-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.sale-help-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sale-help-card:hover .sale-help-card-image img {
    transform: scale(1.05);
}

.aid-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommend-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sale-help-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sale-help-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sale-help-product-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sale-help-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sale-help-price .discount-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tertiary);
}

.sale-help-price .original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.sale-help-price .discount-tag {
    background: var(--tertiary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.sale-help-price .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.sale-help-progress {
    margin-bottom: 12px;
}

.sale-help-progress .progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.sale-help-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-container-high);
    border-radius: 9999px;
    overflow: hidden;
}

.sale-help-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-container));
    transition: width 0.5s ease;
}

.sale-help-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.sale-help-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sale-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 110, 34, 0.3);
}

.sale-help-btn-secondary {
    background: var(--surface-container);
    color: var(--text-primary);
}

.sale-help-btn-secondary:hover {
    background: var(--surface-container-high);
    box-shadow: var(--shadow-sm);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface-container-lowest);
    border-radius: 16px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* 双倍积分提示 */
.double-points-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE0B2 100%);
    border: 1px solid #FFB74D;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #E65100;
    margin-bottom: 4px;
}

.tip-desc {
    font-size: 0.9rem;
    color: #FF6F00;
}


/* 浮动导航栏 */
.floating-nav {
    position: fixed;
    right: 24px;
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(189, 203, 184, 0.5);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 110, 34, 0.1);
    z-index: 100;
    overflow: hidden;
    padding: 8px 0;
    transition: all 2s ease;
}

.floating-nav.hidden {
    transform: translateY(-50%) translateX(150%);
    opacity: 0;
}

.floating-nav::before {
    content: '惠';
    display: block;
    text-align: center;
    padding: 12px 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(189, 203, 184, 0.5);
    margin-bottom: 4px;
}

.floating-nav-item {
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    position: relative;
    margin: 0 4px;
    border-radius: 8px;
}

.floating-nav-item:hover {
    background: rgba(40, 180, 70, 0.08);
    color: var(--primary);
}

.floating-nav-item svg {
    width: 24px;
    height: 24px;
}

.floating-nav-item span {
    font-size: 0.6875rem;
    font-weight: 500;
}

.nav-icon-wrapper {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 110, 34, 0.3);
}

@media (max-width: 768px) {
    .floating-nav {
        right: 12px;
        border-radius: 16px;
        padding: 6px 0;
    }
    
    .floating-nav::before {
        font-size: 1.125rem;
        padding: 10px 0 6px;
    }
    
    .floating-nav-item {
        width: 58px;
        padding: 10px 8px;
    }
    
    .floating-nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .floating-nav-item span {
        font-size: 0.625rem;
    }
    
    .nav-badge {
        top: 4px;
        right: 4px;
        min-width: 14px;
        height: 14px;
        font-size: 0.625rem;
    }
}
