/* 自定义样式 - 增加分类相关样式 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --food-color: #ff9e00;
    --retail-color: #00b4d8;
    --office-color: #38b000;
    --commercial-color: #9d4edd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    padding-top: 56px;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 700;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60px;
        height: 4px;
        background-color: var(--accent-color);
        border-radius: 2px;
    }

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 分类导航样式 */
.category-nav {
    background-color: var(--light-color);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 56px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-tab {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

    .category-tab:hover {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
    }

    .category-tab.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

/* 行业标签样式 */
.industry-badge {
    background-color: var(--food-color) !important;
}

.retail-badge {
    background-color: var(--retail-color) !important;
}

.office-badge {
    background-color: var(--office-color) !important;
}

.commercial-badge {
    background-color: var(--commercial-color) !important;
}

/* 尺寸标签样式 */
.size-badge-small {
    background-color: #20c997 !important;
}

.size-badge-medium {
    background-color: #0d6efd !important;
}

.size-badge-large {
    background-color: #dc3545 !important;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.product-card {
    transition: transform 0.3s ease;
    border: none;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

.product-img {
    height: 180px;
    object-fit: cover;
}

.product-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.badge-scenario {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-filter {
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

    .cart-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

    .scroll-to-top.visible {
        opacity: 1;
    }

/* 多级筛选样式 */
.filter-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background-color: var(--light-color);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-tag:hover, .filter-tag.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .btn-group.flex-wrap {
        justify-content: center;
    }

    .category-nav {
        position: static;
        padding: 1rem 0;
    }

    .category-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card, .product-card, .feature-card {
    animation: fadeIn 0.5s ease forwards;
}
