/* 批量查询页 —— 微信用户端统一浅色主题 */
.page-batch .wx-container {
    max-width: 1440px;
}

.page-batch .wx-shell {
    padding-bottom: 20px;
}

/* 统计（并入订单进度卡片底部） */
.batch-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #eef1f4;
    background: #fbfcfd;
}

.batch-stat {
    padding: 13px 18px;
}

.batch-stat + .batch-stat {
    border-left: 1px solid #eef1f4;
}

.batch-stat span {
    display: block;
    font-size: 12px;
    color: #8a929c;
}

.batch-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    color: #12171d;
}

.batch-stat.is-wait strong {
    color: #b45309;
}

.batch-stat.is-processing strong {
    color: #1d4ed8;
}

.batch-stat.is-done strong {
    color: #15803d;
}

.batch-stat.is-reject strong {
    color: #c2410c;
}

/* 订单进度 */
.batch-progress-card {
    padding: 0;
    overflow: hidden;
}

.batch-progress-main {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 16px;
}

.batch-progress-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    min-width: 140px;
}

.batch-progress-total strong {
    color: #12171d;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.batch-progress-total span {
    color: #8a929c;
    font-size: 12px;
    white-space: nowrap;
}

.batch-progress-center {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.batch-progress-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.batch-query-duration {
    flex-shrink: 0;
    margin-left: auto;
    color: #8a929c;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.batch-progress-hint {
    min-width: 0;
    overflow: hidden;
    color: #9aa2ac;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-progress-badge {
    padding: 2px 9px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #8a929c;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.batch-progress-badge.is-processing {
    background: #eef4ff;
    color: #1d4ed8;
}

.batch-progress-badge.is-wait {
    background: #fff7e8;
    color: #b45309;
}

.batch-progress-badge.is-done {
    background: #e8f7ee;
    color: #15803d;
}

.batch-progress-side {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.batch-progress-percent {
    color: #038f86;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.batch-progress-center .batch-progress-track {
    display: flex;
    height: 7px;
    border-radius: 999px;
    background: #eef1f4;
    overflow: hidden;
}

.batch-progress-seg {
    height: 100%;
    transition: width .3s ease;
}

.batch-progress-seg.is-done {
    background: linear-gradient(90deg, #04a79d, #3cc8bd);
}

.batch-progress-seg.is-reject {
    background: #f0a04b;
}

.batch-progress-seg.is-processing {
    background: #5b9cf5;
}

.batch-progress-fill.is-indeterminate {
    background: linear-gradient(90deg, rgba(4, 167, 157, .2) 25%, #04a79d 50%, rgba(4, 167, 157, .2) 75%);
    background-size: 200% 100%;
    animation: batch-indeterminate 1.2s linear infinite;
}

@keyframes batch-indeterminate {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* 主体布局 */
.batch-layout {
    display: flex;
    align-items: stretch;
    gap: 16px;
    height: calc(100vh - 108px);
    min-height: 480px;
}

.batch-services {
    display: flex;
    flex: 0 0 236px;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.batch-services-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px 10px;
    color: #12171d;
    font-size: 14.5px;
    font-weight: 700;
}

.batch-services-count {
    color: #9aa2ac;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 600;
}

.batch-service-search {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    margin: 0 12px 10px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f9fa;
}

.batch-service-search:focus-within {
    border-color: var(--yellow);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(4, 167, 157, .1);
}

.batch-service-search svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #9aa2ac;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.batch-service-search input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 13.5px;
    outline: none;
}

.batch-service-search input::placeholder {
    color: #a6aeb8;
}

.batch-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8a929c;
    font-size: 13px;
    cursor: pointer;
}

.batch-cat em {
    margin-left: 4px;
    color: #b6bec7;
    font-style: normal;
}

.batch-cat:hover {
    color: #038f86;
    background: #f5f7fa;
}

.batch-cat svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.batch-cat svg.is-open {
    transform: rotate(180deg);
}

.batch-service-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 2px 8px 8px;
    overflow-y: auto;
}

.batch-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #444;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background-color .16s ease;
}

.batch-service-tag {
    flex-shrink: 0;
    color: #9aa2ac;
    font-size: 12px;
}

.batch-service-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-service-item em {
    flex-shrink: 0;
    color: #9aa2ac;
    font-size: 12px;
    font-style: normal;
}

.batch-service-item:hover {
    background: #f5f7fa;
}

.batch-service-item.is-active {
    background: rgba(4, 167, 157, .12);
    color: #038f86;
    font-weight: 600;
}

.batch-service-item.is-active .batch-service-tag,
.batch-service-item.is-active em {
    color: #038f86;
}

.batch-services-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 10px 14px;
    border-top: 1px solid #eef1f4;
    background: #fbfcfd;
    color: #555;
    font-size: 13px;
}

