.video-voice-translate-body .main-content * {

    box-sizing: border-box;
}

body.video-voice-translate-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    padding-top: 0 !important;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

body.video-voice-translate-body .sidebar {
    width: var(--sidebar-width, 200px);
    height: 100vh;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.06);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

body.video-voice-translate-body .sidebar .logo,
body.video-voice-translate-body .sidebar .logo-icon,
body.video-voice-translate-body .sidebar .logo-icon img {
    background: transparent !important;
}

.main-content {
    flex: 1;
    min-height: 100vh;
    margin-left: var(--sidebar-width, 200px);
    height: 100vh;
    overflow: hidden;
}

.video-voice-translate-page {
    min-height: 0;
    background: #f5f7fa;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.video-voice-translate-page .page-header {
    margin-bottom: 20px;
}

.video-voice-translate-page .page-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.video-voice-translate-page .page-desc {
    font-size: 15px;
    color: #8a8f99;
    margin-top: 6px;
    margin-bottom: 0;
}

.translate-container {
    display: flex;
    gap: 20px;
    width: 100%;
    flex: 1;
    min-height: calc(100vh - 120px);
}

.left-section {
    flex: 1;
    min-width: 280px;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: visible;
    min-height: 100%;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}

.tips-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tips-section .tips-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f75444;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.tips-section .tips-title svg {
    width: 20px;
    height: 20px;
}

.tips-list {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.tips-list p {
    margin: 0 0 8px 0;
}

.tips-list p:last-child {
    margin-bottom: 0;
}

.form-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-section .form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-section .form-group select {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-section .form-group select:hover {
    border-color: #f75444;
}

.form-section .radio-group {
    display: flex;
    gap: 24px;
}

.form-section .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.form-section .radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #f75444;
    cursor: pointer;
}

.form-section .voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.form-section .voice-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    transition: all 0.3s ease;
    text-align: center;
}

.form-section .voice-item:hover {
    border-color: #f75444;
    background: #fff5f5;
    color: #f75444;
}

.form-section .voice-item input[type="radio"] {
    display: none;
}

.form-section .voice-item input[type="radio"]:checked + span {
    color: #f75444;
    font-weight: 600;
}

.form-section .voice-item input[type="radio"]:checked {
    border-color: #f75444;
    background: #fff5f5;
}

.form-section .voice-item input[type="radio"]:checked ~ .voice-item {
    border-color: #f75444;
    background: #fff5f5;
}

.form-section .upload-area {
    background: #f9fafb;
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 30px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-section .upload-area:hover {
    border-color: #f75444;
    background: #fff5f5;
}

.form-section .upload-icon {
    width: 160px;
    height: 50px;
    margin: 0 auto 12px;
    object-fit: contain;
    transition: color 0.3s ease;
}

.form-section .upload-area:hover .upload-icon {
    color: #f75444;
}

.form-section .upload-icon svg {
    width: 100%;
    height: 100%;
}

.form-section .upload-area p {
    color: #8a8f99;
    font-size: 13px;
    margin: 0;
}

.form-section .video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
}

.form-section .btn-remove {
    padding: 6px 14px;
    background: #fff1f0;
    border: none;
    border-radius: 6px;
    color: #ff4d4f;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.form-section .btn-remove:hover {
    background: #ffccc7;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn svg {
    width: 14px;
    height: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #f75444 0%, #ff7875 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(247, 84, 68, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(247, 84, 68, 0.45);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-large {
    padding: 14px 24px;
    font-size: 15px;
}

.right-section .preview-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.right-section .preview-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
    width: 100%;
    min-height: 0;
    position: relative;
    align-content: start;
}

.right-section .video-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    border-radius: 10px;
    /* 高度全部交给父级 flex 决定：不再写死 max-height，避免把视频框裁掉一截 */
    flex: 1 1 auto;
    min-height: 0;
}

