/* 商品详情弹窗样式 */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-detail-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 1400px !important;
    width: 95% !important;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 0;
}

/* 商品图片轮播 */
.product-images {
    position: relative;
    height: 500px;
    background: var(--bg-gray);
    overflow: hidden;
}

.image-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.swiper-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-pagination {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 商品基本信息 */
.product-basic-info {
    padding: 32px;
    border-bottom: 1px solid var(--border-light);
}

.product-title-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.product-title-desc {
    flex: 1;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.product-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4444;
    white-space: nowrap;
}

.product-price span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 商家信息 */
.store-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-info:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.store-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.store-name span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-icon {
    width: 20px;
    height: 20px;
}

/* 商品详情内容 */
.product-details {
    padding: 32px;
}

.details-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.details-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.details-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.details-content h1,
.details-content h2,
.details-content h3,
.details-content h4,
.details-content h5,
.details-content h6 {
    margin: 16px 0 8px 0;
    color: var(--text-primary);
    font-weight: 600;
}

.details-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.details-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.details-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.details-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.product-detail-content {
    line-height: 1.6;
}

.product-detail-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.product-detail-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.product-detail-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.product-detail-content p {
    margin: 8px 0;
    line-height: 1.6;
}

/* 弹窗底部 */
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
    text-align: center;
}

.contact-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 140, 69, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 140, 69, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .product-images {
        height: 250px;
    }
    
    .product-basic-info {
        padding: 20px;
    }
    
    .product-title-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-details {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    .contact-btn {
        width: 100%;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .product-images {
        height: 200px;
    }
    
    .product-basic-info {
        padding: 16px;
    }
    
    .product-details {
        padding: 16px;
    }
}
