:root {
    --primary-color: #7852ee;
    --primary-light: #9b7afa;
    --primary-dark: #5835c7; 
    --secondary-color: #4B0082;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}
body {
    font-family: 'Nunito', 'Microsoft YaHei', sans-serif;
    color: var(--dark-color);
    background-color: #f8f9fa;
    padding-top: 70px;
}
.weblogo{width:180px;}
.navbar {
   box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.navbar.scrolled {
    padding: 8px 0;
}
.navbar-brand {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 12px;
}
.navbar-brand:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 4px;
}
.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    position: relative;
}
.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.05);
}
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.1);
}
.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}
.search-form {
    position: relative;
}
.search-form .form-control {
    padding-left: 40px;
    width:60%;
}
.search-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.15);
    background-color: white;
    border-color: var(--primary-light);
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    z-index: 4;
}
.search-btn {
    border-radius: 2px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    border: none;
    color: white;
    transition: all var(--transition-speed);
}
.search-btn:hover {
   color:#fff;;
}
.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%237852ee' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.nav-item {
    padding-left: 4px;
    display: flex;
    align-items: center;
	font-size:16px;
}
.main-container{margin-top:20px;}
/* Keep existing styles */
footer {
    background-color: white;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #eee;
    font-size: 14px;
    background-color: #212529;
}
footer a{color: #93979a}
.test-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
footer .cop{color: #93979a;font-size: 12px;}
.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.test-card .card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}
.test-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.test-card:hover .card-img img {
    transform: scale(1.1);
}
.test-card .price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(138, 43, 226, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
}
.test-card .card-body {
    padding: 15px;
}
.test-card .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-color);
}
.test-card .card-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    overflow: hidden;
}
.test-card .card-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
}
.pagination {
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
}
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    z-index: 3;
    color: white;
}
.page-link {
    color: var(--primary-color);
}
.page-link:hover {
    color: var(--secondary-color);
}
@media (max-width: 600px) {
.navbar-nav {
flex-direction: row !important;
flex-wrap: nowrap;
overflow-x: auto;
white-space: nowrap;
width: 100vw;
margin-bottom: 8px;
}
.navbar-nav .nav-item {
min-width: 70px;
justify-content: center;
align-items: center;
padding-left: 0;
margin-right: 8px;
}
.navbar-nav .nav-link {
padding: 8px 6px;
font-size: 15px;
display: flex;
align-items: center;
justify-content: center;
}
.search-form {
width: 100% !important;
margin: 0 auto 10px auto !important;
padding: 0 8px;
}
.search-form .form-control {
width: 100% !important;
min-width: 0;
font-size: 15px;
padding-left: 36px;
}
.search-btn {
width: 70px;
font-size: 15px;
padding: 8px 0;
margin-left: 6px;
}
.search-icon {
left: 10px;
font-size: 18px;
}

}