/* 编码类型选择 */
.encode-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.encode-type-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s;
}

.encode-type-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.encode-type-tab:hover {
    color: #667eea;
}

/* 编码区域 */
.encoder-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.encoder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.encoder-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.encoder-actions {
    display: flex;
    gap: 10px;
}

.encoder-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: #f7fafc;
}

.encoder-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

/* 操作按钮 */
.operation-section {
    text-align: center;
    margin-bottom: 25px;
}

/* 编码类型内容 */
.encode-content {
    display: none;
}

.encode-content.active {
    display: block;
}

/* 示例按钮 */
.example-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.example-btn {
    padding: 8px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.example-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .encode-type-tabs {
        flex-wrap: wrap;
    }
    
    .encode-type-tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .encoder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .encoder-actions {
        width: 100%;
    }
    
    }