:root {
    --primary-blue:#0038a5;
    --hover-blue:#002b80;
    --warning:#ffc107;
}

body {
    font-family:Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', Arial, sans-serif, Verdana, Tahoma;
}

a {
    color:var(--primary-blue);
    text-decoration:none;
    background-color:transparent;
    -webkit-text-decoration-skip:objects
}

a:hover {
    color:#D7A825;
    text-decoration:none
}

.btn:hover, .btn:focus, .btn:active, .btn:visited, input:hover, input:focus, input:active, input:visited, button:hover, button:focus, button:active, button:visited, select:hover, select:focus, select:active, select:visited {
    outline:none;
    box-shadow:none !important;
}

a:focus,
a:active {
    outline:none !important;
}

body {
    background:#f6f6f6 url(../images/site-background.webp) no-repeat center center fixed;
    background-image:url(../images/site-background.jpg) no-repeat;
    background-size:cover;
}

body, html {
    height:100%;
}

.btn-primary {
    background-color:var(--primary-blue) !important;
    border-color:var(--primary-blue) !important;
    color:#fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color:var(--hover-blue) !important;
    border-color:var(--hover-blue) !important;
}

.btn-outline-primary {
    color:var(--primary-blue);
    border-color:var(--primary-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color:var(--hover-blue);
    border-color:var(--hover-blue);
    color:#fff;
}

.btn-link {
    color:var(--primary-blue);
    text-decoration:none;
}

.btn-link:hover,
.btn-link:focus,
.btn-link:active {
    color:var(--hover-blue);
    text-decoration:underline;
}

.text-primary {
    color:var(--primary-blue) !important;
}

.bg-primary {
    background-color:var(--primary-blue) !important;
}

.hr-primary {
    height:1px;
    background-color:var(--primary-blue);
    border:none;
    opacity:1;
}

.pagination .page-link {
    color:var(--primary-blue);
    border:1px solid var(--primary-blue);
    background-color:#fff;
    transition:all 0.2s ease-in-out;
}

.pagination .page-item.active .page-link {
    background-color:var(--primary-blue);
    border-color:var(--primary-blue);
    color:#fff;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color:var(--hover-blue);
    border-color:var(--hover-blue);
    color:#fff;
}

.pagination .page-item.disabled .page-link {
    color:#ccc;
    background-color:#f8f9fa;
    border-color:#ddd;
}

.notification-bar {
    background-color:var(--warning);
    color:#333;
    text-align:center;
    padding:8px 0;
    font-size:14px;
    font-weight:500;
}

.top-nav {
    background-color:white;
    padding:15px 0;
    box-shadow:0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display:flex;
    align-items:center;
}

.logo {
    display:flex;
    justify-content:center;
    align-items:center;
    margin-right:12px;
}

.logo img {
    width:222px;
    height:60px;
    cursor:pointer;
}

.brand-name {
    font-weight:700;
    font-size:18px;
    color:var(--primary-blue);
    letter-spacing:0.5px;
}

.nav-links a {
    color:#333;
    text-decoration:none;
    margin:0 15px;
    font-size:15px;
    font-weight:500;
    transition:color 0.3s;
    position:relative;
}

.nav-links a:hover {
    color:#0054bf;
}

.language-selector {
    display:flex;
    align-items:center;
    background-color:#f8f9fa;
    border-radius:20px;
    padding:8px 15px;
    cursor:pointer;
    transition:background-color 0.3s;
}

.language-selector:hover {
    background-color:#e9ecef;
}

.language-flag {
    width:24px;
    height:24px;
    border-radius:50%;
    overflow:hidden;
    margin-right:8px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.language-flag img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.language-link:hover {
    background-color:#f8f9fa;
    border-radius:6px;
}

.catalog-dropdown {

    padding:8px 20px;
    cursor:pointer;
    transition:background-color 0.3s;
    display:inline-flex;
    align-items:center;
}

.search-container {
    position:relative;
    flex-grow:1;
    max-width:500px;
}

.search-select {
    position:absolute;
    left:5px;
    top:5px;
    bottom:5px;
    z-index:2;
    padding:0 10px;
    border:none;
    background:#fff;
    border-radius:30px 0 0 30px;
    font-size:14px;
    appearance:none;
    color:#555;
    border-right:1px solid #ddd;
    cursor:pointer;
}

.search-input {
    width:100%;
    padding:12px 20px;
    /*padding-left:110px;*/
    padding-right:55px;
    border-radius:30px;
    border:1px solid #ddd;
    font-size:14px;
    transition:border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    outline:none;
    border-color:#0054bf;
    box-shadow:0 0 0 3px #0054bf1a;
}

.search-button {
    position:absolute;
    right:5px;
    top:5px;
    bottom:5px;
    background-color:var(--primary-blue);
    color:#fff;
    border:none;
    border-radius:30px;
    padding:0 20px;
    font-weight:500;
    transition:background-color 0.3s;
}

.search-button:hover {
    background-color:var(--hover-blue);
    color:#fff;
}

#searchInfo {
    position: absolute;
    top: 100%;
    z-index: 1000;
    display: none;
    width: 100%;
    margin: 1em 0 0;
    padding: 1rem;
    background-clip: padding-box;
    background-color: #fff;
    border: 1px solid #005bab;
    border-radius: 1em;

}

#searchInfo div{
    text-align: left;

}

