/**
 * 认证页面关联产品列表样式
 */

/* 产品统计信息样式 */
.products-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-label {
    font-weight: 500;
    color: #64748b;
    font-size: 14px;
}

.stats-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    min-width: 40px;
    text-align: center;
}

/* 产品列表样式 */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 产品卡片样式 */
.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    border-color: #006cb7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* 产品卡片头部 */
.product-header {
    background: linear-gradient(135deg, #006cb7 0%, #0056a3 100%);
    padding: 16px 20px;
    color: white;
}

.product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.product-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.product-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-status.inactive {
    background: rgba(252, 165, 165, 0.2);
    border: 1px solid rgba(252, 165, 165, 0.3);
}

/* 产品内容区域 */
.product-content {
    padding: 20px;
}

/* 产品信息网格 */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.product-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-label {
    font-weight: 500;
    color: #64748b;
    font-size: 14px;
    min-width: 90px;
    white-space: nowrap;
}

.info-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 400;
    flex: 1;
    word-break: break-word;
}

/* 备注区域 */
.product-remarks {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.remarks-text {
    margin: 8px 0 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #006cb7;
}

/* 文件链接区域 */
.product-files {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.files-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 12px;
}

.files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #006cb7;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.file-link:hover {
    background: #006cb7;
    color: white;
    text-decoration: none;
    border-color: #006cb7;
}

.file-link svg {
    width: 16px;
    height: 16px;
}

/* 无产品提示样式 */
.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products-message {
    max-width: 400px;
    margin: 0 auto;
}

.no-products-message h4 {
    color: #6b7280;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.no-products-message p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 分页信息样式 */
.products-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .products-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stats-item {
        justify-content: space-between;
    }
    
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .files-list {
        flex-direction: column;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-content {
        padding: 16px;
    }
    
    .product-header {
        padding: 12px 16px;
    }
    
    .products-stats {
        padding: 16px;
    }
} 