body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 56px;
}

a {
    text-decoration: none;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

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

.card-img-top {
    height: 500px;
    object-fit: cover;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.price {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.25rem;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 0.5rem;
}

.discount {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.platform-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.platform-badge.taobao {
    background-color: #ff4400;
    color: white;
}

.platform-badge.jd {
    background-color: #e1251b;
    color: white;
}

.platform-badge.tmall {
    background-color: #eb0f6c;
    color: white;
}

.platform-badge.pinduoduo {
    background-color: #e02e24;
    color: white;
}

.platform-badge.ebay {
    background-color: #0064d2;
    color: white;
}

.platform-badge.temu {
    background-color: #ff6b00;
    color: white;
}

.platform-badge.amazon {
    background-color: #ff9900;
    color: white;
}

/* 分类筛选按钮组样式 */
.category-filter {
    margin: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.category-filter .btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
}

.category-filter .btn {
    border-radius: 20px;
    margin: 0 5px;
    padding: 5px 15px;
}

#searchForm {
    max-width: 300px;
}

#searchInput {
    border-radius: 20px;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    margin-top: auto;
    width: 100%;
    margin-top: 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

#contactForm {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

footer {
    margin-top: auto;
    width: 100%;
    background-color: #212529;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    color: #0d6efd !important;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.category-item {
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-item.active {
    background-color: #0d6efd;
    color: white;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.category-item.active .category-icon {
    color: white;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 15px;
}

.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.category-item.active {
    background: #007bff;
    color: white;
}

.category-item.active .category-icon {
    transform: rotate(15deg);
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.category-item {
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-item.active {
    background-color: #0d6efd;
    color: white;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.category-item.active .category-icon {
    color: white;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.btn-primary {
    padding: 8px 20px;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.alert {
    border-radius: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-section .btn {
        margin-bottom: 2rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .card-img-top {
        height: 500px;
    }

    .category-filter .btn-group {
        justify-content: center;
    }
}