.right-section .video-label {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.right-section .video-box {
    flex: 1 1 auto;
    min-height: 0;
    /* 高度由 flex 撑满可用空间；仅在容器高度不确定（窄屏堆叠）时按 3:4 兜底 */
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.right-section .video-badge {
    display: none;
}

.right-section .video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    gap: 8px;
    background: #1a1a2e;
}

.right-section .video-placeholder img {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.right-section .video-placeholder p {
    margin: 0;
    font-size: 13px;
}

.right-section .video-box > div,
.right-section .video-box > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.right-section .preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.right-section .preview-video:fullscreen,
.right-section .preview-video:-webkit-full-screen {
    object-fit: contain;
}

.right-section .video-error-msg {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    max-width: calc(100% - 24px);
    word-break: break-all;
}

.right-section .preview-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.right-section .nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.right-section .nav-btn:hover {
    background: #fff;
    border-color: #f75444;
    color: #f75444;
}

.right-section .nav-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1200px) {
    .translate-container {
        flex-direction: column;
        height: auto;
    }
    
    .left-section {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }
    
    .right-section {
        height: auto;
    }
    
    .right-section .preview-content {
        flex-direction: column;
    }
    
    .right-section .video-box {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .video-voice-translate-page {
        padding: 12px;
    }
    
    .video-voice-translate-page .page-title {
        font-size: 22px;
    }
    
    .video-voice-translate-page .page-desc {
        font-size: 14px;
    }
    
    .tips-list p {
        font-size: 12px;
    }
    
    .form-section {
        padding: 16px;
    }
    
    .form-section .voice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-section .upload-area {
        padding: 24px 12px;
    }
    
    .right-section .preview-section {
        padding: 16px;
    }
    
    .right-section .preview-content {
        gap: 12px;
    }
    
    .right-section .video-box {
        min-height: 200px;
    }
    
    .right-section .video-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* 901~1200px：页面被压成一屏且不可滚动，让视频框跟随可用高度，避免溢出后被视口裁掉。 */
@media (min-width: 901px) and (max-width: 1200px) {
    .right-section .video-box {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .form-section .voice-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section .radio-group {
        gap: 16px;
    }
}

/* 一屏布局：说明独立置顶，选项区滚动，提交区始终位于左侧面板底部。 */
.video-voice-translate-page {
    height: 100vh;
    min-height: 0;
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.video-voice-translate-page .page-header {
    flex-shrink: 0;
    margin: 0 0 4px;
    text-align: center;
}

.video-voice-translate-page .page-title {
    text-align: center;
    margin: 0;
}

.page-tips-section {
    flex-shrink: 0;
    margin-bottom: 6px;
    padding: 8px 14px;
}

.page-tips-section .tips-title {
    margin-bottom: 4px;
}

.page-tips-section .tips-list {
    line-height: 1.25;
}

.page-tips-section .tips-list p {
    margin: 0 0 2px;
}

.translate-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    flex: 1 1 0;
    min-height: 0;
    height: auto;
}

.left-section {
    width: auto;
    max-width: none;
    min-height: 0;
    height: auto;
    overflow: hidden;
    gap: 12px;
}

.left-section .form-section {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px 10px 16px;
}

.left-section .form-section::-webkit-scrollbar {
    width: 6px;
}

.left-section .form-section::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.upload-group {
    order: -1;
}

.submit-section {
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.submit-section .btn {
    width: 100%;
}

.right-section,
.right-section .preview-section {
    min-height: 0;
}

@media (max-width: 1200px) {
    .video-voice-translate-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    body.video-voice-translate-body,
    .main-content {
        overflow-y: visible;
    }

    .left-section {
        height: auto;
        overflow: visible;
    }

    .left-section .form-section {
        overflow: visible;
    }
}

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

.btn svg.loading {
    animation: spin 1s linear infinite;
}

.btn svg.loading .spin {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
}

/* 桌面端严格限制在视口内，避免公共样式的 min-height 撑出滚动条。 */
@media (min-width: 1201px) {
    body.video-voice-translate-body {
        height: 100vh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.video-voice-translate-body .main-content.video-voice-translate-page {
        height: 100vh !important;
        min-height: 0 !important;
        margin-left: var(--sidebar-width, 200px);
        padding: 12px 20px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .video-voice-translate-page .page-header {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 4px !important;
        text-align: center !important;
    }

    .video-voice-translate-page .page-title {
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .page-tips-section {
        margin: 0 0 6px !important;
        padding: 6px 14px !important;
    }

    .page-tips-section .tips-title {
        margin: 0 0 3px !important;
    }

    .page-tips-section .tips-list,
    .page-tips-section .tips-list p {
        line-height: 1.2 !important;
    }

    .page-tips-section .tips-list p {
        margin: 0 !important;
    }

    .translate-container {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
    }

    .left-section {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .left-section .form-section {
        flex: 1 1 auto !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 8px 14px 8px 16px !important;
        overflow-y: auto !important;
    }

    .submit-section {
        position: relative !important;
        z-index: 2;
        min-height: 58px !important;
        padding: 8px 20px !important;
    }

    .submit-section .btn {
        min-height: 42px;
    }
}

/* 最终覆盖公共 index.css，确保本页不被 flex 的最小内容高度撑开。 */
@media (min-width: 1201px) {
    html,
    body.video-voice-translate-body {
        width: 100% !important;
        height: 100vh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.video-voice-translate-body .main-content.video-voice-translate-page {
        position: relative !important;
        display: flex !important;
        align-items: stretch !important;
        width: calc(100% - var(--sidebar-width, 200px)) !important;
        height: 100vh !important;
        min-height: 0 !important;
        max-height: 100vh !important;
        padding: 10px 20px !important;
        overflow: hidden !important;
    }

    .video-voice-translate-page .page-header {
        flex: 0 0 auto !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 3px !important;
        text-align: center !important;
    }

    .video-voice-translate-page .page-title {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .video-voice-translate-page .page-tips-section {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 108px !important;
        overflow: hidden !important;
        margin: 0 0 5px !important;
        padding: 5px 12px !important;
    }

    .video-voice-translate-page .page-tips-section .tips-title {
        height: 20px !important;
        min-height: 0 !important;
        margin: 0 0 2px !important;
    }

    .video-voice-translate-page .page-tips-section .tips-list,
    .video-voice-translate-page .page-tips-section .tips-list p {
        line-height: 1.15 !important;
    }

    .video-voice-translate-page .page-tips-section .tips-list p {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .video-voice-translate-page .translate-container {
        flex: 1 1 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .video-voice-translate-page .left-section {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        width: auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .video-voice-translate-page .left-section .form-section {
        flex: 1 1 auto !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding: 8px 14px 8px 16px !important;
    }

    .video-voice-translate-page .submit-section {
        position: fixed !important;
        z-index: 10 !important;
        right: auto !important;
        bottom: 10px !important;
        left: calc(var(--sidebar-width, 200px) + 20px) !important;
        width: calc((100vw - var(--sidebar-width, 200px) - 60px) / 2) !important;
        min-height: 58px !important;
        padding: 8px 20px !important;
        box-shadow: 0 -4px 16px rgba(245, 247, 250, 0.95), 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    }

.video-voice-translate-page .left-section .form-section {
        padding-bottom: 72px !important;
    }
}

/* 提交按钮使用独立的视口层，不受左右栏高度和滚动容器影响。 */
.video-voice-translate-page .submit-section {
    display: block !important;
    position: fixed !important;
    z-index: 9999 !important;
    bottom: 12px !important;
    left: calc(var(--sidebar-width, 200px) + 20px) !important;
    right: 50% !important;
    width: auto !important;
    min-height: 60px !important;
    padding: 9px 20px !important;
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 -4px 18px rgba(245, 247, 250, .98), 0 2px 10px rgba(0, 0, 0, .08) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.video-voice-translate-page .submit-section .btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 42px !important;
}

/* 与视频文字翻译页保持一致的一屏工作区布局。 */
body.video-voice-translate-body {
    min-height: 0;
    overflow: hidden;
}

body.video-voice-translate-body > .main-content.video-voice-translate-page {
    width: calc(100% - var(--sidebar-width, 200px));
    height: calc(100vh - 68px);
    min-height: 0;
    margin-left: var(--sidebar-width, 200px);
    padding: 20px 40px 16px;
    overflow: hidden;
    align-items: stretch;
}

.video-voice-translate-page .page-header {
    flex-shrink: 0;
    margin: 0 0 14px;
    text-align: center;
}

.video-voice-translate-page .page-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.4;
}

.video-voice-translate-page .page-desc { display: none; }

.video-voice-translate-page .translate-container {
    display: flex;
    flex: 1;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
}

.video-voice-translate-page .left-section {
    display: flex;
    flex: 0 0 380px;
    flex-direction: column;
    width: 380px;
    max-width: none;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.video-voice-translate-page .left-scroll {
    flex: 1;
    min-height: 0;
    padding-right: 6px;
    overflow-y: auto;
}

.video-voice-translate-page .left-scroll::-webkit-scrollbar { width: 6px; }
.video-voice-translate-page .left-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.video-voice-translate-page .page-tips-section {
    margin: 0 0 12px;
    padding: 0 0 12px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.video-voice-translate-page .page-tips-section .tips-title {
    gap: 0;
    margin: 0 0 12px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.video-voice-translate-page .page-tips-section .tips-title h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.4;
}

.video-voice-translate-page .page-tips-section .tips-title svg { display: none; }

.video-voice-translate-page .page-tips-section .tips-list {
    padding: 12px;
    background: #fff7f5;
    border: 1px solid #ffe8e4;
    border-radius: 9px;
    color: #ff5148;
    font-size: 13px;
    line-height: 1.6;
}

.video-voice-translate-page .page-tips-section .tips-list p {
    margin: 0 0 8px;
}

.video-voice-translate-page .page-tips-section .tips-list p:last-child { margin-bottom: 0; }

.video-voice-translate-page .left-section .form-section {
    flex: none;
    min-height: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.video-voice-translate-page .submit-section {
    flex-shrink: 0;
    margin: 0;
    padding-top: 14px;
    background: #fff;
}

.video-voice-translate-page .submit-section .btn { width: 100%; }

.video-voice-translate-page .right-section {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 24px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.video-voice-translate-page .right-section .preview-section {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.video-voice-translate-page .right-section .preview-content {
    flex: 1;
    min-height: 0;
}

@media (max-width: 900px) {
    body.video-voice-translate-body { overflow: auto; }
    body.video-voice-translate-body > .main-content.video-voice-translate-page {
        width: 100%;
        height: auto;
        min-height: 100vh;
        margin-left: 0;
        overflow: visible;
    }
    .video-voice-translate-page .translate-container { flex-direction: column; }
    .video-voice-translate-page .left-section {
        flex-basis: auto;
        width: 100%;
        max-height: none;
        overflow: visible;
    }
    .video-voice-translate-page .left-scroll { overflow: visible; }
    .video-voice-translate-page .right-section { height: auto; }
}

@media (max-width: 768px) {
    body.video-voice-translate-body > .main-content.video-voice-translate-page {
        padding: 20px;
    }
    .video-voice-translate-page .left-section,
    .video-voice-translate-page .right-section {
        padding: 16px;
    }
}

/* 覆盖历史版本的视口固定提交区，改为左侧面板内的独立底部操作区。 */
@media (min-width: 901px) {
    .video-voice-translate-page .submit-section {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 14px 0 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .video-voice-translate-page .left-section .form-section {
        height: auto !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 1200px) {
    .video-voice-translate-page .submit-section {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
    }
}

/* 最终布局修正：说明完整显示，表单不再被旧规则压缩，按钮保持可见。 */
.video-voice-translate-page .page-tips-section {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.video-voice-translate-page .left-scroll {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.video-voice-translate-page .left-section .form-section {
    display: flex !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

.video-voice-translate-page .submit-section {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px 0 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.video-voice-translate-page .submit-section .btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

@media (min-width: 901px) {
    body.video-voice-translate-body > .main-content.video-voice-translate-page {
        height: calc(100vh - 68px) !important;
        max-height: calc(100vh - 68px) !important;
    }
}
