/* 产品头部样式 */
.product-header {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    margin-top: 0px;  /* 导航栏高度 */
}

/* Particles.js 容器 */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 动态图形 */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-1 {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 15%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.6));
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation: float2 8s ease-in-out infinite;
}

.shape-3 {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    transform: rotate(30deg);
    top: 25%;
    right: 15%;
    animation: float3 7s ease-in-out infinite;
}

.shape-4 {
    width: 90px;
    height: 90px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 30%;
    bottom: 15%;
    left: 15%;
    animation: float4 9s ease-in-out infinite;
}

/* 容器样式 */
.product-header .container {
    position: relative;
    z-index: 3;
}

/* 面包屑导航 */
.product-header .breadcrumb {
    padding: 1rem 0;
    margin-bottom: 0;
    background: transparent;
}

.product-header .breadcrumb-item a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-header .breadcrumb-item a:hover {
    color: #0d47a1;
}

.product-header .breadcrumb-item.active {
    color: #666;
}

.product-header .breadcrumb-item + .breadcrumb-item::before {
    color: #666;
}

/* 文本样式 */
.product-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.product-header .category-intro {
    color: rgba(255, 255, 255, 0.9);
}

.product-header .category-intro h2 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.product-header .category-intro ul {
    list-style: none;
    padding-left: 0;
}

.product-header .category-intro ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-header .category-intro ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* 动画关键帧 */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, -20px) rotate(90deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(0, -15px) rotate(135deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(30deg); }
    50% { transform: translate(0, -25px) rotate(120deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, -20px) rotate(90deg); }
}

/* 搜索区域样式 */
.search-wrapper {
    position: relative;
    margin-top: -50px;
    padding: 0 15px;
    z-index: 10;
}

.search-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    height: 54px;
    background: #f8f9fa;
    border: 2px solid transparent;
    padding: 10px 60px 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    width: 100%;
}

.search-box input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background: #fff;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d6efd;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #0b5ed7;
    transform: translateY(-50%) scale(1.05);
}

.search-button i {
    color: #fff;
    font-size: 1.2rem;
}

