/* ========== 基础重置（解决样式继承问题） ========== */
#searchResultsGrid {
    all: unset;
    width: 100%;
    margin-top: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

#searchResultsGrid > div {
    box-sizing: border-box !important;
    padding: 0 15px !important;
    margin-bottom: 20px !important;
}

/* ========== 页面特定样式 ========== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon {
    max-width:1400px;
}

@media (max-width: 992px) {

	.coming-soon{
			margin-top:30px;
		}
	
	.search-status-alert .alert {
		
		margin-bottom:-60px;
		margin-top:100px !important;
	}
	
	.alert-dismissible{
		margin-top:120px !important;
	}
}
/* 移动端适配 */
@media (max-width: 768px) {
	.coming-soon{
		margin-top:30px;
	}
	
	.search-status-alert .alert {
		
		margin-bottom:-20px;
		margin-top:80px !important;
	}
}

/* ========== 搜索状态提示样式 ========== */
.search-status-alert {
    margin: 20px 0;
    animation: slideDown 0.3s ease;

}
.input-group-lg{
	font-size:10px !important;
}

.search-status-alert .alert {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #0dcaf0;
	margin-bottom:60px;
}
.alert-dismissible{
	margin-top:40px !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 搜索结果样式 ========== */
.search-results-header {
    text-align: left;
    margin: -40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.search-results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #212529;
}

.search-results-header .text-muted {
    font-size: 1rem;
    color: #6c757d;
}

/* ========== 卡片样式（强制和首页一致）========== */
.normal-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    height: 140px !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

.normal-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    border-color: #0D6EFD !important;
}

.normal-logo {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    margin-right: 15px !important;
    margin-top: 15px !important;
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 0 solid #e9ecef !important;
}

.normal-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.normal-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    height: 100% !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.normal-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 10px 0 8px 0 !important;
    color: #212529 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

.normal-description {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    line-height: 1.4rem !important;
    margin-bottom: 5px !important;
    flex: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
    width: 100% !important;
}

/* 彻底解决 fa-eye 和数字垂直居中问题 */
.normal-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: auto !important;
    width: 100% !important;
    height: 30px !important;
    /* 移除可能干扰的 line-height */
    line-height: normal !important;
}

.category-badge {
    background: #E6F6FE !important;
    color: #0D6EFD !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    /* 确保 badge 垂直居中 */
    display: inline-block !important;
    height: 24px !important;
    line-height: 20px !important;
}

/* 核心修复：使用定位而非 flex 实现绝对居中 */
.click-count {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    display: inline-block !important;
    /* 关键：统一行高 */
    line-height: 1 !important;
    /* 固定高度，和 badge 保持视觉平衡 */
    height: 22px !important;
    /* 垂直居中的核心 */
    position: relative !important;
    padding-left: 18px !important;
}

/* 图标绝对定位，精确居中 */
.click-count i.fa-eye {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    /* 绝对定位 */
    position: absolute !important;
    left: 0 !important;
    top: 40% !important;
    /* 向上偏移 50% 实现完美居中 */
    transform: translateY(-50%) !important;
    /* 移除所有干扰样式 */
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
}

/* 数字文本单独处理 */
.click-count::after {
    content: attr(data-count) !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}
.fa-eye {
	color:#999 !important;
}

/* ========== 移动端适配（强制和首页一致） ========== */
@media (max-width: 576px) {
    .normal-card {
        height: 130px !important;
        padding: 12px !important;
    }
    
    .normal-title {
        font-size: 1rem !important;
        margin-top: 0px !important;
    }
    
    .normal-description {
        font-size: 0.8rem !important;
		max-height:1.3rem !important;
        
        margin-bottom: 5px !important;
    }
    
    .normal-footer {
        margin-top: 10px !important;
        margin-bottom: -15px !important;
    }
    
    #searchResultsGrid .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #searchResultsGrid .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (min-width: 992px) {
    #searchResultsGrid .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* ========== 加载更多按钮 ========== */
#loadMoreSearchBtn {
    padding: 10px 30px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    border-radius: 25px !important;
}

#loadMoreSearchBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2) !important;
}

