
.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
}
.page-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}
.page-header h2::after{
    display: none;
}
.video-upload-section {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 16px;
    padding: 16px 18px 18px;
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.04);
    display: none;
}

.video-list-section {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 12px;
    padding: 10px;
}

.video-list-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.video-upload-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #121826;
}

.video-count {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
}

.video-card {
    width: 180px;
    border: 1px solid #d8dbe6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}

.video-card.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.16);
}

.video-card.is-dragging {
    opacity: 0.82;
    transform: scale(0.985);
}

.video-card.drag-over-before::before,
.video-card.drag-over-after::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: #667eea;
    z-index: 12;
}

.video-card.drag-over-before::before {
    left: -2px;
}

.video-card.drag-over-after::after {
    right: -2px;
}

.video-thumbnail {
    width: 100%;
    background: #101216;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail video,
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #101216;
}

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #171a22 0%, #0f1218 100%);
    color: rgba(255, 255, 255, 0.72);
    font-size: 28px;
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.42);
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.video-duration-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    z-index: 3;
}

.video-info {
    padding: 10px 12px;
    flex-shrink: 0;
}

.video-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 当前选中视频的指示样式 */
.video-card.active {
    box-shadow: 0 0 0 3px #667eea, 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.video-card.active .video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #667eea;
    border-radius: 8px;
    pointer-events: none;
}

.active-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.video-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.82);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 10px;
}

.video-card:hover .video-remove {
    opacity: 1;
}

.add-card {
    background: #fbfbfd;
    border: 1px dashed #d6d8df;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    padding: 14px 10px;
    box-sizing: border-box;
}

.add-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.add-icon {
    font-size: 24px;
    color: #9aa1af;
    margin-bottom: 10px;
    line-height: 1;
}

.add-buttons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: auto;
    padding: 0;
    align-items: center;
}

.add-buttons .btn {
    width: auto;
    min-width: 126px;
    height: 28px;
    line-height: 28px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: none;
}

.add-card #btn-from-library {
    background: linear-gradient(90deg, #5a68ff 0%, #8067ff 100%);
    border-color: transparent;
    color: #fff;
}

.add-card #btn-upload-local {
    background: #fff;
    border: 1px solid #d8dbe6;
    color: #333b4f;
}

.video-operation-section {
    margin-bottom: 12px;
}

.operation-tip {
    background: #f4f5ff;
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #71788a;
    display:none
}

.operation-tip i {
    color: #667eea;
    margin-top: 2px;
}

.operation-panel {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f7f7f7;
}

.operation-panel,
.operation-list,
.operation-detail {
    min-width: 0;
}

.operation-list {
    width: 270px;
    display: grid;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
    padding: 16px;
    box-shadow: 10px 0 16px rgba(132, 128, 128, .06);
}

.operation-detail {
    flex: 1;
    padding: 24px;
    min-height: calc(100vh - 200px);
}

.operation-sidebar {
    width: 320px;
    flex-shrink: 0;
    padding: 16px;
    background: #fff;
    border-left: 1px solid #ececf3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
    height: fit-content;
    border-radius: 12px;
    margin: 20px 20px 0 0px;
}

.operation-sidebar .action-section {
    padding: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.operation-sidebar .action-section .btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
}

.operation-sidebar .result-container {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.operation-item {
    border: 1px solid #dde0e8;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    height: 80px;  /* 改为固定高度 */
    background: #fff;
    overflow: hidden;
    position: relative;
}

.operation-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}

.operation-item.active {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.14);
}

.operation-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.operation-item.disabled:hover {
    border-color: #dde0e8;
    background: #fff;
    box-shadow: none;
}

.operation-item.disabled .operation-icon img {
    transform: none;
}

.operation-icon {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.operation-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.operation-item:hover .operation-icon img,
.operation-item.active .operation-icon img {
    transform: scale(1.12);
}

.operation-info {
    flex: 1;
    min-width: 0;
}

.operation-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #121826;
    margin-bottom: 6px;
    line-height: 1.2;
}

.operation-info p {
    font-size: 13px;
    color: #9097a6;
    line-height: 1.35;
}

