/* ===== 视频秒帧拆分 功能样式（vf- 前缀，避免冲突） ===== */
.vf-card .vf-form-area {
    margin-top: 14px;
}
.vf-card .vf-icon {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}
.vf-card .feature-card-header {
    position: relative;
}
.vf-help-btn {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s;
}
.vf-help-btn:hover {
    background: rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

/* ===== 上传区 ===== */
.vf-drop {
    border: 2px dashed rgba(59, 130, 246, 0.35);
    border-radius: 18px;
    padding: 42px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.08), transparent 55%),
        rgba(255, 255, 255, 0.55);
}
.vf-drop:hover,
.vf-drop.vf-dragover {
    border-color: #2563eb;
    background:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.14), transparent 55%),
        rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18);
}
.vf-drop-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: vf-floaty 3.2s ease-in-out infinite;
}
@keyframes vf-floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.vf-drop-text {
    color: var(--text-dark, #1e293b);
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 6px;
}
.vf-drop-sub {
    color: var(--text-gray, #64748b);
    font-size: 0.8rem;
    margin: 0 0 20px;
}

/* ===== 按钮 ===== */
.vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.vf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
    color: #fff;
}
.vf-btn:active { transform: translateY(0); }
.vf-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.vf-btn-file input[type="file"] {
    display: none;
}
.vf-btn-go {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}
.vf-btn-go:hover { box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4); }
.vf-btn-stop {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}
.vf-btn-stop:hover { box-shadow: 0 10px 22px rgba(244, 63, 94, 0.4); }
.vf-btn-zip {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.vf-btn-zip:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(139, 92, 246, 0.4); }
.vf-btn-light {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}
.vf-btn-light:hover {
    background: rgba(100, 116, 139, 0.2);
    color: #334155;
    box-shadow: none;
}

/* ===== 视频预览 ===== */
.vf-preview-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    position: relative;
}
.vf-video {
    display: block;
    width: 100%;
    max-height: 380px;
    background: #0f172a;
}

/* ===== 信息 chips ===== */
.vf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}
.vf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #475569;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vf-chip i { color: #2563eb; }
.vf-chip b { color: #0f172a; font-weight: 700; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 设置面板 ===== */
.vf-settings {
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(6, 182, 212, 0.05)),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.vf-settings-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vf-settings-title i { color: #2563eb; }
.vf-set-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.vf-set-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.vf-set-item label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}
.vf-set-item label b { color: #2563eb; }
.vf-set-item select,
.vf-set-item input[type="number"],
.vf-set-item input[type="text"] {
    width: 100%;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}
.vf-set-item select:focus,
.vf-set-item input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.vf-input-affix {
    position: relative;
    display: flex;
    align-items: center;
}
.vf-input-affix input {
    flex: 1;
    min-width: 0;
    padding-right: 64px;
}
.vf-input-affix span {
    position: absolute;
    right: 12px;
    font-size: 0.74rem;
    color: #94a3b8;
    pointer-events: none;
    white-space: nowrap;
}
.vf-set-item input[type="range"] {
    width: 100%;
    accent-color: #2563eb;
    cursor: pointer;
}
.vf-mode-tip {
    margin: 0;
    font-size: 0.76rem;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.09);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    line-height: 1.5;
}
.vf-estimate {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #475569;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.12);
}
.vf-estimate i { color: #2563eb; }
.vf-estimate b { color: #2563eb; font-size: 0.95rem; }
.vf-est-warn { color: #d97706; }

/* ===== 操作按钮区 ===== */
.vf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 4px;
}

/* ===== 进度 ===== */
.vf-progress-box {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.vf-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 8px;
}
.vf-progress-percent { font-weight: 700; color: #2563eb; }
.vf-progress-track {
    height: 10px;
    border-radius: 99px;
    background: rgba(59, 130, 246, 0.12);
    overflow: hidden;
}
.vf-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: vf-flow 1.6s linear infinite;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
@keyframes vf-flow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ===== 帧画廊 ===== */
.vf-gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 12px;
}
.vf-gallery-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
}
.vf-gallery-title i { color: #2563eb; }
.vf-gallery-title b { color: #2563eb; }
.vf-gallery-tip {
    font-size: 0.76rem;
    color: #94a3b8;
}
.vf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding: 4px 6px 10px 2px;
}
.vf-gallery::-webkit-scrollbar { width: 8px; }
.vf-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #06b6d4);
    border-radius: 99px;
}
.vf-gallery::-webkit-scrollbar-track { background: rgba(59, 130, 246, 0.08); border-radius: 99px; }

.vf-frame {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    transition: all 0.28s ease;
    animation: vf-pop 0.4s ease both;
}
@keyframes vf-pop {
    from { opacity: 0; transform: scale(0.85) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.vf-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.4);
}
.vf-frame a.vf-frame-link {
    display: block;
    line-height: 0;
    background: linear-gradient(135deg, #eef4ff, #e6faff);
}
.vf-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: zoom-in;
}
.vf-frame-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.3;
}
.vf-frame-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vf-frame-dl {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
    transition: all 0.2s;
}
.vf-frame-dl:hover {
    background: #2563eb;
    color: #fff;
}

/* ===== 关于介绍 ===== */
.vf-about {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.12);
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.8;
}
.vf-about-title { font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.vf-about-list, .vf-about-sub { margin: 4px 0; padding-left: 22px; }

/* ===== 帮助弹窗 ===== */
.vf-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vf-modal.vf-open { display: flex; }
.vf-modal-card {
    width: 100%;
    max-width: 600px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
    animation: vf-modal-in 0.3s ease both;
}
@keyframes vf-modal-in {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.vf-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}
.vf-modal-head h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.vf-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.vf-close:hover { background: rgba(255, 255, 255, 0.32); }
.vf-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
}
.vf-help-item { margin-bottom: 16px; }
.vf-help-item:last-child { margin-bottom: 0; }
.vf-help-item h4 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    color: #1e3a5f;
}
.vf-help-item p { margin: 0; font-size: 0.84rem; color: #64748b; line-height: 1.7; }

/* ===== Toast ===== */
.vf-toast {
    position: fixed;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%) translateY(20px);
    z-index: 2147483100;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 0.85rem;
    padding: 11px 22px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}
.vf-toast.vf-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .vf-set-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .vf-set-grid { grid-template-columns: 1fr; }
    .vf-drop { padding: 32px 16px; }
    .vf-actions .vf-btn { flex: 1; }
    .vf-gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: 440px; }
    .vf-gallery-tip { display: none; }
}