#searchSuggestions {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    background: #fff;
}

#searchSuggestions li {
    cursor: pointer;
}

#searchSuggestions li:hover {
    background-color: #f5f5f5;
}


.inform-button {
    background-color:var(--primary-blue);
    color:white;
    border:none;
    border-radius:30px;
    padding:10px 30px;
    font-weight:600;
    transition:background-color 0.3s;
    margin-left:10px;
}

.inform-button:hover {
    background-color:var(--hover-blue);
    color:white;
}

.login-modal {
    width:300px;
    padding:25px;
    background-color:white;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0, 0, 0, 0.15);
    display:none;
    position:absolute;
    z-index:1000;
    top:60px;
    right:15px;
    animation:fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity:0;
        transform:translateY(-10px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}

.language-dropdown {
    display:none;
    position:absolute;
    background-color:white;
    box-shadow:0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius:8px;
    padding:10px;
    top:60px;
    right:15px;
    width:160px;
    z-index:1000;
    animation:fadeIn 0.3s;
}

.divider {
    height:1px;
    background-color:#eee;
    margin:10px 0;
}

.catalog-items {
    display:none;
    background-color:white;
    box-shadow:0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius:8px;
    width:300px;
    position:absolute;
    top:50px;
    left:15px;
    z-index:1000;
    padding:10px 0;
    animation:fadeIn 0.3s;
}

.catalog-item {
    padding:12px 20px;
    display:block;
    color:#333;
    text-decoration:none;
    transition:background-color 0.2s;
}

.catalog-item:hover {
    background-color:#f8f9fa;
}

@media (max-width:992px) {
    .top-nav-container {
        flex-wrap:wrap;
    }

    .nav-links {
        order:3;
        width:100%;
        justify-content:center;
        margin-top:15px;
    }

    .language-container {
        margin-left:auto;
    }

    .catalog-container {
        flex-direction:column;
    }

    .search-container {
        margin:15px 0;
        max-width:100%;
    }

    .inform-button {
        margin:15px 0 0;
        width:100%;
    }
}

.nav-link {
    color:var(--primary-blue);
    padding:0.5rem 1rem;
    position:relative;
    border-bottom:4px solid transparent;
    transition:background-color 0.3s, border-color 0.3s, border-radius 0.3s;
    font-size:1.2rem;
    font-weight:bold;
}

.nav-link:hover {
    text-decoration:none;
}

.category-1 {
    border-bottom-color:#005bab;
}

.category-2 {
    border-bottom-color:#0098b2;
}

.category-3 {
    border-bottom-color:#2c9243;
}

.category-4 {
    border-bottom-color:#8ebe3f;
}

.category-5 {
    border-bottom-color:#6D7783;
}

.category-6 {
    border-bottom-color:#9C27B0;
}

.category-7 {
    border-bottom-color:#FF9800;
}

.category-1:hover, .category-1.active {
    background-color:#005bab;
    border-top-right-radius:12px;
    border-top-left-radius:12px;
    color:white;
}

.category-2:hover, .category-2.active {
    background-color:#0098b2;
    border-top-right-radius:12px;
    border-top-left-radius:12px;
    color:white;
}

