


/* ========== 需求详情页样式 ========== */

.demand-details-container {
    padding-top: 90px;
    min-height: calc(100vh - 300px);
}

/* 需求信息卡片 */
.demand-info-card   {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
	margin-top:-40px;
}
.reply-card   {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
	

}
.replies-card   {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;

}
.demand-info-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

.demand-info-card .card-header h5 {
    font-weight: 600;
    color: #212529;
}

.demand-title {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 10px 0;
}

.demand-meta-info {
    display: flex;
    align-items: center;
	white-space: nowrap; 
    gap: 10px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.status-1 { background: #e7f5ff; color: #0c63e4; }
.status-2 { background: #fff3cd; color: #856404; }
.status-3 { background: #d4edda; color: #155724; }
.status-4 { background: #e2e3e5; color: #383d41; }

.budget-box {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.budget-label {
    font-size: 13px;
    color: #6c757d;
    display: block;
	text-align:left;
}

.budget-value {
    font-size: 28px;
    font-weight: 700;
    color: #dc3545;
    line-height: 1.2;
}

.budget-value.small {
    font-size: 22px;
}

/* 详情项 */
.demand-detail-row {
    margin: 15px 0;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #212529;
    font-weight: 400;
    margin-left: 5px;
}
/* ========== 需求详情页关联产品 ========== */
.demand-related-product-section {
    margin: 10px 0 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0d6efd;
	margin-top:-10px;
}

.related-product-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.related-product-label i {
    color: #0d6efd;
    font-size: 14px;
}

#relatedProductCard .reply-product-card {
    cursor: pointer;
}

#relatedProductCard .product-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.2s;
    max-width: 400px;
}

#relatedProductCard .product-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

#relatedProductCard .product-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #dee2e6;
    margin-right: 15px;
    flex-shrink: 0;
}

#relatedProductCard .product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#relatedProductCard .product-info {
    flex: 1;
    min-width: 0;
}

#relatedProductCard .product-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#relatedProductCard .product-link-hint {
    font-size: 12px;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 4px;
}

#relatedProductCard .product-link-hint i {
    font-size: 11px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .demand-related-product-section {
        padding: 12px;
    }
    
    #relatedProductCard .product-card {
        padding: 10px 12px;
        max-width: 100%;
    }
    
    #relatedProductCard .product-logo {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    #relatedProductCard .product-name {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    #relatedProductCard .product-card {
        padding: 8px 10px;
    }
    
    #relatedProductCard .product-logo {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    #relatedProductCard .product-name {
        font-size: 14px;
    }
}
/* 需求描述 */
.demand-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
	margin-top:-5px !important;
}

.description-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}


/* ========== 联系方式查看区域样式 ========== */
.demand-contact-section {
    margin: 20px 0;
}

.contact-hidden .alert {
    margin-bottom: 5px;
    border-left: 4px solid #0d6efd;
}

.contact-hidden .btn {
    min-width: 180px;
}

.contact-visible {
    margin-top: -15px;
}

.contact-visible .card {
    border-left: 4px solid #0d6efd;
    animation: fadeIn 0.3s ease;
	
}

/* 移除旧的 .contact-info-content p 样式冲突 */
.contact-info-content {
    font-size: 15px;
    line-height: 1.8;
}

/* 移除旧的 .contact-info-content .contact-item 样式，避免冲突 */
/* 只保留新的两栏布局样式 */

.yincantip {
    margin-top: 10px;
}

/* 强制显示/隐藏的辅助类 */
.force-show {
    display: block !important;
}

.force-hide {
    display: none !important;
}

