/* ========================================
   自定义样式 - 商城风格
   ======================================== */

/* ---------- 全局样式 ---------- */
body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
}

a {
    transition: all 0.3s ease;
}

/* ---------- 导航栏样式 ---------- */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar .nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
}

.navbar .nav-link:hover {
    color: #0d6efd !important;
}

/* 购物车徽章 */
.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

/* ---------- 卡片通用样式 ---------- */
.product-card, .category-card, .case-category-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card:hover, .category-card:hover, .case-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* ---------- 产品卡片样式 ---------- */
.product-image {
    transition: transform 0.4s ease;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ---------- 分类卡片样式 ---------- */
.category-card {
    text-align: center;
    padding: 1rem;
}

.category-icon {
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.category-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ---------- 案例卡片样式 ---------- */
.case-category-card {
    background: #fff;
    transition: all 0.3s ease;
}

.case-category-card .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

/* ---------- 评价卡片样式 ---------- */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
}

.testimonial-company {
    font-size: 0.75rem;
    color: #999;
}

/* ---------- 区块标题样式 ---------- */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6c757d);
    border-radius: 3px;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- CTA 区域样式 ---------- */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.cta-btn {
    background: #fff;
    color: #667eea;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #764ba2;
}

/* ---------- 面包屑导航样式 ---------- */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
}

.breadcrumb-item.active {
    color: #333;
}

/* ---------- 商品详情页样式 ---------- */
.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.product-description p {
    line-height: 1.8;
    color: #555;
}

/* 缩略图样式 */
.thumbnail {
    cursor: pointer;
    transition: all 0.2s ease;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
}

.thumbnail:hover {
    border-color: #0d6efd !important;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评价区域 */
.review-item {
    transition: all 0.2s ease;
}

.review-item:hover {
    background: #f8f9fa;
    padding-left: 0.5rem;
}

/* 数量输入框 */
.quantity-input {
    width: 70px;
    text-align: center;
}

/* ---------- 响应式调整 ---------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 0.95rem;
    }

    .testimonial-card {
        padding: 1.2rem;
    }

    .product-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: 160px;
    }

    .category-icon img {
        width: 70px !important;
        height: 70px !important;
    }
}