/* 壮阳药物网站配色方案 - 高级版 */
:root {
    --primary-color: #6c5ce7; /* 深紫色作为主色 */
    --secondary-color: #ff7675; /* 珊瑚色作为辅助色 */
    --success-color: #00b894;
    --danger-color: #d63031;
    --warning-color: #fdcb6e;
    --info-color: #74b9ff;
    --light-color: #faf8f5; /* 浅米色背景 */
    --dark-color: #2d3436; /* 深灰色文字 */
    --white-color: #fff;
    --black-color: #000;
    --body-bg: var(--light-color);
    --text-color: var(--dark-color);
    --link-color: var(--primary-color);
    --link-hover-color: #5c4bcf; /* 深紫色悬停 */
    --border-color: #dfe6e9;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1.5rem rgba(108, 92, 231, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 按钮样式 */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* 商品卡片样式 */
.product-card {
    border: none;
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.product-card:hover {
    box-shadow: 0 5px 25px rgba(108, 92, 231, 0.2);
    transform: translateY(-5px);
}



.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-card .price {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

/* 表单样式 */
.form-control {
    background-color: var(--white-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
    }
    
    .product-card .card-img-top {
       
        padding: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 其他样式保持不变... */
@media (max-width: 767.98px) {
    .cart-item {
        background-color: #fff;
    }
    .quantity-control .form-select {
        width: 100%;
    }
    .subtotal {
        font-size: 0.9rem;
    }
}

/* 搜索框样式优化 */
.search-form {
    position: relative;
    max-width: 300px;
    margin-right: 1rem;
}

.search-form .form-control {
    padding-right: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--light-color);
    transition: var(--transition);
}

.search-form .form-control:focus {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--link-hover-color);
}

/* 搜索结果样式 */
.search-results-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.search-results-header .breadcrumb {
    margin-bottom: 0;
    padding: 0.5rem 1rem;
}

.search-keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.search-count {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-form {
        max-width: 100%;
        margin: 0.5rem 0;
    }
    
    .search-results-header {
        margin-bottom: 1rem;
    }
}