.category-3:hover, .category-3.active {
    background-color:#2c9243;
    border-top-right-radius:12px;
    border-top-left-radius:12px;
    color:white;
}

.category-4:hover, .category-4.active {
    background-color:#8ebe3f;
    border-top-right-radius:12px;
    border-top-left-radius:12px;
    color:white;
}

.category-5:hover, .category-5.active {
    background-color:#6D7783;
    border-top-right-radius:12px;
    border-top-left-radius:12px;
    color:white;
}

.category-6:hover, .category-6.active {
    background-color:#9C27B0;
    border-top-right-radius:12px;
    border-top-left-radius:12px;
    color:white;
}

.category-7:hover, .category-7.active {
    background-color:#FF9800;
    border-top-right-radius:12px;
    border-top-left-radius:12px;
    color:white;
}

.mobile-sidebar {
    position:fixed;
    top:0;
    left:-100%;
    width:80%;
    height:100%;
    background-color:#fff;
    z-index:1050;
    box-shadow:2px 0 8px rgba(0, 0, 0, 0.2);
    transition:left 0.3s ease-in-out;
    padding:1rem;
}

.mobile-sidebar.show {
    left:0;
}

.mobile-sidebar .close-btn {
    position:absolute;
    top:1rem;
    right:1rem;
    font-size:1.5rem;
    cursor:pointer;
}

.hamburger-btn {
    font-size:1.5rem;
    cursor:pointer;
    border:none;
    background:none;
}

.footer-wrap .row > .col-12.col-md-3:not(:first-child):not(:last-child),
.footer-wrap .row > .col-12.col-md-3:nth-last-child(1):not(:first-child) {
    border-left:1px dotted #333;
}

@media (max-width:767.98px) {
    .footer-wrap .row > .col-12.col-md-3 {
        border-left:none !important;
    }
}

.product-box {
    padding:15px;
    border-radius:8px;
    background-color:#fff;
    transition:box-shadow 0.3s;
}

