/* 基础样式重置与通用设置 */
      
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 20px;
        }

        a {
            text-decoration: none;
            transition: color 0.3s ease;
        }

        ul {
            list-style: none;
        }

     
      
        /* 页面标题样式 */
        .page-title {
            background-color: #0a3d62;
            color: white;
            padding: 40px 0;
            text-align: center;
            margin-bottom: 30px;
        }

        .page-title h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
        }

        .page-title p {
            opacity: 0.9;
            font-size: 1.1rem;
        }

        /* 产品列表页特有样式 */
        .product-page {
            padding: 30px 0 60px;
        }

        /* 机器类型卡片区域 */
        /* 修复机器类型容器布局 */
        .machine-types {
            display: flex; /* 将grid改为flex布局 */
            justify-content: center; /* 居中内容 */
            margin-bottom: 40px;
            width: 100%; /* 确保占满父容器宽度 */
        }
        
        /* 调整Swiper容器样式 */
        .machine-swiper {
             position: relative;
            width: 100%; /* 占满父容器宽度 */
            padding: 20px 0; /* 修改内边距，仅保留上下内边距 */
            margin: 0 20px; /* 添加左右外边距 */
        }
        
        /* 确保卡片宽度一致 */
        .swiper-slide.machine-card {
            width: 300px !important; /* 强制卡片宽度 */
        }
        
        .machine-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .machine-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }

        .machine-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }

        .machine-card-content {
            padding: 20px;
        }

        .machine-card h3 {
            color: #0a3d62;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .machine-card p {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* 主内容区域布局 */
        .content-container {
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 30px;
            width: 100%;
            max-width: 1600px;
            margin: 0 auto;
            align-items: start; /* 新增：使列高度根据内容自适应 */
        }

        /* 确保导航栏高度仅由内容决定 */
        .material-nav {
            background: white;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            overflow: hidden;
           
        }

        .material-item {
            padding: 10px 20px; /* 减少内边距节省空间 */
            border-bottom: 1px solid #f0f0f0;
        }

        .nav-header {
            background: #0a3d62;
           
            padding: 15px 20px;
            font-weight: bold;
            
            display: flex;
            align-items: center;
        }
        .nav-header span{
            margin-left: 10px;
             color: white;
           font-size: 1.8rem;
        }
        .nav-header img{
            width: 2rem;
        }
        .material-list {
            list-style: none;
        }

        .material-item {
            padding: 12px 20px;
            border-bottom: 1px solid #f0f0f0;
        }

        .material-item a {
            color: #333;
            font-size: 1.2rem;
            text-decoration: none;
            display: block;
            transition: color 0.2s ease;
        }

        .material-item a:hover,
        .material-item.active a {
            color: #3498db;
            font-weight: 500;
        }

        /* 产品列表 */
       /* 产品列表 */
        .product-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 电脑端3个平分 */
            gap: 25px;
            width: 100%;
        }
        
        /* 在小屏幕设备上调整网格 */
        @media (max-width:998px) {
            .product-list {
                grid-template-columns: repeat(2, 1fr); /* 平板端2个平分 */
                gap: 20px;
            }
        }
        
        @media (max-width: 768px) {
            .product-list {
                grid-template-columns: 1fr; /* 手机端1个 */
                gap: 15px;
            }
        }

        .product-card {
            width: 100%;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }

        .product-image {
            display: block;
            height: 200px;
            overflow: hidden;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.5s ease;
        }

        .product-card:hover .product-image img {
            transform: scale(1.05);
        }

        .product-info {
            padding: 20px;
        }

        .product-title {
            font-size: 1.1rem;
            color: #0a3d62;
            margin-bottom: 8px;
        }

        .product-material {
            display: inline-block;
            background: #eaf2f8;
            color: #3498db;
            font-size: 0.8rem;
            padding: 3px 8px;
            border-radius: 4px;
            margin-bottom: 12px;
        }

        .product-desc {
           
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.5;
            max-height: calc(1.5em * 4);
        
        }

        .product-features {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .feature-tag {
            font-size: 0.8rem;
            color: #666;
            background: #f5f5f5;
            padding: 3px 8px;
            border-radius: 4px;
        }

        .product-price {
            font-weight: bold;
            color: #0a3d62;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .btn-product {
            display: block;
            width: auto;
            text-align: center;
            background: #3498db;
            color: white;
            padding: 10px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 500;
            transition: background 0.3s ease;
        }

        .btn-product:hover {
            background: #2980b9;
        }

        /* 页脚样式 */
        .site-footer {
            background-color: #0a3d62;
            color: white;
            padding: 50px 0 20px;
            margin-top: 50px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
        }

        .footer-column h4 {
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        .footer-column p {
            opacity: 0.8;
            margin-bottom: 10px;
        }

        .footer-column ul li {
            margin-bottom: 8px;
        }

        .footer-column a {
            color: #e0e0e0;
        }

        .footer-column a:hover {
            color: white;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* 分页样式 */
        .pagination {
            margin: 40px 0;
            text-align: center;
        }

        .pagination ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: inline-flex;
            gap: 8px;
        }

        .pagination .page-link {
            display: block;
            padding: 8px 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            color: #3498db;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .pagination .page-item.active .page-link {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }

        /* 添加激活状态下的悬停样式 */
        .pagination .page-item.active .page-link:hover {
            background-color: #2980b9;
            color: #3498db;
        }

        .pagination .page-link:hover:not(.disabled .page-link) {
            background-color: #f5f9ff;
            border-color: #3498db;
        }

        .pagination .page-item.disabled .page-link {
            color: #ccc;
            pointer-events: none;
            background-color: #f9f9f9;
        }

        /* 响应式调整 */
        @media (max-width: 992px) {
            .content-container {
                grid-template-columns: 220px 1fr;
            }
        }

        @media (max-width: 768px) {
            .content-container {
                grid-template-columns: 1fr;
            }

            .material-nav {
                margin-bottom: 30px;
            }

            .machine-types {
                grid-template-columns: repeat(2, 1fr);
            }

            .nav-links {
                gap: 15px;
            }

            .logo {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 576px) {
            .machine-types {
                grid-template-columns: 1fr;
            }

            .product-list {
                grid-template-columns: 1fr;
            }

            .main-nav {
                flex-direction: column;
                gap: 15px;
            }

            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }

            .page-title h1 {
                font-size: 1.8rem;
            }
        }
        /* Swiper容器样式 */
        .machine-swiper {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 30px;
            position: relative; /* 确保按钮相对容器定位 */
        }
        
        /* 卡片样式 */
        .machine-card {
            width: 300px !important;
            margin-right: 20px;
        }
        
        /* 图片样式 */
        .machine-card img {
            width: 100%;
            height: auto;
        }
        
        /* 卡片内容样式 */
        .machine-card-content {
            padding: 15px;
        }

     .s-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px; /* Makes it elliptical */
    z-index: 10;
}

.button-prev, .button-next {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-prev:hover, .button-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.button-prev {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hide buttons on mobile devices */
@media (max-width: 768px) {
    .s-btn {
        display: none;
    }
}
    
            
        
            /* 手机端隐藏按钮 */
            @media (max-width: 768px) {
                .swiper-button-prev, .swiper-button-next {
                    display: none !important;
                }
            }
        
        .machine-swiper {
            padding: 20px 30px;
        }
        
        /* 按钮悬停效果 */
        .scroll-btn:hover {
            background-color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        
        .scroll-btn:active {
            background-color: #f5f5f5;
        }
/* 热门产品侧边栏增强样式 */
.popular-products-sidebar {
    padding: 15px 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
    background-color: #f9fafc;
    border-radius: 0 0 8px 8px;
}

.sidebar-section-title {
    font-size: 1.4rem;
    color: #0a3d62;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 2px solid #3498db;
    font-weight: 600;
}

/* 产品卡片样式优化 */
.popular-product-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popular-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.popular-product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.popular-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 0 0 4px;
}

.popular-product-info {
    padding: 10px;
    flex-grow: 1;
}

.popular-product-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 6px;
    
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}



/* 按钮样式优化 */
.popular-product-card .btn-sm {
    width: 100%;
    padding: 6px ;
    font-size: 0.8rem;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.popular-product-card .btn-sm:hover {
    background-color: #2980b9;
}
/* FAQ 页面样式 */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h1 {
    font-size: 2.5rem;
    color: #0a3d62;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.faq-search {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.faq-search input:focus {
    border-color: #3498db;
    outline: none;
}

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.faq-category-btn {
    padding: 10px 20px;
    background: #f1f1f1;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.faq-category-btn.active, .faq-category-btn:hover {
    background: #3498db;
    color: white;
}

.faq-list {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #0a3d62;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-contact {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: #f1f8ff;
    border-radius: 10px;
}

.faq-contact h2 {
    color: #0a3d62;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.faq-contact p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    .faq-header h1 {
        font-size: 2rem;
    }
    
    .faq-header p {
        font-size: 1rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .faq-categories {
        gap: 10px;
    }
    
    .faq-category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eaeaea;
}

.breadcrumb .container {
    display: flex;
    justify-content: center;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: inline-block;
    margin: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    padding: 0 10px;
    color: #6c757d;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #6c757d;
    font-weight: 500;
}