.batch-services-foot em {
    flex-shrink: 0;
    color: #038f86;
    font-style: normal;
    font-weight: 600;
}

.batch-services-empty {
    padding: 14px 10px;
    color: #8a929c;
    font-size: 13.5px;
}

/* 工作区 */
.batch-workspace {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    height: 100%;
    min-height: 0;
}

.batch-workspace .wx-card + .wx-card {
    margin-top: 0;
}

.batch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
}

.batch-thread {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8a929c;
    font-size: 12.5px;
    white-space: nowrap;
}

.batch-thread strong {
    color: #12171d;
    font-size: 13px;
    font-weight: 600;
}

.batch-thread input[type="range"] {
    width: 110px;
    height: 4px;
    accent-color: var(--yellow);
    cursor: pointer;
}

.batch-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.batch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.batch-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.batch-btn:hover {
    border-color: var(--yellow);
    color: #038f86;
    background: rgba(4, 167, 157, .06);
}

.batch-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    border-color: var(--line);
    color: #8a929c;
    background: #f7f8fa;
}

.batch-btn.is-primary {
    border-color: var(--yellow);
    background: var(--yellow);
    color: #fff;
}

.batch-btn.is-primary:hover {
    background: var(--yellow-deep);
    border-color: var(--yellow-deep);
    color: #fff;
}

.batch-btn.is-warn {
    border-color: #f0d9a8;
    background: #fffbf2;
    color: #b45309;
}

.batch-btn.is-warn:hover {
    border-color: #e6c477;
    background: #fff6e5;
    color: #92400e;
}

.batch-btn.is-done,
.batch-btn.is-done:disabled {
    opacity: 1;
    border-color: rgba(4, 167, 157, .28);
    background: rgba(4, 167, 157, .1);
    color: #038f86;
    cursor: default;
}

/* HTML 结果展示 */
.batch-html-cell {
    padding: 8px 10px;
}

.batch-html-result {
    max-height: 200px;
    overflow: auto;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f9fa;
    color: #333;
    font-size: 12.5px;
    line-height: 1.7;
    word-break: break-word;
}

.batch-html-result b,
.batch-html-result strong {
    font-weight: 700;
}

.batch-html-result table {
    width: 100%;
    border-collapse: collapse;
}

.batch-html-result th,
.batch-html-result td {
    padding: 3px 6px;
    border: 1px solid #e3e9ef;
}

/* 表格 */
.batch-table-card {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.batch-loading-mask {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, .78);
    color: #666;
    font-size: 13px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.batch-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(4, 167, 157, .18);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: batch-spin .8s linear infinite;
}

.batch-spinner.is-large {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

@keyframes batch-spin {
    to {
        transform: rotate(360deg);
    }
}

.batch-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.batch-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
}

.batch-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.batch-table th {
    padding: 11px 14px;
    background: #f7f9fa;
    border-bottom: 1px solid #e9edf2;
    color: #8a929c;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.batch-th-index,
.batch-td-index {
    width: 54px;
    color: #9aa2ac;
    font-size: 12px;
}

.batch-td-index {
    color: #b6bec7;
}

.batch-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.batch-th-fixed .batch-th-inner,
.batch-th-label {
    cursor: pointer;
    user-select: none;
}

.batch-th-fixed .batch-th-inner:hover,
.batch-th-label:hover {
    color: #038f86;
}

.batch-sort-arrow {
    color: #038f86;
    font-style: normal;
    font-size: 12px;
    line-height: 1;
}

.batch-th-dynamic {
    cursor: grab;
}

.batch-th-dynamic.is-dragging {
    opacity: .4;
}

.batch-col-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #b6bec7;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.batch-col-filter:hover {
    background: rgba(4, 167, 157, .1);
    color: #038f86;
}

.batch-col-filter.is-active {
    background: rgba(4, 167, 157, .14);
    color: #038f86;
}

.batch-col-filter svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.batch-drag-handle {
    color: #c3cad2;
    font-size: 12px;
    letter-spacing: -1px;
    cursor: grab;
}

.batch-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
}

.batch-table td.batch-result-cell {
    min-width: 220px;
    white-space: normal;
    word-break: break-all;
}

.batch-table tbody tr:hover {
    background: #fafcfc;
}

.batch-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    white-space: nowrap;
}

.batch-status svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.batch-status.is-wait {
    color: #b45309;
}

.batch-status.is-accept {
    color: #1d4ed8;
}

.batch-status.is-reject {
    color: #c2410c;
}

.batch-status.is-done {
    color: #15803d;
}

.batch-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    border: 0;
    border-radius: 6px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    cursor: pointer;
}

.batch-retry:hover {
    background: rgba(37, 99, 235, .16);
}

.batch-retry svg {
    width: 13px;
    height: 13px;
}