.product-box:hover {
    box-shadow:0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-img {

    overflow:hidden;
}

.product-img img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.product-title {
    padding:10px 0;
    font-weight:500;
    font-size:16px;
}

.product-item {
    border-top:1px dotted #333;
    border-bottom:1px dotted #333;
    border-left:1px dotted #333;
    border-right:1px dotted #333;
}

.product-item:nth-child(4n+1) {
    border-left:none;
}

.product-item:nth-child(4n) {
    border-right:none;
}

@media (max-width:576px) {
    .product-item {
        border-left:none !important;
        border-right:none !important;
    }
}

@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.product-box3 {
    transition: border 0.3s, box-shadow 0.3s;
    border: 1px solid #00509D;
    box-shadow: 0 0 8px rgba(0, 80, 157, 0.1);
    border-radius: 5px;
}

.product-box3:hover {
    
}

.product-img3 img {
    aspect-ratio: 1/1;
    object-fit: contain;
    max-height: 160px;
}

.product-title3 {
    padding:10px 0;
    font-weight:500;
    font-size:16px;
}

.product-item3 {
    border-top:1px dotted #333;
    border-bottom:1px dotted #333;
    border-left:1px dotted #333;
    border-right:1px dotted #333;
}

.product-item3:nth-child(4n+1) {
    border-left:none;
}

.product-item3:nth-child(4n) {
    border-right:none;
}

@media (max-width:576px) {
    .product-item3 {
        border-left:none !important;
        border-right:none !important;
    }
}


.blue-line {
    width:115px;
    height:3px;
    background-color:#00509D;
    margin-bottom:10px;
}

.thumb-img {
    height:60px;
    cursor:pointer;
}

.main-img {
    width:100%;
    max-height:300px;
    object-fit:contain;
    border-radius:10px;
    cursor:pointer;
}

.zoom-icon {
    position:absolute;
    bottom:10px;
    left:10px;
   /* background:white;
    border-radius:50%;*/
    padding:5px;
    cursor:pointer;
}

.popup-img {
    max-width:90vw;
    max-height:90vh;
    border-radius:10px;
}

.spec-row {
    border-top:1px dotted #005BAA !important;
    padding-top:10px;
    padding-bottom:10px;
}

.right-buttons {
    margin-bottom:10px;
    width:100%;
    background-color:#f8f9fa;
    border-top-left-radius:15px;
    border-bottom-left-radius:15px;
    box-shadow:0 2px 4px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width:767px) {
    .right-buttons {
        border-radius:15px !important;
    }
}

.fixed-img-height {
    height:180px;
    object-fit:cover;
    border-top-left-radius:0.375rem;
    border-top-right-radius:0.375rem;
}

.blue-category {
    width:50px;
    height:3px;
    background-color:#00509D;
}

.clickable-row {
    cursor:pointer;
}

.clickable-row:hover {
    background-color:#f0f8ff;
}

.popular-posts {

}

.popular-posts h5 {
    color:#495057;
    border-bottom:2px solid #dee2e6;
    padding-bottom:10px;
}

.popular-posts-list {
    list-style:none;
    padding:0;
    margin:0;
}

.popular-posts-list li {

}

.popular-posts-list a {
    display:flex;
    align-items:center;
    color:#212529;
    text-decoration:none;
    transition:all 0.2s;
    padding:5px;
    border-radius:4px;
}

.popular-posts-list a:hover {
    background-color:#e9ecef;
    color:#0d6efd;
}

.popular-posts-list .post-title {
    flex:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-left:8px;
}

.popular-posts-list .bi {
    color:#6c757d;
    font-size:1.1rem;
}

.modal-fullscreen .modal-content {
    background-color:rgba(0, 0, 0, 0.9);
    border:none;
    border-radius:0;
}

.fullscreen-swiper {
    height:100vh;
    width:100vw;
}

.fullscreen-swiper .swiper-slide {
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
}

.fullscreen-swiper .swiper-slide img {
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.fullscreen-swiper .swiper-button-next,
.fullscreen-swiper .swiper-button-prev {
    color:white;
    background:rgba(0, 0, 0, 0.5);
    width:50px;
    height:50px;
    border-radius:50%;
    transform:scale(0.8);
    transition:all 0.3s ease;
}

.fullscreen-swiper .swiper-button-next:hover,
.fullscreen-swiper .swiper-button-prev:hover {
    transform:scale(1);
    background:rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
    position:fixed;
    top:20px;
    right:20px;
    z-index:9999;
    background:rgba(0, 0, 0, 0.7);
    color:white;
    border:none;
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    opacity:0.7;
    transition:opacity 0.3s;
}

.modal-close-btn:hover {
    opacity:1;
}

@media (min-width:768px) {
    .news-item img {
        width:160px;
    }
}

.articlebody {
    padding-top:20px;
}

.articlebody img {
    max-width:100%;
    height:auto;
    display:block;
}

.form-container {
    max-width:800px;
    margin:0 auto;
    padding:2rem;
    border-radius:10px;
    box-shadow:0 0 20px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight:500;
}

.input-group-text {
    min-width:45px;
    justify-content:center;
}

textarea {
    min-height:150px;
    resize:vertical;
}

@media (max-width:576px) {
    .form-container {
        padding:1.5rem;
        box-shadow:none;
    }
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-right: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter  { background-color: #1da1f2; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.pinterest{ background-color: #bd081c; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.email    { background-color: #6c757d; }

.share-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* 弹出登录框样式 */
#login-modal {
    display:none;
    position:absolute;
    top:40px;
    right:0;
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    width:320px;
    box-shadow:0 4px 15px rgba(0, 0, 0, 0.15);
    z-index:9999;
    padding:20px;
}

.login-tabs .nav-link {
    color:#333;
}

.login-tabs .nav-link.active {
    font-weight:bold;
    color:#002b80;
    border-color:#002b80 #002b80 #fff;
}

.social-login button {
    width:100%;
    margin-bottom:10px;
}

.social-login i {
    margin-right:8px;
}

/* 用户头像 */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* 用户下拉框 */
#user-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
}

#user-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    margin: 0;
}

#user-dropdown a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

#user-dropdown .user-info {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

#user-dropdown .user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

#user-dropdown .user-info .username {
    font-weight: 600;
    margin-top: 8px;
}

#user-dropdown .logout {
    color: #dc3545 !important;
    font-weight: 500;
}