/* ============================================
   B2B Homepage Specific Styles
   ============================================ */

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--hov-primary) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Trust Badges Section */
.trust-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-item i {
    font-size: 5rem !important;  /* 80px */
    transition: transform 0.3s ease;
}

.trust-item:hover i {
    transform: scale(1.2);
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::after {
    transform: scaleX(1);
}

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

/* B2B Product Cards */
.b2b-product-card {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.b2b-product-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.b2b-product-card .product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 正方形比例 1:1 */
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.b2b-product-card .product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 填满容器 */
    transition: transform 0.4s ease, filter 0.3s ease;
}

.b2b-product-card:hover .product-image-container img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.b2b-product-card .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.b2b-product-card .product-info h4 {
    flex: 1;
    line-height: 1.5;
    margin-bottom: 1rem !important;
}

.b2b-product-card .product-info h4 a {
    color: #2d3748;
    transition: color 0.3s ease;
}

.b2b-product-card .product-info h4 a:hover {
    color: var(--primary);
    text-decoration: none;
}

.b2b-product-card .product-info .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Product View Details Button */
.b2b-product-card .btn-view-details {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.b2b-product-card .btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #5a67d8 0%, #6b42a0 100%);
    color: #fff;
}

.b2b-product-card .btn-view-details i {
    margin-right: 6px;
    font-size: 16px;
}

/* View All Button */
.btn-view-all {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view-all:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.btn-view-all i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

/* Brand Cards */
.brand-card {
    transition: all 0.3s ease;
    background: #fff;
}

.brand-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-rgb), 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

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

.icon-box {
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1);
}

/* Testimonial Cards */
.testimonial-card {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

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

.stars i {
    font-size: 18px;
}

/* Quick Quote Form */
#quick-quote .form-control {
    border: 2px solid #e5e5e5;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

#quick-quote .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

/* Buttons */
.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Utility Classes */
.hov-shadow-lg:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.hov-shadow-md:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.transition-3d-hover {
    transition: all 0.3s ease;
}

.transition-3d-hover:hover {
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .trust-item {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Border Utilities */
.border-width-2 {
    border-width: 2px !important;
}

/* Background Utilities */
.bg-soft-primary {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
}

/* Text Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading Spinner for Forms */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Badge Styles */
.badge-inline {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-soft-primary {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
}

/* Contact Info Styles */
.contact-info-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1rem;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--hov-primary);
}