.batch-table-card.is-empty {
    min-height: 280px;
}

/* 空状态固定在可见卡片内居中，不随动态列宽/横向滚动偏移 */
.batch-empty-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 24px;
    pointer-events: none;
}

.batch-empty-overlay .batch-empty {
    padding: 0;
    pointer-events: auto;
}

.batch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 52px 16px;
}

.batch-empty-title {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.batch-empty-desc {
    margin: 0;
    color: #9aa2ac;
    font-size: 12.5px;
}

.batch-empty .batch-btn {
    height: 32px;
    margin-top: 8px;
    padding: 0 18px;
}

/* 分页 */
.batch-pagination {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #eef1f4;
}

.batch-page-total {
    color: #8a929c;
    font-size: 12.5px;
}

.batch-page-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.batch-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8a929c;
    font-size: 12.5px;
    white-space: nowrap;
}

.batch-page-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8a929c;
    font-size: 12.5px;
}

.batch-select {
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: #333;
    font-size: 12.5px;
    outline: none;
}

.batch-select:focus {
    border-color: var(--yellow);
}

.batch-page-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}

.batch-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: #555;
    font-size: 12.5px;
    cursor: pointer;
}

.batch-page-btn svg {
    width: 14px;
    height: 14px;
}

.batch-page-btn:hover {
    border-color: var(--yellow);
    color: #038f86;
}

.batch-page-btn.is-active {
    border-color: var(--yellow);
    background: var(--yellow);
    color: #fff;
    font-weight: 600;
}

.batch-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.batch-page-ellipsis {
    padding: 0 3px;
    color: #aab1ba;
    font-size: 12.5px;
}

.batch-mobile-select {
    display: none;
    padding: 10px 12px;
}

.batch-mobile-select .batch-select {
    width: 100%;
    height: 38px;
}

/* 弹窗 */
.batch-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(18, 23, 29, .5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.batch-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 88vh;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    overflow-y: auto;
}

.batch-modal.is-small {
    max-width: 380px;
}

.batch-modal.is-center {
    text-align: center;
}

.batch-modal-title {
    margin: 0 0 16px;
    color: #12171d;
    font-size: 16.5px;
    font-weight: 700;
}

.batch-modal.is-center .batch-modal-title {
    margin-top: 4px;
}

.batch-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f5f7fa;
    color: #777;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.batch-modal-close:hover {
    background: #eceff4;
    color: #333;
}

.batch-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.batch-tab {
    flex: 1;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8fa;
    color: #666;
    font-size: 13.5px;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.batch-tab.is-active {
    border-color: var(--yellow);
    background: rgba(4, 167, 157, .1);
    color: #038f86;
    font-weight: 600;
}

.batch-textarea {
    width: 100%;
    min-height: 128px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    outline: none;
    resize: vertical;
}

.batch-textarea:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(4, 167, 157, .14);
}

.batch-import-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}

/* 导入数据弹窗 */
.batch-import-modal {
    max-width: 640px;
}

.batch-import-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.batch-import-label {
    color: #333;
    font-size: 13.5px;
    font-weight: 600;
}

.batch-import-head .batch-import-tools {
    margin-bottom: 0;
}

.batch-import-file-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
}

.batch-import-textarea {
    width: 100%;
    height: 260px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
}

.batch-import-textarea:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(4, 167, 157, .12);
}

.batch-import-textarea::placeholder {
    color: #a6aeb8;
}

.batch-import-file {
    margin: 8px 0 0;
    color: #038f86;
    font-size: 12px;
    word-break: break-all;
}

.batch-import-hint {
    margin: 10px 0 0;
    color: #8a929c;
    font-size: 12.5px;
}

.batch-import-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f7f9fa;
    font-size: 12.5px;
}

.batch-import-preview .is-valid {
    color: #15803d;
}

.batch-import-preview .is-invalid {
    color: #c2410c;
}

.batch-import-preview .is-duplicate {
    color: #b45309;
}

.batch-hint {
    margin: 10px 0 0;
    color: #8a929c;
    font-size: 12px;
    line-height: 1.6;
}

.batch-file-drop {
    padding: 26px 16px;
    border: 1.5px dashed #d5dbe3;
    border-radius: 10px;
    background: #fbfcfd;
    color: #8a929c;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}

.batch-file-drop:hover {
    border-color: var(--yellow);
    color: #038f86;
}

.batch-file-drop svg {
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.batch-file-drop p {
    margin: 2px 0;
}

.batch-file-name {
    color: #038f86;
    font-size: 12px;
    word-break: break-all;
}

.batch-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.batch-modal-actions .wx-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13.5px;
}

/* 列筛选面板 */
.batch-col-filter-panel {
    position: fixed;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: 220px;
    max-height: 320px;
    border: 1px solid #e2e6ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.batch-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #f0f2f5;
    color: #12171d;
    font-size: 13px;
}

.batch-filter-head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-filter-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    border: 0;
    border-radius: 50%;
    background: #f5f7fa;
    color: #888;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.batch-filter-close:hover {
    background: #eceff4;
    color: #333;
}

