/* 任务大厅（独立样式，不依赖 u.css） */
.xgt-list-loader {
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.xgt-list-loader.is-visible {
    display: flex;
}

.xgt-list-loader:not(.is-append) {
    min-height: 120px;
    padding: 24px 0;
}

.xgt-list-loader.is-append {
    padding: 16px 0 8px;
}

.xgt-list-loader img {
    width: 24px;
    height: 24px;
    display: block;
}

.xgt-list {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
    font-weight: normal;
    min-height: 100vh;
    background: transparent;
}

.xgt-profile-wrap {
    max-width: 1800px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.xgt-list-header {
    margin-bottom: 20px;
    padding-top: 0;
}

.xgt-list-title {
    margin: 0 0 4px;
    font-size: 22px;
    color: #091d2e;
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.35;
}

.xgt-list-subtitle {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.xgt-list-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 20px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e8edf3;
}

.xgt-list-filter-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.xgt-list-filter-label {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.xgt-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.xgt-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.xgt-filter-btn:hover,
.xgt-filter-btn.active {
    background: #409eff;
    color: #fff;
    text-decoration: none;
}

.xgt-list-filter-action {
    margin-left: auto;
}

.xgt-list .xgt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: auto;
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s;
}

.xgt-list .xgt-btn .fa {
    font-size: 12px;
}

.xgt-btn:hover {
    text-decoration: none;
}

.xgt-list .xgt-btn-primary {
    background: #409eff;
    color: #fff;
    border-radius: 4px;
}

.xgt-btn-primary:hover {
    background: #66b1ff;
    color: #fff;
}

.xgt-list .xgt-btn-outline {
    background: rgba(22, 24, 35, 0.06);
    color: #161823;
    border-radius: 4px;
}

.xgt-btn-outline:hover {
    opacity: 0.88;
}

.xgt-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    flex-shrink: 0;
}

.xgt-badge-primary {
    background: rgba(64, 158, 255, 0.12);
    color: #409eff;
}

.xgt-list-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.xgt-list-card-btn-order {
    background: #409eff;
    color: #fff;
}

.xgt-list-card-btn-order:hover {
    background: #66b1ff;
    color: #fff;
    text-decoration: none;
}

.xgt-works-empty {
    text-align: center;
    padding: 56px 20px;
    color: #94a3b8;
}

.xgt-works-empty i {
    display: block;
    font-size: 42px;
    margin-bottom: 12px;
    opacity: 0.35;
}

.xgt-works-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.xgt-list .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.xgt-list .pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.xgt-list .pagination a:hover,
.xgt-list .pagination a.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}

/* —— 任务页筛选行 —— */
.xgt-task-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.xgt-task-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
}

.xgt-task-filter-row .xgt-list-filter-block {
    flex: 1;
    min-width: 0;
}

.xgt-task-filter-row .xgt-list-filter-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

/* —— 表格 —— */
.xgt-task-load-more {
    display: flex;
    justify-content: center;
    padding: 20px 0 8px;
}

.xgt-task-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    margin-top: 4px;
}

.xgt-task-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 880px;
    font-size: 13px;
    color: #475569;
    border: 1px solid #dcdfe6;
    table-layout: fixed;
}

.xgt-task-table th,
.xgt-task-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.45;
    border: 1px solid #e8edf3;
}

.xgt-task-table thead th {
    background: #f5f7fa;
    color: #606266;
    font-size: 13px;
    font-weight: 600;
}

.xgt-task-table tbody td {
    background: #fff;
}

.xgt-task-table tbody tr {
    transition: background 0.2s ease;
}

.xgt-task-table tbody tr:hover td {
    background: #f5f7fa;
}

.xgt-task-table .col-category,
.xgt-task-table thead .col-category {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}

.xgt-task-table .col-category {
    border-right: 1px solid #e8edf3;
}

.xgt-task-table .col-info {
    width: 52%;
}

.xgt-task-table .col-action {
    width: 72px;
    text-align: center;
}

.xgt-task-table .col-mode,
.xgt-task-table .col-flow,
.xgt-task-table .col-deadline {
    white-space: nowrap;
}

.xgt-task-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.xgt-task-info-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #dcdfe6;
    flex-shrink: 0;
}

.xgt-task-price {
    color: #f56c6c;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.xgt-task-title {
    flex: 1;
    min-width: 120px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xgt-task-muted {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .xgt-profile-wrap {
        padding: 20px 16px 32px;
    }

    .xgt-list-title {
        font-size: 20px;
    }

    .xgt-list-subtitle {
        font-size: 12px;
    }

    .xgt-task-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .xgt-task-info-divider {
        display: none;
    }

    .xgt-task-title {
        white-space: normal;
        width: 100%;
    }

    .xgt-task-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .xgt-task-filter-row .xgt-list-filter-action {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
    }

    .xgt-task-filter-row .xgt-list-filter-action .xgt-btn {
        flex: 1;
        justify-content: center;
    }
}
