/* ========================================
   需求大厅页面样式
   ======================================== */
.main-content{
    display: block;
    padding: 0;
}
/* ========================================
   Banner 区域
   ======================================== */
.demand-banner {
    width: 100%;
    height: 212px;
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    max-width: 1280px;
    width: 100%;
    padding: 0 50px;
}

.banner-title {
    font-size: 36px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #EFF6FF;
}

/* ========================================
   搜索和筛选区域
   ======================================== */
.search-filter {
    width: 100%;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.50) 0%, white 100%);
    padding: 48px 0;
}

/* 白色圆角背景卡片 - Figma设计 */
.filter-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    outline: 1px #F3F4F6 solid;
    outline-offset: -1px;
}

.filter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 560px;
    height: 50px;
    padding: 0 16px 0 48px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    color: #1A1A2E;
    outline: none;
    transition: border-color 0.25s ease;
}

.search-input::placeholder {
    color: rgba(26, 26, 46, 0.50);
}

.search-input:focus {
    border-color: #155DFC;
}

.category-tabs {
    display: flex;
    gap: 12px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #F9FAFB;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tab:hover {
    background: #EFF6FF;
    color: #155DFC;
}

.category-tab.active {
    background: #155DFC;
    color: white;
}

.category-tab .tab-count {
    opacity: 0.75;
    font-size: 14px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.filter-icon {
    width: 20px;
    height: 20px;
}

.filter01-icon {
    width: 16px;
    height: 16px;
}

.status-tabs {
    display: flex;
    gap: 8px;
}

.status-tab {
    padding: 8px 16px;
    background: #F9FAFB;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    transition: all 0.25s ease;
}

.status-tab:hover {
    background: #EFF6FF;
    color: #155DFC;
}

.status-tab.active {
    background: #155DFC;
    color: white;
}

/* ========================================
   需求列表区域
   ======================================== */
.demand-list-section {
    width: 100%;
    padding: 48px 0;
}

.list-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 24px;
}

.result-count {
    font-size: 16px;
    color: #4A5565;
}

.count-highlight {
    font-size: 20px;
    font-weight: 600;
    color: #155DFC;
}

.sort-tabs {
    display: flex;
    gap: 8px;
}

.sort-tab {
    padding: 8px 16px;
    background: #F9FAFB;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sort-tab:hover {
    background: #EFF6FF;
    color: #155DFC;
}

.sort-tab.active {
    background: #155DFC;
    color: white;
}

/* ========================================
   需求卡片 - 按照效果图样式
   ======================================== */
.demand-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demand-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    outline: 1px solid #F3F4F6;
    outline-offset: -1px;
    transition: all 0.25s ease;
}

.demand-card:hover {
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.10), 0px 10px 15px -3px rgba(0, 0, 0, 0.10);
}

/* 卡片主内容区域 */
.card-content {
    display: flex;
    padding: 25px;
    gap: 24px;
}

/* 左侧主体 */
.card-main {
    flex: 1;
    min-width: 0;
}

/* 标题行 */
.card-title-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    margin: 0;
    line-height: 1.4;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.card-title a:hover {
    color: #155DFC;
}

/* 状态标签 - 紧挨着标题 */
.card-status {
    padding: 4px 12px;
    border-radius: 33554400px;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    margin-left: 30px;
    align-self: flex-start;
}

.status-pending {
    background: #FFF7ED;
    color: #F54900;
}

.status-matching {
    background: #EFF6FF;
    color: #155DFC;
}

.status-completed {
    background: #F0FDF4;
    color: #00A63E;
}

/* 信息行（企业名称、类型、截止日期） */
.card-info-row {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4A5565;
}

.info-icon {
    font-size: 14px;
}

/* 描述文字 */
.card-desc {
    font-size: 16px;
    color: #4A5565;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签容器 */
.card-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 标签样式 - 蓝色胶囊 */
.card-tag {
    padding: 6px 12px;
    background: #EFF6FF;
    border-radius: 33554400px;
    font-size: 14px;
    font-weight: 400;
    color: #155DFC;
}

/* 右侧预算和按钮区域 */
.card-sidebar {
    flex-shrink: 0;
    width: 136px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.budget-info {
    text-align: right;
}

.budget-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #155DFC;
    text-align: right;
}

.budget-label {
    display: block;
    font-size: 14px;
    color: #6A7282;
    margin-top: 8px;
}

/* 立即对接按钮 */
.btn-connect {
    width: 136px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #155DFC;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-connect:hover {
    background: #1447E6;
}

.btn-icon {
    font-size: 14px;
}

/* 卡片底部 */
.card-footer {
    display: flex;
    justify-content: space-between;
    padding: 17px 25px;
    border-top: 1px solid #F3F4F6;
}

.publish-time,
.demand-id {
    font-size: 14px;
    color: #6A7282;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #4A5565;
    cursor: pointer;
    transition: all 0.25s ease;
}

.page-btn:hover {
    border-color: #155DFC;
    color: #155DFC;
}

.page-btn.active {
    background: #155DFC;
    border-color: #155DFC;
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    padding: 0 16px;
}

.page-ellipsis {
    padding: 0 8px;
    color: #6A7282;
}

/* ========================================
   加载状态
   ======================================== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E5E7EB;
    border-top-color: #155DFC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    font-size: 16px;
    color: #6A7282;
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state img {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    color: #6A7282;
    margin-bottom: 24px;
}

.btn-retry {
    padding: 12px 24px;
    background: #155DFC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-retry:hover {
    background: #1447E6;
}

/* ========================================
   CTA 区域
   ======================================== */
.cta-section {
    width: 100%;
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
    padding: 64px 0;
}

.cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 127px;
    text-align: center;
}

.cta-title {
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #EFF6FF;
    margin-bottom: 32px;
}

.btn-publish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #155DFC;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-publish:hover {
    background: #EFF6FF;
    transform: translateY(-2px);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .list-container,
    .cta-container {
        padding: 0 64px;
    }

    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .category-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .demand-banner {
        height: auto;
        padding: 48px 0;
        margin-top: 65px;
    }

    .banner-container,
    .filter-card,
    .list-container,
    .cta-container {
        padding: 0 24px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
    }

    .category-tab {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 14px;
    }

    .status-row {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .status-tabs {
        flex-wrap: nowrap;
    }

    .list-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .sort-tabs {
        width: 100%;
        overflow-x: auto;
    }

    /* 卡片响应式 */
    .card-content {
        flex-direction: column;
        gap: 24px;
    }

    .card-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .budget-info {
        text-align: left;
    }

    .budget-value {
        text-align: left;
    }

    .btn-connect {
        width: auto;
        padding: 0 24px;
    }

    .card-footer {
        flex-direction: column;
        gap: 8px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cta-container {
        padding: 48px 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .search-filter {
        padding: 24px 0;
    }

    .filter-card,
    .list-container {
        padding: 0 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-title-row {
        flex-wrap: wrap;
    }

    .card-info-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .card-tags-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-connect {
        width: 100%;
    }
}