.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
}
.rounded{
    line-height: 2.1rem;
}
/*.rounded:hover {*/
/*    --tw-bg-opacity: 1;*/
/*    background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));*/
/*}*/
.text-secondary{
    line-height: 2rem;
}
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.nav-link-custom {
    position: relative;
    text-decoration: none;
}
.dropdown-menu-custom a,.text-secondary{
    text-decoration: none;
}
.mobile-nav a{
    text-decoration: none;
}
.mobile-dropdown-menu a.text-secondary:hover{
    background-color: #eff6ff;
    color: #2563eb;
}
.mobile-dropdown-menu a.text-secondary:focus{
    background-color: #eff6ff;
    color: #2563eb;
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}
.nav-link-custom:hover::after {
    width: 100%;
}

nav .active{
    /*border-bottom:2px solid #0d6efd;*/
}

/* 二级菜单样式 */
.dropdown-custom {
    position: relative;
}
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 25px;
}
.dropdown-custom:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu-custom a {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    transition: all 0.2s ease;
}
.dropdown-menu-custom a:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

/* 移动端菜单样式 */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 100;
}

/* 移动端下拉菜单样式 */
.mobile-dropdown {
    position: relative;
}
.mobile-dropdown-menu {
    padding-left: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}
.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* 按钮样式优化 */
.btn-primary-custom {
    transition: all 0.3s ease;
    transform: translateY(0);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}
.btn-secondary-custom {
    transition: all 0.3s ease;
    transform: translateY(0);
}
.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
}

/* 响应式字体 */
.responsive-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}
.responsive-heading {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}
.responsive-subheading {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
}

/* 产品图片悬停效果 */
.product-image {
    transition: transform 0.3s ease;
    will-change: transform;
}
.card-hover:hover .product-image {
    transform: scale(1.00);
}
.container{
    min-width: 372px;
}

/* 幻灯片样式 */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    max-height: 100%;
    min-height: 260px;
    object-fit: cover;
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-dot.active {
    background-color: white;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.slider-btn.prev {
    left: 20px;
}
.slider-btn.next {
    right: 20px;
}

@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
}