.operation-detail {
    flex: 1;
    padding: 16px 0;
    min-height: 360px;
    min-width: 0;
}

.detail-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    text-align: center;
}

.video-preview-placeholder {
    text-align: center;
    padding: 36px 16px;
}

.placeholder-icon {
    font-size: 54px;
    color: #ddd;
    margin-bottom: 10px;
}

.video-preview-placeholder p {
    color: #999;
    font-size: 14px;
}

.trim-timeline,
.cover-options,
.merge-options,
.watermark-options,
.subtitle-options,
.enhance-options {
    padding: 10px 0 0;
}

.timeline-thumbnails-host {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.timeline-bar {
    background: #2b2d33;
    border-radius: 12px;
    padding: 8px 10px;
}

.trim-range-overlay {
    position: absolute;
    inset: 8px 10px;
    pointer-events: auto;
    z-index: 6;
    touch-action: none;
}

.trim-dim {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 8px;
    pointer-events: none;
}

.trim-range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    border: 2px solid #4d7cfe;
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(77, 124, 254, 0.16);
    pointer-events: auto;
    cursor: grab;
    background: rgba(77, 124, 254, 0.10);
    z-index: 7;
}

.trim-range-overlay.is-reverse .trim-range-fill {
    background: rgba(0, 0, 0, 0.28);
}

.trim-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 3px solid #4d7cfe;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
    cursor: ew-resize;
    z-index: 8;
    touch-action: none;
}

.trim-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4d7cfe;
}

.trim-hover-preview {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: 260px;
    height: 188px;
    transform: translateX(-50%);
    z-index: 30;
    pointer-events: none;
    overflow: visible;
}

.trim-hover-preview-inner {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #11151b;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 6px 6px 0;
    box-sizing: border-box;
}

.trim-hover-preview-media {
    flex: 1 1 auto;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.trim-hover-preview-media video,
.trim-hover-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trim-hover-preview-media video {
    background: #000;
}

.trim-hover-preview-caption {
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #11151b;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
}

.trim-hover-preview-caption::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #11151b;
}

.timeline-container {
    margin-bottom: 10px;
}

.timeline-thumbnails-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    min-width: 0;
}

.timeline-thumbnails {
    display: flex;
    gap: var(--thumb-gap, 4px);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.timeline-thumbnails::-webkit-scrollbar {
    height: 0;
}

.timeline-thumbnails .thumbnail-item {
    height: 48px;
    background: #111;
    border-radius: 8px;
    flex-shrink: 0;
    width: calc((100% - (var(--thumb-count, 12) - 1) * var(--thumb-gap, 4px)) / var(--thumb-count, 12));
    object-fit: cover;
    display: block;
}

.trim-time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: space-between;
}
.time-input-group,.export-range-group{
    display: flex;
    gap: 8px;
    align-items: center;
}
.time-input-group label,
.export-range-group label {
    font-size: 14px;
    color: #333;
    display: flex;
}

.time-inputs {
    display: flex;
    gap: 12px;
    align-items: center;
}
.time-inputs span {
    font-size: 13px;
    color: #666;
}
.time-inputs input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 92px;
    text-align: center;
}

.export-range-group .layui-form {
    display: flex;
    justify-content: flex-start;
}

.trim-tips,
.cover-tips,
.merge-tips,
.watermark-tips,
.subtitle-tips,
.enhance-tips,
.resize-tips {
    padding: 12px 0;
}

.trim-tips h4,
.cover-tips h4,
.merge-tips h4,
.watermark-tips h4,
.subtitle-tips h4,
.enhance-tips h4,
.resize-tips h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.trim-tips p,
.cover-tips p,
.merge-tips p,
.watermark-tips p,
.subtitle-tips p,
.enhance-tips p,
.resize-tips p {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.6;
}

.action-section {
    text-align: center;
    background: #fff;
    padding: 10px 0 0;
}

.btn-large {
    padding: 12px 44px;
    font-size: 15px;
}

