* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    /* background-color: #f8f9fa; */
    background: rgb(255, 255, 255);
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #f8f9fa;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.logo i {
    margin-right: 10px;
    color: #3498db;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    /* color: #333; */
    color: gray;
    /* font-weight: 500; */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    /* 高级感的无衬线字体 */
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-weight: 600; /* 半粗体，显得有力量 */
    font-size: 1.2rem;
    letter-spacing: 1px; /* 增加字间距，显得精致 */
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
    background-color: #f8f9fa;
}

.header-phone {
    color: white;
    background-color: #c4241c;
    padding: 1.4vh 4vw;
    border-radius: 25px;
    overflow: hidden;          /* 遮罩层溢出隐藏 */
    cursor: pointer;
    position: relative;          /* 保证伪元素定位在按钮里 */
}
@media (max-width: 576px) {
    .phone-hidden {
        display: none;
    }
}

/* 产品空白样式 */
/* 通用占位样式：水平+垂直居中 */
.product-range-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  
    width: 100%;
    min-height: 240px;
    padding: 32px;
  
    /* background: #f7f8fb; */
    /* border: 2px dashed #e5e7eb; */
    border-radius: 12px;
    color: #9aa0a6;
  
    margin: 32px auto;
  }
  
  /* 图标和文字 */
  .product-range-empty i {
    font-size: 36px;
    margin-right: 12px;
    color: #c7cdd3;
  }
  
  .product-range-empty p {
    margin: 0;
    font-size: 16px;
    color: #9aa0a6;
  }
  
  /* 放在 grid 容器（如 .products-grid）时，跨越所有列，真正居中 */
  .products-grid > .product-range-empty {
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
  }
  
  /* 放在 flex 容器时，确保自身也居中 */
  .flex, .d-flex, .products-wrapper {
    /* 如果你的容器类名不同，可忽略此块或替换为你的容器类 */
  }
  .flex > .product-range-empty,
  .d-flex > .product-range-empty,
  .products-wrapper > .product-range-empty {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* 移动端优化 */
  @media (max-width: 600px) {
    .product-range-empty {
      min-height: 160px;
      padding: 24px;
    }
    .product-range-empty i {
      font-size: 28px;
      margin-right: 10px;
    }
    .product-range-empty p {
      font-size: 14px;
    }
  }

/*  */
.header-phone::before{
    content: "";  /* 必须设置content */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background: linear-gradient(to right, #333, #333); /* 覆盖颜色渐变 */
    border-radius: 25px;

    border-radius: 25px;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: 1;
}

.header-phone:hover::before{
    transform: translateX(0);
}

.header-phone > * {
    position: relative;
    z-index: 2;
  }


.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* 产品标题居中显示 */
.container .product-title{
    text-align: center;
}
/* 业务简介 */
.container .product-desc{
    text-align: center;
}

/* 分类样式 */
.product-category{
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    gap: 8px; /* 元素之间的间距（可选） */
    margin: 8px 0;
}
.product-category-item{
    padding: 8px 16px; 
    border: 1px solid gainsboro; 
    color: gray; 
    background-color: whitesmoke; 
    border-radius: 25px;
    white-space: nowrap; /* 文字不换行，避免半截掉下去 */
}
.product-category-item:hover{
    color: white; 
    background-color: black; 
}
.product-category-item.active{
    color: white; 
    background-color: black;
}


/* 轮播图样式 */
#hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    /* margin-top: 100px; */
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* 产品展示样式 */
#featured-products {
    /* padding: 20px 0; */
    margin-top: 8rem;
    background: white;
}

/* 筛选条件样式 */
.filter-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
}

.search-row {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

.search-box button {
    padding: 1rem 1.5rem;
    background: #3498db;
    border: none;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #2980b9;
}

/* 产品网格样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex: 1;
}

.product-price {
    font-size: 1rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    margin-top: auto;
}

.product-btn:hover {
    background: white;
    color: black;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    /* padding: 0.8rem 1.5rem; */
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgb(255, 255, 255);
    color: black;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
   
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
    0 4px 12px rgba(0, 0, 0, 0.05);; /* 柔和阴影 */

}

.pagination-btn:hover:not(:disabled) {
    background: black;
    color: white;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: white;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 2px solid #ddd; */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #666;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
    0 4px 12px rgba(0, 0, 0, 0.05);; /* 柔和阴影 */
}

.page-number:hover {
    color: white;
    background: black;
    transform: translateY(-2px);
}

.page-number.active {
    background: black;
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* 联系信息样式 */
#contact-info {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* .contact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
} */

.contact-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-details p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
    /* background: #2c3e50; */
    background: rgb(246, 246, 248);
    color: rgb(51, 51, 51);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: rgb(51, 51, 51);
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgb(51, 51, 51);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 产品页面样式 */
#products-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    padding: 120px 0 60px;
}

#products-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#search-filter {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-box button {
    padding: 1rem 1.5rem;
    background: #3498db;
    border: none;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.filter-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#products-showcase {
    padding: 60px 0;
    background: #f8f9fa;
}

/* 联系我们页面样式 */
.contact-section{
    margin: 40px 0;
}
.contact-group{
    /* width: 80vw; */
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    justify-content: center; /* 水平居中 */
    gap: 6vw;

}
.contact-item{
    display: table-column; 
    text-align: center; 
    /* border: 1px solid red; */
}
.contact-content{
    font-size: 30px;
}
#contact-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    padding: 120px 0 60px;
}

#contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#contact-content {
    padding: 80px 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2rem;
    color: #3498db;
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.info-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.info-content p {
    color: #666;
    margin-bottom: 0.25rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
}

.submit-btn i {
    margin-right: 0.5rem;
}

#map-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.map-container {
    height: 400px;
    background: #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.map-placeholder {
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input,
    .search-box button {
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-info {
        text-align: center;
        min-width: auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: center;
    }
    
    .prev-btn,
    .next-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    nav {
        padding: 1rem;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-card {
        margin: 0;
        min-height: 300px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .pagination-numbers {
        gap: 0.3rem;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
} 