/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
}

.container {
    padding: 0 15%;
    margin: 20px auto;
}

/* 头部样式 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
}

.nav {
    display: flex;
}

.nav-item {
    margin: 0 15px;
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-item:hover {
    color: #3a7fee;
}

.nav-item.active {
    color: #3a7fee;
    border-bottom: 2px solid #3a7fee;
}

.nav-item.active a {
    color: #3a7fee;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3a7fee;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active::after {
    width: 0; /* 激活状态下不显示悬停效果 */
}

/* 轮播图样式 */
.banner-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.slider-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8% 0 12%;
    background: linear-gradient(135deg, #3a7fee 0%, #2a63c9 100%);
    color: white;
    position: relative;
    z-index: 1;
}

.slide-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 80%;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
    padding: 0 20px;
}

.slider-nav-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.slider-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.arrow {
    border: solid #333;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
}

.right {
    transform: rotate(-45deg);
}

.left {
    transform: rotate(135deg);
}

/* 点导航 */
.dots {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.dot {
    width: 30px;
    height: 4px;
    background-color: #ccc;
    margin: 0 5px;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #3a7fee;
}

/* 首页横幅样式 (保留旧样式兼容) */
.banner {
    height: 250px;
    background: linear-gradient(135deg, #3a7fee 0%, #2a63c9 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15%;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('banner-bg.png');
    background-size: cover;
    opacity: 0.3;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.banner p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 60%;
    position: relative;
    z-index: 1;
}

.learn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background-color: white;
    color: #3a7fee;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* 标签导航 */
.tabs {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.tab {
    padding: 5px 20px;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #3a7fee;
    border-bottom: 2px solid #3a7fee;
}

/* 产品分类页面样式 */
.category-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.category-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-image {
    height: 180px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.1);
}

.category-name {
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 1.1rem;
    text-align: center;
    font-weight: bold;
}

.category-header {
    text-align: center;
    margin: 30px 0;
}

.category-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.category-header p {
    color: #666;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 产品列表页的分类标签 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.category-tab {
    padding: 5px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.category-tab.active {
    background-color: #3a7fee;
    color: white;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 10px 0;
}

.search-bar span {
    margin-right: 10px;
}

.search-bar input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    padding: 8px 20px;
    background-color: #3a7fee;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

/* 产品卡片网格 */
.products, .product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 修改为一行5个商品 */
    gap: 20px;
    padding: 0 10%;
    margin-bottom: 50px;
}

.product-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 160px;
    background-color: #3a7fee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
}

.product-image.blue {
    background-color: #3a7fee;
}

.product-image.green {
    background-color: #4fcf8d;
}

.product-image.orange {
    background-color: #f5a623;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    flex-wrap: nowrap; /* 确保子元素不换行 */
}

.view-btn {
    padding: 3px 15px;
    background-color: #3a7fee;
    color: white;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap; /* 添加不换行属性 */
    display: inline-block; /* 确保按钮正确显示 */
}

/* 分页器 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.page-link {
    padding: 5px 10px;
    margin: 0 5px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.page-link.active {
    background-color: #3a7fee;
    color: white;
    border-color: #3a7fee;
}

/* 产品详情页样式 */
.product-detail {
    display: flex;
    background-color: white;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.product-gallery {
    flex: 1;
    padding-right: 20px;
}

.main-image {
    width: 100%;
    height: 300px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid #eee;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info-detail {
    flex: 1;
    padding-left: 20px;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.product-price-info {
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.price-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.label {
    margin-right: 10px;
    color: #666;
}

.price {
    color: #ff6700;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
}

.buy-btn {
    padding: 6px 20px;
    background-color: #ff6700;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.product-spec {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

/* 评论区域 */
.review-section {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.review-pages {
    display: flex;
    align-items: center;
}

.page-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    text-decoration: none;
    color: #666;
}

.review-list {
    padding: 10px 0;
}

.review-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.reviewer-info {
    margin-right: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.review-content {
    flex: 1;
}

.reviewer-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    margin-bottom: 10px;
}

.star {
    color: #ffc107;
    margin-right: 2px;
}

.star.full:before {
    content: "★";
}

.star.half:before {
    content: "✭";
}

.review-text {
    color: #666;
    line-height: 1.5;
}

/* 产品详情图片 */
.product-details-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-image {
    width: 100%;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    height: auto;
}

/* 联系我们页面样式 */
.page-banner {
    height: 150px;
    background: linear-gradient(135deg, #3a7fee 0%, #2a63c9 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-banner h1 {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f8ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #3a7fee;
    font-size: 1.2rem;
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.info-content p {
    color: #666;
    line-height: 1.5;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #3a7fee;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2a63c9;
}

.map-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.map-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
}

/* 页脚 */
.footer {
    background-color: #1a1f2b;
    color: #888;
    padding: 50px 15%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.qrcode img {
    width: 150px;
    height: 150px;
    background-color: #fff;
    padding: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header, .footer {
        padding: 15px 5%;
    }
    
    .banner, .page-banner {
        padding: 0 5%;
    }
    
    .products, .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 中等屏幕显示4个 */
        padding: 0 5%;
    }
    
    .container {
        padding: 0 5%;
    }
    
    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products, .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端一行2个 */
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    .product-gallery, .product-info-detail {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .banner h1, .page-banner h1 {
        font-size: 2rem;
    }
    
    .banner p {
        max-width: 100%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
    
    .slide-content, .slide-image {
        flex: none;
        width: 100%;
    }
    
    .slide {
        flex-direction: column;
    }
    
    .slide-content {
        padding: 30px 5%;
    }
    
    .slide-content p {
        font-size: 0.9rem; /* 文字小一号，原来是1rem */
        max-width: 100%;
    }

    .slide-content h1{
        font-size: 2rem;
    }
    
    /* 移动端隐藏slider-nav */
    .slider-nav {
        display: none;
    }
    
    /* 移动端隐藏tabs */
    .tabs {
        display: none;
    }
}

@media (max-width: 480px) {
    .products, .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 保持小屏幕也是2个 */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
}

/* 行业解决方案卡片 */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #3a7fee;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.industry-solution {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.solution-card {
    background-color: white;
    border-radius: 5px;
    padding: 25px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f8ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.solution-icon i {
    font-size: 1.8rem;
    color: #3a7fee;
}

.solution-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.solution-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.view-more {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f8ff;
    color: #3a7fee;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.view-more:hover {
    background-color: #e0f0ff;
}

/* 行动召唤区块 */
.cta-section {
    background-color: #f0f8ff;
    text-align: center;
    padding: 40px;
    margin: 50px 0 30px;
    border-radius: 5px;
}

.cta-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.cta-section p {
    color: #666;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: #3a7fee;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2a63c9;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .industry-solution {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .industry-solution {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

.footer-section p{
    margin: 10px 0;
}
.footer-section .link {
    margin-top: 20px;
    width: 195px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    color: #ffffff;
    font-size: 16px;
    background: linear-gradient(to right, #266ff3, #38bcfc);
}

.footer-section .link a {
    color: #fff;
    text-decoration: none;
}

.slide-title{
    font-weight: bold;
}