﻿/* 统一设置所有图片圆角 */
.img-responsive {
    border-radius: 10px;
}
/* 轮播广告圆角 → 取消 */
.slides .img-responsive {
    border-radius: 0 !important;
}

/* ===== 解决方案整体布局调整 ===== */
.solution {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 5px;
}
.solution .xl6 {
    width: calc(50% - 10px);
    max-width: 400px;
    padding: 0;
    margin: 0;
}
.solution .media-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}
.solution .img-responsive {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.solution .media-img:hover .img-responsive {
    transform: scale(1.05);
}
.solution .linear-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    box-sizing: border-box;
}
.solution .subtitle h3 {
    color: #fff;
    font-size: 16px;
    margin: 0;
    line-height: 1.3;
}

/* ===== 新闻动态图片 2:1 比例 + 圆角 ===== */
.home-news-h .media-img {
    border-radius: 8px;
    overflow: hidden;
}
.home-news-h .img-responsive {
    width: 100%;
    aspect-ratio: 5/3;
    object-fit: cover;
    border-radius: 8px;
}
.home-news-c .xl5 {
    width: 40%;
}
.home-news-c .img-responsive {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== 分页样式 ===== */
.pagination {
    display: inline-flex;
    padding: 0;
    margin: 20px 0;
    list-style: none;
    align-items: center;
    gap: 6px;
}
.pagination li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pagination a,
.pagination span {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    min-width: 36px;
    text-align: center;
    border: 1px solid #e2e8f0;
    background: linear-gradient(to bottom, #fff, #f8fafc);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.pagination a:hover {
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}
.pagination .active span {
    background: linear-gradient(to bottom, #4299e1, #3182ce);
    color: white;
    border-color: #3182ce;
    box-shadow: 0 2px 5px rgba(66, 153, 225, 0.3);
    font-weight: 600;
}
.pagination .disabled span {
    color: #a0aec0;
    background: #edf2f7;
    border-color: #e2e8f0;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}
.pagination .prev a,
.pagination .next a {
    padding: 8px 16px;
    font-weight: 600;
}
.blank-small {
    height: 20px;
    clear: both;
}
@media (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .pagination li.hidden-mobile {
        display: none;
    }
}

/* ===== 导航菜单样式（已去重优化） ===== */
.nav-tree {
    background: #FFFFFF;
    margin: 5px;
    padding: 0;
    height: 40px;
    list-style: none;
    white-space: nowrap;
    border-radius: 12px;
    position: relative;
}
.nav-tree > li {
    display: inline-block;
    position: relative;
    line-height: 40px;
    overflow: visible;
}
.nav-tree > li > a {
    color: #FD8B08;
    display: block;
    padding: 0 15px;
    text-decoration: none;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
}
.nav-tree > li:hover > a,
.nav-tree > li > a.cur:hover {
    background: #7C96FF;
    color: white;
    font-weight: 600;
    border-radius: 20px;
}
.nav-tree > li > a:active {
    transform: scale(0.98);
}
.nav-tree > li > a.cur {
    position: relative;
    background: none;
}
.nav-tree > li > a.cur:after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #FD8B08;
    border-radius: 3px;
}
.nav-tree > li > a.cur:hover:after {
    display: none;
}
.nav-tree ul {
    display: none;
    position: absolute;
    left: 10px;
    top: 100%;
    background: #fff;
    min-width: 180px;
    padding: 5px 0;
    z-index: 1000;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px !important;
    overflow: hidden;
    background-clip: padding-box;
}
.nav-tree ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-tree ul li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-tree ul li a:hover {
    background: #f5f5f5;
    font-weight: 600;
}
.nav-tree ul li:first-child a {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.nav-tree ul li:last-child a {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.nav-tree li:hover > ul {
    display: block;
}

/* ===== 产品卡片公用样式 ===== */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.product-card img {
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.product-card:hover img {
    transform: scale(1.02);
}
.media-body h2 {
    height: 2.8em;
    line-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}
.price-info .text-yellow span {
    font-size: 18px;
    font-weight: bold;
}
.price-info .text-gray {
    font-size: 11px;
}

/* ===== 产品推荐卡片优化 ===== */
.carousel-pro .item {
    width: 260px;
    border-radius: 13px;
    overflow: hidden;
    margin: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}
.carousel-pro .item .padding {
    padding: 5px;
}
.carousel-pro .item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: block;
}
.carousel-pro .media-body {
    padding: 9px 11px 0px !important;
    line-height: 1.6;
}
.carousel-pro .item h2 {
    font-size: 16px;
    margin: 3px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carousel-pro .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.carousel-pro .height-middle {
    line-height: 1.6 !important;
}
@media (max-width: 768px) {
    .carousel-pro .item {
        width: 100%;
        max-width: 260px;
        margin: 8px auto;
    }
    .carousel-pro .item .padding {
        padding: 7.5px !important;
    }
    .carousel-pro .item img {
        height: 160px;
    }
}
.tab-body .carousel-pro .item {
    border: none !important;
}

/* ===== 浅紫色按钮（完美版） ===== */
.button-light-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    background: linear-gradient(135deg, #d8b4fe 50%, #86CDFF 50%);
    color: #f6fdeb;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    min-width: 100px;
    gap: 2px;
    -webkit-tap-highlight-color: transparent;
}
.button-light-purple:hover,
.button-light-purple:active {
    color: #ffffff !important;
}
.button-light-purple:active {
    transform: translateY(2px);
}

/* ========== 轮播底部空白彻底清除 ========== */
.layout.bg-gray {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}
.slides,
.slides .item {
    margin: 0 !important;
    padding: 0 !important;
}
.slides .item img {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ========== 产品标签间距 ========== */
.pro-section .tab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    row-gap: 15px !important;
    padding: 0 !important;
    margin: 0 auto 20px auto !important;
}
.pro-section .tab-nav li a {
    color: #333 !important;
    background: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    display: inline-block;
}
.pro-section .title-c h3 {
    color: #fff !important;
}

/* ========== 病理技术 / 行业动态 ========== */
.path-section {
    background: linear-gradient(135deg, #b3a1ff 100%, #66A2FB 50%) !important;
    padding: 15px 0 !important;
}
.path-section .title-c h3 {
    color: #333 !important;
}
.news-section {
    background: #e0f2fe !important;
    padding: 15px 0 !important;
}
.news-section .title-c h3 {
    color: #333 !important;
}