#loadMoreSearchBtn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========== 加载动画 ========== */
.loading-spinner {
    text-align: center !important;
    padding: 40px !important;
}

.loading-spinner .spinner {
    width: 40px !important;
    height: 40px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #667eea !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 空状态样式 ========== */
.empty-state {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #6c757d !important;
}

.empty-state i {
    font-size: 4rem !important;
    color: #adb5bd !important;
    margin-bottom: 20px !important;
}





/* ==================================================== 需求广场样式 ================================================================== */

/* 搜索和发布区域 */
.demands-search-section {
    padding: 30px 0 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.search-box-wrapper {
    max-width: 800px;
    margin: 0 auto;
	margin-top:20px;
}

.demands-search-input {
    border-right: none;
    border-radius: 30px 0 0 30px !important;
    height: 54px;
    font-size: 15px !important;
}

.demands-search-input:focus {
    border-color: #86b7fe;
    box-shadow: none;
}

#demandsSearchBtn {
    border-radius: 0;
    background: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
    padding: 0 25px;
	font-size: 15px !important;
    font-weight: 500;
}

#publishDemandBtn {
    border-radius: 0 8px 8px 0;
    background: #198754;
    color: white;
    border: 1px solid #198754;
    padding: 0 30px;
    font-weight: 500;
    transition: all 0.3s;
	font-size: 15px !important;
}

#publishDemandBtn:hover {
    background: #157347;
    border-color: #146c43;
	
}


/* 分类筛选区域 */
.demands-categories-section {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 70px;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-categories {
    text-decoration: none;
    color: #6c757d;
    padding: 5px 10px;
}

.toggle-categories:hover {
    color: #0d6efd;
}

.categories-wrapper {
 
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.categories-wrapper.expanded {
   max-height: 500px !important; /* 足够显示所有分类 */
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.category-item {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.5;
    box-sizing: border-box;
}

.category-item:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.category-item.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}


/* ========== 分类筛选增强样式 ========== */

/* 分类标题和状态标题统一样式 */
.categories-header h5,
.status-header {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    display: flex;
    align-items: center;
}

.categories-header h5 i,
.status-header i {
    font-size: 16px;
    color: #0d6efd;
}

/* 隐藏的分类项 */
.category-item.hidden-category {
    display: none;
}

/* 分类展开/收起按钮 - 放在分类列表末尾 */
.category-toggle-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 30px;
    font-size: 14px;
    color: #0d6efd;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.category-toggle-btn:hover {
    background: #e0e0e0;
    color: #0a58ca;
    border-color: #ced4da;
}

.category-toggle-btn i {
    font-size: 12px;
}



/* 状态筛选区域 - 重新设计 */
.status-filter-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}
.status-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* 状态选项卡片样式 */
.status-option {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.status-option:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.status-option.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}



.status-filter-wrapper {
    padding: 15px 0 5px;
    border-top: 1px dashed #e9ecef;
    margin-top: 10px;
}

.status-filter-wrapper .d-flex {
    flex-wrap: wrap;
    gap: 10px;
}

.status-filter-wrapper .text-muted {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* 状态筛选下拉框 */
#statusFilter {
     display: none;
}

#statusFilter:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

#statusFilter:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
     .search-box-wrapper .input-group {
        flex-wrap: nowrap;
        width: 100%;
    }
	/* 搜索输入框占80%宽度 */
    .demands-search-input {
        width: 80% !important;
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }
	 /* 搜索按钮和发布按钮各占10%宽度 */
    #demandsSearchBtn,
    #publishDemandBtn {
        width: 10% !important;
        flex: 0 0 10% !important;
        max-width: 10% !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px; /* 确保按钮有足够点击区域 */
    }
    
    /* 隐藏按钮文字，只显示图标 */
    #demandsSearchBtn .btn-text,
    #publishDemandBtn .btn-text {
        display: none;
    }
    
    /* 确保图标居中显示 */
    #demandsSearchBtn i,
    #publishDemandBtn i {
        margin: 0 !important;
        font-size: 18px;
    }
    
    /* 调整按钮圆角 */
    #demandsSearchBtn {
        border-radius: 0;
    }
    
    #publishDemandBtn {
        border-radius: 0 8px 8px 0;
    }
	
	
	.category-toggle-btn {
        padding: 6px 12px;
        font-size: 13px;
        margin-left: 5px;
    }
    
    .status-filter-wrapper .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .status-filter-wrapper .text-muted {
        margin-bottom: 5px;
        margin-right: 0 !important;
    }
    
    #statusFilter {
        width: 100% !important;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .category-toggle-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .categories-list {
        justify-content: center;
    }
}
/* 超小屏幕优化 */
@media (max-width: 480px) {
    .demands-search-input {
        height: 48px;
        font-size: 14px;
    }
    
    #demandsSearchBtn i,
    #publishDemandBtn i {
        font-size: 16px;
    }
    
    #demandsSearchBtn,
    #publishDemandBtn {
        min-width: 40px;
    }
}








