.main {
    display: flex;
    min-height: calc(100vh - 60px - 100px); /* 减去header和footer的高度 */
}

.editor-panel {
    width: 30%;
    background-color: #f5f5f5;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.editor-panel-modal{
    position: fixed;
    top: 64px;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.content-area {
    width: 70%;
    padding: 10px;
}

.editor-section {
    margin-bottom: 20px;
}

.editor-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.language-select,
.voice-select {
    display: flex;
    gap: 10px;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.vip-notice {
    background-color: #FFF7E6;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #FF9500;
}

.crown-icon {
    margin-right: 8px;
    font-size: 18px;
}

.translate-btn {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.cost-notice {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.drop-zone.dragover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.drop-text {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.translate-btn:hover {
    background-color: #1976D2;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.upload-container {
    text-align: center;
}

.upload-btn {
    padding: 15px 40px;
    font-size: 18px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #1976D2;
}

.upload-tip {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.video-info {
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.video-info h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-label {
    color: #666;
    margin-right: 10px;
}

.info-value {
    color: #333;
    font-weight: 500;
}


.video-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.video-card {
    width: 100%;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.video-preview {
    position: relative;
    width: 100%;
    background: #f5f5f5;
}

.video-preview video {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    display: none;
}

.upload-progress-bar {
    height: 100%;
    background: #2196F3;
    width: 0;
    transition: width 0.3s ease;
}

.video-del {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.video-details {
    padding: 15px;
}

.video-id {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.video-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-label {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}

.stats-icon {
    color: #2196F3;
    font-size: 16px;
}

.video-metadata {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    margin-left: 20px;
}

.metadata-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.metadata-label {
    color: #666;
    margin-right: 8px;
}

.content-area {
    position: relative;
    width: 70%;
    padding: 20px;
}


.task-count {
    background-color: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
}

.voice-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.voice-filter-btn {
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.voice-filter-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.voice-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.voice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.voice-item:hover {
    border-color: #2196F3;
    background: #f5f5f5;
}

.voice-item.selected {
    border-color: #2196F3;
    background: #e3f2fd;
}

.voice-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.voice-name {
    font-size: 14px;
    color: #333;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.section-header h3 {
    margin: 0;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.question-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    font-size: 12px;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
    margin-bottom: 5px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
}

.cost-text {
    color: #666;
    font-size: 12px;
}


.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    height: 90%;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.video-modal-close:hover {
    color: #333;
}

.video-modal-player {
    width: 100%;
    height:90%;
    margin-bottom: 20px;
}

.video-modal-player video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #000;
}

.video-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.video-modal-download {
    padding: 10px 25px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.video-modal-download:hover {
    background-color: #1976D2;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1px 20px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.toolbar-left {
    display: flex;
    gap: 20px;
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.toolbar-btn.active {
    color: #2196F3;
    font-weight: 500;
}

.toolbar-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2196F3;
}