:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}
.pages{
    min-height: 500px;
    padding-top: 10px;
    padding-bottom: 10px;
}
/*page start*/
.page-num{
    color: #28a745;
    border-color: #28a745;
    position: relative;
    display: block;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: var(--bs-pagination-font-size);
    text-decoration: none;
    background-color: var(--bs-pagination-bg);
    border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;   
}
.page-num:hover{
    z-index: 2;
    color: var(--bs-pagination-hover-color);
    background-color: var(--bs-pagination-hover-bg);
    border-color: var(--bs-pagination-hover-border-color);    
}
.page-num-current{
    color:#fff;
    background-color:#28a745;
    border:1px solid #28a745;
}
/*page end*/
/*nav start    	*/
.navbar .dropdown:hover > .dropdown-menu {
display: block;
margin-top: 0;
}

/* 去除 Bootstrap 点击箭头偏移 */
.navbar .dropdown-toggle::after {
  margin-left: 0.3em;
}

/* 二级菜单样式 */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
  position: absolute;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* 下拉菜单对齐与美化 */
.dropdown-menu a {
  white-space: nowrap;
}

.navbar-brand img {
  object-fit: contain;
}

/* 使菜单 hover 更平滑 */
.navbar .dropdown-menu {
  transition: all 0.15s ease;
}   	
.text-green { color: #28a745; }
.btn-green { background-color: #28a745; border-color: #28a745; }
.btn-green:hover { background-color: #218838; border-color: #1e7e34; }
.btn-outline-green { border-color: #28a745; color: #28a745; }
.btn-outline-green:hover { background-color: #28a745; color: white; }
.btn-outline-white { border-color: white; color: white; }
.btn-outline-white:hover { background-color: white; color: #28a745; }

/*nav end*/

/*product-list start*/
    /*list*/
.hero-bg {  
    background: linear-gradient(135deg, #1e6b3a, #28a745);
}
.product-card:hover { 
    transform: translateY(-10px); transition: 0.3s; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.product-img { height: 250px; object-fit: cover; }
    /*products*/
.list-card { transition: all 0.3s; border-left: 4px solid transparent; }
.list-card:hover { border-left-color: #28a745; background-color: #f8fff8; transform: translateX(8px); }
.series-img { height: 120px; object-fit: cover; border-radius: 0.5rem; }
/*.filter-bar { background-color: #f8f9fa; border-radius: 0.5rem; }*/
@media (max-width: 767px) {
    .series-img { height: 100px; }
}
/*product-list end*/

/*product start*/
.main-image-container {
    position: relative;
    overflow: hidden;
    height: 500px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.main-image-container:hover .main-image {
    transform: scale(1.2);
}

/* 缩略图样式 */
.thumb-img {
    height: 80px;
    width: 120px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 3px solid transparent;
    border-radius: 0.25rem;
    flex-shrink: 0; /* 防止图片被压缩 */
}
.thumb-img.active, .thumb-img:hover {
    opacity: 1;
    border-color: #28a745;
}

/* 缩略图水平滚动容器 */
.thumbs-wrapper {
    position: relative;
}
.thumbs-scroll {
    display: flex;
    overflow-x: hidden; /* 隐藏滚动条但保持滚动功能 */
    scroll-behavior: smooth;
    gap: 12px;
    padding: 10px 0;
}

/* 自定义醒目箭头 */
.thumb-prev, .thumb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.thumb-prev { left: 0; }
.thumb-next { right: 0; }
.thumb-prev:hover, .thumb-next:hover {
    background: #28a745;
}
.thumb-prev.disabled, .thumb-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.thumb-prev.disabled:hover, .thumb-next.disabled:hover {
    background: rgba(0,0,0,0.6);
}

/* Tabs 样式 */
.nav-tabs .nav-link.active {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* ===== Product Gallery ===== */
.product-gallery {
    position: relative;
}

.main-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.main-image-wrapper:hover img {
    transform: scale(1.4);
}

.thumbnail-wrapper {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.thumbnail-wrapper img {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail-wrapper img.active {
    opacity: 1;
    border-color: #28a745;  
}

/* 隐藏滚动条但保持滚动功能 */
.thumbs-scroll {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.thumbs-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-image-wrapper {
        height: 300px;
    }
}
.related-card:hover { transform: translateY(-8px); transition: 0.3s; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.prev-next-nav { background-color: #f8f9fa; }
.blog-link:hover { color: #28a745; text-decoration: underline; }
.product-card { box-shadow: 0 4px 20px rgba(0,0,0,0.1); border-radius: 0.5rem; overflow: hidden; }
.product-header { background: linear-gradient(135deg, #1e7e34, #28a745); color: white; padding: 3rem 0; text-align: center; }
.key-points { background-color: #e9f7ef; border-radius: 0.5rem; padding: 1.5rem; }
.key-points li { margin-bottom: 1rem; }
.icon-green { color: #28a745; margin-right: 0.75rem; }

.feature-list li { position: relative; padding-left: 2rem; margin-bottom: 1.5rem; }
.feature-list li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #28a745; position: absolute; left: 0; top: 0; }
.feature-img { height: 400px; object-fit: cover; border-radius: 0.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
@media (max-width: 767px) {
    .feature-img { height: auto; margin-top: 2rem; }
}
/*product end*/

/*blogs start*/
        .text-green { color: #28a745; }
        .btn-green {
            background-color: #28a745;
            border-color: #28a745;
            color: white;
        }
        .btn-green:hover {
            background-color: #218838;
            border-color: #1e7e34;
            color: white;
        }
        .btn-outline-green {
            border-color: #28a745;
            color: #28a745;
        }
        .btn-outline-green:hover {
            background-color: #28a745;
            color: white;
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            color: #28a745 !important;
        }

        .blog-header {
            background: linear-gradient(135deg, #1e6b3a, #28a745);
            color: white;
            padding: 4rem 0;
        }

        .blog-title {
            font-weight: 700;
            font-size: 2.8rem;
        }

        .blog-subtitle {
            font-size: 1.2rem;
            opacity: 0.95;
        }

        .article-card {
            background: white;
            border: none;
            border-radius: 0.5rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            margin-bottom: 2rem;
            overflow: hidden;
        }

        .article-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .article-img {
            height: 220px;
            object-fit: cover;
            width: 100%;
        }

        .article-title {
            color: #212529;
            font-weight: 700;
            font-size: 1.4rem;
            text-decoration: none;
            line-height: 1.4;
        }

        .article-title:hover {
            color: #28a745;
        }

        .article-excerpt {
            color: #555;
            font-size: 1rem;
        }

        .article-meta {
            color: #6c757d;
            font-size: 0.9rem;
        }

        .article-category {
            display: inline-block;
            background-color: #e8f5e8;
            color: #28a745;
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .sidebar-widget {
            background: white;
            border-radius: 0.5rem;
            padding: 1.5rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            margin-bottom: 2rem;
        }

        .widget-title {
            font-weight: 700;
            font-size: 1.3rem;
            color: #212529;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 3px solid #28a745;
        }

        .category-list {
            list-style: none;
            padding-left: 0;
        }

        .category-list li {
            margin-bottom: 0.8rem;
        }

        .category-list a {
            color: #495057;
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1rem;
        }

        .category-list a:hover {
            color: #28a745;
        }

        .category-count {
            background-color: #e9f7ef;
            color: #28a745;
            padding: 0.2rem 0.6rem;
            border-radius: 12px;
            font-size: 0.85rem;
        }

        .popular-article {
            padding: 0.8rem 0;
            border-bottom: 1px solid #eee;
        }

        .popular-article:last-child {
            border-bottom: none;
        }

        .popular-article a {
            color: #212529;
            text-decoration: none;
            font-weight: 600;
        }

        .popular-article a:hover {
            color: #28a745;
        }

        .newsletter-widget {
            background: linear-gradient(135deg, #218838, #28a745);
            color: white;
            border-radius: 0.5rem;
            padding: 2rem;
            box-shadow: 0 8px 25px rgba(40,167,69,0.3);
        }

        .newsletter-widget .widget-title {
            color: white;
            border-bottom: 3px solid rgba(255,255,255,0.4);
        }

        .newsletter-widget p {
            opacity: 0.95;
        }

        .newsletter-widget .form-control {
            background: rgba(255,255,255,0.9);
            border: none;
        }

        .newsletter-widget .btn-light {
            background: white;
            color: #28a745;
            font-weight: 600;
        }

        .pagination .page-link {
            color: #28a745;
            border-color: #28a745;
        }

        .pagination .page-item.active .page-link {
            background-color: #28a745;
            border-color: #28a745;
        }


.article-header { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),center/cover; color: white; padding: 8rem 0; text-align: center; }
.article-img {height: auto; border-radius: 0.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin: 2rem 0; }
.table th { background-color: #e9f7ef; color: #28a745; }
.cta-section { background: linear-gradient(rgba(40,167,69,0.95), rgba(40,167,69,0.95)); color: white; padding: 4rem 0; text-align: center; border-radius: 0.5rem; }
.sidebar-form { position: sticky; top: 100px; background: white; border-radius: 0.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.prev-next-nav { background-color: #f8f9fa; padding: 2rem 0; border-top: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6; margin: 3rem 0; }
.prev-next-link { text-decoration: none; color: #333; transition: color 0.3s; }
.prev-next-link:hover { color: #28a745; }
.section-title { border-left: 5px solid #ff7a00; padding-left: 12px; margin-top: 40px; margin-bottom: 20px; }
/*blogs end*/


/*contact us*/
.contact-icon { font-size: 2.5rem; color: #28a745; }