.cost-info {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.cost-info span {
    color: #667eea;
    font-weight: 600;
}

.cover-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.cover-preview-inner {
    width: 100%;
    max-width: 560px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    position: relative;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.cover-preview-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cover-preview-inner.loading {
    background: linear-gradient(135deg, #1a1d24 0%, #0f1218 100%);
}

.cover-preview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cover-preview-loading::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-bottom-color: #7b61ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

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

.cover-capture-modal {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
}

.cover-capture-modal .modal-header {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.cover-capture-modal .modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cover-capture-modal .video-container {
    position: relative;
    background: #000;
    overflow: hidden;
    border-radius: 8px;
    margin: 16px auto;
    width: 656px;
    height: 360px;
    flex-shrink: 0;
}

.cover-capture-modal .video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cover-capture-modal .video-timestamp {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    padding: 3px 7px;
    border-radius: 3px;
    font-family: monospace;
}

.cover-capture-modal .controls-container {
    padding: 0 24px 20px;
}

.cover-capture-modal .timeline-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 16px;
    background: transparent;
}

.cover-capture-modal .time-label {
    font-size: 13px;
    color: #666;
    font-family: monospace;
    min-width: 45px;
}

.cover-capture-modal #capture-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    width: 100%;
}

.cover-capture-modal #capture-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.5);
    transition: transform 0.15s;
    border: 2px solid #fff;
}

.cover-capture-modal #capture-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.cover-capture-modal .slider-wrapper {
    flex: 1;
    position: relative;
    height: 24px;
}

.cover-capture-modal .slider-tooltip {
    position: absolute;
    top: -32px;
    left: 0;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    display: none;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cover-capture-modal .slider-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.cover-capture-modal .button-container {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cover-capture-modal .btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.cover-capture-modal .btn-default {
    background: #fff;
    color: #333;
}

.cover-capture-modal .btn-default:hover {
    background: #f5f5f5;
    color: #333;
}

.cover-capture-modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #7b61ff 100%);
    color: #fff;
    border: none;
}

.cover-capture-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cover-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.cover-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -4px;
    padding: 12px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 0;
}

.cover-actions .btn {
    flex: 1;
    max-width: 200px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.cover-actions .btn-primary {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.cover-actions .btn-outline {
    background: #333;
    border-color: #333;
    color: #fff;
}

.sortable-ghost {
    opacity: 0.4;
    background: #e8f4fd;
    border-style: dashed !important;
    border-color: #667eea !important;
}

.sortable-drag {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    z-index: 1000;
}

.hidden-video {
    display: none;
}

.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d24 0%, #0f1218 100%);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #101216;
}

.custom-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.loading-modal {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 360px;
}

.loading-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.spinner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform: translate(-50%, -50%);
}

.spinner-ring.delay-1 {
    animation-delay: 0.15s;
    border-top-color: #818cf8;
}

.spinner-ring.delay-2 {
    animation-delay: 0.3s;
    border-top-color: #a5b4fc;
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #121826;
    margin-bottom: 20px;
}

.loading-progress {
    position: relative;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #818cf8);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.loading-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* 水印区域选择样式 */
.watermark-video-info {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.video-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.video-info-label {
    font-size: 13px;
    color: #666;
}

.video-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #d8dbe6;
    background: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.video-nav-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.video-info-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-thumb-small {
    width: 64px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: #111;
}

.video-info-detail {
    flex: 1;
    min-width: 0;
}

.video-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-duration {
    font-size: 12px;
    color: #9097a6;
    margin-top: 2px;
}

.video-region-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-empty {
    background: #f0f0f0;
    color: #999;
}

.status-set {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-multiple {
    background: #fff3e0;
    color: #ef6c00;
}

.watermark-canvas-container {
    margin-bottom: 16px;
}

.watermark-canvas-wrapper {
    position: relative;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 12px;
    aspect-ratio: 16/9;
    max-height: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#watermark-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: crosshair;
    z-index: 10;
    transition: cursor 0.2s;
    pointer-events: auto;
}

.watermark-box-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    pointer-events: none;
}

.watermark-box-list .watermark-box {
    pointer-events: auto;
}

.watermark-overlay.drawing {
    cursor: crosshair;
}

.watermark-overlay.dragging {
    cursor: grabbing;
}

.watermark-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 5;
}

#watermark-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1d24;
    z-index: 1;
}