/* ========== 移动端筛选按钮 ========== */
.mobile-filter-btn-container {
    display: none;
    padding: 10px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.mobile-filter-btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    position: relative;
}

.mobile-filter-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ========== 筛选侧边栏 ========== */
.filter-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1060;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.filter-sidebar.show {
    right: 0;
}

.filter-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    display: none;
}

.filter-sidebar-overlay.show {
    display: block;
}

.filter-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.filter-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.filter-sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    background: #f8f9fa;
}

.filter-sidebar-footer button {
    flex: 1;
    height: 44px;
}

/* ========== 移动端筛选区域样式 ========== */
.filter-section {
    margin-bottom: 24px;
}

.filter-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.filter-section-title i {
    color: #0d6efd;
    font-size: 16px;
}

/* 移动端分类列表 */
.mobile-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.mobile-category-item {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-category-item:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.mobile-category-item.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.mobile-category-item.hidden-category {
    display: none;
}

.mobile-categories-expand {
    margin-top: 8px;
    text-align: center;
}

.mobile-categories-expand .btn-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 13px;
}

/* 移动端状态选项 */
.mobile-status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-status-option {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-status-option:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.mobile-status-option.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* ========== 响应式布局 ========== */
@media (max-width: 768px) {
    .mobile-filter-btn-container {
        display: block;
    }
    
    .demands-categories-section {
        display: none;
    }
    
    .search-box-wrapper .input-group {
        flex-wrap: nowrap;
    }
    
    #demandsSearchBtn,
    #publishDemandBtn {
        padding: 0 10px;
    }
    
    #demandsSearchBtn .btn-text,
    #publishDemandBtn .btn-text {
        display: none;
    }
    
    #demandsSearchBtn i,
    #publishDemandBtn i {
        margin: 0;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .mobile-category-item,
    .mobile-status-option {
        padding: 6px 12px;
        font-size: 13px;
    }
}




















/* 需求卡片网格 */
.demands-grid {
    margin: 30px 0 20px;
	margin-top:30px !important;
}

/* 需求卡片 */
.demand-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 10px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    cursor: pointer;
	height: 100%; /* 确保卡片占满父容器高度 */
    display: flex;
    flex-direction: column;
}

.demand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
    border-color: #0d6efd;
}

/* 需求标题行 */
.demand-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
	min-height: 32px; /* 固定标题行最小高度 */
}

.demand-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    flex: 1;
    line-height: 1.4;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 强制单行显示 */
    max-width: calc(100% - 80px); /* 为状态标签留出空间 */
}

/* 状态标签 */
.status-badge {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 10px;
	 flex-shrink: 0; /* 防止被压缩 */
}

.status-1 { /* 新需求 */
    background: #e7f5ff;
    color: #0c63e4;
    border: 1px solid #b8daff;
}

