/* 
 * 诺安基因网站样式
 * 主色调：粉色系 (#e83e8c)
 */

:root {
    --primary-color: #f65283;
    --primary-light: #ff7ba3;
    --primary-dark: #d03e67;
    --secondary-color: #333333;
    --light-bg: #f8f9fa;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
}

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

/* 新的头部区域样式 */
.hero-section {
    position: relative;
    height: auto;
}

.home.hero-section {
    position: relative;
    height: 100vh;
    /* max-height: 850px; */
    /* min-height: 600px; */
}

/* 头部覆盖层 */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* 固定在顶部的导航 */
.header-overlay.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: fadeInDown 0.5s;
}

/* 导航栏淡入动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 当滚动时固定导航栏 */
.header-overlay.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 导航栏滚动效果 */
.header-overlay.scrolled .main-navbar {
    background: transparent;
    padding: 10px 0;
}

.header-overlay.scrolled .logo-img {
    max-height: 60px;
}

/* 联系信息栏 */
.contact-bar {
    background-color: rgba(33, 37, 41, 0.8);
    padding: 10px 0;
    color: #fff;
    transition: all 0.4s ease;
}

.contact-info span {
    margin-right: 15px;
    font-size: 14px;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* 主导航栏 */
.main-navbar {
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.logo-img {
    max-height: 70px;
    transition: all 0.4s ease;
}

.nav-wrapper {
    width: 100%;
}

/* 主菜单样式 */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu .nav-item {
    margin: 0 20px;
    position: relative;
}

.main-menu .nav-item a {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 0;
    display: block;
    position: relative;
    letter-spacing: 1px;
}

.main-menu .nav-item a:hover,
.main-menu .nav-item.active a {
    color: var(--primary-color);
}

.main-menu .nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-menu .nav-item a:hover::after,
.main-menu .nav-item.active a::after {
    width: 100%;
}

/* 下拉菜单 */
.dropdown-trigger {
    position: relative;
}

.dropdown-trigger .fa-chevron-down {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown-trigger:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* 修复下拉菜单显示问题并优化样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1010;
    pointer-events: none;
    border-top: 3px solid var(--primary-color);
    text-align: center;
}

/* 下拉菜单三角形指示器 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent var(--primary-color) transparent;
}

/* 增加悬停效果 */
.dropdown-trigger:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* 确保下拉菜单和父链接之间没有空隙 */
.dropdown-trigger>a::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
}

/* 添加额外的触发区域 */
.dropdown-trigger::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
}

/* 提高下拉菜单优先级 */
.dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 25px;
    display: block;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding-left: 30px;
}

.dropdown-menu li a::after {
    display: none;
}

/* 添加分隔线 */
.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* 搜索框样式 */
.search-container {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    border: 1px solid #ddd;
    padding: 8px 15px;
    width: 200px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-form input:focus {
    width: 250px;
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: -40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

/* 移动菜单按钮 */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 轮播图样式 */
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow-x: hidden;
    /* 确保轮播图在导航栏下方 */
}

.carousel-item {
    height: 100vh;
    /* max-height: 1080px; */
    min-height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.carousel-caption {
    bottom: 180px;
    z-index: 2;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation-delay: 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 20px;
    margin-bottom: 30px;
    animation-delay: 0.6s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    animation-delay: 0.9s;
    font-size: 18px;
    padding: 10px 30px;
    font-weight: 500;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%) scale(1);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: translateY(-50%) scale(1.2);
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel-control-prev::after,
.carousel-control-next::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.2);
}

/* 添加控制图标的样式 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 15px;
}


/* 产品展示文字样式 */
.cell.product-caption {
    position: absolute;
    /* text-align: left; Removed as text-center is likely used in HTML */
    max-width: 80%;
    /* Adjusted max-width */
    width: 80%;
    /* Added width for better centering control */
    padding: 20px;
    /* Added padding for content spacing */
    top: 50%;
    left: 50%;
    /* Added left property */
    transform: translate(-50%, -50%);
    /* Centering transform */
    z-index: 10;
    color: #fff;
    /* Ensure text is visible, assuming dark background */
    text-align: center;
    /* 添加文本居中 */
}

.cell.product-caption .product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cell.product-caption .product-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
}