/* 联系方式两栏布局样式 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-info-grid .contact-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.contact-info-grid .contact-item:hover {
    background: #fff;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.contact-item-icon i {
    font-size: 20px;
    color: #0d6efd;
}

.contact-item-content {
    flex: 1;
    min-width: 0;
}

.contact-item-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.contact-item-value {
    font-size: 15px;
    font-weight: 500;
    color: #212529;
    word-break: break-all;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.copy-contact-btn {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-contact-btn:hover {
    background: #e9ecef;
    color: #0d6efd;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}



#viewContactBtn{
	background: linear-gradient(135deg, #ffd700 0%, #f0c108 50%, #e6b800 100%);
	 box-shadow: 0 4px 6px rgba(255, 215, 0, 0.2);
	  border: none;
	  height:40px;
	  
}

#viewContactBtn:active {
  background: linear-gradient(135deg, #e6b800 0%, #f0c108 50%, #ffd700 100%);
  transform: translateY(1px); /* 轻微下沉 */
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-hidden .alert {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .contact-hidden .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .contact-info-content {
        font-size: 14px;
    }
	
	.yincantip{
	margin-top:-15px !important;
}
}

@media (max-width: 576px) {
    .contact-info-content p {
        flex-wrap: wrap;
    }
    
    .contact-info-content i {
        width: 20px;
    }
	.contact-visible{
		margin-top:-25px;
	}
}
/* ========== 回复中的产品卡片 ========== */
.reply-product-card {
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reply-product-card:hover {
    transform: translateY(-2px);
}

.product-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s;
    max-width: 400px;
}

.product-card:hover {
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.1);
}

.product-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    min-width: 0; /* 防止flex溢出 */
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-link-hint {
    font-size: 12px;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-link-hint i {
    font-size: 11px;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .product-card {
        max-width: 100%;
        padding: 10px 12px;
    }
    
    .product-logo {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
}

/* 字数统计 */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* 回复列表 */
.reply-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
	margin-left:-10px !important;
}

.reply-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reply-user {
    font-weight: 600;
    color: #212529;
}

.reply-enterprise {
    font-size: 12px;
    color: #0d6efd;
    background: #e7f5ff;
    padding: 2px 10px;
    border-radius: 30px;
}

.reply-time {
    font-size: 12px;
    color: #adb5bd;
	align-items:right;
	margin-right:-15px !important;
}

.reply-content {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 10px;
    word-wrap: break-word;
	margin-left:-10px !important;
}

.reply-product {
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
}

.reply-product i {
    color: #0d6efd;
    margin-right: 5px;
}

/* 加载更多按钮 */
.load-more-wrapper {
    margin: 20px 0 10px;
}

.load-more-btn {
    padding: 8px 30px;
    border-radius: 30px;
}

/* 错误状态 */
.error-state {
    background: white;
    border-radius: 12px;
    padding: 60px 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .demand-details-container {
        padding-top: 80px;
    }
    
    .demand-title {
        font-size: 20px;
    }
    
    .budget-value {
        font-size: 24px;
    }
    
    .budget-value.small {
        font-size: 20px;
    }
    
    .demand-meta-info {
       
        align-items: flex-start;
    }
    
    .text-md-end {
        text-align: left !important;
        margin-top: 15px;
    }
    
    .reply-header {
        
        align-items: flex-start;
        gap: 5px;
    }
    
    .reply-time {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .demand-detail-row .col-6 {
        margin-bottom: 10px;
    }
    
    .budget-box {
        width: 100%;
    }
    
    .description-content {
        font-size: 14px;
    }
}

/* 联系按钮样式 */
.contact-reply-btn {
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 30px;
    transition: all 0.2s;
}

.contact-reply-btn:hover {
    transform: translateY(-1px);
}

/* 联系信息模态框样式 */
#contactReplyModal .contact-info-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

#contactReplyModal .contact-info-item:last-child {
    border-bottom: none;
}

#contactReplyModal .contact-info-icon {
    width: 40px;
    color: #0d6efd;
    font-size: 18px;
}

#contactReplyModal .contact-info-label {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 4px;
}

#contactReplyModal .contact-info-value {
    font-size: 16px;
    color: #212529;
    word-break: break-all;
}