.status-2 { /* 沟通中 */
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-3 { /* 已解决 */
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-4 { /* 已关闭 */
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* 需求摘要 */
.demand-summary {
     color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 强制单行显示 */
    min-height: 21px; /* 固定高度，防止布局抖动 */
}

/* 需求元信息 */
.demand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
	min-height: 20px; /* 固定最小高度 */
}

.meta-item {
    display: flex;
    align-items: center;
	 white-space: nowrap; /* 防止换行 */
}

.meta-item i {
    width: 16px;
    margin-right: 5px;
    color: #adb5bd;
	 flex-shrink: 0;
}

.category-tag {
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    color: #495057;
}

/* 预算区域 */
.demand-budget {
    margin-top: 0px;
    padding-top: 15px;
    border-top: 1px dashed #e9ecef;
    display: flex;
    align-items: baseline;
    justify-content: left;
	margin-bottom:-30px;
}

.budget-label {
    font-size: 13px;
    color: #6c757d;
	margin-top: -10px !important;
}

.budget-value {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
	margin-left:8px;
	margin-top: -10px !important;
}

.budget-value.small {
    font-size: 18px;
}

/* 发布时间 */
.post-time {
    font-size: 12px;
    color: #adb5bd;
}

/* 空状态 */
.empty-demands {
    background: white;
    border-radius: 12px;
    padding: 60px 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* 加载更多按钮 */
.load-more-wrapper {
    margin: 20px 0 40px;
}

.load-more-btn {
    padding: 10px 40px;
    border-radius: 30px;
}
/* 移动端适配 */
@media (max-width: 992px) {
	
	.search-box-wrapper{
		margin-top:-30px;
	}
	/* 搜索输入框占80%宽度 */
    .demands-search-input {
        width: 80% !important;
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }
	 /* 搜索按钮和发布按钮各占10%宽度 */
    #demandsSearchBtn,
    #publishDemandBtn {
        width: 10% !important;
        flex: 0 0 10% !important;
        max-width: 10% !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px; /* 确保按钮有足够点击区域 */
    }
	 
    /* 隐藏按钮文字，只显示图标 */
    #demandsSearchBtn .btn-text,
    #publishDemandBtn .btn-text {
        display: none;
    }
    
    /* 确保图标居中显示 */
    #demandsSearchBtn i,
    #publishDemandBtn i {
        margin: 0 !important;
        font-size: 18px;
    }
    
    /* 调整按钮圆角 */
    #demandsSearchBtn {
        border-radius: 0;
    }
    
    #publishDemandBtn {
        border-radius: 0 8px 8px 0;
    }
	
		/* 预算区域 */
	.demand-budget {
		
		margin-bottom:-25px !important;
	}
}
/* 移动端适配 */
@media (max-width: 768px) {
	
    .demands-search-section {
        padding: 20px 0;
    }
    
    .search-box-wrapper .input-group {
        flex-wrap: nowrap;
    }
	.search-box-wrapper{
		margin-top:-30px;
	}
    
    #demandsSearchBtn {
        padding: 0 15px;
    }
    
    #publishDemandBtn {
        padding: 0 15px;
    }
    
    .demands-categories-section {
        top: 60px;
    }
    
    .category-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .demand-card {
        padding: 15px;
    }
    	/* 预算区域 */
	.demand-budget {
		
		margin-bottom:-10px !important;
	}
    .budget-value {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .search-box-wrapper .btn {
        font-size: 14px;
    }
    
    .search-box-wrapper .btn i {
        margin-right: 4px !important;
    }
    
  
  
	
    .status-badge {
        margin-left: 0;
        margin-top: 8px;
        align-self: flex-start;
    }
}

/* 移动端适配 - 确保状态和标题在一行 */
@media (max-width: 768px) {
	.demand-card{
		margin-top:-20px;
	}
	
    .demand-title-row {
        display: flex !important;
        flex-direction: row !important;  /* 强制水平排列 */
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
    }
    
    .demand-title {
        font-size: 16px;
        max-width: calc(100% - 70px);  /* 为状态标签留出空间 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }
    
    .status-badge {
        margin-left: 8px;
        padding: 3px 10px;
        font-size: 11px;
        flex-shrink: 0;
        max-width: 70px;  /* 限制状态标签最大宽度 */
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .demand-title {
        font-size: 15px;
        max-width: calc(100% - 65px);
    }
    
    .status-badge {
        padding: 2px 8px;
        font-size: 10px;
        max-width: 60px;
    }
}

/* 确保卡片内容不溢出 */
.demand-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;  /* 防止内容溢出 */
}

/* 移动端卡片内边距调整 */
@media (max-width: 768px) {
    .demand-card {
        padding: 15px;
    }
}