.batch-filter-options {
    flex: 1;
    padding: 6px 12px;
    overflow-y: auto;
}

.batch-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #444;
    font-size: 12.5px;
    cursor: pointer;
}

.batch-filter-option input {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: #04a79d;
    cursor: pointer;
}

.batch-filter-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-filter-empty {
    margin: 10px 0;
    color: #9aa2ac;
    font-size: 12px;
    text-align: center;
}

.batch-filter-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px 10px;
    border-top: 1px solid #f0f2f5;
}

.batch-filter-btn {
    flex: 1;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: #555;
    font-size: 12.5px;
    cursor: pointer;
}

.batch-filter-btn:hover {
    border-color: var(--yellow);
    color: #038f86;
}

.batch-filter-btn.is-primary {
    border-color: var(--yellow);
    background: rgba(4, 167, 157, .1);
    color: #038f86;
    font-weight: 600;
}

/* 导出类目选择 */
.batch-export-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    max-height: 280px;
    margin-top: 10px;
    overflow-y: auto;
}

.batch-export-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    color: #444;
    font-size: 12.5px;
    cursor: pointer;
}

.batch-export-option input {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: #04a79d;
    cursor: pointer;
}

.batch-export-tools {
    margin-top: 10px;
}

.batch-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #038f86;
    font-size: 12.5px;
    cursor: pointer;
}

.batch-link-btn:hover {
    text-decoration: underline;
}

/* 导入冲突选择 */
.batch-conflict-text {
    margin: 0 0 14px;
    color: #8a929c;
    font-size: 12.5px;
    line-height: 1.6;
}

.batch-conflict-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.batch-conflict-btn {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfd;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.batch-conflict-btn strong {
    font-size: 13.5px;
    font-weight: 600;
}

.batch-conflict-btn span {
    color: #8a929c;
    font-size: 12px;
}

.batch-conflict-btn:hover {
    border-color: var(--yellow);
    background: #f4fbfa;
}

.batch-conflict-btn.is-primary {
    border-color: rgba(4, 167, 157, .45);
    background: rgba(4, 167, 157, .08);
}

.batch-conflict-btn.is-primary strong {
    color: #038f86;
}

.batch-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #8a929c;
    font-size: 12.5px;
}

.batch-progress-head b {
    color: #038f86;
    font-weight: 700;
}

.batch-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #eef1f4;
    overflow: hidden;
}

.batch-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #04a79d, #16c2b6);
    transition: width .25s ease;
}

.batch-identify-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.batch-identify-option:hover {
    border-color: var(--yellow);
    background: rgba(4, 167, 157, .04);
}

.batch-identify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(4, 167, 157, .12);
    color: #038f86;
}

.batch-identify-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 响应式 */
@media (max-width: 1200px) {
    .page-batch .wx-shell {
        padding-bottom: 40px;
    }

    .batch-layout {
        display: block;
        height: auto;
        min-height: 0;
    }

    .batch-services {
        display: none;
    }

    .batch-mobile-select {
        display: block;
    }

    .batch-table-card {
        display: block;
    }

    .batch-table-wrap {
        overflow-x: auto;
        overflow-y: visible;
    }

    .batch-table thead th {
        position: static;
    }
}

@media (max-width: 900px) {
    .batch-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .batch-progress-main {
        gap: 12px;
        flex-wrap: wrap;
        padding: 14px 14px 12px;
    }

    .batch-progress-total {
        min-width: 0;
    }

    .batch-progress-total strong {
        font-size: 24px;
    }

    .batch-progress-center {
        order: 3;
        flex: 1 1 100%;
    }

    /* 移动端精简：隐藏重复的提示文案，状态由徽标和底部统计表达 */
    .batch-progress-hint {
        display: none;
    }

    .batch-progress-badge {
        padding: 2px 8px;
        font-size: 10.5px;
    }

    .batch-progress-side {
        margin-left: auto;
        gap: 10px;
    }

    .batch-progress-percent {
        font-size: 18px;
    }

    .batch-stat {
        padding: 9px 6px;
        text-align: center;
    }

    .batch-stat span {
        font-size: 11.5px;
    }

    .batch-stat strong {
        margin-top: 3px;
        font-size: 17px;
    }

    .batch-toolbar {
        align-items: stretch;
    }

    .batch-actions {
        width: 100%;
        gap: 6px;
    }

    .batch-actions .batch-btn {
        flex: 0 0 auto;
        padding: 0 10px;
    }

    .batch-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .batch-page-right {
        justify-content: space-between;
    }
}