#watermark-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.watermark-video-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.watermark-progress {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
}

.watermark-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.watermark-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.watermark-time {
    color: #666;
    font-size: 12px;
    font-family: monospace;
    min-width: 80px;
    text-align: right;
}

.watermark-box-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    pointer-events: none;
}

.watermark-box {
    position: absolute;
    border: 2px solid #4d7cfe;
    background: rgba(77, 124, 254, 0.15);
    cursor: move;
    pointer-events: auto;
    border-radius: 4px;
    min-width: 20px;
    min-height: 20px;
    transition: all 0.15s ease;
    box-shadow: 0 0 0 1px rgba(77, 124, 254, 0.3);
}

.watermark-box:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.25);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.watermark-box.selected {
    border-color: #7b61ff;
    background: rgba(123, 97, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(123, 97, 255, 0.4), 0 4px 12px rgba(123, 97, 255, 0.3);
}

.watermark-box.dragging {
    opacity: 0.8;
    cursor: grabbing;
    box-shadow: 0 8px 24px rgba(77, 124, 254, 0.4);
}

.watermark-box.resize-nwse {
    cursor: nwse-resize;
}

.watermark-box.resize-nesw {
    cursor: nesw-resize;
}

.watermark-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.watermark-box::after {
    content: attr(data-index);
    position: absolute;
    top: -20px;
    left: 0;
    background: #4d7cfe;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.watermark-box:hover::after,
.watermark-box.selected::after {
    opacity: 1;
}

.watermark-box .resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #4d7cfe;
    border-radius: 50%;
    cursor: nwse-resize;
    opacity: 0;
    transition: all 0.2s;
    z-index: 30;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.watermark-box:hover .resize-handle,
.watermark-box.selected .resize-handle {
    opacity: 1;
}

.watermark-box .resize-handle:hover {
    background: #667eea;
    border-color: #fff;
    transform: scale(1.2);
}

.watermark-box .resize-handle.tl {
    top: -6px;
    left: -6px;
    cursor: nwse-resize;
}

.watermark-box .resize-handle.tr {
    top: -6px;
    right: -6px;
    cursor: nesw-resize;
}

.watermark-box .resize-handle.bl {
    bottom: -6px;
    left: -6px;
    cursor: nesw-resize;
}

.watermark-box .resize-handle.br {
    bottom: -6px;
    right: -6px;
    cursor: nwse-resize;
}

.watermark-box .delete-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 26px;
    height: 26px;
    background: #ff4757;
    border-radius: 50%;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: all 0.2s;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.watermark-box:hover .delete-btn,
.watermark-box.selected .delete-btn {
    opacity: 1;
}

.watermark-box .delete-btn:hover {
    background: #ff6b7a;
    transform: scale(1.1);
}

.watermark-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}

.watermark-hint {
    color: #2e7d32;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watermark-hint i {
    font-size: 14px;
    color: #4caf50;
}

.watermark-batch-actions {
    display: flex;
    gap: 8px;
}

.watermark-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    overflow-x: auto;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin: 10px 0;
}

.watermark-thumbnail {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.watermark-thumbnail:hover {
    border-color: #667eea;
}

.watermark-thumbnail.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.watermark-thumbnail img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
}

.watermark-thumbnail-info {
    background: #f8f9fa;
    padding: 6px 8px;
}

.watermark-thumbnail-name {
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watermark-thumbnail-status {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #4caf50;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.watermark-thumbnail-status.empty {
    background: #9e9e9e;
}

.watermark-video-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}

.watermark-progress {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
}

.watermark-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.watermark-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.watermark-time {
    color: #666;
    font-size: 12px;
    font-family: monospace;
    min-width: 80px;
    text-align: right;
}

.watermark-drawing-box {
    position: absolute;
    border: 2px dashed #4d7cfe;
    background: rgba(77, 124, 254, 0.15);
    pointer-events: none;
    z-index: 15;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(77, 124, 254, 0.2);
}

.watermark-drawing-box::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(77, 124, 254, 0.3);
    border-radius: 8px;
}

/* 字幕区域选择样式 */
.subtitle-canvas-container {
    margin-bottom: 16px;
}

