/* 产品服务样式 */

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-item {
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s;
}

.product-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-4px);
}

.product-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon svg {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
    fill: none;
    stroke-width: 1.5;
}

.product-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 6px;
}

.product-item .en {
    font-size: 13px;
    color: #8b95a5;
    margin-bottom: 14px;
    font-weight: 300;
}

.product-item p {
    font-size: 14px;
    color: #646a73;
    line-height: 1.7;
}

.product-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: #eff6ff;
    border-radius: 16px;
    font-size: 12px;
    color: #3b82f6;
}

@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ===== 产品弹窗轮播图样式 ===== */
.erp-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: erpFadeIn 0.3s;
}

@keyframes erpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.erp-modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 50%;
    max-height: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .erp-modal-content {
        max-width: 95%;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 auto;
    }
}

.erp-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.erp-modal-close:hover {
    color: #3b82f6;
}

.erp-carousel {
    position: relative;
    width: 100%;
}

.erp-slides {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
}

.erp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    background: #f3f4f6;
}

.erp-slide.active {
    display: block;
}

.erp-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.erp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.erp-dot:hover {
    background: rgba(255,255,255,0.8);
}

.erp-dot.active {
    background: #3b82f6;
}

.erp-prev,
.erp-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 5;
}

.erp-prev:hover,
.erp-next:hover {
    background: rgba(0,0,0,0.8);
}

.erp-prev {
    left: 10px;
}

.erp-next {
    right: 10px;
}