/* 标签样式 */
.filter-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.filter-tags .badge {
    font-size: 0.95rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-tags .badge.bg-primary {
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-tags .badge.bg-secondary {
    background-color: #e9ecef !important;
    color: #495057;
}

.filter-tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 动画关键帧 */
@keyframes beam-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255,255,255,0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255,255,255,0.5);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-header {
        min-height: 300px;
        padding: 60px 0;
    }
    
    .search-section {
        margin-top: -30px;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .search-box input {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .filter-tags .badge {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
} 

/* 产品介绍内容样式 */
.product-intro {
    background-color: #fff;
    padding-top: 2rem;
    padding-bottom: 4rem;
    margin-top: -50px;  /* 让内容区域与 banner 有重叠效果 */
    position: relative;
    border-radius: 20px 20px 0 0;  /* 圆角效果 */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);  /* 上方阴影 */
}

.product-intro h1 {
    color: #1a237e;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0.5rem 0 2rem;
}

.product-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-intro ul {
    list-style: none;
    padding-left: 0;
}

.product-intro ul li {
    color: #444;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-intro ul li:before {
    content: "•";
    color: #1a237e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.category-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.category-image:hover img {
    transform: scale(1.05);
} 

/* Banner 内容样式 */
.banner-content {
    position: relative;
    z-index: 3;
}

.banner-content h2 {
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.banner-content .banner-text {
    font-size: 1.4rem;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

/* 动画效果 */
.banner-content h2 {
    animation: fadeInDown 1s ease-out;
}

.banner-content .banner-text {
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content .banner-text {
        font-size: 1.1rem;
    }
} 

/* 产品系列卡片样式 */
.series-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.series-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.2);
}

.series-card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    opacity: 0;
    box-shadow: 0 15px 45px rgba(26, 35, 126, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.series-card:hover:after {
    opacity: 1;
}

/* 图片容器 */
.series-card .img-container {
    width: 100%;
    height: 240px;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.series-card .img-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.75s;
}

.series-card:hover .img-container:before {
    animation: shine 1.2s;
}

.series-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.series-card:hover img {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.series-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.series-info h3 {
    color: #1a237e;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.series-info p {
    color: #666;
    margin-bottom: 1.2rem;
}

.series-info h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.specs ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.specs ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.specs ul li:before {
    content: "•";
    color: #1a237e;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
}

.model-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    color: #1a237e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.model-item:hover {
    background: #1a237e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);
    text-decoration: none;
}

/* 移除型号按钮的transform效果 */
.series-card:hover .model-item {
    transform: none;
}

/* 移除之前可能导致抖动的动画效果 */
.model-item:before {
    display: none;
}

/* 确保卡片hover时不影响型号按钮 */
.series-card:hover .model-grid {
    transform: none;
}

/* 动画关键帧 */
@keyframes shine {
    100% {
        left: 125%;
    }
}

/* 按钮容器 */
.btn-wrapper {
    margin-top: auto;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 5;
}

.series-card .btn-primary {
    background: linear-gradient(45deg, #1a237e, #0d47a1);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 10;
}

.series-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.series-card .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.series-card .btn-primary:hover:before {
    transform: translateX(100%);
}

/* 调整内容间距 */
.series-info h3 {
    margin-bottom: 0.8rem;
}

.series-info p {
    margin-bottom: 1.2rem;
}

.specs {
    margin-bottom: 1rem;
}

/* 规格列表动画 */
.series-card:hover .specs ul li {
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .series-card:hover {
        transform: translateY(-5px);
    }
    
    .series-card img {
        height: 160px;
    }
} 

/* 产品分类卡片样式 */
.category-block {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.15);
}

.category-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 180px;  /* 减小高度 */
    margin: 0;  /* 移除margin */
    border-radius: 15px 15px 0 0;  /* 只保留上方圆角 */
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* 改为contain以显示完整图片 */
    padding: 1rem;  /* 添加内边距防止图片贴边 */
    background: #f8f9fa;  /* 添加背景色 */
    transition: transform 0.5s ease;
}

.category-block:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 1.2rem;  /* 减小内边距 */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-info h3 {
    color: #1a237e;
    font-size: 1.2rem;  /* 减小标题字号 */
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.category-info ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.category-info ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;  /* 减小列表项字号 */
}

.btn-learn-more {
    background: linear-gradient(45deg, #1a237e, #0d47a1);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;  /* 减小按钮内边距 */
    border-radius: 50px;
    font-size: 0.9rem;  /* 减小按钮字号 */
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
    color: #fff;
}

.product-brochure {
    background-color: #f8f9fa; /* 浅灰色背景 */
    margin-bottom: 3rem; /* 与下方内容保持间距 */
}

.product-brochure img {
    border-radius: 0.5rem; /* 圆角效果 */
    transition: transform 0.3s ease; /* 悬停动画 */
}

.product-brochure img:hover {
    transform: scale(1.02); /* 轻微放大效果 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-image {
        height: 150px;
    }
    
    .category-info {
        padding: 1rem;
    }
    
    .category-info h3 {
        font-size: 1.1rem;
    }
    
    .category-info ul li {
        font-size: 0.85rem;
    }
} 

.product-image {
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.product-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 20;
}

.product-image img:hover {
    transform: scale(1.05);
} 




/* 彩页容器样式 */
.brochure-container {
    max-width: 1200px; /* 最大宽度限制 */
    margin: 0 auto; /* 居中显示 */
    padding: 1rem; /* 内边距 */
    background-color: #fff; /* 白色背景 */
    border: 1px solid #eee; /* 浅色边框 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .brochure-container {
        padding: 0.5rem; /* 移动端减少内边距 */
        border: none; /* 移动端去掉边框 */
    }
}



/* 新增产品卡片样式 */
.product1-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 320px; /* 设置最小高度 */
}

.product1-card .img-container {
    height: auto; /* 改为自适应高度 */
    padding: 15px; /* 添加内边距 */
    background: #f5f5f5; /* 添加背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product1-card .img-container img {
    width: auto; /* 宽度自适应 */
    height: auto; /* 高度自适应 */
    max-width: 100%; /* 限制最大宽度 */
    max-height: 180px; /* 限制最大高度 */
    object-fit: contain; /* 保持图片完整显示 */
}

.product1-card .product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product1-card .product-info h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #333;
}

.product1-card .product-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.product1-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product1-card:hover .img-container img {
    transform: scale(1.05);
}
