/* 全局样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 轮播横幅样式 */
.hero-section {
    margin-top: -76px;
}

.hero-slide {
    height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .hero-slide {
        height: 350px;
    }
    .hero-slide h1 {
        font-size: 2rem !important;
    }
    .hero-slide .lead {
        font-size: 1rem !important;
    }
}

/* 分类卡片样式 - 紧凑版 */
.category-card-compact {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
    padding: 0.75rem;
}

.category-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.category-icon-compact {
    width: 45px;
    height: 45px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white !important;
}

.category-icon-compact i {
    color: white !important;
    font-size: 1.2rem;
}

.category-card-compact h6 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.category-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: all 0.5s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    transition: all 0.3s ease;
}

.category-card-compact:hover .category-bg-image {
    transform: scale(1.1);
}

.category-card-compact:hover .category-overlay {
    background: rgba(102, 126, 234, 0.6);
}

@media (max-width: 576px) {
    .category-card-compact {
        min-height: 80px;
        padding: 0.5rem;
    }
    .category-icon-compact {
        width: 40px;
        height: 40px;
    }
}

/* 产品卡片样式 */
.product-card {
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