/* 触摸滑动相关样式 */
.slider-container {
    touch-action: pan-y;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    border-radius: 0.5rem;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 优化导航链接悬停效果 */
.nav-link-custom {
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* 优化按钮样式 */
.btn-primary-custom, .btn-secondary-custom {
    border-radius: 0.5rem;
}

.btn-primary-custom:hover, .btn-secondary-custom:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 优化幻灯片按钮 */
.slider-btn {
    border-radius: 50%;
}

/* 优化移动端菜单 */
.mobile-nav {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* 优化标题间距 */
h2 {
    letter-spacing: -0.5px;
}

/* 优化段落行高 */
p {
    line-height: 1.7;
}


@media (max-width: 992px) {
    .d-none {
        display: none !important;
    }
    #showbtn {
        display: block !important;
    }
    #mobileMenu.show {
        display: block !important;
    }
}

/* 或者如果您想要不同的断点，可以使用以下方式 */
@media (max-width: 600px ){
    .slide-content h2{
        font-size: calc(1.5rem + .6vw);
    }
    .slide-content p{
        font-size: calc(1rem + .6vw) !important;
    }
}
@media (min-width: 360px )  {
    .container {
    }
    .h3{
        font-size: calc(1.1rem + .6vw);
    }
    .ms-3{
        margin-left: 0 !important;
    }

}

@media (min-width: 375px) {
    .container {
    }
    .h3{
        font-size: calc(1.1rem + .6vw);
    }
    .article-title h1{
        font-size: calc(1.3rem + 1.2vw) !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1536px;
    }
    .tuijian{
        padding-left: 40px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
}

/*.nextpre a{*/
/*    !*text-decoration: none;*!*/
/*}*/

article p{
    font-size: 1.08rem !important;
    text-indent: 32.0000pt;
    font-size: 16px;
    line-height: 2;
}
article p img {
    text-indent: 0;

    display: block;
    margin: 0 auto;
    /*max-width: 100%;*/
    height: auto;

    width: 100% !important;
}
.position-relative img {
    max-height: 300px;
}

.article-nav {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.article-nav a {
    transition: all 0.3s ease;
    color: #495057;
    text-decoration: none;
}

.article-nav a:hover {
    color: #0d6efd;
    text-decoration: none;
}

.article-nav .nav-label {
    font-size: 0.875rem;
    color: #6c757d;
    display: block;
    margin-bottom: 0.25rem;
}

.article-nav .nav-title {
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-nav .prev-link .nav-title {
    text-align: left;
}

.article-nav .next-link .nav-title {
    text-align: right;
}

.article-nav i {
    font-size: 0.875rem;
}


.image-preview-modal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.image-preview-modal .modal-content {
    background-color: transparent;
    border: none;
}

.image-preview-modal .modal-body {
    padding: 0;
    text-align: center;
}

.image-preview-modal .preview-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.image-preview-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
}
/* 文章图片样式 */
.article-content img {
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.article-content img:hover {
    transform: scale(1.02);
}

.object-fit-cover {
    object-fit: cover;
    height: 250px;
}

@media (max-width: 768px) {
    .object-fit-cover {
        height: 200px;
    }
}


/* 子导航菜单样式 */
.border-bottom {
    /*border-bottom: 1px solid #dee2e6 !important;*/
}

.nav-link-custom.mx-2.my-1 {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link-custom.mx-2.my-1:hover,
.nav-link-custom.mx-2.my-1.active {
    background-color: #eff6ff;
    color: #2563eb !important;
}

.nav-link-custom.mx-2.my-1.active {
    font-weight: 500;
}


/*不行就删除以下代码*/
/* 新闻列表优化样式 */
.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.news-image-wrapper {
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    border-radius: 0.75rem 0 0 0.75rem;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-title:hover {
    color: #2563eb;
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline !important;
}

.news-meta {
    display: flex;
    gap: 1rem;
}

.news-meta .text-muted {
    font-size: 0.8rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .news-image-wrapper {
        border-radius: 0.75rem 0.75rem 0 0;
        min-height: 180px;
    }

    .news-card .row.g-0 > div:first-child {
        padding-bottom: 1rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 576px) {
    .news-image-wrapper {
        min-height: 150px;
    }

    .category-badge {
        font-size: 0.7rem;
    }

    .news-meta {
        display: none;
    }
}

/* 分页优化 */
.pagination {
    gap: 0.25rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
/*.pagination .page-item {*/
/*    margin: 0.25rem;*/
/*}*/
.pagination li{
    margin-top: 20px;
}
.pagination a,.pagination span {
    border-radius: 0.5rem !important;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 0.5rem 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #2563eb;
}

.pagination li.active span {
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    color: white;
}




.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 28px;
}

/*更新文章页样式*/
.related-articles-list {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

.related-article-item:last-child {
    border-bottom: none;
}

.related-article-item h3 a:hover {
    color: #0d6efd !important;
}

.hover-primary:hover {
    color: #0d6efd !important;
}

.related-articles-list::-webkit-scrollbar {
    width: 6px;
}

.related-articles-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.related-articles-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.related-articles-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 添加标题省略号样式 */
.related-article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em; /* 2行高度 = line-height * 2 */
}

/* 面包屑导航样式优化 */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #0d6efd;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
}

/* 其他已有样式保持不变 */
.related-articles-list {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

.related-article-item:last-child {
    border-bottom: none;
}

.related-article-item h3 a:hover {
    color: #0d6efd !important;
}

.hover-primary:hover {
    color: #0d6efd !important;
}

.related-articles-list::-webkit-scrollbar {
    width: 6px;
}

.related-articles-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.related-articles-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.related-articles-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 添加标题省略号样式 */
.related-article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em; /* 2行高度 = line-height * 2 */
}


.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.news-description {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-date {
    text-align: right;
    width: 100px;
    float: left;
    padding-right: 20px;
    border-right: #666 solid 1px;
    margin-right: 20px;
}
.news-date span {
    font-weight: bolder;
    font-size: 32px;
    display: block;
}
.product-nav .row{
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.index-product h3{

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.index-product p{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}