/* 产品和服务页面样式 */

.services-grid {
    margin-top: 2rem;
}

.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 产品详情 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-detail.reverse {
    direction: rtl;
}

.product-detail.reverse > * {
    direction: ltr;
}

.product-image {
    overflow: hidden;
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.product-specs {
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-item strong {
    min-width: 120px;
    color: var(--primary-color);
}

.spec-item span {
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 1rem;
}

.product-description-en {
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* 设备网格 */
.equipment-grid {
    margin-top: 2rem;
}

.equipment-item {
    padding: 2rem;
}

.equipment-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.equipment-item h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.equipment-item ul {
    list-style: none;
    padding: 0;
}

.equipment-item li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.8;
}

.equipment-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 客户群体 */
.customers-grid {
    margin-top: 2rem;
}

.customer-category {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.customer-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.customer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 客户Logo样式 */
.customer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
}

.customer-logo {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.customer-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

/* Logo加载失败时的占位 */
.customer-logo:not([src]),
.customer-logo[src=""],
.customer-logo[src*="undefined"] {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail.reverse {
        direction: ltr;
    }

    .product-image img {
        height: 250px;
    }

    .product-info h3 {
        font-size: 1.5rem;
    }

    .spec-item {
        flex-direction: column;
    }

    .spec-item strong {
        margin-bottom: 0.3rem;
    }

    .customer-logos {
        gap: 1rem;
    }

    .customer-logo {
        height: 50px;
        max-width: 120px;
    }
}