.subtitle-canvas-wrapper {
    position: relative;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 12px;
    max-height: 320px;
    aspect-ratio: 16/9;
}

#subtitle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#subtitle-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.subtitle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: crosshair;
    z-index: 10;
    transition: cursor 0.2s;
    pointer-events: auto;
}

.subtitle-overlay.drawing {
    cursor: crosshair;
}

.subtitle-overlay.dragging {
    cursor: grabbing;
}

.subtitle-box-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    pointer-events: none;
}

.subtitle-box-list .subtitle-box {
    pointer-events: auto;
}

.subtitle-box {
    position: absolute;
    border: 2px solid #4dabf7;
    background: rgba(77, 171, 247, 0.15);
    cursor: move;
    pointer-events: auto;
    z-index: 15;
    border-radius: 4px;
    min-width: 20px;
    min-height: 20px;
    transition: all 0.15s ease;
    box-shadow: 0 0 0 1px rgba(77, 171, 247, 0.3);
}

.subtitle-box:hover {
    border-color: #73c0ff;
    background: rgba(77, 171, 247, 0.25);
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
}

.subtitle-box.dragging {
    opacity: 0.8;
    cursor: grabbing;
    box-shadow: 0 8px 24px rgba(77, 171, 247, 0.4);
}

.subtitle-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px dashed rgba(77, 171, 247, 0.4);
    border-radius: 6px;
}

.subtitle-box .resize-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #4dabf7;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s;
}

.subtitle-box:hover .resize-handle {
    opacity: 1;
}

.subtitle-box .resize-handle:hover {
    background: #4dabf7;
    border-color: #fff;
    transform: scale(1.2);
}

.subtitle-box .resize-handle.tl {
    top: -8px;
    left: -8px;
    cursor: nwse-resize;
}

.subtitle-box .resize-handle.tr {
    top: -8px;
    right: -8px;
    cursor: nesw-resize;
}

.subtitle-box .resize-handle.bl {
    bottom: -8px;
    left: -8px;
    cursor: nesw-resize;
}

.subtitle-box .resize-handle.br {
    bottom: -8px;
    right: -8px;
    cursor: nwse-resize;
}

.subtitle-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.subtitle-video-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}

.subtitle-progress {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
}

.subtitle-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #4dabf7;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(77, 171, 247, 0.4);
}

.subtitle-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.subtitle-time {
    color: #666;
    font-size: 12px;
    font-family: monospace;
    min-width: 80px;
    text-align: right;
}

.subtitle-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    overflow-x: auto;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin: 10px 0;
}

.subtitle-thumbnail {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.subtitle-thumbnail:hover {
    border-color: #4dabf7;
}

.subtitle-thumbnail.active {
    border-color: #4dabf7;
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
}

.subtitle-thumbnail img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
}

.subtitle-thumbnail-info {
    background: #f8f9fa;
    padding: 6px 8px;
}

.subtitle-thumbnail-name {
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtitle-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}

.subtitle-hint {
    color: #2e7d32;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subtitle-hint i {
    font-size: 14px;
    color: #4caf50;
}

.subtitle-batch-actions {
    display: flex;
    gap: 8px;
}

.subtitle-presets {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.subtitle-presets .preset-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.subtitle-presets .subtitle-preset-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.subtitle-presets .subtitle-preset-btn:hover {
    border-color: #4dabf7;
    color: #4dabf7;
    background: rgba(77, 171, 247, 0.05);
}

.subtitle-presets .subtitle-preset-btn:active {
    transform: scale(0.98);
}

.subtitle-drawing-box {
    position: absolute;
    border: 2px dashed #4dabf7;
    background: rgba(77, 171, 247, 0.2);
    pointer-events: none;
    z-index: 12;
    border-radius: 4px;
}

#subtitle-box-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    pointer-events: none;
}

.subtitle-box {
    position: absolute;
    border: 2px solid #4dabf7;
    background: rgba(77, 171, 247, 0.15);
    cursor: move;
    pointer-events: auto;
    z-index: 15;
    border-radius: 4px;
    min-width: 20px;
    min-height: 20px;
    transition: all 0.15s ease;
    box-shadow: 0 0 0 1px rgba(77, 171, 247, 0.3);
}