.cell.product-caption .cell-types {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cell.product-caption .cell-type {
    color: #fff;
    font-size: 1.1rem;
    margin-right: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.cell.product-caption .cell-type i {
    margin-right: 10px;
    font-size: 0.8rem;
}

.cell.product-caption .feature-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cell.product-caption .feature-item {
    color: #fff;
    font-size: 1.1rem;
    margin-right: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.cell.product-caption .feature-item i {
    color: #4a90e2;
    margin-right: 10px;
    font-size: 1.3rem;
}


/* 第二种幻灯   */
.item2.product-caption {
    position: absolute;
    /* text-align: left; Removed as text-center is likely used in HTML */
    max-width: 80%;
    /* Adjusted max-width */
    width: 80%;
    /* Added width for better centering control */
    padding: 20px;
    /* Added padding for content spacing */
    top: 50%;
    left: 50%;
    /* Added left property */
    transform: translate(-50%, -50%);
    /* Centering transform */
    z-index: 10;
    color: #fff;
    /* Ensure text is visible, assuming dark background */
    text-align: center;
    /* 添加文本居中 */
    /* position: absolute;
    text-align: left;
    max-width: 90%;
    padding-left: 5%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 10; */
}

.item2.product-caption .product-tag {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.item2.product-caption .product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item2.product-caption .feature-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.item2.product-caption .feature-item {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.item2.product-caption .feature-item i {
    color: #f39c12;
    margin-right: 10px;
    font-size: 1rem;
}

/* 第三张幻灯*/




/* 服务数据样式 */
.service-data {
    padding: 60px 0;
    margin-top: 20px;
    /* 添加顶部间距，防止内容被fixed导航栏遮挡 */
}

.counter-box {
    padding: 30px 20px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.counter-box i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.counter-box h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.counter-box p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

/* 热门产品样式 */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 40px);
}

.section-header p {
    font-size: 16px;
    color: var(--gray-color);
}

.product-card {
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card .product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-img {
    position: relative;
    overflow: hidden;
}

.product-img img {
    transition: all 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}


.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 合作伙伴样式 */
.partners {
    background-color: var(--light-color);
    padding-bottom: 0px;
}

.partner-logos img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 底部样式 */
footer {
    background-color: #222;
    color: #ccc;
}

.footer-main {
    padding: 70px 0 40px;
}

.footer-info p {
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.8;
}

.social-links a {
    display: inline-block;
    background-color: #333;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

footer h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    position: relative;
    margin-bottom: 25px;
}

footer h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    padding: 0;
    list-style: none;
}

.footer-contact li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 44px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .main-menu .nav-item {
        margin: 0 10px;
    }

    .main-menu .nav-item a {
        font-size: 14px;
    }

    .search-form input {
        width: 150px;
    }
}

@media (max-width: 991px) {
    .carousel-caption {
        bottom: 80px;
    }

    .carousel-caption h2 {
        font-size: 36px;
    }

    .footer-info,
    .footer-links,
    .footer-contact {
        margin-bottom: 30px;
    }

    .logo-img {
        max-height: 60px;
    }

    .main-navbar {
        padding: 10px 0;
    }

    .main-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        z-index: 1001;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        overflow-y: auto;
    }

    .nav-menu.show {
        right: 0;
    }

    .main-menu {
        display: block;
    }

    .main-menu .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .main-menu .nav-item a {
        padding: 12px 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0 0 0 15px;
        display: none !important;
        border-top: none;
        text-align: left;
        width: 100%;
        border-radius: 0;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li a {
        text-align: left;
        padding: 8px 15px;
    }

    /* 移动端下拉菜单展开状态 */
    .dropdown-trigger.active .dropdown-menu {
        display: block !important;
        background-color: #f8f9fa;
        margin: 5px 0;
    }

    .mobile-menu-toggle {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1002;
        background-color: var(--primary-color);
        color: #fff;
        width: 44px;
        height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-toggle.active {
        background-color: var(--primary-dark);
    }
}

@media (max-width: 767px) {


    .carousel-item {
        height: 500px;
        min-height: auto;
    }

    .carousel-caption {
        bottom: 40px;
    }

    .carousel-caption h2 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .counter-box {
        margin-bottom: 30px;
    }

    .search-container {
        display: none;
    }

    .logo-img {
        max-height: 50px;
    }
}

/* 动画效果 */
.animate__animated {
    animation-duration: 1s;
}

[data-wow-delay] {
    animation-delay: attr(data-wow-delay);
}

/* 服务优势区域样式 */
.service-advantages {
    background-color: #f9f9f9;
}

.advantage-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-color);
}

.advantage-card:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.1;
    z-index: 0;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.advantage-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.advantage-content p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 关于诺安基因区域样式 */
.about-us {
    position: relative;
    overflow: hidden;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.about-image img {
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}

.feature-item span {
    font-weight: 500;
    color: var(--secondary-color);
}

/* 行业资讯区域样式 */
.news-section {
    background-color: #f9f9f9;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    z-index: 1;
}

.news-date span {
    display: block;
}

.news-date span:first-child {
    font-size: 18px;
}

.news-content {
    padding: 25px;
}

.news-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--secondary-color);
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 产品页面横幅样式 */
.product-hero-section {
    height: 300px;
    min-height: 300px;
    position: relative;
}

.grid-view {
    display: none;
}

.list-view {
    display: block;
}

.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url(https://img.freepik.com/free-photo/chemical-glassware-with-colors-liquids-lab_1150-19428.jpg) center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* position: absolute; */
    width: 100%;
    top: 0;
    left: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 40px 0;
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a,
.breadcrumb-item.active {
    color: #fff;
    font-size: 16px;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

/* 产品侧边栏样式 */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: var(--secondary-color);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

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

.category-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.category-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.category-list li a {
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list li a span {
    color: var(--gray-color);
    font-size: 14px;
}

.category-list li a:hover,
.category-list li.active a {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 价格区间滑块 */
.price-range-slider {
    padding: 10px 0;
}

.price-range-container {
    position: relative;
    height: 5px;
    background: #f0f0f0;
    border-radius: 5px;
    margin: 20px 0;
}

.range-min,
.range-max {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.range-min::-webkit-slider-thumb,
.range-max::-webkit-slider-thumb {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
}

.price-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.price-from,
.price-to {
    display: flex;
    align-items: center;
}

.price-from span,
.price-to span {
    color: #666;
    margin-right: 5px;
}

.price-from input,
.price-to input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.price-separator {
    margin: 0 10px;
    color: #666;
}

/* 品牌筛选 */
.brand-filter {
    padding: 5px 0;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-label {
    color: #666;
    cursor: pointer;
}

/* 热销产品小部件 */
.hot-product-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.hot-product-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-product-img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.hot-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-product-item:hover .hot-product-img img {
    transform: scale(1.1);
}

.hot-product-info h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.hot-product-info h5:hover {
    color: var(--primary-color);
}

.hot-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.hot-product-rating {
    color: #ffc107;
    font-size: 12px;
}

/* 产品筛选和排序栏 */
.product-filter-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.showing-result {
    color: #666;
    font-size: 14px;
}

.showing-result span {
    color: var(--primary-color);
    font-weight: 700;
}

.view-switch button {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.view-switch button.active,
.view-switch button:hover {
    color: var(--primary-color);
}

/* 产品卡片 增强版 */
.product-card {
    height: 100%;
    position: relative;
}

.product-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-rating span {
    color: #666;
    margin-left: 5px;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-actions a {
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-actions a:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-card:hover .product-actions {
    opacity: 1;
    visibility: visible;
}

.product-card:hover .product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* 产品列表视图 */
.product-list-view .product-card {
    display: flex;
    align-items: center;
}

.product-list-view .product-img {
    width: 30%;
}

.product-list-view .product-info {
    width: 70%;
    padding-left: 30px;
}

/* 分页控件 */
.product-pagination .page-link {
    color: var(--secondary-color);
    border-color: #ddd;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

/* 媒体查询 */
@media (max-width: 991px) {
    .product-sidebar {
        margin-bottom: 30px;
    }

    .hot-product-item {
        width: 48%;
        display: inline-block;
        vertical-align: top;
        margin-right: 2%;
    }

    .hot-product-item:nth-child(2n) {
        margin-right: 0;
    }

    .hot-product-img {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .product-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .banner-title {
        font-size: 32px;
    }

    .product-filter-bar {
        flex-direction: column;
    }

    .showing-result {
        margin-bottom: 15px;
    }

    .hot-product-item {
        width: 100%;
        margin-right: 0;
    }

    .hot-product-img {
        height: 120px;
    }
}

/* 产品详情页样式 */
.product-gallery {
    position: relative;
    margin-bottom: 30px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.main-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.image-zoom-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.image-zoom-overlay:hover {
    background: var(--primary-color);
    color: #fff;
}

.thumbnail-container {
    margin-top: 15px;
}

.thumbnail {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 5px;
    box-sizing: border-box;
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* 产品信息样式 */
.product-info-container {
    padding: 0 15px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rating-count {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

.product-sku {
    font-size: 14px;
    color: #666;
}

.product-sku span {
    font-weight: 600;
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.price-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.discount-badge {
    background-color: #ff6b6b;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.product-short-description {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-short-description p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

.product-stock {
    margin-bottom: 20px;
    color: #28a745;
    font-weight: 600;
}

.product-stock i {
    margin-right: 5px;
}

.product-options {
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.option-button:hover,
.option-button.active {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.quantity-selector {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.quantity-selector label {
    font-weight: 600;
    margin-right: 15px;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-decrease,
.quantity-increase {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-decrease:hover,
.quantity-increase:hover {
    background: #e9e9e9;
}

.quantity-input {
    width: 60px;
    border: none;
    text-align: center;
    padding: 8px 0;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.add-to-cart-btn {
    flex: 1;
}

.buy-now-btn {
    flex: 1;
}

.wishlist-btn {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-color: #ddd;
}

.wishlist-btn:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background-color: #fff;
}

.product-shipping {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.shipping-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.shipping-item:last-child {
    margin-bottom: 0;
}

.shipping-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
}

.shipping-item span {
    color: #666;
    font-size: 14px;
}

/* 产品描述选项卡 */
.product-description-tabs {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.nav-tabs {
    background-color: #f9f9f9;
    border-bottom: none;
}

.nav-tabs .nav-link {
    border: none;
    padding: 15px 25px;
    color: #666;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: #fff;
    border-top: 2px solid var(--primary-color);
}

.tab-content {
    padding: 30px;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
}

.tab-pane h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tab-pane p,
.tab-pane li {
    color: #666;
    line-height: 1.7;
}

.tab-pane ul {
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 10px;
}

.specification-table,
.usage-table {
    margin-top: 20px;
}

.specification-table td,
.usage-table td,
.usage-table th {
    vertical-align: middle;
    color: #666;
}

.specification-table td strong,
.usage-table th {
    color: var(--secondary-color);
}

/* 评价区域 */
.review-summary {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.average-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.average-stars {
    color: #ffc107;
    font-size: 18px;
    margin: 10px 0;
}

.review-count {
    color: #666;
    font-size: 14px;
}

.review-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-bar-item .stars {
    width: 50px;
    color: #666;
    font-size: 14px;
}

.review-bar-item .progress {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    margin: 0 10px;
}

.review-bar-item .percent {
    width: 40px;
    color: #666;
    font-size: 14px;
    text-align: right;
}

.review-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    color: #ffc107;
}

.review-content p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.7;
}

/* 客户支持区域 */
.support-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.support-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.support-card h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.support-card p {
    color: #666;
    margin-bottom: 20px;
    min-height: 48px;
}

/* 媒体查询 */
@media (max-width: 991px) {
    .product-gallery {
        margin-bottom: 30px;
    }

    .product-info-container {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .product-title {
        font-size: 24px;
    }

    .price-text {
        font-size: 24px;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }

    .tab-content {
        padding: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .wishlist-btn {
        width: 100%;
    }

    .support-card {
        margin-bottom: 20px;
    }
}

/* 图片放大模态窗口 */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow: auto;
}

.image-zoom-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.image-zoom-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 5px solid #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.image-zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.image-zoom-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* 新闻分类页面样式修复 */
.news-detail-section {
    padding: 50px 0;
}

.news-header {
    margin-bottom: 30px;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: #777;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
}

.news-meta span i {
    margin-right: 5px;
}

.news-meta .news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.news-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.news-featured-image:hover img {
    transform: scale(1.05);
}

.news-content-body {
    margin-bottom: 30px;
}

.news-content-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #333;
}

.news-content-body p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.news-content-body .lead {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    line-height: 1.6;
}

.news-content-body ul,
.news-content-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-content-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-quote {
    margin: 30px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.news-quote blockquote {
    margin: 0;
}

.news-quote p {
    font-style: italic;
    font-size: 18px;
    color: #555;
}

.news-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: #333;
}

.news-tags {
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-label,
.share-label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
    color: #555;
}

.news-share {
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    margin-right: 10px;
    transition: all 0.3s;
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.related-news {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.news-card.small {
    height: 100%;
}

.news-card.small .news-img {
    height: 160px;
}

.news-card.small .news-content {
    padding: 15px;
}

.news-card.small h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 新闻侧边栏样式修复 */
.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget .widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.author-widget .author-info {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.author-bio {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-social {
    margin-top: 15px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    margin: 0 5px;
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

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

.recent-posts li {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumb {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-thumb:hover img {
    transform: scale(1.05);
}

.post-info {
    flex: 1;
}

.post-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-info h4 a {
    color: #333;
    transition: color 0.3s;
}

.post-info h4 a:hover {
    color: var(--primary-color);
}

.post-info span {
    font-size: 13px;
    color: #888;
}

.categories-widget .categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget .categories-list li {
    margin-bottom: 10px;
}

.categories-widget .categories-list a {
    display: block;
    color: #555;
    font-size: 15px;
    padding: 8px 0;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-widget .categories-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.categories-widget .count {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    transition: all 0.3s;
}

.categories-widget .categories-list a:hover .count {
    background-color: var(--primary-color);
    color: #fff;
}

.inquiry-widget {
    text-align: center;
    background-color: #f9f9f9;
}

.inquiry-widget p {
    margin-bottom: 20px;
    color: #666;
}

.inquiry-widget .btn {
    width: 100%;
}

/* 咨询面板和侧边客服样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    display: none;
}

.consult-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.consult-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.consult-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.consult-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.consult-body {
    padding: 20px;
}

.consult-body p {
    margin-bottom: 20px;
    color: #555;
}

.consult-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    text-align: center;
    font-size: 15px;
}

.consult-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* 客服中心样式 */
.side-service {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.service-toggle {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px 0 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.service-toggle i {
    font-size: 24px;
    margin-bottom: 5px;
}

.service-toggle span {
    writing-mode: vertical-lr;
    /* transform: rotate(180deg); */
    font-size: 14px;
    letter-spacing: 2px;
}

.service-toggle:hover {
    background-color: var(--primary-dark);
}

.debug-show {
    right: 50px !important;
}

/* 恢复服务面板的原始定位和转换效果 */
.service-panel {
    position: absolute;
    right: -300px;
    top: 0;
    background-color: #fff;
    width: 300px;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.side-service:hover .service-panel {
    right: 50px;
}

.service-header {
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-header h5 {
    margin: 0;
    font-size: 16px;
}

.close-service {
    cursor: pointer;
    font-size: 18px;
}

.service-body {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.service-item {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dashed #eee;
    /* padding-bottom: 15px; */
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.service-info h6 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #333;
}

.service-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 保留优化的二维码样式 */
.qrcode {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

.qrcode img {
    width: 160px;
    height: 160px;
    margin-bottom: 5px;
    object-fit: contain;
}

.qrcode p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 新增二维码横向布局 */
.qrcode-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
}

.qrcode-item {
    width: 48%;
    text-align: center;
}

.qrcode-item img {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 5px;
}

.qrcode-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.service-form h6 {
    margin-bottom: 10px;
    color: #333;
}

#quick-contact-form .form-control {
    border: 1px solid #ddd;
    font-size: 13px;
}

#quick-contact-form .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#quick-contact-form .btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .side-service .service-toggle span {
        display: none;
    }

    .service-panel {
        width: 280px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

/* 快速咨询浮窗样式 */
.quick-inquiry {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 998;
}

.inquiry-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.inquiry-toggle i {
    font-size: 24px;
}

.inquiry-toggle span {
    font-size: 12px;
    margin-top: 2px;
    display: none;
}

.inquiry-toggle:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.inquiry-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}

.inquiry-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.inquiry-header {
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inquiry-header h5 {
    margin: 0;
    font-size: 16px;
}

.close-inquiry {
    cursor: pointer;
    font-size: 18px;
}

.inquiry-body {
    padding: 15px;
}

#quick-contact-form .form-control {
    border: 1px solid #ddd;
    font-size: 13px;
}

#quick-contact-form .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#quick-contact-form .btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .side-service .service-toggle span {
        display: none;
    }

    .service-panel {
        width: 280px;
    }

    .inquiry-panel {
        width: 300px;
        right: -20px;
    }

    .inquiry-toggle {
        width: 50px;
        height: 50px;
    }

    .inquiry-toggle i {
        font-size: 20px;
    }
}

/* 移动端悬浮客服按钮 */
.service-mobile-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: all 0.3s;
}

.service-mobile-toggle i {
    font-size: 20px;
}

.service-mobile-toggle:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* 移动端样式 */
@media (max-width: 767px) {
    .side-service {
        right: -60px;
        transition: right 0.3s ease;
    }

    .side-service.mobile-active {
        right: 0;
    }

    /* .service-panel {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        border-radius: 0;
        transition: right 0.3s ease;
    } */

    .side-service.mobile-active .service-panel {
        right: 0;
    }

    .service-header {
        border-radius: 0;
    }

    .service-body {
        height: calc(100% - 50px);
        max-height: none;
    }

    .side-service:hover .service-panel {
        right: -280px;
    }

    .side-service.mobile-active:hover .service-panel {
        right: 0;
    }
}

/* 轮播图背景样式 */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 轮播图文字内容样式 */
.carousel-caption {
    max-width: 70%;
    margin: 0 auto;
    bottom: 50%;
    transform: translateY(50%);
    padding: 20px;
    z-index: 10;
}

/* 产品展示文字样式 */
.product-caption {
    text-align: left;
    max-width: 90%;
    padding-left: 5%;
}

.product-caption .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.product-caption .main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFCC00;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-caption .sub-desc {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 30px;
}

.product-caption .feature-list {
    margin-bottom: 30px;
}

.product-caption .feature-item {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.product-caption .feature-item i {
    color: #FFCC00;
    margin-right: 10px;
    font-size: 1.2rem;
}

.product-caption .action-buttons {
    margin-top: 20px;
}

/* 轮播图背景叠加层增强 */
.carousel-overlay {
    background: linear-gradient(to right, rgba(0, 40, 80, 0.8), rgba(0, 20, 40, 0.6));
    opacity: 0.7;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .product-caption .main-title {
        font-size: 2rem;
    }

    .product-caption .subtitle,
    .product-caption .sub-desc {
        font-size: 1.1rem;
    }

    .product-caption .feature-item {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .carousel-caption {
        bottom: 0;
        transform: none;
        padding-bottom: 30px;
    }

    .product-caption {
        text-align: center;
    }

    .product-caption .main-title {
        font-size: 1.6rem;
    }

    .product-caption .subtitle {
        font-size: 0.9rem;
    }

    .product-caption .sub-desc {
        font-size: 1rem;
    }

    .product-caption .feature-item {
        justify-content: center;
        margin-bottom: 8px;
    }

    .carousel-item {
        height: 100vh;
    }

    .carousel-bg {
        height: 100%;
    }
}

#consultPanel {
    display: none;
}

#hero-carousel {
    overflow: hidden;
}

#hero-carousel .carousel-indicators {
    z-index: 9999;
}

/* 修复轮播图高度 */
#hero-carousel .carousel-inner .carousel-item {
    /* height: 100vh; */
    /* overflow: hidden; */
}


/* 动画延迟类 */
.animate__delay-1s {
    animation-delay: 0.5s;
}

.animate__delay-2s {
    animation-delay: 1s;
}

.animate__delay-3s {
    animation-delay: 1.5s;
}

.animate__delay-4s {
    animation-delay: 2s;
}

.pagination .page-item {
    margin: 0 2px;
    /* 每个按钮之间留一点小空隙 */
}

.pagination .page-link {
    min-width: 50px;
    height: 38px;
    line-height: 36px;
    text-align: center;
    font-size: 14px;
    color: var(--secondary-color);
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

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

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