/* ============================================
   爆款视频拆解 - 列表页专用样式 (lapian-records.html)
   深色系质感版 · "夜间画廊"风格
   ============================================ */

/* ===== 页面头部（拉片页专属） ===== */
.lapian-header {
    margin-bottom: 24px;
}
.lapian-header .lapian-header-title {
    font-size    : 28px;
    font-weight  : 700;
    color        : var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.lapian-header .lapian-header-title i {
    color      : var(--primary-color);
    margin-right: 8px;
}
.lapian-header .lapian-header-sub {
    font-size  : 14px;
    color      : var(--text-muted);
    line-height: 1.6;
    max-width  : 420px;
}

/* ===== 项目列表卡片（Linear风格紧凑版） ===== */
.batch-card {
    background   : var(--bg-card);
    border       : 1px solid var(--border-color);
    border-radius: 10px;
    padding      : 14px 18px;
    margin-bottom: 8px;
    cursor       : pointer;
    transition   : all 0.2s ease;
}
.batch-card:hover {
    border-color: rgba(0, 168, 112, 0.25);
    background  : var(--bg-hover);
}
.batch-card-row {
    display    : flex;
    align-items: center;
    gap        : 16px;
}
.batch-card-left {
    flex     : 1;
    min-width: 0;
}
.batch-card-name {
    font-size       : 15px;
    font-weight     : 600;
    color           : var(--text-primary);
    overflow        : hidden;
    text-overflow   : ellipsis;
    white-space     : nowrap;
    margin-bottom   : 4px;
}
.batch-card-meta {
    display  : flex;
    align-items: center;
    gap      : 12px;
    font-size: 12px;
}
.batch-card-date {
    color: var(--text-muted);
}
.batch-card-status {
    font-weight: 500;
}
.batch-card-status.status-pending    { color: #94a3b8; }
.batch-card-status.status-processing { color: #fbbf24; }
.batch-card-status.status-completed  { color: #22c55e; }
.batch-card-status.status-partial    { color: #f97316; }
.batch-card-status.status-failed     { color: #ef4444; }

.batch-card-progress {
    display    : flex;
    align-items: center;
    gap        : 8px;
    min-width  : 140px;
}
.progress-bar {
    flex      : 1;
    height    : 4px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
    overflow  : hidden;
    min-width : 80px;
}
.progress-fill {
    height       : 100%;
    background   : linear-gradient(90deg, var(--primary-color), #f97316);
    border-radius: 4px;
    transition   : width 0.4s ease;
}
.progress-text {
    font-size  : 12px;
    font-weight: 600;
    color      : var(--text-secondary);
    min-width  : 30px;
    text-align : right;
}

.batch-card-delete {
    flex-shrink : 0;
    width       : 32px;
    height      : 32px;
    display     : inline-flex;
    align-items : center;
    justify-content: center;
    border-radius: 8px;
    border      : 1px solid rgba(239, 68, 68, 0.15);
    background  : rgba(239, 68, 68, 0.06);
    color       : rgba(239, 68, 68, 0.6);
    font-size   : 14px;
    cursor      : pointer;
    transition  : all 0.2s ease;
}
.batch-card-delete:hover {
    background : rgba(239, 68, 68, 0.14);
    color      : #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.batch-card:hover .batch-card-delete {
    opacity: 1;
}
.batch-card-delete:hover {
    color: #ef4444;
}

/* ===== 页面工具栏（Linear风格） ===== */
.lapian-toolbar {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    padding        : 2px 0 14px 0;
}
.lapian-toolbar-left {
    display    : flex;
    align-items: center;
    gap        : 20px;
}
.lapian-stats {
    display    : flex;
    align-items: center;
    gap        : 14px;
    font-size  : 13px;
    color      : var(--text-muted);
}
.lp-stat-num {
    font-weight: 600;
    color      : var(--text-primary);
}
.lp-stat-dot {
    width        : 3px;
    height       : 3px;
    border-radius: 50%;
    background   : rgba(148, 163, 184, 0.3);
}
.lp-upload-btn {
    display      : inline-flex;
    align-items  : center;
    gap          : 5px;
    padding      : 6px 14px;
    border-radius: 8px;
    font-size    : 13px;
    font-weight  : 500;
    cursor       : pointer;
    transition   : all 0.2s ease;
    border       : 1px solid var(--border-color);
    background   : var(--bg-card);
    color        : var(--text-primary);
}
.lp-upload-btn:hover {
    border-color: var(--primary-color);
    color       : var(--primary-color);
    background  : rgba(0, 168, 112, 0.04);
}
.lapian-divider {
    height      : 1px;
    background  : rgba(148, 163, 184, 0.08);
    margin-bottom: 8px;
}

/* ===== 搜索框 ===== */
.lapian-search {
    display    : flex;
    align-items: center;
    gap        : 6px;
    background : var(--bg-card);
    border     : 1px solid var(--border-color);
    border-radius: 6px;
    padding    : 4px 10px;
    transition : all 0.2s ease;
    color      : var(--text-muted);
}
.lapian-search:focus-within {
    border-color: var(--primary-color);
    box-shadow  : 0 0 0 2px rgba(0, 168, 112, 0.08);
}
.lapian-search i {
    font-size: 13px;
    flex-shrink: 0;
}
.lapian-search input {
    border    : none;
    background: transparent;
    outline   : none;
    color     : var(--text-primary);
    font-size : 13px;
    width     : 180px;
}
.lapian-search input::placeholder {
    color: var(--text-muted);
}

/* ===== 翻页 ===== */
.lapian-pagination {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 4px;
    margin-top     : 20px;
    padding-top    : 14px;
    border-top     : 1px solid rgba(148, 163, 184, 0.08);
}
.page-num {
    min-width      : 32px;
    height         : 32px;
    border-radius  : 6px;
    border         : 1px solid var(--border-color);
    background     : var(--bg-card);
    color          : var(--text-secondary);
    font-size      : 13px;
    font-weight    : 500;
    cursor         : pointer;
    transition     : all 0.2s ease;
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    padding        : 0 6px;
}
.page-num:hover {
    border-color: var(--primary-color);
    color       : var(--primary-color);
}
.page-num.active {
    background   : var(--primary-color);
    border-color : var(--primary-color);
    color        : #fff;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding   : 60px 20px;
    color     : var(--text-muted);
}
.empty-state i {
    font-size    : 48px;
    margin-bottom: 16px;
    display      : block;
}

/* ===== 入场动画 ===== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   上传弹窗样式
   ============================================ */
.upload-dropzone {
    display        : flex;
    flex-direction : column;
    align-items    : center;
    justify-content: center;
    padding        : 20px;
    background     : var(--bg-darker);
    border         : 1px dashed var(--border-color);
    border-radius  : 8px;
    cursor         : pointer;
    transition     : all 0.2s;
    font-size      : 13px;
    color          : var(--text-muted);
}
.upload-dropzone:hover {
    border-color: var(--primary-color);
    background  : rgba(0, 168, 112, 0.04);
    color       : var(--text-secondary);
}

.upload-file-list { margin-top: 12px; }
.upload-file-list-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    margin-bottom  : 6px;
    font-size      : 12px;
    color          : var(--text-muted);
}

.upload-file-item {
    display      : flex;
    align-items  : center;
    gap          : 10px;
    padding      : 7px 10px;
    margin-bottom: 4px;
    background   : var(--bg-darker);
    border-radius: 6px;
    font-size    : 13px;
    transition   : background 0.2s;
}
.upload-file-item:hover { background: var(--bg-hover); }
.upload-file-name {
    flex         : 1;
    overflow     : hidden;
    text-overflow: ellipsis;
    white-space  : nowrap;
    color        : var(--text-primary);
}
.upload-file-remove {
    background  : none;
    border      : none;
    cursor       : pointer;
    color        : var(--text-muted);
    font-size    : 12px;
    padding      : 2px 6px;
    border-radius: 4px;
    transition   : all 0.2s;
    flex-shrink  : 0;
}
.upload-file-remove:hover {
    color     : #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.upload-section {
    margin-bottom: 14px;
}
.upload-section label {
    display      : block;
    font-size    : 13px;
    font-weight  : 500;
    color        : var(--text-secondary);
    margin-bottom: 6px;
}
.upload-cost-section {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    font-size      : 13px;
    color          : var(--text-muted);
    margin-top     : 10px;
    padding        : 8px 0;
}
.upload-cost-section strong {
    color: var(--text-primary);
}

.upload-progress { margin-top: 12px; }
.upload-progress-bar-bg {
    height       : 4px;
    background   : var(--bg-darker);
    border-radius: 4px;
    overflow     : hidden;
}
.upload-progress-bar {
    height       : 100%;
    background   : linear-gradient(90deg, var(--primary-color), #f97316);
    border-radius: 4px;
    transition   : width 0.3s ease;
    width        : 0;
}
.upload-progress-text {
    font-size  : 12px;
    color      : var(--text-muted);
    margin-top : 4px;
    display    : block;
    text-align : right;
}

.upload-done {
    margin-top   : 12px;
    padding      : 12px;
    background   : rgba(34, 197, 94, 0.06);
    border       : 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 8px;
    display      : flex;
    align-items  : center;
    gap          : 8px;
    font-size    : 14px;
    color        : #22c55e;
}
.upload-done i {
    font-size: 20px;
}