.subtitle-box:hover {
    border-color: #73c0ff;
    background: rgba(77, 171, 247, 0.25);
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
}

.subtitle-box.selected {
    border-color: #4dabf7;
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3), 0 4px 12px rgba(77, 171, 247, 0.3);
}

.subtitle-box .delete-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 26px;
    height: 26px;
    background: #ff4757;
    border-radius: 50%;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.subtitle-box:hover .delete-btn,
.subtitle-box.selected .delete-btn {
    opacity: 1;
}

.subtitle-box .delete-btn:hover {
    background: #ff6b7a;
    transform: scale(1.1);
}
.layui-form-select .layui-input {
    width: 100%;
    border-radius: 8px;
}

/* 画幅变换功能样式 */
.resize-canvas-container {
    margin-bottom: 16px;
}

.resize-preview-wrapper {
    position: relative;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 12px;
    aspect-ratio: 16/9;
    max-height: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#resize-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1d24;
    z-index: 1;
}

#resize-selection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

#resize-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: crosshair;
}

#resize-selection-box {
    position: absolute;
    border: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.15);
    cursor: move;
    pointer-events: auto;
    border-radius: 4px;
    min-width: 40px;
    min-height: 40px;
    transition: all 0.15s ease;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
    z-index: 10;
    display: none;
}

#resize-selection-box:hover {
    border-color: #7b61ff;
    background: rgba(123, 97, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(123, 97, 255, 0.3);
}

#resize-selection-box .resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#resize-selection-box:hover .resize-handle {
    opacity: 1;
}

#resize-selection-box .resize-handle:hover {
    background: #667eea;
    border-color: #fff;
    transform: scale(1.2);
}

#resize-selection-box .resize-handle[data-handle="tl"] {
    top: -7px;
    left: -7px;
    cursor: nwse-resize;
}

#resize-selection-box .resize-handle[data-handle="tr"] {
    top: -7px;
    right: -7px;
    cursor: nesw-resize;
}

#resize-selection-box .resize-handle[data-handle="bl"] {
    bottom: -7px;
    left: -7px;
    cursor: nesw-resize;
}

#resize-selection-box .resize-handle[data-handle="br"] {
    bottom: -7px;
    right: -7px;
    cursor: nwse-resize;
}

#resize-selection-box .resize-handle[data-handle="t"] {
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

#resize-selection-box .resize-handle[data-handle="b"] {
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

#resize-selection-box .resize-handle[data-handle="l"] {
    top: 50%;
    left: -7px;
    transform: translateY(-50%);
    cursor: ew-resize;
}

#resize-selection-box .resize-handle[data-handle="r"] {
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.resize-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px 0;
}

.resize-options {
    padding: 12px 0;
}

.option-section {
    margin-bottom: 16px;
}

.option-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.option-tabs {
    display: flex;
    gap: 10px;
}

.option-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
}

.option-tab:hover {
    border-color: #c8c8c8;
    background: #fafafa;
}

.option-tab.active {
    border-color: #667eea;
    background: #f0f3ff;
}

.option-tab .tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
}

.option-tab.active .tab-icon {
    background: #667eea;
    color: #fff;
}

.option-tab .tab-info {
    flex: 1;
    min-width: 0;
}

.option-tab .tab-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.option-tab .tab-desc {
    font-size: 12px;
    color: #999;
}

.ratio-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.resize-fill-section .size-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fill-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    margin-bottom: 0;
}

.ratio-selector select {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.ratio-selector select:hover {
    border-color: #c8c8c8;
}

.ratio-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-size {
    display: none;
    flex: 1;
    gap: 10px;
    align-items: center;
}

.custom-size input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}

.custom-size input:hover {
    border-color: #c8c8c8;
}

.custom-size input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.size-inputs {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
}

.size-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}

.size-inputs input:hover {
    border-color: #c8c8c8;
}

.size-inputs input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.size-separator {
    font-size: 14px;
    color: #999;
    font-weight: bold;
}

.custom-size .size-separator {
    color: #999;
    font-weight: 600;
}

