/* 产品页面样式 */

/* 产品筛选区域 */
.filter-section {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.filter-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.filter-option:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.filter-option.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 产品列表 */
.products-section {
    padding: 50px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card.featured {
    border: 2px solid var(--accent-color);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-icon {
    font-size: 1rem;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.no-image i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
}

.product-category {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 无产品状态 */
.no-products {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.no-products-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-products h3 {
    margin: 0 0 10px;
    color: #333;
}

.no-products p {
    color: #666;
    margin-bottom: 20px;
}

/* 服务优势 */
.advantages-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 2rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin: 0 0 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 产品详情页 */
.product-detail-section {
    padding: 50px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-image {
    width: 100%;
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-no-image i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-info .product-title {
    font-size: 2rem;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.product-info .product-featured {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-weight: 500;
}

.product-info .product-category {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-label {
    color: #666;
}

.product-info .product-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 10px 0;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.price-label {
    color: #666;
}

.product-info .product-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    color: #666;
}

.meta-value {
    color: #333;
    font-weight: 500;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.share-label {
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0077b5;
}

.share-button.whatsapp {
    background-color: #25d366;
}

/* 产品内容 */
.product-content {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-body {
    line-height: 1.7;
    color: #444;
}

.content-body h1, .content-body h2, .content-body h3, .content-body h4, .content-body h5, .content-body h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #333;
}

.content-body p {
    margin-bottom: 1em;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

.content-body ul, .content-body ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.content-body li {
    margin-bottom: 0.5em;
}

/* 相关产品 */
.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-products h2 {
    margin-bottom: 30px;
    color: #333;
}

/* CTA区域 */
.cta-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin: 0 0 15px;
    color: #333;
    font-size: 2rem;
}

.cta-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-main-image, .product-no-image {
        height: 350px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-main-image, .product-no-image {
        height: 250px;
    }
    
    .product-info .product-title {
        font-size: 1.5rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}