/* 全局样式 */
: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;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.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;
}

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

/* 原分类卡片样式（保留兼容） */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

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

.category-icon i {
    color: white !important;
}

/* 产品卡片样式 */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.product-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-image,
    .product-image-placeholder {
        height: 200px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* 面包屑导航 */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

